Search Header Logo
Unit 6 Review (Algorithms)

Unit 6 Review (Algorithms)

Assessment

Presentation

Computers

9th - 12th Grade

Medium

Created by

Samuel Stansbery

Used 9+ times

FREE Resource

3 Slides • 21 Questions

1

Unit 6 Review (Algorithms)

By Samuel Stansbery

2

3

Multiple Choice

Which of the following is an example of the use of heuristics?

1

Trying every possible combination of letters when unscrambling a word

2

Considering each possible move when playing chess

3

Using the formula “area=length x width” to find the area of a rectangle

4

Playing chess using a defensive strategy that has often been successful for you

4

Multiple Choice

A binary search is to be performed on the list:

3, 5, 9, 10, 23


How many comparisons would it take to find the number 9?

1

1

2

3

3

4

4

It can't find the number 9

5

Multiple Choice

A linear search is to be performed on the list:

12, 6, 8, 1, 3


How many comparisons would it take to find the number 1?

1

1

2

2

3

3

4

4

6

Multiple Choice

Identify the description of a binary search.

1

Put the elements in order, check each item in turn

2

Order elements,compare middle value,split list in order&loop

3

Elements do not need to be in order, check each item in turn

4

Randomize data, compare middle value, split list in order & loop

7

Multiple Choice

Identify the description of a linear search.

1

Put the elements in order, check each item in turn

2

Order elements,compare middle value,split list in order&loop

3

Elements do not need to be in order, check each item in turn

4

Randomize data, compare middle value, split list in order & loop

8

Multiple Choice

What is the largest number of comparisons needed to perform a binary search on an array with 42 elements?

1

2

2

5

3

6

4

41

5

42

9

Multiple Choice

We are searching for a number key in a sorted list that has n elements. Under what circumstances will Linear Search / Sequential Search be more efficient than Binary Search?

1

key is the last element in the array

2

key is in the middle of the array

3

n is very large

4

key is the first element in the array

5

key does not exist in the array

10

Multiple Choice

A robot is programming a new game called “Open the box!” You give him a number and he tries to open a numbered box. He’s using Binary Search to accomplish this. Unfortunately, the boxes are not sorted. They are in the following order:


1, 3, 6, 9, 14, 10, 21


Which box can NEVER be found using binary search?

1

9

2

6

3

14

4

10

11

Multiple Choice

Question image

Any algorithm whose efficiency includes an n2, n3, n4 … is called ___________.

1

Problem

2

Polynomial

3

Pseudocode

4

Efficiency

12

Multiple Choice

Question image

Any algorithm whose efficiency includes an 2n, 3n, 4n … is called ______________.

1

Problem

2

Polynomial

3

Exponential

4

Efficiency

13

Multiple Choice

Algorithms with a polynomial efficiency or lower (constant, linear, square, cube, etc.) are said to run in a reasonable amount of time.

1

Reasonable Time

2

Unreasonable Time

14

Multiple Choice

Algorithms with exponential or factorial efficiencies are examples of algorithms that run in an unreasonable amount of time.

1

Reasonable Time

2

Unreasonable Time

15

Multiple Choice

Provides a "good enough" solution to a problem when an actual solution is impractical or impossible.

1

Heuristic

2

Undecidable Problem

3

Unreasonable Time

4

Reasonable Time

16

Multiple Choice

A problem for which no algorithm can be constructed that is always capable of providing a correct yes-or-no answer.

1

Heuristic

2

Undecidable Problem

3

Unreasonable Time

4

Reasonable Time

17

18

Multiple Choice

Question image

Programs run in order, one command at a time.

1

Sequential Computing

2

Parallel Computing

3

Distributed Computing

4

Speedup

19

Multiple Choice

Question image

Programs are broken into small pieces, some of which are run simultaneously.

1

Sequential Computing

2

Parallel Computing

3

Distributed Computing

4

Speedup

20

Multiple Choice

The time used to complete a task sequentially divided by the time to complete a task in parallel

1

Sequential Computing

2

Parallel Computing

3

Distributed Computing

4

Speedup

21

Multiple Choice

A parallel algorithm still contains some sequential portions so the benefits of adding more processors will go down and eventually the speedup reaches a limit.

1

True

2

False

22

Multiple Choice

The impacts of running a parallel algorithm on a large number of computers includes:

1

less time to run and more efficiency

2

less time to run but not more efficiency

3

more time to run and less efficiency

23

Multiple Choice

If the sequential algorithm processing time was 40 seconds, and a parallel's algorithm processing time was 20 seconds, then what is the speed up? (sequential time/parallel time)

1

80

2

2

3

1/2

4

20

24

Multiple Choice

A school is designing a new bus route and are deciding where to put the different bus stops. They want to pick the collection of locations that maximizes the amount of students at a pick up to at least 2 . What term best defines the kind of problem?

1

A decision problem

2

An undecidable problem

3

An optimization problem

4

An efficiency problem

Unit 6 Review (Algorithms)

By Samuel Stansbery

Show answer

Auto Play

Slide 1 / 24

SLIDE