in reply to Re^6: Can I speed this up?
in thread Can I speed this up? (repetitively scanning ranges in a large array)
A few notes:
1. Remember coordinates start from 1, not zero.
2. Max length = 87688.
3. Results are given in half sizes (e.g., if the minimal uncovered window centered at i is of size 3, the result will be 1, if it's 5 the result will be 2, etc.).
UPDATED link with a corrected version of the ranges. Previously wrapped ranges span out of max length, now they are in the correct form.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: Can I speed this up?
by choroba (Cardinal) on Nov 02, 2010 at 12:56 UTC | |
by daverave (Scribe) on Nov 02, 2010 at 13:36 UTC | |
|
Re^8: Can I speed this up?
by BrowserUk (Patriarch) on Nov 03, 2010 at 16:58 UTC | |
by daverave (Scribe) on Nov 03, 2010 at 19:52 UTC |