<?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="Circular buffer - Page 7 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=circular_buffer&amp;p=6">1.Previous</a><br />
<a accesskey="3" href="page.php?w=circular_buffer&amp;p=8">3.Next</a>
</p>
<p>buffering makes a good implementation strategy for a <a href="page.php?w=queue_%28data_structure%29">queue</a> that has fixed maximum size. Should a maximum size be adopted for a queue, then a circular buffer is a completely ideal implementation; all queue operations are constant time. However, expanding a circular buffer requires shifting memory, which is comparatively costly. For arbitrarily expanding queues, a <a href="page.php?w=linked_list">linked list</a> approach may be preferred instead.</p>

<p>In some situations, an overwriting circular</p><p>
<a accesskey="1" href="page.php?w=circular_buffer&amp;p=6">1.Previous</a><br />
<a accesskey="3" href="page.php?w=circular_buffer&amp;p=8">3.Next</a>
</p>

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

</card>
</wml>
