What is the primary purpose of the Merge Sort algorithm?

CC104 - Final Exam

Quiz
•
Other
•
University
•
Medium
Jerome Escultura
Used 2+ times
FREE Resource
43 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
To find the minimum element in an array
To divide an array into smaller sub-arrays and then merge them
To sort an array using comparisons
To create a binary search tree
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the best-case time complexity of Merge Sort?
O(n)
O(n log n)
O(n^2)
O(log n)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is true about Quick Sort?
It always performs better than Merge Sort
It is a divide-and-conquer algorithm
It requires more memory than Merge Sort
It cannot be implemented recursively
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The time complexity of Quick Sort in the worst case is:
O(n log n)
O(n)
O(n^2)
O(log n)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the basic idea behind the Binary Search algorithm?
Check all elements one by one
Divide the array into two halves and check the middle element
Sort the array and then search for an element
Search in the entire array sequentially
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the time complexity of Binary Search?
O(n)
O(n log n)
O(log n)
O(n^2)
7.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What is the space complexity of Merge Sort?
O(1)
O(log n)
O(n)
O(n^2)
Create a free account and access millions of resources
Similar Resources on Quizizz
40 questions
RIA Mock ver 3

Quiz
•
University - Professi...
44 questions
Cấu trúc dữ liệu và giải thuật

Quiz
•
University
40 questions
Kuis Robotika

Quiz
•
University
45 questions
Developmental language disorders in infancy and early childhood

Quiz
•
University
42 questions
LearnTube Data Structure and Algorithm Quiz 11/2/23

Quiz
•
University
48 questions
Data Structures

Quiz
•
University
48 questions
Trắc nghiệm DSA - Phần 1

Quiz
•
University
40 questions
Excel Shortcuts and Functions Quiz

Quiz
•
University
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