Suppose you have a file with
1
0
0
0
0
0
pages to be sorted with general external merge sort
(
without tournament sort and without blocked disk access improvements
)
.
Assume that you have
2
0
0
buffer pages available in memory that can be used for sorting. Answer the
following questions:
a
)
How many sorted runs will the general external merge sort produce at the end of the first pass?
b
)
How many passes will it take to sort the file completely? c
)
What is the total I
/
O cost
(
the number of disk access made
)
of sorting the file
?
Not the question you are looking for? Ask here!
Enter question by text
Enter question by image
Unlock Smarter Learning with AskSia Super!
Join Super, our all-in-one AI solution that can greatly improve your learning efficiency.