Paper 2: 2.1 Computational Thinking Flashcards
Computational thinking/ algorithmic
The thought processes involved in formulating problems so their solutions can be represented as computational steps and algorithms
Decomposition
Breaking a complex problem down into smaller problems and solving each one individually
Abstraction
Picking out the important parts of information from the problem and ignoring the specific details
What is start/stop flowchart diagram symbol
Oval
What is input/output flowchart diagram symbol
Parallelogram
What is processes flowchart diagram symbol
Rectangle
What is a decision flowchart diagram symbol
Diamond
Trace tables help to
Identify errors in a code
When does linear search work
Any time
When does binary search work
Ordered list
Describe Binary search
- Go to middle, if it is that then stop
- Go to the middle between the upper and lower if it is upper or lower
- Repeat until number is found
Describe linear search
Start at spot 1 and go through the list checking
Positive of binary search
Better with large data sets
How does bubble sort work
Look at first 2 items in a list and swap them if needed
Do this for the whole list
Pros and cons of bubble sort
Pros Cons
Doesn’t use much memory Bad with large sets
Efficient for checking Inefficient for sorting
Simple Algorithm