Abstraction CS Thinking Example 1
Follow the full solution, then compare it with the other examples linked below.
Example 1
mediumA map of the London Underground is an example of abstraction. Explain what details are kept and what is removed.
Solution
- 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
The Tube map keeps connectivity and line information but removes geographic accuracy. This makes it easier to plan journeys.
Abstraction means removing unnecessary detail to focus on what matters. It simplifies complex systems by hiding implementation details while keeping essential information.
About Abstraction
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.
Learn more about Abstraction โMore Abstraction Examples
Example 2 medium
A function `calculateArea(length, width)` returns `length * width`. Explain how this is an example o
Example 3 easyWhen using a TV remote, you press 'Volume Up' without knowing the electronics inside. How does this
Example 4 easyA weather app shows temperature, rain chance, and wind speed, but hides sensor voltages and calibrat