Mathematics I / Algorithms and Computational Thinking
Practice question · Multiple choice

A recipe is a precise sequence of steps and is not an algorithm in the strict sense. Which requirement does "season to taste" violate?

Hints
  1. Ask whether two different cooks following the instruction would do the same thing.
  2. The three requirements are finite, definite, effective. Which one is about ambiguity?
Show the answer

B. Definiteness, since 'to taste' leaves the executor to decide

Why

Two cooks execute it differently, so the step is not definite, and a procedure whose behaviour depends on who runs it cannot be reasoned about or reproduced. That is exactly why programming languages are unforgiving: definiteness is a requirement, and 'you know what I mean' is not available.

Read the lesson: Algorithms and Computational Thinking →

Practise Algorithms and Computational Thinking

The app has 6 more questions on this lesson, and keeps your place in the course. Mathematics I is free to start.

More questions on Algorithms and Computational Thinking