Exam 3: The Efficiency of Algorithms

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

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

(Essay)
4.8/5
(41)

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

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

A collection of nodes and connecting edges is called a(n) vector. _________________________

(True/False)
5.0/5
(39)

The ____ case of an algorithm requires the least work.

(Multiple Choice)
5.0/5
(42)

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

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

(Multiple Choice)
4.9/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
(44)

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

(Multiple Choice)
4.8/5
(35)

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

(True/False)
4.8/5
(40)

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

(Multiple Choice)
4.9/5
(36)

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

(Short Answer)
4.8/5
(37)

Binary search does ____ comparisons in the worst case.

(Multiple Choice)
4.8/5
(39)

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

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

(Short Answer)
4.8/5
(40)

An ____ algorithm is called an exponential algorithm.

(Multiple Choice)
4.8/5
(38)

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

(Multiple Choice)
4.9/5
(43)

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

(True/False)
4.9/5
(39)

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

(Multiple Choice)
4.8/5
(34)

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

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

Filters

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