|
|
|---|
| Sort algorithms home |
|
||||
| sort | insertion sort
[linear insertion sort]
Also defined at: http://www.nist.gov/dads/HTML/insertsrt.html. Inherits from In-place sort Sort by repeatedly taking the next item and inserting it into the final data structure in its proper order with respect to items already inserted. Run time is O(n2) because of moves. [National Institute of Standards and Technology] Demonstrations: Implementations and sample code:
|