Search Header Logo
Unit1 - 7.Comparing algorithms

Unit1 - 7.Comparing algorithms

Assessment

Presentation

Computers

9th Grade

Medium

Created by

Ala Jaber

Used 10+ times

FREE Resource

5 Slides • 16 Questions

1

media

2

Multiple Choice

Why is it important to choose the most appropriate algorithm for a given problem?

1

It saves time and resources by increasing efficiency.

2

It makes the code look more complex.

3

It always guarantees the shortest code.

4

It ensures the program will never have errors.

3

media

4

Multiple Choice

The following lists represent 3 passes of a sorting algorithm. Which algorithm is being used to sort the list?
 
4    5    9    6    2    7

4    5    6    2    7    9 
4    5    2    6    7    9
1
Bubble Sort
2

Merge Sort

3

Binary Sort

5

Multiple Choice

Merge Sort is?
1
When a list is kept as one and compared
2
List is split into 2 and merged together
3
List is split into 2 and kept seperate
4
Nothing

6

Multiple Choice

What is a disadvantage of bubble sort?
1
It is slow and inefficient
2
It doesn't do anything in sorted lists
3
It doesn't work on unsorted lists
4
None of the provided options

7

media

8

Multiple Choice

What is the maximum number of comparisons a linear search algorithm could make while searching a 100 item list?
1
50
2
51
3
100
4
101

9

Multiple Choice

Question image
A Linear search algorithm requires data to be ordered.
1
True
2
False

10

Multiple Select

Which of the following statements are true about binary search (Select three answers)?

1

It requires the list to be sorted.

2

It is ideal for large data sets.

3

It can ignore half the values during each step.

4

It works best with unsorted data.

11

Multiple Choice

What does a linear search do?
1
Looks at the first item of data, then each one in turn, until it finds the data item requested
2
Organises the data into alphabetical order
3
Splits the data until the requested data is found

12

Multiple Choice

Identify the INCORRECT statement about searching


i. Binary search starts by testing the largest data

ii. Linear search can be done for unsorted data only

iii. Linear search starts by testing data at the middle of list

iv. Binary search can be done for sorted homogeneous data

1

i, ii and iii

2

ii, iii and iv

3

i, iii and iv

4

i, ii, iii and iv

13

Match

Match the following

Simple; does not need list to be sorted first

Simple, slow algorithm, ideal for small data sets

Very efficient; can ignore half the values but list must be in order

Uses divide and conquer method and is more efficient for large data sets

Linear search

Bubble sort

Binary search

Merge sort

14

media

15

media

16

Multiple Choice

Question image
What is an advantage of the Linear search algorithm?
1
Performs well with small sized data sets
2
Can be used on data sets with more than a million elements
3
Is complicated to code

17

Multiple Choice

Question image
A linear search algorithm is also known as a...
1
Binary search algorithm
2
Bubble sort algorithm
3
Sequential search algorithm

18

Dropdown

Creating a sort algorithm for number of tackles in a soccer match (22 players)​
Adding a ‘sort by times played’ option to a music streaming app (millions of songs)​

19

Multiple Choice

Which of the following is a key characteristic of bubble sort?

1

a) Uses divide and conquer

2

b) Ideal for large data sets

3

c) Repeats the same steps until sort is complete (brute force)

4

d) Very efficient

20

Multiple Choice

You have a list of 22 players’ tackles in a soccer match. Which algorithm would be most appropriate to sort this small data set?

1

Bubble Sort

2

Merge Sort

3

Linear Search

4

Binary Search

21

Drag and Drop

A music streaming app wants to add a ‘sort by times played’ option for millions of songs. Which algorithm would be most appropriate for this large data set?​
A language translation app needs to search a very large, pre-sorted word list for particular words. Which algorithm would be most efficient?​
Drag these tiles and drop them in the correct blank above
Merge Sort
Binary Search
Bubble Sort
Linear Search
media

Show answer

Auto Play

Slide 1 / 21

SLIDE