I an now learning the Las Vegas and Monte Carlo algorithms myself,and have two questions may be simple but I can not answer them,if someone can help me...Thanks in advance
Consider a Monte Carlo algorithms A for a problem P whose expected runnig time is at most T(n) on any instance of size n that produces a corect solution with probability y(n). Suppose further that given a solution to P,we can verify its correctness in time t(n). show how to obtain a Las Vegas algorithm that always gives a correct answer to P and runs in expected time at most (T(n)+t(n))/y(n).
Let 0<ε2<ε1<1. Consider a Monte Carlo algorithm that gives the correct solution to a problem with probability at least 1-ε1,regardless of the input. How many independent executions of this algorithm suffice to raise the probability of obtaining a correct solution at least 1-ε2,regardless of the input?