Skip to content

tgvdinesh/sorting-algorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Synopsis

Sorting algorithm in java

Code Example

Initialize Merge sort and doing the sort.

int[] numbers = {3, 5, 7, 2, 44, 5, 0};
Sort mergeSort = new MergeSort();
mergeSort.sort(numbers);

Implementation

  • Bubble sort
  • Insertion sort
  • Selection sort
  • Merge sort
  • Quick sort
  • Tim sort
  • Radix sort

Installation

Clone and make change in App.java to test.

Tests

Test cases cover the following

  • Bubble sort
  • Insertion sort
  • Selection sort
  • Merge sort
  • Quick sort
  • Tim sort
  • Radix sort
    mvn test

Contributors

Anyone can contribute to this project.

TODO

  • Give same data to all types of sorting algorithm and calculate time difference

License

MIT

Releases

No releases published

Packages

No packages published

Languages