D1: Shuttle Sort

HideShow resource information

compare the first and second, and swap is appropiate (note the swap and comparrison) 

if a swap is made, compare 2nd and 3rd value, if swap is made, compare the second and first again

compare the third and forth value, and swap if needed (note the swap and comparrison) 

if swap is made, compare the 3rd to…

Comments

No comments have yet been made

Similar Mathematics resources:

See all Mathematics resources »See all Networks, algorithms and problem solving resources »