
Divide and conquer

Quiz
•
Computers
•
1st Grade
•
Medium
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
Similar Resources on Wayground
6 questions
Создание массивов в Пайтон

Quiz
•
KG - Professional Dev...
5 questions
IKS Year 1 ICT QUIZ (SORTING)

Quiz
•
1st Grade
10 questions
Екіөлшемді массив

Quiz
•
1st Grade
9 questions
informatyka

Quiz
•
1st Grade
10 questions
CANVA QUIZ

Quiz
•
1st - 3rd Grade
10 questions
Berpikir Komputasional - Latihan 10 Soal

Quiz
•
1st Grade
10 questions
Senior Kids Exam 2024

Quiz
•
1st - 5th Grade
7 questions
Câu hỏi về Thuật toán Sắp xếp và Tìm kiếm

Quiz
•
1st Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
18 questions
D189 1st Grade OG 1c Concept 37-38

Quiz
•
1st Grade
20 questions
addition

Quiz
•
1st - 3rd Grade
20 questions
Subject and predicate in sentences

Quiz
•
1st - 3rd Grade
20 questions
Addition and Subtraction facts

Quiz
•
1st - 3rd Grade
20 questions
Place Value

Quiz
•
KG - 3rd Grade
10 questions
Exploring Properties of Matter

Interactive video
•
1st - 5th Grade
5 questions
Life at a pond

Quiz
•
1st Grade
14 questions
Plural Nouns Adding s and es

Quiz
•
1st - 2nd Grade