Exam 11: Searching Sorting and Complexity Analysis

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

Of the techniques that can be used to determine the efficiency of an algorithm, which is based on a calculated average of average run time?

(Multiple Choice)
4.8/5
(34)

What statement accurately describes the strategy utilized by the selection sort algorithm?

(Multiple Choice)
4.8/5
(42)

When analyzing an algorithm, one must be careful to determine that any instructions do not hide a loop that depends on a variable problem size.

(True/False)
4.9/5
(36)

Of the numerous sorting algorithms, what algorithm employs a recursive, divide-and-conquer strategy that breaks a list in two at the middle point and recursively sorts the lists?

(Multiple Choice)
4.8/5
(34)

Selection sort starts at the beginning of the list and compares pairs of data items as it moves down to the end.

(True/False)
4.9/5
(22)

Binary search is less efficient than linear search.

(True/False)
4.8/5
(39)

O(n log n) running times are better than O(n^2) running times.

(True/False)
5.0/5
(35)

The insertion, bubble, and selection sort algorithms are all examples of algorithms that have what big-O notation run times?

(Multiple Choice)
4.8/5
(35)

What function can you use to record the start and end times of a block of code, and then use the difference between the resulting values to determine the elapsed time in seconds?

(Multiple Choice)
4.8/5
(43)

Python's is operator is implemented as a method named __contains__ in the list class.

(True/False)
4.7/5
(41)

What statement regarding the development of fast algorithms is accurate?

(Multiple Choice)
4.9/5
(41)
Showing 41 - 51 of 51
close modal

Filters

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