|
|
|
|
|
by iib
1453 days ago
|
|
I guess it can be thought of as an unoptimized insertion or bubble sort. I think it is very possible to write this algorithm by mistake in intro compsci classes when you try to code a bubble sort by heart. I would think TAs may have many such instances in their students' homework. |
|
This one is kind of special, though, since it's somehow more offensive to intuition than bubble sort itself.