lucasvianav / sorting-algorithms

This repository contains sorting algorithms implemented in C.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SSC0503 - Introduction to Computer Science II

Sorting Algorithms

Repository for the Introduction to Computer Science II offered at ICMC - USP, by professor Adenilso Simão.

This repository contains specifically all sorting algorithms addressed in class:

  • Selection Sort
  • Bubble Sort (sentinella)
  • Insetion Sort
  • Merge Sort (recursive)
  • Heap Sort
  • Shell Sort
  • Quick Sort (recursive)
  • Counting Sort
  • Radix Sort

Sort from terminal

command: ./sort [algorithm] y{0,1} [vector or vector size]

  • method: selection; bubble; insertion; merge; heap; shell; quick; counting; radix
  • y: insert if you with for the sorted vector to be printed
  • vector: any number of integers separated by a whitespace
  • vector size: if you insert only one integer n, a vector of n integers will be randomnly generated and then sorted

About

This repository contains sorting algorithms implemented in C.


Languages

Language:C 99.1%Language:Makefile 0.9%