Question 1
Which of the following is not true about comparison-based sorting algorithms?
The minimum possible time complexity of a comparison-based sorting algorithm is O(n(log(n)) for a random input array
Any comparison based sorting algorithm can be made stable by using position as a criteria when two elements are compared
Counting Sort is not a comparison based sorting algorithm
Heap Sort is not a comparison based sorting algorithm.
Question 2
Question 3
Given an array where numbers are in range from 1 to n6, which sorting algorithm can be used to sort these number in linear time?
Not possible to sort in linear time
Radix Sort
Counting Sort
Quick Sort
There are 3 questions to complete.