The difference between Quicksort and Randomized Quicksort lies mainly in the way the pivot element is chosen. Let’s analyze each option:
Selection of Pivot element ✅
Quicksort: Pivot is chosen deterministically (e.g., always first element, last element, or middle element).
Randomized Quicksort: Pivot is chosen randomly (uniformly among available elements).
→ This is the key difference.
Worst case time complexity ❌
For both, the worst case is still O(n²).
Randomization only reduces the chance of hitting the worst case often, but it does not eliminate it.
Best case time Complexity ❌
Both have the same best case: O(n log n) (when pivot splits the array evenly).
Randomization doesn’t change the best case.
Final Output ❌
Both produce the same sorted output.
Randomization only affects the process, not the final result.
Let’s analyze the options:
Process termination ✅
This is indeed a way to recover from a deadlock after it has already occurred (kill one or more processes to break the cycle).
Non-preemption of resources ❌
This is a deadlock prevention method, not recovery.
Banker’s algorithm ❌
This is a deadlock avoidance technique, not recovery.
Circular wait ❌
This is one of the necessary conditions for deadlock, not a recovery method.
| A | B | X |
| 0 | 0 | 1 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 0 |
Using LRU with 3 frames on the string
7, 0, 1, 2, 0, 3, 0, 4, 2, 3, 0, 3, 2
gives page faults at: 7, 0, 1, 2, 3, 4, 2, 3, 0 → 9 faults.
We know the relationship between minimum Hamming distance \(d_{\min}\) and error correction capability \(p\):
\[ d_{\min} \;\geq\; 2p + 1 \]
This ensures the code can correct up to \(p\) errors.
✅ Correct answer:
\[ \boxed{2p+1} \]
Number of pages = Logical address space / Page size = 32 / 4 = 8
So, there are 8 pages.
Number of frames = Physical memory size / Page size = 64 / 4 = 16
So, there are 16 frames.
Answer: (8, 16) → Option 3
$a'b' + ab + a'b$
$= a'(b' + b) + ab$
$= a' + ab$
$= a' + b$
$\boxed{a' + b \;\; }$
Online Test Series, Information About Examination,
Syllabus, Notification
and More.
Online Test Series, Information About Examination,
Syllabus, Notification
and More.