
Edexcel Algorithm efficiency
Presentation
•
Computers
•
9th Grade
•
Practice Problem
•
Hard
Roy Duguid
FREE Resource
24 Slides • 7 Questions
1
Do Now
Create a list with 3 people in it
add a new person to the end of the list
print the list
remove the last person from the list
replace the 2nd person in the list with "Mario"
print the list
print the list but use [-1] .
Stretch:
keep asking the user if they want to add a new person to the list until they say no. add each person to the list and print the list
2
:D
3
4
5
Time – how long it takes to run (often measured in terms of the number of steps or operations). Space – how much memory it uses during execution.
6
7
8
9
10
Worst Case: 100 comparisons
11
Multiple Choice
State the best case for a linear search algorithm.
12
Multiple Choice
State the worst case for a linear search algorithm.
13
14
15
16
17
18
19
20
21
Multiple Choice
Explain the best case search for a binary search
22
Multiple Select
In the worst-case scenario for a binary search...
(multiple choiuce
it takes the maximum number of steps
the target isn't in the list
the target it in the middle
it find the target immediately
23
24
25
26
27
Multiple Choice
Describe an in-place algorithm
28
Multiple Choice
Describe an out-of-place algorithm
29
Open Ended
Explain the effect on efficiency of using a merge sort algorithm instead of a bubble sort algorithm on this list: 9 4 3 5 5 1 7
(2 marks)
30
merge will use more memory 1 because it will make copies of the list 1 the bubble will use less memory 1 because it is an in-place 1 sort the merge will take more time to write and debug 1 because it is a more complex algorithm 1 the bubble will probably take less time to write 1 because it is simple / well known 1
31
Do Now
Create a list with 3 people in it
add a new person to the end of the list
print the list
remove the last person from the list
replace the 2nd person in the list with "Mario"
print the list
print the list but use [-1] .
Stretch:
keep asking the user if they want to add a new person to the list until they say no. add each person to the list and print the list
Show answer
Auto Play
Slide 1 / 31
SLIDE
Similar Resources on Wayground
26 questions
DNA structure and replication
Presentation
•
9th Grade
26 questions
Intro to Evolution
Presentation
•
9th Grade
24 questions
Advertising Digital
Presentation
•
9th Grade
22 questions
The Odyssey and The Hero's Journey
Presentation
•
9th Grade
25 questions
Romeo and Juliet Act I
Presentation
•
9th Grade
26 questions
Box and Whisker Plots
Presentation
•
9th Grade
26 questions
Cell Membrane and Transport
Presentation
•
9th Grade
26 questions
Circuits and Symbols
Presentation
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Safety Day 2026 – Student Review
Quiz
•
9th Grade
21 questions
Continents and Oceans
Quiz
•
6th Grade
20 questions
Parts of Speech
Quiz
•
5th Grade
16 questions
Subject & Predicate
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
12 questions
Map Skills
Quiz
•
3rd Grade
22 questions
Continents and Oceans
Quiz
•
5th Grade
15 questions
Rounding Decimals
Quiz
•
5th Grade