Skip to content

Implementation of 20+ sorting algorithms in Lua and Luau

Notifications You must be signed in to change notification settings

DervexDev/LuaSortingAlgorithms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Implementation of 20+ sorting algorithms in Lua and Luau

All algorithms have been ported from Python which can be found on GeeksforGeeks site. Every file is ready to use module which can be imported!

This repository features following algorithms:

  • Bogo Sort
  • Bubble Sort
  • Bucket Sort
  • Circle Sort
  • Cocktail Sort
  • Comb Sort
  • Counting Sort
  • Cycle Sort
  • Gnome Sort
  • Gravity (Bead) Sort
  • Heap Sort
  • Insertion Sort
  • Merge Sort
  • Pancake Sort
  • Pigeonhole Sort
  • Quick Sort
  • Radix Sort
  • Selection Sort
  • ShellSort
  • Stooge Sort
  • Strand Sort

And all of them in single module named AllAlgorithms.lua.

Limitations:

All of these algorithms are 100% working with integers and most of them work with floats! (Bucket, Counting, Gravity, Pigeonhole - these don't work!)

About

Implementation of 20+ sorting algorithms in Lua and Luau

Resources

Stars

Watchers

Forks

Languages