Randomized Algorithms
The 'Randomized Algorithms' test covers key topics in random number generation, Monte Carlo methods, and their applications in computer science. It also includes content on analyzing the efficiency and correctness of algorithms under random influences.
Sample Questions
What is the main advantage of randomized algorithms over deterministic algorithms?
- They can be faster on average or simpler to design
- They are simpler to implement
- They always produce the correct output
- They use less memory
In a randomized algorithm, what does 'expected running time' refer to?
- The minimum time required for any input
- The average time taken over all possible random choices
- The worst-case time complexity
- The time when the algorithm always succeeds
Which of the following is a common example of a randomized algorithm?
- Depth-first search
- Binary search
- Quicksort with random pivot selection
- Bubble sort