What sort is this?

mosdef

Banned
May 14, 2000
2,253
0
0
A sort that in each pass increases by one the number of elements it is sorting? First pass it does nothing (or this pass can be skipped). Second pass it sorts the first and second elements. Third pass it sorts the third element. etc...

Thanks!

-mosdef
 

Mucman

Diamond Member
Oct 10, 1999
7,246
1
0
Ahh... I think it is insertion sort!

So the sorted set starts with zero elements. The algorithm takes the first element form the unsorted set and places it in the sorted set in the appropriate location?
 

Mucman

Diamond Member
Oct 10, 1999
7,246
1
0
No problem! I am just happy that I still remember things from my data structure / algorithms course :)