in reply to Rewrite Program Using Arrays
So I want to make this faster.Then don't sort. Really. The rest of your program is essentially linear. Sorting is N log N. That's the bottleneck of your program. Any speedup you'll do in the rest of the program are pointless if your data size increases: the sort will dominate.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Rewrite Program Using Arrays
by mbethke (Hermit) on Mar 25, 2012 at 17:51 UTC | |
|
Re^2: Rewrite Program Using Arrays
by perl.j (Pilgrim) on Mar 25, 2012 at 20:38 UTC | |
by aaron_baugher (Curate) on Mar 26, 2012 at 05:21 UTC |