Exam 3: The Efficiency of Algorithms

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

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

(Multiple Choice)
4.8/5
(38)

A computer program is often written to be used only once to solve a single instance of a problem.

(True/False)
4.8/5
(35)

An ____ algorithm is called an exponential algorithm.

(Multiple Choice)
4.9/5
(27)

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

(True/False)
5.0/5
(32)

The Hamiltonian problem is suspected to be intractable.

(True/False)
4.8/5
(34)

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

Elegance is the first and foremost expectation of a proper algorithm.

(True/False)
5.0/5
(36)

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 that the loop is executed approximately n times.

(True/False)
4.8/5
(33)

____ algorithms are an alternative approach for problems which no known polynomial solution algorithm exists.

(Multiple Choice)
4.8/5
(37)

The binary search algorithm is ____ in the worst case.

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

Filters

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