|
|
|
|
|
by creata
701 days ago
|
|
With 256 counters, you could use the same approach with four passes: pass i bins the numbers by byte i (0 = most sig., 3 = least sig.) and then identifies the bin that contains the median. I really want to know what a one-pass, low-memory solution looks like, lol. |
|
This is assuming a deterministic algorithm; maybe a random algorithm could work with high probability and less memory?