Exam 19: Searching, Sorting and Big O

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

Which of the following is a way to sort data?

Free
(Multiple Choice)
4.7/5
(78)
Correct Answer:
Verified

D

Which of the following is a negative of binary search?

Free
(Multiple Choice)
4.7/5
(80)
Correct Answer:
Verified

C

Which of the following statements is true?

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

C

is the efficiency of linear search?

(Multiple Choice)
4.9/5
(80)

What does each iteration of the insertion sort algorithm do?

(Multiple Choice)
4.9/5
(77)

Which of the following sorting algorithms is the fastest?

(Multiple Choice)
4.9/5
(72)

What is the efficiency of merge sort?

(Multiple Choice)
4.8/5
(88)

What does the first pass of selection sort do?

(Multiple Choice)
4.9/5
(77)

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

(Multiple Choice)
4.7/5
(74)

The linear search algorithm runs in ________time.

(Multiple Choice)
4.8/5
(80)

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

(Multiple Choice)
4.8/5
(79)

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

(Multiple Choice)
4.8/5
(74)

An O(n) algorithm is referred to as having a _______ run time.

(Multiple Choice)
4.9/5
(86)

How much faster is insertion sort with a 15-element array than with a 60-element array?

(Multiple Choice)
4.8/5
(68)

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

(Multiple Choice)
4.7/5
(77)

What is the efficiency of selection sort?

(Multiple Choice)
5.0/5
(74)

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

(Multiple Choice)
4.8/5
(83)

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

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.7/5
(78)

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

(Multiple Choice)
4.9/5
(89)
Showing 1 - 20 of 22
close modal

Filters

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