also, i'm not saying that sorting algorithms are the most interesting things but my bug for algorithms started with learning the theory of sorting. the bubble sort is really simple and once you know it, you can use it to calculate the ordering of things. this has wide utility.

the bubble sort:

move from one item to the next in a fixed sequence

if the next item is smaller than the previous, swap them around.

repeat until you don't change the order of anything

Reply to this note

Please Login to reply.

Discussion

No replies yet.