



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




a) Illustrate the following terms:
b) What is the difference between internal sort and external sort? Explain the phases of the balanced two-way sort merge for sorting large data files that exceed the main memory of a computer. Consider the following record keys: 66 89 61 70 83 108 77 73 76 72 71 67 63 107 52 55 80 34 118
Merge 2 File 3 61 66 70 73 77 83 89 108 52 55 63 67 71 72 76 107 34 80 118 File 1 61 66 70 73 77 83 89 108 34 80 118 File 2 52 55 63 67 71 72 76 107 Merge 3 File 3 52 55 61 63 66 67 70 71 72 73 76 77 83 89 107 108 30 80 118 File 1 52 55 61 63 66 67 70 71 72 73 76 77 83 89 107 108 File 2 30 80 118 Merge 4 File 3 30 52 55 61 63 66 67 70 71 72 73 76 77 80 83 89 107 108 118 File 1 , 2 empty One run stop complete
a) What is the purpose of blocking? What are the factors affecting the blocking factors? If components are stored in a file with a blocking factor of m , and there are n blocks in the file, how many logical and physical accesses do we need to input the file? Trace the sequence of steps involved in reading a block of logical records to a blocked file. **Answer