Back to the 2024 paper

Module 5: Advanced Topics

20242m

Randomized algorithms make use of:
(i) Deterministic input
(ii) Random choices during execution
(iii) Recursive backtracking
(iv) Fixed input-output pairs

Worked SolutionAI Assisted

Answer: (ii) Random choices during execution

Explanation:

  • Randomized algorithms use a random number generator to make decisions; behavior is probabilistic.
  • Types: Las Vegas (always correct, random running time, e.g., Randomized QuickSort) vs Monte Carlo (may be incorrect with bounded probability, e.g., Miller-Rabin primality).
  • Random choices help avoid worst-case inputs (Randomized QuickSort expected O(nlog⁡n)O(n \log n)) or achieve simplicity/probabilistic guarantees.

Correct choice: (ii)

Similar questions

Official AppAndroid App

PYQDeck for Android

Solve BEU previous-year exam papers anywhere, anytime. Fast search, offline paper viewing, and step-by-step solutions designed specifically for your phone.