<?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="Queap - Page 12 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=Queap&amp;p=11">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Queap&amp;p=13">3.Next</a>
</p>
<p>The potential function for queap Q will be  where .</p>

<p><b><i>Insert(Q, x):</i></b> The cost of the operation is O(1). The size of list L grows by one, the potential increases by some constant c.</p>

<p><b><i>Minimum(Q):</i></b> The operation does not alter the data structure so the amortized cost is equal to its actual cost, O(1).</p>

<p><b><i>Delete(Q, x):</i></b> There are two cases.</p>

<p><big>Case 1</big></p>
<p>If x is in tree T, then the amortized cost is not modified. The delete operation is O(1) amortized 2-4 tree. Since x was removed</p><p>
<a accesskey="1" href="page.php?w=Queap&amp;p=11">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Queap&amp;p=13">3.Next</a>
</p>

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

</card>
</wml>
