摘要:
当排序内容太大,不足以全部放入内存进行内部排序,则可把排序内容按可用内存大小分割成多个文件,分别读取文件进行内排,排序结果继续写入文件。最后对所有文件进行归并排序合并成有序大文件。外部排序步骤:1、分割数据 2、分别内排 3、归并小文件// acm.cpp : Defines the entry point for the console application.//#include "stdafx.h"#pragma warning(disable: 4786)#include <iostream>#include <string>#include 阅读全文
posted @ 2013-06-14 10:03
iyjhabc
阅读(421)
评论(0)
推荐(0)