Thm. Vertex Cover ≤ P Set Cover
Proof. Let G = (V , E ) and k be an instance of
Vertex Cover.
Create an instance of Set Cover:
• U = E
• Create a S u for for each u ∈ V , where S u contains the
edges
adjacent to u.
U can be covered by ≤ k sets iff G has a vertex cover of size ≤
k.
Why?
If k sets S u 1 , . . . , S u k cover U then every edge is
adjacent to
at least one of the vertices u 1 , . . . , u k , yielding a vertex
cover of
size k.
If u 1 , . . . , u k is a vertex cover, then sets S u 1 , . . . , S
u k cover U.
We still have to show that Set Cover is in NP!
The certificate is a list of k sets from the given
collection.
We can check in polytime whether they cover all of U.
Since we have a certificate that can be checked in polynomial
time,
Set Cover is in NP.
3. (20 pts) Let ụ be a finite set, and let S = {Si, S , S,n} be a collection of subsets of U. Given an integer k, w...
. Let C be a collection of open subsets of R. Thus, C is a set whose elements are open subsets of R. Note that C need not be finite, or even countable. (a) Prove that the union U S is also an open subset of R. SEC (b) Assuming C is finite, prove that the intersection n S is an open subset of R. SEC (c) Give an example where C is infinite and n S is not open....
Let X be a finite set and F a family of subsets of X such that every element of X appears in at least one subset in F. We say that a subset C of F is a set cover for X if X =U SEC S (that is, the union of the sets in C is X). The cardinality of a set cover C is the number of elements in C. (Note that an element of C is a...
Let S be a finite set with cardinality n>0. a. Prove, by constructing a bijection, that the number of subsets of S of size k is equal to the number of subsets of size n- k. Be sure to prove that vour mapping is both injective and surjective. b. Prove, by constructing a bijection, that the number of odd-cardinality subsets of S is equal to the number of even-cardinality subsets of S. Be sure to prove that your mapping is...
4. Let n be a positive integer with n > 20, and let S (1,2.. n21 with IS- (a) Show that S possesses two different 3-element subsets, the sums of whose elements are equal b) Show that S possesses two disjoint subsets, the sums of whose elements are equal. 4. Let n be a positive integer with n > 20, and let S (1,2.. n21 with IS- (a) Show that S possesses two different 3-element subsets, the sums of whose...
4. Ranking/Unranking Subsets. Let A be a set of n elements and set Sk(A) be the collection of all k-element subsets of A. Recall that |Sk(A)I - (a.) (8 points) Describe a ranking algorithm to rank a k-element subset of an n-element set. (b.) (8 points) Describe an unranking algorithm to unrank an integer 0 < s< [into a ithm to unrank an integer 0 S s <C) k-element subset of an n-element set. (c.) (10 points) As examples, let...
,n2} with ISI = n. 4. Let n be a positive integer with n > 20, and let S {1, 2, -I with a) Show that S possesses two dilferent 3-element subsets, the sums of whose elements are equal. (b) Show that S possesses two disjoint subsets, the sums of whose elements are equal ,n2} with ISI = n. 4. Let n be a positive integer with n > 20, and let S {1, 2, -I with a) Show that...
Problem 5. Let W and U be finite-dimensional vector spaces, and let T : W > W and S : W -> U be linear transformations. Prove that if rank(S o T) L W W such that S o T = So L. = rank(S), then there exists an isomorphism (,.. . , Vk) is a basis of ker(T), and let (w1, ., wr) is a basis of im(T) nker(S) if 1 ik Hint: Let B (vi,... , Vk,...,vj,) be...
Please help me solve 3,4,5 3- For all n € N, let an = 1. Let S = {an in€ N}. 3-1) Use the fact that lim - = 0 and the result of Exercise 1 to show that 0 ES'. Ron 3-2) Use the result of Exercise 2 to show that S = {0}. 4- Prove that 4-1) N' = 0. 4-2) Q =R. 5- Recall that a set KCR is said to be compact if every open cover...
Question 1 1. [5 pts] Give a complete definition of lim f(x) = -oo if... 2. [25 pts] Give an example of each of the following, or state one or more theorems which show that such an example is impossible: a. A countable collection of nonempty closed proper subsets of R whose union is open. b. A nonempty bounded subset of R with no cluster points. c. A convergent sequence with two convergent subsequences with distinct limits. d. A function...