Search Header Logo

Divide and conquer

Authored by Avani Khokhariya

Computers

1st Grade

Used 2+ times

Divide and conquer
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

   An unordered list contains n distinct elements. The number of comparisons to find an element in this list that is neither maximum nor minimum is:

theta(n log n)

theta(n)

theta(log n)

theta(1)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a Divide and Conquer algorithm?

Bubble Sort

Selection Sort

Heap Sort

Merge Sort

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Randomized quicksort is an extension of quicksort where the pivot is chosen randomly. What is the worst case complexity of sorting n numbers using randomized quicksort?

O(n)

(nlogn)

O(n^2)

O(n!)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following sorting algorithms has the lowest worst-case complexity

Merge Sort

Bubble sort

Quick sort

Selection sort

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following sorting algorithms has the lowest worst-case complexity

Merge Sort

Bubble sort

Quick sort

Selection sort

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In quick sort sort, for sorting n elements, the (n/4)th smallest element is selected as pivot using an O(n) time algorithm. What is the worst case time complexity of the quick sort

theta(n)

theta(nlogn)

theta(n^2)

theta(n^2 logn)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following methods is the most effective for picking the pivot element?

first element

last element

median-of-three partitioning

random element

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?