'Runsort' - An Adaptive Mergesort for Prolog
Citation:
Brady, Mike , 'Runsort' - An Adaptive Mergesort for Prolog, Dublin, TCD Computer Science Department, March 31, 2005, 2005, (TCD-CS-2005-34)Download Item:

Abstract:
This note describes a novel list-sorting method for Prolog which is stable, has O(n log n) worst-case
behaviour and O(n) best-case behaviour. The algorithm is an adaptive variant of bottom-up mergesort
using so-called long runs of preexisting order to improve efficiency; accordingly we have called it `runsort?.
Runsort compares favourably with samsort, and a modification to samsort is suggested.
Description:
PUBLISHED
Author: BRADY, MICHAEL HAYES
Publisher:
TCD Computer Science DepartmentType of material:
Technical ReportCollections:
Series/Report no:
Computer Science Technical ReportTCD-CS-2005-34
Availability:
Full text availableKeywords:
PrologLicences: