<?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="Recursion (computer science) - Page 33 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=recursion_(computer_science)&amp;p=32">1.Previous</a><br />
<a accesskey="3" href="page.php?w=recursion_%28computer_science%29&amp;p=34">3.Next</a>
</p>
<p>is not guaranteed without further analysis.</p>

<p><big>Implementation issues</big></p>
<p>In actual implementation, rather than a pure recursive function (single check for base case, otherwise recursive step), a number of modifications may be made, for purposes of clarity or efficiency. These include:</p>

<p>
* Wrapper function (at top)<br/>
* Short-circuiting the base case, aka "Arm's-length recursion" (at bottom)<br/>
* Hybrid algorithm (at bottom) - switching to a different algorithm once data is small enough</p>

<p>On the basis of elegance, wrapper</p><p>
<a accesskey="1" href="page.php?w=recursion_(computer_science)&amp;p=32">1.Previous</a><br />
<a accesskey="3" href="page.php?w=recursion_%28computer_science%29&amp;p=34">3.Next</a>
</p>

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

</card>
</wml>
