Professional Documents
Culture Documents
You have to solve the crime: that is, you have to figure out the answer
to the question “Who committed the crime?”.
What are the smaller questions that you have to ask before you can
figure out who did it?
Decomposition Example
Lets say you’re a police officer, and while you’re working a robbery has
been committed.
You have to solve the crime: that is, you have to figure out the answer
to the question “Who committed the crime?”.
What are the smaller questions that you have to ask before you can
figure out who did it?
Decomposition Example
What are the smaller questions that you have to ask before you can
figure out who did it?
Pattern Recognition Example
3, 6, 9, 12, n, 18, 21
What is n?
Pattern Recognition
Patterns in this case aren’t just mathematical, but they can even be
behaviour patterns or language patterns.
Pattern Recognition
Once we’ve broken down the complex problem into smaller problems,
we can use pattern recognition to save us time. If we’ve already solved
a smaller problem before (as in, at some point in the past), we don’t
need to spend time solving it again!
Abstraction
Ok, so we’ve broken down a problem into smaller problems, and
realized we can already solve some of those problems.
For the rest of the problems, we’re going to figure out what important
details are for the problem we’re solving, and ignore the other
information.
Abstraction Example
An example of abstraction is railway maps. The problem for this is
“How can we tell people where stops on the train are.”
Compare the two images– which one has removed details that aren’t
important?
Abstraction Question
In what way do calendars ignore useless information? (Think about the
purpose of a calendar)
Algorithms
After breaking the problem down into smaller problems, and solving all
those problems, we can now write a plan to solve the problem.