Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Table' topicStudent Support Forum > General > "Table"

Next Comment >Help | Reply To Topic
Author Comment/Response
eulerhansschmidt
10/17/11 10:39am

Hi, i made some tables with the Table function. now i want to produce all possibles tables out of these with the following properties: the new table got at least one element in common (at the same location) with each of the given ones and at each location the integer value cant exceed a given number max(position).
so if i got:
max(1)=2
max(2)=4
and the tables (0,3) and (2,0) it should produce:
(0,0) (cause this one has the 0 in pos 1 in common with the 1st set and the 0 in pos 2 in common with the 2nd set)
(2,3) (cause this one has the 2 in pos 1 in common with the 2nd set and the 3 in pos 2 in common with the 1st set)

if i got the tables (0,2) and (0,1) it should produce:
(0,1)
(0,2)
(0,3)
(0,4) (cause these tables got the 0 in position 1 in common with both sets)

the only way i see how to solve this, is to bruteforce all possibles set and check if it has the propertie. another was i cee is to pic, out diffrent numbers at diffrent pos of each set, but this wont give me all sets with this propertie. i hope this is somehow understandable, but i kind of doubt it.



URL: ,

Subject (listing for 'Table')
Author Date Posted
Table eulerhanssch... 10/17/11 10:39am
Re: Table Quinn McKinsey 11/26/11 8:35pm
Next Comment >Help | Reply To Topic