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:

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
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 Quizizz
12 questions
Photoshop Review

Quiz
•
KG - University
10 questions
Sort and search algorithms

Quiz
•
KG - 5th Grade
10 questions
Al_lectur_4

Quiz
•
1st - 3rd Grade
15 questions
Introduction to MS Word

Quiz
•
1st - 10th Grade
10 questions
UNIT 4-SORTING IN PYTHON Quiz

Quiz
•
1st Grade
14 questions
MTA_lecture_7(Sort)

Quiz
•
1st - 3rd Grade
10 questions
BÀI 8. SẮP XẾP VÀ LỌC DỮ LIỆU

Quiz
•
1st - 12th Grade
10 questions
Массивтер 22

Quiz
•
1st - 5th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
10 questions
American Flag

Quiz
•
1st - 2nd Grade
10 questions
Identifying equations

Quiz
•
KG - University
25 questions
2.4A Add Subtract within 20 quickly: set 3

Quiz
•
1st - 3rd Grade
15 questions
Music 2016

Quiz
•
KG - 12th Grade
12 questions
Summer Trivia

Quiz
•
1st - 5th Grade
44 questions
logos

Quiz
•
KG - University
20 questions
Guess that Disney

Quiz
•
KG - 5th Grade
20 questions
Cartoon Characters!

Quiz
•
KG - 5th Grade