CHAPTER 9: ALGORITHM DESIGN AND PROBLEM-SOLVING

9.1 COMPUTATIONAL THINKING SKILLS

9.1.1 Abstraction

Definition: The process of removing unnecessary details to focus on essential features.

Need:

Benefits:

9.1.2 Decomposition

Definition: Breaking down complex problems into smaller, manageable sub-problems.

Benefits:

9.2 ALGORITHMS

9.2.1 Algorithm Representation

Methods:

Components:

Basic Constructs:

9.2.2 Pseudocode Guidelines

Input/Output:

<TEXT>

INPUT variable
OUTPUT variable/value

Assignment:

<TEXT>

variable ← value

Selection:

<TEXT>

IF condition THEN
statements
ELSE
statements
END IF

CASE OF variable
value1 : statement
value2 : statement
OTHERWISE : statement
END CASE

Iteration:

<TEXT>

FOR counter ← start TO end
statements
NEXT counter

WHILE condition
statements
END WHILE

REPEAT
statements
UNTIL condition

9.2.3 Stepwise Refinement

Process:


Revision #1
Created 2026-03-16 12:04:02 UTC by Samuel Lee
Updated 2026-03-16 12:04:16 UTC by Samuel Lee