159k views
1 vote
24 POINTS!!!
Why are Sequences, Selection, and Iteration building blocks of algorithms?

User Ali Naddaf
by
5.7k points

1 Answer

4 votes

Answer:

An algorithm is a step by step process that describes how to solve a problem in a way that always gives a correct answer.

An algorithm is made up of three basic building blocks: sequencing, selection, and iteration.

Sequencing: An algorithm is a step-by-step process, and the order of those steps are crucial to ensuring the correctness of an algorithm.

Selection: Algorithms can use selection to determine a different set of steps to execute based on a Boolean expression.

Iteration: Algorithms often use repetition to execute steps a certain number of times or until a certain condition is met.

Step-by-step explanation:

User LoKat
by
6.9k points