Derailleur gears by 13 drive-train. Most road bicycles have two chainrings, and touring bicycles commonly have three. The rear derailleur serves double duty: moving the chain between rear sprockets and taking up chain slack caused by moving to a smaller sprocket at the rear or a smaller chainring by the front derailleur. In order to accomplish this second task, it is positioned in the path of the bottom, slack portion of chain. Sometimes the rear-derailleurs are re-purposed as chain tensioners for single-speed bicycles that cannot adjust chain tension by a different method. Although variations exist, as noted below, most rear derailleurs have
Insertion sort In these cases every iteration of the inner loop will scan and shift the entire sorted subsection of the array before inserting the next element. This gives insertion sort a quadratic running time (i.e., O("n")). The average case is also quadratic, which makes insertion sort impractical for sorting large arrays. However, insertion sort is one of the fastest algorithms for sorting very small arrays, even faster than quicksort; indeed, good quicksort implementations use insertion sort for arrays smaller than a certain threshold, also when arising as subproblems; the exact threshold must be determined experimentally and depends on the machine, but