随机算法运行结果的随机性 Prob(A(x)=y),is the sum of all Probax(C),where Coutputs y. S0, probability that A outputs y for an input Prob(A()=y),is the sum of all ProbA,(C),where C outputs y.Obviously,the aim of the randomized algorithm designer is to achieve high Prob(A()=y)ify is the correct output for the input x
随机算法运行结果的随机性 •Prob(A(x) = y), is the sum of all ProbA,x (C), where C outputs y. So
算法的某个run的运行时间也是随机的 Let Time(C)10 be the time complexity of the run C of A on z.Then the expected time complexity of A on x is Eap-TimeA(x)=E[Time]=>ProbA,(C).Time(C), Time(c)本质上是意思? Different runs of A on an input x may alsohave different lengths,i.e.,they may have different costs.So,the time complexity becomes a random variable
算法的某个run的运行时间也是随机的 Time(C)本质上是意思?