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:
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,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.