Exam 3: The Efficiency of Algorithms

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

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

Free
(Multiple Choice)
4.9/5
(39)
Correct Answer:
Verified

A

Problems for which no known polynomial solution algorithm exists are sometimes approached via ____ algorithms.

Free
(Multiple Choice)
4.9/5
(30)
Correct Answer:
Verified

D

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

Free
(Multiple Choice)
4.9/5
(36)
Correct Answer:
Verified

B

An ____ algorithm is called an exponential algorithm.

(Multiple Choice)
4.9/5
(38)

What is the logarithm of n to the base 2?

(Short Answer)
4.9/5
(37)

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

(True/False)
4.9/5
(30)

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

(Essay)
4.7/5
(46)

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

A(n) ____________________ is a path through a graph that begins and ends at the same node and goes through all other nodes exactly once.

(Short Answer)
4.8/5
(35)

Binary search uses significantly more space than sequential search.

(True/False)
4.7/5
(36)

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

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.9/5
(34)

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

(True/False)
4.8/5
(44)

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

(True/False)
4.8/5
(35)

The shuffle-left algorithm is not space-efficient._________________________

(True/False)
4.9/5
(31)

Discuss at length the "people aspect" of the practical considerations for the development of algorithms.Include the concepts of program maintenance and ease of understanding in your response.

(Essay)
4.8/5
(42)

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

(Multiple Choice)
4.9/5
(34)

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

(Multiple Choice)
4.7/5
(24)

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

(Multiple Choice)
4.8/5
(40)

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.8/5
(38)
Showing 1 - 20 of 50
close modal

Filters

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