Recent questions tagged sorting

0 votes
1 answer
151
what is the best algorithm to sort a list of more than 1 million items in an arraya)quicksort b) merge sort c)heap sort d) bubble sort
0 votes
1 answer
154
in case of comparision sort max possible is n(n-1)/2
0 votes
1 answer
156
given n elements merge them into one sorted list using merge procedure then what is the time complexity for this ?explain with example
0 votes
2 answers
159
What is the average case time complexity of the best sorting algorithm for an array having 2^n^2 elements .I know that the best sorting algorithm is no better than O(n lo...
1 votes
0 answers
161
just tell me about the quick sort
0 votes
2 answers
163
0 votes
3 answers
164
What is the total number of comparisons needed in the best case to find minimum and maximum of $300 $ elements?
1 votes
0 answers
165
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?1)Counting Sort2)Radix Sort3)Bubble Sort4)...
3 votes
1 answer
166
How many swaps are performed in Merge sort algorithm in worst case?
0 votes
3 answers
167
0 votes
1 answer
168
What is adaptive algorithm and is merge sort and quick sort is adaptive?
0 votes
1 answer
169
0 votes
1 answer
170
Given an array where numbers are in range from 1 to n6 , which sorting algorithm can beused to sort these number in linear time?A. Not possible to sort in linear timeB: C...
1 votes
2 answers
171
What is the worst case time complexity of Quick Sort?Is it nlogn or n2
3 votes
1 answer
172
If Radix sort is used to sort an array of n integers which are in the range ,where d is some function of input size, the time taken would be?(A) (B)(C) (D)
0 votes
1 answer
173
True or False :In randomized quicksort , each key is involved in the same number of comparisons.
0 votes
1 answer
176
Is straight merge sort in gate syllabus?? If yes, where to study from?
0 votes
1 answer
177
n sorted subarrays each of size log n. find single sorted array with all elements.find time complexity
0 votes
1 answer
179