
Divide and conquer
Authored by Avani Khokhariya
Computers
1st Grade
Used 2+ times

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:
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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Word
Quiz
•
KG - 5th Grade
10 questions
Computational Thinking
Quiz
•
1st - 3rd Grade
11 questions
RPA QUIZ
Quiz
•
1st Grade
10 questions
UH TEKPER KD 7
Quiz
•
1st Grade
14 questions
Technology
Quiz
•
1st Grade
15 questions
HTML + CSS + Bootstrap
Quiz
•
1st - 3rd Grade
10 questions
Khoi 3
Quiz
•
1st Grade - University
15 questions
Repaso General MATLAB
Quiz
•
1st - 3rd Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Computers
20 questions
Telling Time to the Hour and Half hour
Quiz
•
1st Grade
10 questions
Exploring Rosa Parks and Black History Month
Interactive video
•
1st - 5th Grade
20 questions
Place Value
Quiz
•
KG - 3rd Grade
13 questions
Fractions
Quiz
•
1st - 2nd Grade
20 questions
CVC Words
Quiz
•
KG - 1st Grade
15 questions
Place Value tens and ones
Quiz
•
1st Grade
16 questions
Money - Coins
Lesson
•
1st - 2nd Grade
20 questions
Halves and Fourths
Quiz
•
1st Grade