Good post with applet describing it.

http://bost.ocks.org/mike/simplify/