Skip to content

Veepro/complexity-of-sorting-algorithms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

complexity-of-sorting-algorithms

Description

This program helps to compare of theoretical asymptotics of sorting algorithms with measurement results. You can plot graph for time dependence on array size. Also, remarkably, you can modify Run.java for testing others algorithms.

Sorting algorithms comparison table

Name Best Average Worst Memory Stable
Quicksort O(nlogn) O(nlogn) O(n2) O(logn) No
Insertion sort O(n) O(n2) O(n2) O(1) Yes
Selection sort O(n2) O(n2) O(n2) O(1) No
Bubble sort O(n) O(n2) O(n2) O(1) Yes
Heapsort O(nlogn) O(nlogn) O(nlogn) O(1) No

List of technologies used:

  • Swing (graphical interface)
  • XChart (plotting)
  • Maven

Conclusion

To build graphs with correct scale lower size input data for slow algorithms and enlarge for fast algorithms.

About

Comparison of theoretical asymptotics of sorting algorithms with measurement results

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages