This video explains what an algorithm is and how to think before writing a program.

source