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


Pagodas insertion


procedure insert( new : tree; var pq : tree ); begin new^.left := new; new^.right := new; pq := merge( pq, new ) end;

C source (515.ins.c) Pascal source (515.ins.p)



© Addison-Wesley Publishing Co. Inc.