Exam 3: The Efficiency of Algorithms

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

____ is the algorithmic equivalence of miles per gallon or use of space in cars.

(Multiple Choice)
4.8/5
(36)

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
(38)

____ are useful for rating one machine against another and for rating how sensitive a particular algorithm is with respect to variations in input on one particular machine.

(Multiple Choice)
4.8/5
(33)

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.8/5
(38)

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

(True/False)
5.0/5
(27)

The number of comparisons done by the selection sort algorithm does not grow at the same rate as the problem size n , instead it grows at approximately the ____________________ of that rate.

(Short Answer)
4.8/5
(36)

How do you approach problems for which no known polynomial solution algorithm exists?

(Essay)
4.9/5
(36)

Placing a list of items into alphabetical or numerical order is called ____.

(Multiple Choice)
4.8/5
(32)

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

(Essay)
4.9/5
(32)

A Hamiltonian circuit is a path through a graph that begins and ends at the same node and goes through all other nodes exactly ________.

(Short Answer)
4.8/5
(40)

Sequential search is an order- n algorithm in the average case.

(True/False)
4.9/5
(36)

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

(Multiple Choice)
4.9/5
(37)

Sequential search is an ____ algorithm in the worst case.

(Multiple Choice)
4.9/5
(40)

The study of the _______ of algorithms is called the analysis of algorithms.

(Multiple Choice)
5.0/5
(43)

The selection sort algorithm performs the task of sorting a list by growing a sorted subsection of the list from the _____ to the _____.

(Multiple Choice)
4.7/5
(36)

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

(Multiple Choice)
4.8/5
(36)

Binary search uses significantly more space than sequential search.

(True/False)
4.8/5
(37)

If we were to run the sequential search algorithm many times, with random input values occurring at various places in the list, we would find the average number of comparisons done to be approximately n /2.

(True/False)
4.8/5
(45)

First and foremost, we expect ease of understanding from our algorithms. _________________________

(True/False)
4.8/5
(31)

With sequential search, the smaller the list of items, the less work must be done to search it. _________________________

(True/False)
4.9/5
(36)
Showing 21 - 40 of 50
close modal

Filters

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