SLR08 ALGORITHMS Flashcards
What is an Algorithm?
A specific sequence of steps that can be followed to complete a task
What is abstraction?
Removing the unnecessary details and filtering the necessary ones.
It is a method of computational thinking.
What is decomposition?
Breaking a complex problem down into smaller tasks.
It is a method of computational thinking.
To make problems easier to solve, can divide the work for each person in a group, program components developed can easily be used in other programs.
What is an example of algorithmic thinking?
The way of getting a solution by identifying the individual steps needed. Creating a set of rules, an algorithm that if followed precisely leads to an answer.
E.g learning multiplication. Following these rules can get the answer to a problem.
Which two ways would you do to describe algorithms?
Pseudo code and flow diagrams
How would we visually see if a program works without running it?
We could use trace tables which works as a yes/no trace table to see each and every outcome.
What is linear search?
From the beginning of a data set, each item is checked in turn to see if it is the one it searches for.
- doesn’t require any order
- Any type of storage device
- efficient in smaller sets
- inefficient in large data sets
What is binary search?
It is to calculate a mid-point in a data set.
If the item is to be found higher or lower. It will set the mid point in that range until it is found.
Requires order
More efficient on average.