Hi gush,
You don't have to actually store all pairs first before processing them.
If you make sure you generate them in the sorted order (first by increasing x, then increasing y), you can directly 'insert' them while you generate them. Inserting, in the terms of Skiena, meaning maintaining an ...
Search found 13 matches
- Sun Nov 06, 2005 1:21 pm
- Forum: Volume 109 (10900-10999)
- Topic: 10949 - Kids in a Grid
- Replies: 30
- Views: 17087
- Sun Nov 06, 2005 2:52 am
- Forum: Volume 109 (10900-10999)
- Topic: 10949 - Kids in a Grid
- Replies: 30
- Views: 17087
- Sat Nov 05, 2005 4:49 am
- Forum: Volume 109 (10900-10999)
- Topic: 10949 - Kids in a Grid
- Replies: 30
- Views: 17087
- Sat Nov 05, 2005 4:41 am
- Forum: Volume 109 (10900-10999)
- Topic: 10949 - Kids in a Grid
- Replies: 30
- Views: 17087
- Wed Nov 02, 2005 6:52 am
- Forum: Volume 109 (10900-10999)
- Topic: 10952 - Pattern Transformations
- Replies: 22
- Views: 6547
- Thu Aug 11, 2005 10:57 am
- Forum: Volume 108 (10800-10899)
- Topic: 10885 - Martin the Gardener
- Replies: 23
- Views: 8623
- Wed Aug 10, 2005 11:55 am
- Forum: Volume 108 (10800-10899)
- Topic: 10885 - Martin the Gardener
- Replies: 23
- Views: 8623
- Wed Aug 10, 2005 10:42 am
- Forum: Volume 108 (10800-10899)
- Topic: 10885 - Martin the Gardener
- Replies: 23
- Views: 8623
- Fri Dec 12, 2003 3:55 pm
- Forum: Volume 105 (10500-10599)
- Topic: 10561 - Treblecross
- Replies: 26
- Views: 16875
- Fri Dec 12, 2003 3:55 pm
- Forum: Volume 105 (10500-10599)
- Topic: 10561 - Treblecross
- Replies: 26
- Views: 16875
- Wed Dec 10, 2003 4:05 pm
- Forum: Volume 105 (10500-10599)
- Topic: 10501 - Simplified Shisen-Sho
- Replies: 12
- Views: 11335
- Mon Dec 08, 2003 5:26 pm
- Forum: Volume 105 (10500-10599)
- Topic: 10559 - Blocks
- Replies: 37
- Views: 17104
- Wed Oct 15, 2003 7:56 am
- Forum: Volume 105 (10500-10599)
- Topic: 10531 - Maze Statistics
- Replies: 8
- Views: 5763