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]
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]
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.
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?Quote:
i got a list of positions (0 1 3)
[0, 20, 35]
[20, 0, 34]
[35, 34, 0]
Shouldn't this be the objective?
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.