Skip to content

MMN0208/sorting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

sorting

Sorting Algorithms

The following sorting algorithms are available:

template "class T"
class Sorting

  1. void printArray(T *start, T *end);
  2. void insertionSort(T *start, T *end);
  3. void shellSort(T *start, T *end, int *seg_array, int n);
  4. void selectionSort(T *start, T *end);
  5. void bubbleSort(T *start, T *end);
  6. void heapSort(T *start, T *end);
  7. void quickSort(T *start, T *end);
  8. void mergeSort(T *start, T *end);

Note:

  • T *start is the first element of the array, T *end is the element after the last element of the array.
  • int *seg_array is an array of the size of a segment in increasing order.
  • int n is the number of elements in seg_array.

About

Sorting algorithms

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages