Search Header Logo
Linear Search (One dimensional)

Linear Search (One dimensional)

Assessment

Presentation

Computers

9th - 10th Grade

Practice Problem

Medium

Created by

Calum Gordon

Used 13+ times

FREE Resource

12 Slides • 15 Questions

1

Linear Search

(One dimensional)

Searching a sequential list

media

2

media

3

media

4

Multiple Select

Question image

In this lesson I am going to learn to ... ?

1

Apply a linear search to a 1-D list

2

Show a linear search algorithm in a flowchart

3

Code a linear search algorithm

4

Compare linear and binary search algorithms

5

media

6

Poll

Question image

You need to find the value 42 in this table?

How would you go about doing this?

Scan row-by-row from top to bottom looking for it?

Scan column-by-column from left to rightlooking for it

Look in random positions for it

Scan from bottom up to top looking for it

7

media

8

Fill in the Blanks

Type answer...

9

media

10

media

11

Multiple Choice

Which of these is the best description of linear search?

1

Start looking at the beginning and continue until you get to the end

2

Start looking at the beginning and continue until either you find the item or get to the end

3

Start looking at the end and continue until you get to the beginning

4

Keep looking in random locations until you find the item

12

Multiple Choice

What would be the most suitable type of data for the linear search algorithm to return

1

Bool

2

str

3

int

4

float

13

Multiple Choice

What data type should be returned if the linear search algorithm was to return the index position of the search item.

1

Book

2

int

3

float

4

str

14

Multiple Choice

What integer value should be returned by the linear search algorithm to indicate the search item was NOT found?

1

0

2

-1

3

1

4

len(list)

15

media

16

media

17

Fill in the Blanks

Type answer...

18

media

19

Fill in the Blanks

media image

Type answer...

20

Fill in the Blanks

media image

Type answer...

21

media

22

Multiple Choice

Question image

What has been blanked out from this linear search algorithm?

1

found

2

notFound

3

moreItems

4

index

23

Multiple Choice

Question image

What has been blanked out from this linear search algorithm?

1

!=

2

==

3

<=

4

<

24

media

25

Multiple Select

Question image

In this lesson I have learned to ...

1

Apply a linear search to a 1-D list

2

Show a linear search in a flowchart

3

Write code for a linear search algorithm

26

Open Ended

Question image

Thinking Hard

What is the most interesting thing you’ve learnt today?

Compare your idea with a friend's.

Explain why yours is more important.

(press Shift+Enter to take a new line ...)

27

Poll

Question image

How much of this lesson have you understood?

None of it

Some of it

Most of it

All of it

Linear Search

(One dimensional)

Searching a sequential list

media

Show answer

Auto Play

Slide 1 / 27

SLIDE