Exam 13: Recursion, Complexity, and Searching and Sorting

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

In a quicksort algorithm, the middle of an array is called the ____________________.

(Short Answer)
4.8/5
(42)

sum(n) =1+2+3+...+n, where n>1 is an example of a(n) ____ algorithm.

(Multiple Choice)
4.9/5
(41)

The ____ search algorithm is O(log n).

(Multiple Choice)
4.7/5
(31)

____ is an extra array used during the merge process.

(Multiple Choice)
4.9/5
(32)

Recursion and iteration can never be used in place of each other.

(True/False)
4.8/5
(35)

Recursion is measured by looking at how the run time and memory usage of an algorithm vary as a function of the quantity of data processed.

(True/False)
4.9/5
(36)

Identify the letter of the choice that best matches the phrase or definition. a.Activation record b.Stack c.Quadratic d.Exponential e.copyBuffer -During the merge sort process, smaller items are copied to here.

(Essay)
4.9/5
(39)
Showing 41 - 47 of 47
close modal

Filters

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