Exam 3: The Efficiency of Algorithms

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

Time algorithms taken across multiple machines is the best way for comparing two algorithms that do the same task.

Free
(True/False)
4.8/5
(34)
Correct Answer:
Verified

True

The shuffle-left algorithm is an ____ algorithm in the worst case.

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

D

It is well known that solution algorithms that work in polynomial do exist.

Free
(True/False)
4.8/5
(39)
Correct Answer:
Verified

False

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

(Multiple Choice)
4.9/5
(36)

Explain the term "brute force" as it applies to algorithms.

(Essay)
4.8/5
(38)

What is the logarithm of n to the base 2?

(Essay)
4.9/5
(47)

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)
5.0/5
(37)

The ____ case of an algorithm requires the least work.

(Multiple Choice)
4.9/5
(31)

If an algorithm is more time efficient and less space efficient, what is this called?

(Essay)
4.8/5
(28)

____________________ problems are solvable, but the solution algorithms all require so much work as to be virtually useless.

(Short Answer)
4.8/5
(38)

Θ(lg n ), Θ( n ), and Θ( n 2)are ____ in the amount of work they do as n increases.

(Multiple Choice)
4.9/5
(43)

A surprising number of problems fall into the "____" category.

(Multiple Choice)
4.8/5
(36)

Binary search is able to search any kind of list, regardless of whether or not it is sorted.

(True/False)
4.8/5
(37)

The shuffle-left algorithm is not space efficient. _________________________

(True/False)
4.9/5
(41)

____ involves the fixing of errors that are uncovered through repeated usage with different input values.

(Multiple Choice)
4.9/5
(38)

Discuss at length both the best and worst case of the pattern-matching algorithm.

(Essay)
4.8/5
(45)

An ____ algorithm is called an exponential algorithm.

(Multiple Choice)
5.0/5
(32)

Given the data cleanup problem described in the text, write the pseudocode for the converging-pointers algorithm for data cleanup.

(Essay)
4.8/5
(33)

Binary search does ____ comparisons in the worst case.

(Multiple Choice)
5.0/5
(43)

What is the definition of order of magnitude n?

(Essay)
4.8/5
(42)
Showing 1 - 20 of 50
close modal

Filters

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