<?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="Recursive indexing - Page 2 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=Recursive_indexing&amp;p=1">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Recursive_indexing&amp;p=3">3.Next</a>
</p>
<p>To encode a number N, keep reducing the maximum element of this set (S<sub>max</sub>) from N and output Smax for each such difference, stopping when the number lies in the half closed half openrange [0&nbsp;-&nbsp;S<sub>max</sub>).</p>

<p><big> Example </big></p>
<p>Let S&nbsp;=&nbsp;[0 1 2 3 4 ... 10], be an 11-element set, and we have to recursively index the value N=49.</p>

<p>According to this method, subtract 10 from 49 and iterate until the difference is a number in the 0-10 range.</p>

<p>The values are 10 (N&nbsp;=&nbsp;49&nbsp;-&nbsp;10 =&nbsp;39),</p><p>
<a accesskey="1" href="page.php?w=Recursive_indexing&amp;p=1">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Recursive_indexing&amp;p=3">3.Next</a>
</p>

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

</card>
</wml>
