by BlastRoom
Students trace linear search, binary search and bubble sort on short lists and compare how quickly each algorithm works.
#computing#ict#cambridge_computing#cambridge_computing_stage_6
20 questions
One question set, multiple game modes. Tap any game to see it in action. Not sure which to pick?
How does a linear search work?
A linear search looks for 8 in the list 3, 9, 8, 1, 5. How many items does it check?
A linear search looks for 7 in the list 2, 4, 6, 8. How many items does it check before it knows 7 is not there?
A list has 100 items. What is the most checks a linear search could need?
What must be true about a list before you can use a binary search?
Which item does a binary search check first?
A binary search looks for 30 in 10, 20, 30, 40, 50, 60, 70. It checks the middle item, 40. What does it do next?
A binary search runs on a sorted list of 16 items. After the first check, about how many items are left to search?
Why is a binary search usually faster than a linear search on a long sorted list?
When would you have to use a linear search instead of a binary search?
You look up a word in a dictionary by opening it near the middle, then moving to the earlier or later half. Which algorithm is this most like?
What does a sorting algorithm do?
Which list of scores is in descending order?
In a bubble sort, what happens to each pair of items next to each other?
A bubble sort is putting numbers in order from smallest to largest. The first pair is 7, 3. What happens?
A bubble sort puts 5, 2, 8 in order from smallest to largest. What is the list after one pass?
A bubble sort puts 4, 3, 2, 1 in order from smallest to largest. What is the list after one pass?
After the first pass of a bubble sort from smallest to largest, where is the largest number?
How does a bubble sort know the list is fully sorted?
Two algorithms both give the right answer. What is a good way to decide which one is better?
Outrun the horde and crack the passcode.
Pick a tile, answer, hit bonuses and steals.
Games with Variables
20 questions
Keeping Data Safe
20 questions
Networks and the Internet
20 questions
Robots and Automation
20 questions
Selecting Hardware and Software
20 questions
Spreadsheet Formulas
20 questions
Stage 6 Review 1
40 questions
Stage 6 Review 2
40 questions
Animation and Movement
20 questions
Automation in Industry
20 questions