Skip to content
Truth Academy.
Truth Academy
← Computer Science

Foundations · 12 min

Algorithms are very precise recipes

0 of 4

Ask a friend to make a peanut butter sandwich following only your written instructions, taken completely literally. 'Put peanut butter on the bread' and they set the whole jar on the loaf.

Predict first

Instructions: '1. Pick a number. 2. If it is even, divide by 2. 3. Go to step 2.' Starting with 8, what happens?

Instructions: '1. Pick a number. 2. If it is even, divide by 2. 3. Go to step 2.' Starting with 8, what happens?

Concepts: Algorithms