Randomized Algorithms Flashcards
What are randomized algorithms?
Randomized algorithms are algorithms that make random decisions during their process to solve computational problems.
What is the primary benefit of randomized algorithms?
Randomized algorithms may handle worst-case scenarios effectively and can simplify complex deterministic solutions.
How do randomized algorithms differ from average-case analysis?
Randomized algorithms make random internal decisions
What is the contention resolution problem?
A problem where multiple processes compete for a single shared resource and need to resolve conflicts to access it.
What is the randomized algorithm for contention resolution?
Each process independently decides to attempt accessing the resource with a probability p in each round.
What is the probability of success for a process in contention resolution?
The probability is ( p(1-p)^{n-1} ) for n processes.
How is p optimized in contention resolution algorithms?
Set ( p = 1/n ) to maximize the success probability.
What is the expected time for a process to succeed in contention resolution?
( O(n \log n) ) rounds for all processes to succeed with high probability.
What is the contraction algorithm for finding minimum cuts?
A randomized algorithm that repeatedly contracts edges in a graph until only two nodes remain.
What is the probability that the contraction algorithm finds the minimum cut?
At least ( \frac{1}{n^2} ) for a graph with n nodes.
What is linearity of expectation?
The property that ( E[X+Y] = E[X] + E[Y] ) for any random variables X and Y
How is linearity of expectation used in randomized algorithms?
It allows breaking complex random variables into simpler ones and summing their expectations.
What is the coupon collector’s problem?
A problem asking how many trials are needed to collect all n types of coupons.
What is the expected number of trials in the coupon collector’s problem?
( nH(n) )
What is the probabilistic method?
A technique showing the existence of a structure by proving a random construction produces it with positive probability.