programming concepts week 1 Flashcards
Week 001
what is problem solving?
A problem solving skill is defined as the break down of complex problems into a smaller and more manageable components and develop solutions that are practical, effective, and efficient.
Further explanation of above?
You must also be able to think outside the box and consider multiple solutions to a problem, weighing the pros and cons of each approach.
Methods of breaking problem solving question?
TOP-DOWN
BOTTOM-UP
MODULARISATION
TOP-DOWN APPROACH
This method of problem solving is when you start off by looking at one single large problem and you split it up into smaller problems.
Then you recursively break those problems down until they are much more manageable.
NOTE:
This method is commonly used technique in industries.
What is the Upsides To Top-Down?
A strategy in which the decision-making process occurs at the highest level and is then communicated to the rest of the team.
What is the Downsides To Top-Down?
Can contain redundant information
Class explosion
Modularisation
Reusable Programs
- Code reusability refers to writing code in such a way that it can be reused across multiple contexts with little or no modification required.
What is Modularisation?
Modularization is the process of breaking down a system into smaller, independent parts called modules.
What is Bottom-up Approach?
We are looking to start with a load of smaller problems that need to be merged together together into a more complete solution.
What is the Upsides To Bottom-Up?
It is a way of planning or organizing something that considers the smaller parts or details, or the lower or less powerful levels of a group or organization.
What is Downsides To Bottom-Up?