Logo image
外部排序與外部搜尋問題之研究
Dissertation

外部排序與外部搜尋問題之研究

呂芳誠
Doctor of Philosophy (PHD), 國立清華大學, 資訊工程學系
2000

Abstract

外部排序 外部搜尋 演算法 網際網路 external sorting external selection algorithm internet
The problem of how to sort and select data efficiently has been widely discussed. Nowadays, to sort extremely large data is becoming more and more important for large corporations, banks, and government institutions, which rely on computers more and more deeply in all aspects. Most of the time, sorting and selection are accomplished by external sorting and selection algorithm, in which the data file is too large to fit into main memory and must be resided in the secondary memory. We here present an optimal external sorting algorithm for two-level memory model. Our method is different from the traditional external merge sort and it uses the sampling information to reduce the disk I/Os in the external phase. The algorithm is elegant, simple and it makes a good use of memory available in the recent computer environment. Under the certain memory constraint, this algorithm runs with optimal number of disk I/Os and each record is exactly read twice and written twice. This dissertation also presents an optimal sampling external selection algorithm to select k-th smallest item in large data sets for the two-level memory model. The sampling external selection algorithm is also applied to solve the worldwide selection problem in the Internet environment. The sampling information scheme is used to form an elegant and simple algorithm to reduce the number of disk I/Os. The best case and the worst case of our algorithm are discussed and our algorithm is also efficient for the multiple selections. Finally, we analyze the average case of our algorithm according to equal probability assumption that the probability of one block overlapped or not overlapped with the other blocks is equal.

Metrics

1 Record Views

Details

Logo image