Example 1 — Recognize the model
EasyProblem
A class sees this computing situation: students design a plan for sorting classroom supplies, finding repeated cases, and writing a rule that works beyond one example. How should a student decide whether Pattern Recognition is the right model?
Solution
-
Identify the target of the reasoning.
The target might be a problem, data representation, code state, system component, user need, or stakeholder.
-
List the process or relationship that matters.
Pattern Recognition is useful when the problem asks for a problem-solving plan with subproblems, patterns, essential details, ignored details, and a reusable rule named.
-
Apply the recognition test: Am I changing a messy task into a clearer problem structure that can be solved step by step or reused?
This separates pattern recognition from programming syntax and guess-and-check.
-
State the evidence that would prove the answer.
A trace, test, diagram, input-output pair, or impact argument prevents a vague answer.
Answer
Use Pattern Recognition only if the task is asking for a problem-solving plan with subproblems, patterns, essential details, ignored details, and a reusable rule named and the situation passes the recognition test. Otherwise, choose the nearby model that better matches the computing structure.
Takeaway: Model choice comes before definitions. The same words can belong to different CS ideas depending on the problem structure.