Recent questions tagged sorting

0 votes
1 answer
1
In quick sort, n numbers the (n/10)th element is selected as pivot using n^2 sortimng time complexity what will be the time complexity of quick sort is.....a)O(nlogn)b)O(...
0 votes
0 answers
8
Given the array \( [4, 3, 2, 1, 5] \), which of the following sorting algorithms can successfully sort the array in exactly two passes?Bubble SortInsertion Sort Selectio...
0 votes
1 answer
12
Worst case time complexity of heap sort for n elementsO(nlogn)O(logn)O^2O(n)
1 votes
1 answer
13
Which of the following is true for a sorted list with ' $n$ ' elements?Insertion in a sorted array takes constant time.Insertion in a sorted linear linked list takes cons...
0 votes
2 answers
15
0 votes
1 answer
16
Consider the set of 4 -digit positive integers. How many of them have their digits in :-a) strictly decreasing order ?b) non decreasing order ?c) non increasing order ?...
0 votes
0 answers
17