咨询与建议

看过本文的还看了

相关文献

该作者的其他文献

文献详情 >MERGING SORTED RUNS USING LARG... 收藏

MERGING SORTED RUNS USING LARGE MAIN MEMORY

用大主要记忆的合并的排序的跑

作     者:SALZBERG, B 

作者机构:1.College of Computer Science Northeastern University 02115 Boston MA USA 

出 版 物:《ACTA INFORMATICA》 (信息学报)

年 卷 期:1989年第27卷第3期

页      面:195-215页

核心收录:

学科分类:0711[理学-系统科学] 07[理学] 08[工学] 070105[理学-运筹学与控制论] 081101[工学-控制理论与控制工程] 0701[理学-数学] 071101[理学-系统理论] 0811[工学-控制科学与工程] 0812[工学-计算机科学与技术(可授工学、理学学位)] 

主  题:Computer Systems Programming 

摘      要:External sorting is usually accomplished by first creating sorted runs, then merging the runs. In the merge phase, writing and calculating can be overlapped by reading if two input buffers are used for each sorted run. If the memory is very large, the input buffers will be large and using two input buffers per sorted run will be more efficient than using only one input buffer per run and risking reduced overlap of reading and writing. In many cases, merging time can be cut in half. We derive a formula for estimating the total time for merging for a given memory size, file size, number of merging passes and for a given disk drive. We present an extreme example where in spite of having two buffers per run, significant non-overlap occurs. However, in realistic problems, we show that making one merge pass with two input buffers per run is near optimal. This contradicts earlier results on merging which do not take large memory into account.

读者评论 与其他读者分享你的观点

用户名:未登录
我的评分