Unit 2 - Problem Solving and Theory of Computation Flashcards
What is abstraction?
Abstraction involves creating a model of a situation to help solve it,
Give the different types of abstraction.
- Information hiding
- Data abstraction
- Functional abstraction
- Procedural abstraction
- Automation
- Decomposition
What is information hiding?
Information hiding involves creating a model of a situation, and omitting any unnecessary detail to make the problem easier to solve.
What is functional abstraction?
Functional abstraction involves defining and calling a function which solves a specific problem, such as square rooting a number, identifying and removing vowels from a word…
What is decomposition?
Decomposition involves breaking down a problem into sub-problems and further breaking these down into singular tasks/modules. This simplifies the task largely, making it easier to complete.
What is problem abstraction?
Problem abstraction is where the detail of a problem is constantly removed until the problem is already solved.