<?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="Switch statement - Page 5 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=Switch_statement&amp;p=4">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Switch_statement&amp;p=6">3.Next</a>
</p>
<p>A branch table allows the program to determine which branch to execute with a single calculation instead of comparing values in a sequence. A binary search takes only a logarithmic number of comparisons, measured in the number of cases in the switch statement. Generally, the only way to determine whether the code was optimized in this way, is by analyzing the compiler output such as <a href="page.php?w=Assembly_language">assembly</a> or <a href="page.php?w=machine_code">machine code</a>.</p>

<p>; Less complex: In terms of a <a href="page.php?w=control-flow_graph">control-flow graph</a>,</p><p>
<a accesskey="1" href="page.php?w=Switch_statement&amp;p=4">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Switch_statement&amp;p=6">3.Next</a>
</p>

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

</card>
</wml>
