25.11.2014 Views

Algorithms and Data Structures

Algorithms and Data Structures

Algorithms and Data Structures

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

N.Wirth. <strong>Algorithms</strong> <strong>and</strong> <strong>Data</strong> <strong>Structures</strong>. Oberon version 196<br />

found. Note that one side of the rectangle lies on the x-axis, i.e. the lower bound for y is 0. This guarantees<br />

that enumeration requires at most O(log(N) + s) operations, where N is the cardinality of the search space<br />

in x <strong>and</strong> s is the number of nodes enumerated.<br />

PROCEDURE enumerate (p: Ptr; x0, x1, y1, xL, xR: INTEGER);<br />

VAR xm: INTEGER; (* ADenS48_PrioritySearchTrees *)<br />

BEGIN<br />

IF p # NIL THEN<br />

IF (p.y

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!