0
0
DSA Cprogramming~5 mins

Merge Sort as Divide and Conquer in DSA C - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the main idea behind the 'Divide and Conquer' approach in Merge Sort?
Divide the array into two halves, sort each half recursively, and then merge the two sorted halves into one sorted array.
Click to reveal answer
beginner
In Merge Sort, what happens during the 'merge' step?
Two sorted subarrays are combined into a single sorted array by comparing elements one by one and placing the smaller element first.
Click to reveal answer
intermediate
Why is Merge Sort considered efficient for large datasets?
Because it consistently divides the problem into smaller parts and merges them in O(n log n) time, which is faster than simple sorting methods like bubble sort for large data.
Click to reveal answer
beginner
What is the base case in the recursive Merge Sort algorithm?
When the array has one or zero elements, it is already sorted, so the recursion stops.
Click to reveal answer
intermediate
How does Merge Sort handle the original array during sorting?
It does not sort in place; it uses extra space to merge sorted subarrays into a new array before copying back.
Click to reveal answer
What is the time complexity of Merge Sort in the average case?
AO(n log n)
BO(n^2)
CO(log n)
DO(n)
During Merge Sort, what is the size of the subarrays when the recursion stops?
AOne or zero elements
BTwo elements
CHalf the original array
DThe entire array
Which step in Merge Sort combines two sorted arrays into one sorted array?
ASplit step
BDivide step
CMerge step
DSort step
What kind of algorithm is Merge Sort?
ABacktracking
BGreedy
CDynamic Programming
DDivide and Conquer
Does Merge Sort sort the array in place without extra space?
AYes, it sorts in place
BNo, it requires extra space for merging
COnly for arrays smaller than 10 elements
DOnly if the array is already sorted
Explain how Merge Sort uses the divide and conquer approach to sort an array.
Think about breaking the problem into smaller parts and then combining results.
You got /4 concepts.
    Describe the merge step in Merge Sort and why it is important.
    Focus on how two sorted parts become one sorted whole.
    You got /4 concepts.