A collection of subsets of {1, . . . , n} has the property that each pair of subsets has at least one element in common. Prove that there are at most 2n−1 subsets in the collection
Here we Prove it by the Pigeonhole Principle as following type
let A'= {1, 2, . . . , n} A be its complement,for each set A.
Form the set of 2n-1 pairs (A, A'). The reason why we have 2n-1 such pairs is that each set has a unique complement and there are 2n subsets of our set {1, 2, . . . , n},
we take 2n/2 = 2n-1
Suppose there were more than 2n-1 subsets in the collection of subsets of {1, 2, . . . , n} with the property of that each pair of subsets has at least one element in common. That would mean, by the pigeon hole principle (the subsets are the pigeons and the pairs of subsets are the pigeonholes), that a subset and
its complement have been chosen.
This contradicts that each pair of subsets has at least one
element
in common.
Hence proved
Please like??
A collection of subsets of {1, . . . , n} has the property that each...
Use induction to prove that every set of n elements has 2n distinct subsets, for all n ? 0. Hint for the inductive case: fix some element of the set and consider whether it belongs to the subset or not. In either case, reduce to the inductive hypothesis.
Prove that all sets with n elements have 2n subsets. Countthe empty set ∅ and the whole set as subsets.
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...
. 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 P(n) be the proposition that a set with n elements has 2" subsets. What would the basis step to prove this proposition PO) is true, because a set with zero elements, the empty set, has exactly 2° = 1 subset, namely, itself. 01 Ploi 2. This is not possible to prove this proposition. 3. po 3p(1) is true, we need to show first what happens a set with 1 element. Because, we can't do P(O), that is not allowed....
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, we want to know if there is a sub-collection of k sets S' C S whose union covers all the elements of U. That is, S k, and Us es SU. Prove that this problem is NP-complete. 992 m SES, si
3. (20 pts) Let ụ be a finite set, and let...
Algorithms
8. The problem 'SET COVER gives two numbers n, k, and a family of n subsets of (,.. n It asks whether it is possible to select k of these subsets such that each number in (1,... ,n) occurs in at least one of the selected subsets. (8.1) Show that the problem 'SET COVER' is in the class NP (8.2) The simplest algorithm to solve set cover just tests all the possible choices of k subsets. How long will...
C-Exercise. Write up Example i n SExercise. How many subsets of (1,2,... 10), each containing at least three and at most five elements, must be selected in order to grarantee that the selection contains subsets 4, B and C such that σ(A) = σ(B) σ(C)?
(a) Suppose that A1,..., All is a collection of k > 2 sets. Show that U412 4:1 - L140.4jl. i=1 {ij} where the second term on the right sums over all subsets of [k] of size 2. [Hint: Use induction on k] (b) Deduce that in every collection of 5 subsets of size 6 drawn from {1,2,..., 15}, at least two of the subsets must intersect in at least two points. (c) Show that the inequality in (a) is an...
PLEASE HELP Let G is a graph with 2n vertices and n^2 edges. An amicable pair of vertices is an unordered pair (u, v), such that dist(u, v) = 2. Prove that G has at least n(n − 1) amicable pairs of vertices.