Exam 3: The Efficiency of Algorithms

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

The worst case in binary search occurs ____.

(Multiple Choice)
4.9/5
(46)

With sequential search, the bigger the list of items, the more work that must be done to search it._________________________

(True/False)
4.8/5
(30)

First and foremost, we expect elegance from our algorithms._________________________

(True/False)
4.8/5
(33)

Sequential search is a(n) ____ algorithm in the worst case.

(Multiple Choice)
4.8/5
(37)

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

(True/False)
4.9/5
(41)

The converging-pointers algorithm is Θ(n) in the ____________________ case.

(Short Answer)
4.9/5
(34)

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

(Multiple Choice)
4.9/5
(40)

In the sequential search algorithm, the worst case occurs when the value being searched for is the first value in the list._________________________

(True/False)
4.8/5
(40)

The time an algorithm takes on a particular machine is the best way for comparing two algorithms that do the same task.

(True/False)
4.7/5
(33)

No one has yet found a solution algorithm that works in polynomial time, but neither has anyone proved that such an algorithm does not exist.

(True/False)
4.7/5
(36)

In the sequential search algorithm, the worst case occurs when the value being searched for is the ____ value in the list.

(Multiple Choice)
4.8/5
(36)

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

(Short Answer)
4.8/5
(31)

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

(Short Answer)
4.9/5
(37)

If an Θ(n2) algorithm and an Θ(n) algorithm exist for the same task, then for large enough n, the Θ(n2) algorithm does more work and takes longer to execute, regardless of the constant factors for peripheral work.

(True/False)
4.9/5
(39)

What is the definition of order of magnitude n?

(Short Answer)
4.8/5
(38)

Explain the sentence: The selection sort algorithm not only does comparisons; it also does exchanges.

(Essay)
4.9/5
(37)

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

(Essay)
4.9/5
(28)

The properties that make better algorithms are very similar to the properties we look for when purchasing a car.

(True/False)
4.8/5
(35)

Discuss at length the measurement of the time and space consumed by an algorithm in order to determine its efficiency.

(Essay)
4.9/5
(41)

The ____ case of an algorithm requires the least work.

(Multiple Choice)
4.8/5
(41)
Showing 21 - 40 of 50
close modal

Filters

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