saurabh73 / sorting-algos

Implementation of Sorting algorithms in C (Beginner)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sorting-algos

Implementation of Sorting algorithms in C (Beginner)

Steps for Adding new Algorithm

  1. Add algorithm signature to sort_algo.h header file.
  2. Implement your algorithm with file name format <algo-name>_sort.c in algorithms folder, with same signature mentioned in Step 1. Make sure to include sort_algo.h.
  3. In file common/menu.c, increment the macro definition TOTAL_ALGOS. Also add Print statement at last with sorting Algorithm name.
  4. In main.c, add the new case in switch block, with same number presented in menu.c. Call your implemented sort array in the case statement.

Build

make

Run

./sorting_algorithms

output

Clean

make clean

About

Implementation of Sorting algorithms in C (Beginner)


Languages

Language:C 92.0%Language:Makefile 4.8%Language:CMake 3.2%