Exam 20: Searching and Sorting

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

The first step performed by the binary search algorithm at each iteration is to:

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

B

Selection sort has a Big O of:

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

B

An algorithm that requires __________ operations to complete its task on n data elements is said to have linear runtime.

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

C

The choice of which sorting algorithm to use does not affect:

(Multiple Choice)
4.8/5
(29)

The merge sort algorithm:

(Multiple Choice)
4.8/5
(29)

A merge sort operation runs in:

(Multiple Choice)
4.7/5
(27)

At most, how many comparisons are required to search a sorted vector of 1023 elements using the binary search algorithm?

(Multiple Choice)
4.8/5
(38)

Which of the following represents the efficiency of the insertion sort?

(Multiple Choice)
4.8/5
(41)

Which of the following statements about searching algorithms and their efficiency is false?

(Multiple Choice)
4.9/5
(37)

Which of the following is not a valid runtime description according to Big O notation?

(Multiple Choice)
4.9/5
(32)
close modal

Filters

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