<?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="String (computer science) - Page 34 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=String_(computer_science)&amp;p=33">1.Previous</a><br />
<a accesskey="3" href="page.php?w=String_%28computer_science%29&amp;p=35">3.Next</a>
</p>
<p>etc.).If the length is not bounded, encoding a length n takes log(n) space (see <a href="page.php?w=fixed-length_code">fixed-length code</a>), so length-prefixed strings are a <a href="page.php?w=succinct_data_structure">succinct data structure</a>, encoding a string of length n in log(n) + n space.</p>

<p>In the latter case, the length-prefix field itself does not have fixed length, therefore the actual string data needs to be moved when the string grows such that the length field needs to be increased.</p>

<p>Here is a Pascal string stored</p><p>
<a accesskey="1" href="page.php?w=String_(computer_science)&amp;p=33">1.Previous</a><br />
<a accesskey="3" href="page.php?w=String_%28computer_science%29&amp;p=35">3.Next</a>
</p>

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

</card>
</wml>
