• retagged by
1,099 views
1 1 vote

1 Answer

0 0 votes
For smaller inputs quick sort perform better than the merge sort, due to the fact the merge sort is not in place unlike quick sort. We need more amount of space in case of merge sort.
Position:
Show:

Related questions

0 0 votes
3 3 answers
1.6k
1.6k views
radha gogia asked Jul 17, 2015
1,558 views
If we talk about that since since we cant access any random element in a linked list for that reason quick sort cant be used for linked lists ,then in merge sort also we ...
3 3 votes
1 1 answer
2.5k
2.5k views
Pooja Palod asked Dec 5, 2015
2,516 views
Although merge sort runs in Θ(n lg n) worst-case time, and insertion sort runs in Θ(n 2 ) worst-case time, the constant factors in insertion sort make it fast...
0 0 votes
1 answers 1 answer
616
616 views
cse23 asked Jun 18, 2016
616 views
Can someone explain about their proper usage..where we prefer which sorting and why???
0 0 votes
2 answers 2 answers
835
835 views
radha gogia asked Dec 8, 2015
835 views
T(n)=aT(n/b) +f(n) here f(n) is the cost of conquering the sub-problems i.e. cost of mergingall the sub-problems in order to solve the problem but in case of partioning w...