Search results for sorting

0 votes
2 answers
41
1 votes
2 answers
42
0 votes
1 answer
44
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 ?...
5 votes
5 answers
45
If an array $A$ contains the items $10,4,7,23,67,12$ and $5$ in that order, what will be the resultant array $A$ after third pass of insertion sort?$67,12,10,5,4,7,23$$4,...
0 votes
0 answers
51
4 votes
11 answers
52
Which of the following sorting algorithms does not have a worst case running time of $O(n​^2​)$?Insertion sort.Merge sort.Quick sort.Bubble sort.
23 votes
3 answers
56
Assume that the last element of the set is used as partition element in Quicksort. If $n$ distinct elements from the set $\left[1\dots n\right]$ are to be sorted, give an...
3 votes
3 answers
59
I am not able to get this formula (number of input * number of digit *base of number )I am not getting how base of number is important ?Thanks :)
0 votes
0 answers
60
Hello, i have a algorithm and i want to prove it with induction how can i do that ?Also i want to worst case run time analyze but i am not very good please help me please...