Exam 19: Searching, Sorting and Big O

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

Which of the following sorting algorithms is the fastest?

Free
(Multiple Choice)
4.8/5
(43)
Correct Answer:
Verified

C

Which of the following is a negative of binary search?

Free
(Multiple Choice)
4.8/5
(28)
Correct Answer:
Verified

C

Using a binary search, what is the maximum number of comparisons required to find a search key in a 31-element sorted array?

Free
(Multiple Choice)
5.0/5
(32)
Correct Answer:
Verified

B

What is the efficiency of linear search?

(Multiple Choice)
4.9/5
(43)

Big O highlights ________ factors and ignores terms that become unimportant with ________ n values.

(Multiple Choice)
4.8/5
(40)

How many comparisons will the linear search algorithm make if the search key is not in an array of 10 elements?

(Multiple Choice)
4.7/5
(39)

Different sorting algorithms on a particular array produce the same result; the choice of algorithm affects ________ of the program that implements the algorithm.

(Multiple Choice)
4.9/5
(45)

What is the efficiency of merge sort?

(Multiple Choice)
4.8/5
(34)

What is the term used for binary search's run time?

(Multiple Choice)
4.7/5
(29)

Big O notation is concerned with the growth rate of algorithm run times, so ________.

(Multiple Choice)
4.8/5
(32)

Big O notation describes ________.

(Multiple Choice)
4.9/5
(41)

Which of the following statements is true?

(Multiple Choice)
5.0/5
(44)

What does the first pass of selection sort do?

(Multiple Choice)
4.7/5
(45)

What is the base case for the recursive merge sort algorithm?

(Multiple Choice)
4.8/5
(36)

What is the efficiency of selection sort?

(Multiple Choice)
4.9/5
(33)

What does each iteration of the insertion sort algorithm do?

(Multiple Choice)
4.8/5
(35)

Which of the following is not a name for a big O run time?

(Multiple Choice)
4.8/5
(36)

The linear search algorithm runs in ________time.

(Multiple Choice)
4.8/5
(32)

A searching algorithm that's O(1)________.

(Multiple Choice)
4.8/5
(35)

Which of the following is a way to sort data?

(Multiple Choice)
5.0/5
(30)
Showing 1 - 20 of 21
close modal

Filters

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