Question: Let [ n ] = { 1 , 2 , . . . , n } and g : [ n ] 7 { 1

Let [n]={1,2,...,n} and g : [n]7{1,1} be a function and let <0.1.
We say that g is -good for S [n] if | Pi in S g(i)| n1. Give a randomized
algorithm that finds g such that for a set S, the probability that g is not -good is
at most 1. Note that your algorithm does not know the sets S ahead of time n12
(otherwise it is trivial). Give a randomized algorithm that finds g such that for fixed setsS1,...,St witht=n gis-goodforallsetswithprobability1o(1).Note that your algorithm does not know the sets S, S1,..., St ahead of time.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!