1,341 views
1 votes
1 votes

Assume 5 buffer pages are available to sort a file of 105 pages.The cost of sorting using m-way merge sort is-

 

a)206

b)618

c)840

d)926

1 Answer

1 votes
1 votes
105/5=21.  Ceil  is  taken

4 way merge sort because last one is extra use to store infinity

21/4=6 .        ""

6/4=2.            ""

2 are merged so total 4×2×105=840

Related questions

2 votes
2 votes
1 answer
1
sh!va asked Nov 10, 2016
6,702 views
Assume 5 buffer pages are available to sort a file of 105 pages. The cost of sorting using m-way merge sort isA. 206B. 618C. 840D. 926
4 votes
4 votes
1 answer
2
Shivi rao asked Oct 10, 2017
1,545 views
True or FalseMerge sort on Linked list takes O(nlogn)
1 votes
1 votes
0 answers
4