If you want to teach a computer to do something, you need to give it a list of simple, precise instructions. Such simple and precise instructions are called algorithm. For example, here is how to teach robots to sort colored balls:

The video shows two sorting algorithms: Bubble sort and Quick sort. In the animation they are used to sort balls, but both can be used to sort anything.

Here's another competition between algorithms: Merge sort vs Quick sort.

See also

Zuto: The Adventures of a Computer Virus
"Gripping", "Funny", "Clever" Read reviews >>
Download sample >>

Can any problem be solved by an algorithm?
See here (The Halting Problem) >>

A demonstration of data compression. Visit page >>

A demonstration of Binary and Hexadecimal numbers
Visit page >>