in reply to Re^5: Can you improve upon my algorithm.
in thread Can you improve upon my algorithm.
The code has been running for 8:20 mins and processed 2.8GB; I'll let you do the math.
On the other hand, an N-way merge in C, on the hot path of the inner loop, requires just to perform a couple of operations plus the key comparisons log2N times. That may sum up to 50 instructions for every loop cycle (=sorted record)!
Show me the code!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Can you improve upon my algorithm.
by salva (Canon) on Mar 13, 2015 at 11:31 UTC | |
by BrowserUk (Patriarch) on Mar 13, 2015 at 11:43 UTC | |
by salva (Canon) on Mar 13, 2015 at 23:28 UTC | |
by BrowserUk (Patriarch) on Mar 14, 2015 at 01:09 UTC | |
by salva (Canon) on Mar 14, 2015 at 07:50 UTC | |
|