What are the three building blocks to use when designing algorithms?
Programming, sequencing, iteration
Iteration, programming, selection
Sequencing, selection, iteration
What is iteration?
Repeating steps in an algorithm
A decision in an algorithm
An error in an algorithm
Why is iteration important?
It allows us to choose one of several paths through an algorithm
It allows us to simplify an algorithm by removing unnecessary steps
It allows more steps to be included in an algorithm
What is another name for iteration?
Loop
Sequence
Selection
What is a condition?
A decision
A situation that is checked every time iteration occurs
A type of iteration
What is meant by testing a condition?
Checking to see if a condition has been met
Checking which path to take through the solution
Checking how many steps to repeat
How is iteration represented in pseudocode?
IF-THEN-ELSE
IF-THEN-OTHERWISE
REPEAT-UNTIL
How is iteration represented in a flowchart?
As a process
As an input
As a decision
What is a counter used for in iteration?
To keep track of how many steps have been completed
To keep track of how many times the solution has iterated
Keep track of how many steps to repeat