<?xml version="1.0" encoding='utf-8'?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="card1" title="Treap - Page 3 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=Treap&amp;p=2">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Treap&amp;p=4">3.Next</a>
</p>
<p>and <a href="page.php?w=heap_%28data_structure%29">heap</a>.It is a <a href="page.php?w=Cartesian_tree">Cartesian tree</a> in which each key is given a (randomly chosen) numeric priority. As with any binary search tree, the <a href="page.php?w=inorder_traversal">inorder traversal</a> order of the nodes is the same as the sorted order of the keys. The structure of the tree is determined by the requirement that it be heap-ordered: that is, the priority number for any non-leaf node must be greater than or equal to the priority of its children. Thus,</p><p>
<a accesskey="1" href="page.php?w=Treap&amp;p=2">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Treap&amp;p=4">3.Next</a>
</p>

<do type="prev" label="Search">
        <go href="search.wml"/>
</do>

</card>
</wml>
