-Bubble sort time complexity is O(n2)
-Insertion sort worst case time complexity=O(n2) best case time complexity=O(n)
in insertion sort best case is possible only when most of the elements are already sorted.
-Quicksort best case and average case time complexity=O(nlogn) worst case time complexity=O(n2)
If the randomly generated numbers in any case are already sorted then the time taken by quick sort will be O(n2)
-but heap sort will always give a running time of O(nlogn) so heap sort should be used