Author |
Topic: Matching sets (Read 644 times) |
|
Aryabhatta
Uberpuzzler
Gender:
Posts: 1321
|
|
Re: Matching sets
« Reply #1 on: Jan 14th, 2007, 11:33am » |
Quote Modify
|
No one has tried this?
|
|
IP Logged |
|
|
|
Grimbal
wu::riddles Moderator Uberpuzzler
Gender:
Posts: 7527
|
|
Re: Matching sets
« Reply #3 on: Jan 15th, 2007, 3:49am » |
Quote Modify
|
I assume A and B can not be empty?
|
|
IP Logged |
|
|
|
SMQ
wu::riddles Moderator Uberpuzzler
Gender:
Posts: 2084
|
|
Re: Matching sets
« Reply #5 on: Jan 15th, 2007, 7:34am » |
Quote Modify
|
Well, let's start with the obvious: 1. If the intersection of S and T is non-empty then A = B = S intersect T is a solution. 2. Correlary to 1: If either S or T = {1, 2, ..., n } then the intersection of S and T is non-empty 3. Correlary to 1: If S and T are disjoint then only one of S or T can contain the value n. 4. If S and T are disjoint and neither contains the value n, then there exist subsets of both S and T containing n-1 elements of values 1 through n-1. 5. Likewise if S and T are disjoint and whichever contains the value n contains only one element of value n, then there exist subsets of both S and T containing n-1 elements of values 1 through n-1. So the only cases requiring nore in-depth analysis are those where S and T are disjoint and either S or T contains multiple elements of value n. --SMQ
|
|
IP Logged |
--SMQ
|
|
|
|