Free Online Flashcard Deck

2 Algorithms and Solution Design Free Online FlashCards

Study 2 Algorithms and Solution Design with 12 free online flashcards. Review key terms, definitions, and concepts with this interactive flashcard deck.

12 cards
01
Front

What is an algorithm?

Back

An algorithm is a finite, ordered set of precise steps that transforms input into the required output.

02
Front

What is decomposition?

Back

Decomposition divides a complex task into smaller subproblems that can be described and tested independently.

03
Front

What should you do when first analyzing a problem?

Back

Restate the problem in your own words, removing unnecessary details and identifying the central task.

04
Front

What is an assumption in problem analysis?

Back

An assumption is a condition accepted as true when the problem does not specify otherwise.

05
Front

What are input and output?

Back

Input is the information supplied to an algorithm; output is the result the algorithm produces.

06
Front

What is a constraint?

Back

A constraint is a limit or rule that the solution must obey, such as a data range, time limit, or business rule.

07
Front

How does validation differ from processing?

Back

Validation checks whether supplied data satisfies the constraints; processing calculates the result for data that is already valid.

08
Front

What does it mean for an algorithm to be correct?

Back

A correct algorithm produces the required output for every valid input.

09
Front

What is selection in an algorithm?

Back

Selection uses a condition to determine which instructions execute, such as an IF–ELSE decision.

10
Front

What is iteration?

Back

Iteration repeats instructions while or until a condition is satisfied.

11
Front

What is pseudocode?

Back

Pseudocode is a structured, language-independent description of an algorithm using ordinary language and programming concepts.

12
Front

What is a dry run?

Back

A dry run manually traces an algorithm with sample data to reveal incorrect conditions, missing assignments, or faulty loop behavior.