Skip to content

sababot/sorting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sorting

A list of the most popular sorting algorithms implemented in C++. This repo doesn't have much use but it really helps to understand the behind the scenes of many of these sorting algorithms which we use everyday.

Installation

The main script called ***sort.cpp*** which is a cli program to test all of the algorithms Each folder contains ***'algorithm'.cpp*** and can be built using "g++ main.cpp -o 'algorithm'"

Compiling

Compiling the whole repo (no makefile sorry):

g++ sort.cpp bubble/bubble.cpp comb/comb.cpp merge/merge.cpp radix/radix.cpp shell/shell.cpp bucket/bucket.cpp counting/counting.cpp insertion/insertion.cpp quick/quick.cpp selection/selection.cpp -o sort