in reply to Re: Sorting issues
in thread Sorting issues
I find this data structure more intuitive
Just be aware that you'll be using 3-4 times the memory for this data structure. For a relatively small number of points its fine, but you can squeeze more points into memory if you just use plain arrays like the OP has.
BTW, your sort does not work. You can't do sequential sorts and expect it to still be sorted by the previous order (although it sometimes might appear to work, it doesn't always).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Sorting issues
by Skylark (Beadle) on Jan 09, 2004 at 18:41 UTC | |
by jmanning2k (Pilgrim) on Jan 09, 2004 at 20:40 UTC | |