Exam 3: The Efficiency of Algorithms

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

Q (n) and Q (n2) are ____ in the amount of work they do as n increases.

(Multiple Choice)
4.8/5
(37)

The converging-pointers algorithm is ____ in the best case.

(Multiple Choice)
4.9/5
(33)

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

(True/False)
4.7/5
(37)

____ is the algorithmic equivalence of style.

(Multiple Choice)
4.8/5
(37)

Ease of understanding, elegance, efficiency, and correctness are all characteristics of a good algorithm.

(True/False)
4.8/5
(32)

Binary search uses significantly more space than sequential search.

(True/False)
4.9/5
(41)

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

(True/False)
4.8/5
(32)

Given a sorted list, the sequential search algorithm is more efficient than the binary search.

(True/False)
4.8/5
(34)

The ____ case of an algorithm requires the minimum amount of work.

(Multiple Choice)
4.8/5
(39)

Some algorithms must do work that is not polynomially bounded.

(True/False)
4.8/5
(35)

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

(Multiple Choice)
4.9/5
(34)

Why would an exponential algorithm be useless with a large input, n?

(Multiple Choice)
4.9/5
(35)

The process of timing an algorithm using the same machine but searching for different items is called ____.

(Multiple Choice)
4.9/5
(40)

A collection of sets and vectors is called a graph.

(True/False)
4.8/5
(40)

The number of times a number n can be divided by 2 and not go below 1 is called the logarithm of n to the base 3.

(True/False)
4.7/5
(42)

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

(True/False)
4.8/5
(42)

Anything that varies as a constant times n is said to be of order of magnitude n.

(True/False)
4.9/5
(37)

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

(True/False)
4.8/5
(40)

The ____ sort algorithm performs the task of sorting a list by growing a sorted subsection of the list from the back to the front.

(Multiple Choice)
4.8/5
(37)

An algorithm with order of magnitude Q (n2) grows at the ____ of the rate of the problem size n.

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

Filters

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