retagged by
1,477 views

1 Answer

Best answer
4 votes
4 votes

Worst case of merge sort = n * log n

For n = 64, it takes 30sec:
     => 30 = k * (64 * log 64)
     => k = 0.078125sec.

Therefore, in 6 min. = 6*60sec. = 360sec.
     => 360 = 0.078125 * n * log n
     => n * log n = 4608
     => n = 512.

 

selected by

Related questions

0 votes
0 votes
1 answer
1
suneetha asked Nov 3, 2018
437 views
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
0 votes
3 answers
2
aditi19 asked Oct 6, 2018
1,143 views
what is the recurrence relation for merge sort?
0 votes
0 votes
1 answer
3
shipra tressa asked Sep 15, 2018
553 views
n sorted subarrays each of size log n. find single sorted array with all elements.find time complexity
3 votes
3 votes
2 answers
4
garvit_vijai asked Jul 1, 2018
17,906 views
The average no. of comparisons performed by the merge sort algorithm, in merging two sorted lists of length 2 is -a) 8/3b) 8/5c) 11/7d) 11/6