External Replacement Selection
External Replacement Selection External replacement selection is the disk-oriented version of replacement selection. It generates long sorted runs from data that does not fit in memory, forming the first phase of external merge sort. You use it when sorting large datasets stored on disk. Problem Given a dataset too large to fit into memory and a memory buffer of size ( M ), generate sorted runs on disk such that:...