This repo contains codes I wrote when I was learning algorithm. These codes are all written in C. And I compiled and tested them on OS X with clang/gcc.
Firstly, clone it from Github:
git clone git clone git://github.com/messense/algorithm-learning.git
Then compile it and you will find the executable programs in directory bin
:
cd algorithm-learning
make
Now you can change directory to bin
and run the programs to test it.
- Insertion Sort - src/insert_sort.c
- Merge Sort - src/merge_sort.c
- Bubble Sort - src/bubble_sort.c
- Quick Sort - src/quick_sort.c