Skip to content
This repository has been archived by the owner on Jun 14, 2021. It is now read-only.

This repository contains sorting algorithms implemented in C.

Notifications You must be signed in to change notification settings

lucasvianav/sorting-algorithms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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