<?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="Insertion sort - Page 29 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=insertion_sort&amp;p=28">1.Previous</a><br />
<a accesskey="3" href="page.php?w=insertion_sort&amp;p=30">3.Next</a>
</p>
<p>and Mosteiro published a new variant of insertion sort called <a href="page.php?w=library_sort">library sort</a> or gapped insertion sort that leaves a small number of unused spaces (i.e., "gaps") spread throughout the array. The benefit is that insertions need only shift elements over until a gap is reached. The authors show that this sorting algorithm runs <a href="page.php?w=with_high_probability">with high probability</a> in O(''n'' log ''n'') time.</p>

<p>If a <a href="page.php?w=skip_list">skip list</a> is used, the insertion time is brought</p><p>
<a accesskey="1" href="page.php?w=insertion_sort&amp;p=28">1.Previous</a><br />
<a accesskey="3" href="page.php?w=insertion_sort&amp;p=30">3.Next</a>
</p>

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

</card>
</wml>
