home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!think.com!sdd.hp.com!swrinde!gatech!prism!np4
- From: np4@prism.gatech.EDU (Nick Pomponio)
- Newsgroups: sci.math
- Subject: Constant-sum table algorithm
- Message-ID: <79483@hydra.gatech.EDU>
- Date: 8 Jan 93 12:49:33 GMT
- Organization: Georgia Institute of Technology
- Lines: 19
-
- I would like to generate an NxN table of positive integers such that
- any N entries chosen from the table, with the restriction that no
- two in are in the same row or column, add up to the same value, S.
- The only way I know to construct such a table is to choose 2N integers
- which sum to S, arrange N along the top of the table (one above each
- column), and N along the side (one beside each row), then fill in each
- entry as the sum of it's corresponding row and column heading numbers.
-
- Question: Is there an algorithm for choosing the 2N integers such that
- every resulting number in the NxN table is unique (no repetitions)?
- For my particular case, N^2 << S.
-
- Thanks.
-
- --
- POMPONIO,NICHOLAS A
- Georgia Institute of Technology, Atlanta Georgia, 30332
- uucp: ...!{decvax,hplabs,ncar,purdue,rutgers}!gatech!prism!np4
- Internet: np4@prism.gatech.edu
-