artist has asked for the wisdom of the Perl Monks concerning the following question:
How I can eliminate rows in a given matrix such that it maximize the sum of the numbers in matrix and sum of numbers in each column should not exceed a given constant.
My First Apporach
1. Take all the possible combination of rows.
2. Have each combination calculate the column sum, discard the combination if any of
them has colmun-sum exceeds the constant.
3. Figure out the best combination as maximum matrix-sum.
I appreciate Any other Approach.
Thanks,
Artist.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Matrix Maximization
by I0 (Priest) on Dec 24, 2002 at 09:55 UTC | |
|
Re: Matrix Maximization
by artist (Parson) on Dec 23, 2002 at 19:43 UTC | |
by BrowserUk (Patriarch) on Dec 23, 2002 at 20:07 UTC | |
|
Re: Matrix Maximization
by CountZero (Bishop) on Dec 24, 2002 at 06:54 UTC |