<?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="Bubble sort - Page 7 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=Bubble_sort&amp;p=6">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Bubble_sort&amp;p=8">3.Next</a>
</p>
<p>list will win every swap, so it moves to its sorted position on the first pass even if it starts near the beginning. On the other hand, an element that must move toward the beginning of the list cannot move faster than one step per pass, so elements move toward the beginning very slowly. If the smallest element is at the end of the list, it will take  passes to move it to the beginning. This has led to these types of elements being named rabbits and turtles, respectively, after the characters in Aesop's fable of <a href="page.php?w=The_Tortoise_and_the_Hare">The Tortoise and the Hare</a>.</p><p>
<a accesskey="1" href="page.php?w=Bubble_sort&amp;p=6">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Bubble_sort&amp;p=8">3.Next</a>
</p>

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

</card>
</wml>
