[Home]
[Chapter]
[Contents]
[Previous Algorithm]
[Next Algorithm]


Unsorted list insertion


procedure insert( new : list; var pq : list ); begin new^.next := pq; pq := new end;

C source (511b.ins.c) Pascal source (511b.ins.p)



© Addison-Wesley Publishing Co. Inc.