Abstraction Examples in CS Thinking
Start with the recap, study the fully worked examples, then use the practice problems to check your understanding of Abstraction.
This page combines explanation, solved examples, and follow-up practice so you can move from recognition to confident problem-solving in CS Thinking.
Concept Recap
Focusing only on the essential information needed to solve a problem while ignoring irrelevant details. Abstraction reduces complexity by creating simplified models that capture what matters and hide what does not, enabling reasoning at higher levels.
Zooming out to see the big picture, hiding complexity you don't need right now.
Read the full concept explanation โHow to Use These Examples
- Read the first worked example with the solution open so the structure is clear.
- Try the practice problems before revealing each solution.
- Use the related concepts and background knowledge badges if you feel stuck.
What to Focus On
Core idea: Good abstraction reveals what matters and hides what doesn't.
Common stuck point: Too much abstraction loses important information; too little is overwhelming.
Sense of Study hint: When applying abstraction, first identify which details are essential to solving your current problem and which are irrelevant. Remove or hide the irrelevant details, creating a simplified model. Test whether your abstraction still captures enough information to produce correct results.
Worked Examples
Example 1
mediumSolution
- 1 Step 1: Details kept: station names, line colours, connections between stations, order of stations.
- 2 Step 2: Details removed: actual geographic distances, street layouts, terrain, exact positions.
- 3 Step 3: The abstraction keeps only the information relevant to navigating the tube system.
Answer
Example 2
mediumPractice Problems
Try these problems on your own first, then open the solution to compare your method.