ken price▸ MOOC Introduction

Algorithms, eh?
Here's an unfortunately flawed algorithm on a hair shampoo bottle that, if you follow it slavishly, has you washing your hair forever. It has an un-terminated repeat loop.

G+ Comments

5 plus ones, 3 comments

  • Rebecca Vivian: Good example and good find! Sounds like they need a condition in there  🙂 
  • Lou Christie: So that’s what I’ve been doing wrong with my hair washing routine, Ken!
  • Bruce Fuda: I only just saw this, but I’m thinking that in the syntax for this particular “language”, the italics indicate an optional instruction that doesn’t necessarily have to be followed each iteration. It’s still not perfect, but without the API documentation I don’t know what syntax is necessary to fix it 😉

+ There are no comments

Add yours