Help with getting a minimized SQUARE matrix with list of positions

• 10-27-2011
Alander
Help with getting a minimized SQUARE matrix with list of positions
Hi,

I got a square matrix (0 1 2 3)
[0, 20, 47, 35]
[20, 0, 30, 34]
[47, 30, 0, 12]
[35, 34, 12, 0]

i got a list of positions (0 1 3)

How am i suppose to minimize this matrix to
[0, 47, 35]
[20, 0, 34]
[35, 34, 0]
• 10-27-2011
itsme86
Sounds like a homework question. We're not in the business of handing out answers. Where's your attempt? Try it and tell us where you're stuck and we'll help you with specifics.
• 10-27-2011
theoobe
Quote:

i got a list of positions (0 1 3)
The first horizontal line of the minimized answer doesn't tally with 0 1 3. It's 0 2 3. The second and third lines are 0 1 3 as expected. Do you see what I mean?

[0, 20, 35]
[20, 0, 34]
[35, 34, 0]

Shouldn't this be the objective?
• 10-29-2011
DanFraser
As others always mention about these type of questions, no-one will give you the answer. But if you've paid attention to your classes you should notice pretty quickly there is a repetition involved.