wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

The minimum number of record movements required to merge five files A (with 10 records) B (with 20 records), C (with 15 records), D(with 5 records) and E (with 25 records) is _____________.

A
165
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
B
90
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
75
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
65
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is A 165

The minimum number of record movements required to merge five files A (with 10 records) B (with 20 records), C (with 15 records), D (with 5 records) and E (with 25 records) is 165.

Using optimal merge pattern algorithm arrange files in increasing order of records:-

Now, minimum number of record movements required = sum of internal node’s value = 15 + 30 + 45 + 75 = 165.



915220_917148_ans_9e6db7a99c844d4b8323a1ddadbc6f9b.PNG

flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Equations
QUANTITATIVE APTITUDE
Watch in App
Join BYJU'S Learning Program
CrossIcon