Divide and conquer

Divide and conquer

1st Grade

10 Qs

quiz-placeholder

Similar activities

Berpikir Komputasional - Latihan 10 Soal

Berpikir Komputasional - Latihan 10 Soal

1st Grade

10 Qs

Senior Kids Exam 2024

Senior Kids Exam 2024

1st - 5th Grade

10 Qs

Ms. WORD kelas 5

Ms. WORD kelas 5

1st Grade

10 Qs

ASD - Fondamenti e ordinamenti

ASD - Fondamenti e ordinamenti

1st - 10th Grade

15 Qs

BÀI TẬP BÀI TH8

BÀI TẬP BÀI TH8

1st Grade - University

10 Qs

JavaScript Quiz | For Beginners

JavaScript Quiz | For Beginners

1st Grade - University

10 Qs

Computing XDDD

Computing XDDD

KG - University

10 Qs

Datastructure quiz 1 2024-28

Datastructure quiz 1 2024-28

1st - 5th Grade

10 Qs

Divide and conquer

Divide and conquer

Assessment

Quiz

Computers

1st Grade

Medium

Created by

Avani Khokhariya

Used 2+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?