TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: DAVID NOON
from: DARIN MCBRIDE
date: 1998-04-02 08:49:00
subject: Sorting Linked List

 DN> There is a minor variant of Quicksort, called 
 DN> Mergesort, for sorting linked lists using Hoare's algorithm.
Doesn't Mergesort require O(n) space?  Quicksort requires O(lgn) space... 
that is a large difference... :-)
 DN> You aren't right. Quicksort is O(n log n), but can bloat out to O(n**2)
 DN> under adverse circumstances.
Under mostly pathological circumstances... ;-)
---
---------------
* Origin: Tanktalus' Tower BBS (1:250/102)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.