Exam 19: Searching, Sorting and Big O

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

What is the efficiency of linear search?

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

C

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

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

B

Big O notation describes ________.

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

C

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

(Multiple Choice)
4.8/5
(36)

Which of the following sorting algorithms is the fastest?

(Multiple Choice)
4.8/5
(33)

Which of the following statements is true?

(Multiple Choice)
4.9/5
(27)

What is the efficiency of selection sort?

(Multiple Choice)
4.8/5
(32)

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

(Multiple Choice)
4.9/5
(40)

What does the first pass of selection sort do?

(Multiple Choice)
4.9/5
(30)

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

(Multiple Choice)
4.7/5
(36)

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

(Multiple Choice)
4.9/5
(38)

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

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

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

(Multiple Choice)
4.9/5
(29)

The linear search algorithm runs in ________time.

(Multiple Choice)
4.9/5
(37)

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

(Multiple Choice)
4.7/5
(33)

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

(Multiple Choice)
4.8/5
(38)

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

(Multiple Choice)
4.8/5
(46)

Which of the following is a way to sort data?

(Multiple Choice)
4.8/5
(28)

What is the efficiency of merge sort?

(Multiple Choice)
4.8/5
(41)
Showing 1 - 20 of 22
close modal

Filters

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