Randomized Algorithms
This quiz covers fundamental concepts and applications of Randomized Algorithms.
Questions
What is the primary goal of using randomized algorithms?
- To guarantee the optimal solution.
- To reduce the worst-case time complexity.
- To improve the average-case performance.
- To eliminate the need for deterministic algorithms.
Which of the following is an example of a Las Vegas algorithm?
- Primality testing using Miller-Rabin algorithm.
- Quicksort.
- Dijkstra's algorithm.
- Breadth-First Search.
What is the main idea behind the Monte Carlo method?
- Using random sampling to approximate solutions.
- Generating random numbers to solve deterministic problems.
- Using probability distributions to model real-world phenomena.
- Applying randomized techniques to optimize algorithms.
Which of the following is NOT a property of randomized algorithms?
- They always produce the optimal solution.
- They have a constant worst-case time complexity.
- Their average-case performance is often better than deterministic algorithms.
- They can be used to solve problems that are difficult for deterministic algorithms.
What is the name of the technique that uses random sampling to estimate the value of a function?
- Monte Carlo integration.
- Monte Carlo simulation.
- Monte Carlo optimization.
- Monte Carlo decision making.
Which of the following is an example of a randomized data structure?
- Binary search tree.
- Skip list.
- Hash table.
- Red-black tree.
What is the expected running time of the randomized QuickSort algorithm?
- O(n log n).
- O(n^2).
- O(n log^2 n).
- O(n^3).
Which of the following is an application of randomized algorithms in cryptography?
- Generating random keys.
- Encrypting messages.
- Breaking encryption codes.
- Verifying digital signatures.
What is the name of the technique that uses random sampling to select a subset of elements from a large population?
- Reservoir sampling.
- Monte Carlo sampling.
- Stratified sampling.
- Systematic sampling.
Which of the following is an example of a randomized algorithm for finding the minimum spanning tree of a graph?
- Kruskal's algorithm.
- Prim's algorithm.
- Borůvka's algorithm.
- Randomized Prim's algorithm.
What is the name of the technique that uses random sampling to estimate the size of a large population?
- Capture-recapture method.
- Monte Carlo simulation.
- Stratified sampling.
- Systematic sampling.
Which of the following is an example of a randomized algorithm for finding the maximum independent set of a graph?
- Greedy algorithm.
- Dynamic programming.
- Branch-and-bound algorithm.
- Randomized approximation algorithm.
What is the name of the technique that uses random sampling to generate a random permutation of a sequence?
- Fisher-Yates shuffle.
- Knuth shuffle.
- Durstenfeld shuffle.
- Metropolis-Hastings algorithm.
Which of the following is an example of a randomized algorithm for finding the shortest path between two nodes in a graph?
- Dijkstra's algorithm.
- Bellman-Ford algorithm.
- Floyd-Warshall algorithm.
- Randomized routing algorithm.
What is the name of the technique that uses random sampling to estimate the value of a statistical parameter?
- Monte Carlo method.
- Bootstrapping.
- Jackknifing.
- Cross-validation.