D1: Bubble Sorts

HideShow resource information

Compare the first and second number, if they are in the wrong order, switch them, then copy the second line with switched number, and note the comparison and swap. 

Compare second and third, and swap if they are in the wrong order, then note an additional comparison and swap. 

compare third and forth and swap if they are in the wrong order, then note an additional comparison and swap. 

compare…

Comments

No comments have yet been made

Similar Mathematics resources:

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