in reply to How can I improve the efficiency of this very intensive code?
That said, i would do a Matrix(nxn) (square not a requirement, dimensions might change based on num of records of course) to keep track of scores. Consider the following table
| File1rec/File2rec | 1 | 2 | 3 | 4 | 5 | 6 |
| 1 | 3 | 7 | 8 | 9 | 9 | 10 |
| 2 | 4 | 8 | 3 | 1 | 1 | 6 |
| 3 | 1 | 4 | 9 | 4 | 9 | 7 |
| 4 | 4 | 3 | 10 | 7 | 2 | 3 |
| 5 | 4 | 2 | 5 | 9 | 9 | 5 |
| 6 | 5 | 6 | 2 | 5 | 6 | 9 |
Sorting to finx max/min is an overkill. I might be missing your porblem so please correct me if i am wrong.
cheers
SK
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How can I improve the efficiency of this very intensive code?
by clearcache (Beadle) on Aug 06, 2005 at 21:41 UTC |