765 views
2 votes
2 votes

In the absence of a comparator, the time complexity of a generate-and test type of algorithm to sort n numbers would be of the order : 

(A) log n

(B) n2

(C) n

(D) n!
 

Please log in or register to answer this question.

Related questions

20.9k
views
2 answers
8 votes
radha gogia asked Jul 19, 2015
20,906 views
(A) Insertion Sort with time complexity O(kn)(B) Heap Sort with time complexity O(nLogk)(C) Quick Sort with time complexity O(kLogk)(D) Merge Sort with time complexity O(kLogk) what is the approach of doing this question ?
1.3k
views
2 answers
1 votes
radha gogia asked Jul 22, 2018
1,286 views
what is the time-complexity in kruskal algorithm for the overall step 2 where for each vertex Make-set function is called ? How come overall time for this step is ... of loop we have v sets of 1 vertex each .Please explain this clearly .