Re: Add terms surrounded by zero together in matrix
- To: mathgroup at smc.vnet.net
- Subject: [mg59130] Re: Add terms surrounded by zero together in matrix
- From: Oliver Friedrich <oliver.friedrich at tzm.de>
- Date: Sat, 30 Jul 2005 01:25:03 -0400 (EDT)
- References: <dcccur$3j7$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
"mchangun at gmail.com" <mchangun at gmail.com> wrote in news:dcccur$3j7$1 @smc.vnet.net: > Hi All, > > I think this is a rather tough problem to solve. I'm stumped and would > really appreciated it if someone can come up with a solution. > > What i want to do is this. Suppose i have the following matrix: > > 0 0 0 1 0 > 0 0 1 2 0 > 0 0 0 2 1 > 1 3 0 0 0 > 0 0 0 0 0 Hallo, assume 000000 000100 001000 000000 Are these two 1s considered to be a set with sum 2 or two sets each with sum 1?. In other words: Must exist a vertical or horizontal path that connects two elements or can there be a diagonal path? Oli