Divide and conquer

Divide and conquer

1st Grade

10 Qs

quiz-placeholder

Similar activities

9-сынып. Python массив.

9-сынып. Python массив.

1st - 9th Grade

10 Qs

Struktur Data - Sorting

Struktur Data - Sorting

1st - 10th Grade

15 Qs

Al_lectur_4

Al_lectur_4

1st - 3rd Grade

10 Qs

Desain dan Algoritma E

Desain dan Algoritma E

1st Grade

10 Qs

Computational Thinking

Computational Thinking

1st - 3rd Grade

10 Qs

Introduction to MS Word

Introduction to MS Word

1st - 10th Grade

15 Qs

Sortowanie bąbelkowe, przez wybieranie i quick sort.

Sortowanie bąbelkowe, przez wybieranie i quick sort.

1st - 6th Grade

10 Qs

LATIHAN ASK TINGKATAN 3 - SIRI 1

LATIHAN ASK TINGKATAN 3 - SIRI 1

1st 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?