Yes, 2-2 is an improvement for 2-1. But I think 2-3 is better because it results in less swaping movements.
2-3 : for i=7 to j-1 step -1
newcoleco 4 years ago
erratum
2-3 : for i=7 to j+1 step -1
Comment removed
Yes, 2-2 is an improvement for 2-1. But I think 2-3 is better because it results in less swaping movements.
2-3 : for i=7 to j-1 step -1
newcoleco 4 years ago
erratum
2-3 : for i=7 to j+1 step -1
newcoleco 4 years ago
Comment removed
newcoleco 4 years ago