Skip to content

Fnhid/sorting-algorithms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

59 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ—๏ธ Sorting Algorithms ๐Ÿšง

Welcome to the Sorting Algorithms! Here, you'll find a variety of sorting algorithms in action. Whether you're optimizing performance or experimenting with different sorts, this project has you covered. ๐Ÿ’ปโœจ


๐Ÿšง This project is still under construction! New features and sorting algorithms are actively being added. ๐Ÿšง


โš™๏ธ Configuration Options

you can edit these options in sort.h!

  • Array Size & Number:
    Customize the size of arrays by modifying ARRAY_SIZE and MAX_NUMBER in sort.h.
    ๐Ÿ’ก Adjust these to test your sorting algorithms on arrays of different sizes!

  • Toggle Array Printing:
    Turn the array-printing feature on or off by changing the value of PRINT_ARRAY in sort.h.
    ๐Ÿ‘€ Useful when debugging or viewing array transformations!

  • Select Sorting Algorithms:
    Choose which sorting algorithms to execute by modifying isSortingEnabled in main.cpp.
    ๐Ÿ”€ Easily enable or disable specific sorts with this simple switch.


๐Ÿ› ๏ธ How to Build

Build the project:

make

Remove generated files:

make clean

Rebuild (use this when the output file is already built and only header files have changed):

make rebuild

๐Ÿ“‹ To-Do List

Check out the progress on implemented sorting algorithms:

  • Performance Test

  • Bubble Sort

  • Selection Sort

  • Quick Sort

  • Heap Sort

  • Insertion Sort

  • Merge Sort

  • Shell Sort

  • Radix Sort

  • Counting Sort

  • Bogo Sort (Why not some chaos?)

  • Bogobogo Sort (Extreme chaos!)

  • Bead Sort (Gravity Sort) (Let physics do the work!)

  • Sorting Parallelization


About

Check the performances of various sorting algorithms

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •