Recent questions tagged quick-sort

1 votes
1 answer
91
Consider an array with following element12, 18, 17,11, 13, 15, 16 ,14The number of element will change their initial position after completion of partition algorithm by c...
1 votes
1 answer
93
Consider the following sequence of letters (Assume always select last element as pivot and array index starts with 0)Q, U, I, C, K, S, O, R, T, E, X, A, M, P, L, EWhat is...
2 votes
1 answer
95
Is quick sort in-place algorithm?
0 votes
1 answer
98
2 votes
2 answers
100
About how many compares will Quicksort() make when sorting an array of N items that are all equal?$\Theta(\lg N)$$\Theta(N\lg N)$$\Theta(\lg \lg N)$$\Theta(N/\lg N)$
1 votes
1 answer
102
is it quick sort is inplace algorithm. according to me it takes o(logn) space in best case and as i know any algo takes more then 0(1) spcae count as not inplace algo...
1 votes
2 answers
103
What is the Worst Case Space Complexity of Quick Sort?
4 votes
1 answer
107
the worst case time complexity of quicksort for an elements when the median is selected as the pivota. o(n^2)b.o(n)c.o(nlogn)d.o(logn)
0 votes
2 answers
109
Is Quicksort is in place algorithm?
2 votes
1 answer
110
probability of a split more balanced than a to (1-a) split in partitioning procedure of quicksort where 0<a<=1/2?1-3a 1-2a a+1 none
18 votes
3 answers
112
Consider the quick sort algorithm on a set of $n$ numbers, where in every recursive subroutine of the algorithm, the algorithm chooses the median of that set as the pivot...
1 votes
5 answers
113
Consider the following array...12 18 17 11 13 15 16 14Find the no of elements which will change their position when partitioning algorithm is applied on array .pivot cho...
1 votes
1 answer
114
10 votes
2 answers
115
A machine needs a minimum of $100$ sec to sort $1000$ names by quick sort. The minimum time needed to sort $100$ names will be approximately$50.2$ sec$6.7$ sec$72.7$ sec$...
21 votes
7 answers
116
23 votes
3 answers
117
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...