Exam 3: The Efficiency of Algorithms

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Part of the job of program ____ is to make clear any assumptions or restrictions about the input size the program was designed to handle.

Free
(Multiple Choice)
4.7/5
(47)
Correct Answer:
Verified

C

The copy-over algorithm is ____ in time efficiency in the worst case.

Free
(Multiple Choice)
4.8/5
(43)
Correct Answer:
Verified

B

____ is the term to describe an algorithm's careful use of resources.

Free
(Multiple Choice)
4.8/5
(29)
Correct Answer:
Verified

D

The selection sort algorithm does exchanges, in addition to comparisons.

(True/False)
4.8/5
(33)

____ is the fixing of errors uncovered through repeated use of an algorithm.

(Multiple Choice)
4.9/5
(46)

The selection sort algorithm can recognize whether or not the list is already sorted at the beginning.

(True/False)
4.8/5
(36)

A ____ is a path through a graph that begins and ends on the same node and goes through every node exactly once.

(Multiple Choice)
4.8/5
(35)

The study of the efficiency of various algorithms is called the ____ of algorithms.

(Multiple Choice)
4.8/5
(35)

In the sequential search algorithm, the minimum amount of work is done if the value being searched for is the ____ value in the list.

(Multiple Choice)
4.9/5
(32)

The shuffle-left algorithm is not space-efficient.

(True/False)
4.9/5
(29)

Of all the desirable properties for algorithms, efficiency is the most easily quantifiable.

(True/False)
4.9/5
(41)

The sequential search and selection sort algorithms are different methods to get the same thing done.

(True/False)
4.8/5
(38)

The shuffle-left algorithm is a(n) ____ algorithm in the best case.

(Multiple Choice)
4.8/5
(44)

When does the worst case in binary search occur?

(Multiple Choice)
4.9/5
(41)

The brute-force bin-packing algorithm is very useful.

(True/False)
4.9/5
(41)

What is the unit of work in the data cleanup algorithm?

(Multiple Choice)
4.8/5
(41)

The time/space tradeoff is the choice between algorithms where you gain something while giving up something else.

(True/False)
4.8/5
(39)

It is sufficient for an algorithm to provide correct results for only the input values that we expect are the most likely to occur.

(True/False)
4.7/5
(45)

The problem of placing objects in alphabetical or numerical order is called ____.

(Multiple Choice)
4.9/5
(42)

Selection sort is a(n) ____ algorithm in all cases.

(Multiple Choice)
4.8/5
(41)
Showing 1 - 20 of 50
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)