文件名称:外部归并排序算法,使用B+树,分块整理等
文件大小:7KB
文件格式:RAR
更新时间:2013-06-22 10:45:01
B+树 分块整理 外部归并排序
先让我们看看原题的三个任务介绍:
Task 1: Sorting the LINEITEM table by External Merge Sort
Consider two cases: 1) using 5 buffer pages in memory for the external merge sort; 2) using 129 buffer pages in memory for the external merge sort. In the implementation, each buffer page occupies 8K bytes. The ORDERKEY attribute of the LINEITEM table is assumed to be the sort key in the external merge sort. Please report the number of passes and also the running time of the external merge sort in each case.
Task 2: Organizing the sorted LINEITEM table into disk pages
Please use the page format for storing variable-length records to organize the LINEITEM table sorted in Task 1. In the implementation, each disk page occupies 1K bytes. For each page we maintain a directory of slots, with a
【文件预览】:
task3.c
task2.c
task1.c