Algorithmic Thinking Flashcards
what is an algorithm?
Is a sequence of steps that must be followed to complete a task
Abstraction
The process of removing unnecessary details from a problem
decomposition
Involves breaking down a complex problem or system into smaller parts that are more manageable and easier to understand
Linear search
Starting at the beginning of the data set, each item of data is examined until a match is made. Once the item is found, the search ends
Binary search
A binary search checks the middle value in the
list. If that middle item is higher than the search
value it disregards the top half of the list. Then it
checks the middle of the remaining values. This
process repeats until the value is found, or no
data remains.
Pseudocode
It can be used to draft algorithms to ‘dry run’ them before programming
Trace tables
Trace tables are used alongside pseudocode to help test algorithms before they are programmed. This is called a ‘dry run’ test.