What are the computational thinking methods
Abstraction, decomposition, algorithmic thinking
What is abstraction
Ignoring unnecessary detail
Simplifying the problem and reduced complexity
What is decomposition
Breaking a complex problem down into smaller parts
What is algorithmic thinking
Setting out a step by step process needed to solve a problem (flowchart)
What is the square box for in a flowchart
A process (action) like setting a variable value
What is the parallelogram
Input/output
What is the diamond
A decision (true false, bigger or smaller)
What is a rounded rectangle
Start and stop
What are the stages of a linear search
Starting with the first value check all the values in order
What are the steps of a binary search
Pick middle number
Check if number selected is the target number
If it is larger than target discard the right half and discard the left hand if it is smaller
Repeat until number found or there is only one item left
What happens in a bubble sort
Pairs of numbers are compared and if they are in the incorrect order they switch, causing the largest number to bubble to the end
What happens in a merge sort
First the list is split into individual parts, then they are combined into pairs and ordered in size then two pairs join and are ordered in size.
What are the stages in an insersion sort
Selects the first item in the list and places the second in the correct order. With each pass the next item is placed into the sorted list in the correct place
What are the advantages of binary searches
Take less comparisons and are faster
Why are merge sorts better than bubble sorts
Faster to sort for larger lists and takes a set amount of time(if list is same number of digits)
What are the differences between an insersion sort and bubble sort
Insertion inserts sorts into the correct position and only completes one pass
Bubble compares pairs of values and needs multiple passes
What are the similarities between bubble and insertion
Both produce sorted lists and work left to right
What is the purpose of a truth table
To show all possible inputs and the associated output