Y
Hacker News
new
|
ask
|
show
|
jobs
by
lern_too_spel
2347 days ago
A double array takes O(1) more space in Java vs. C, so running out of memory wouldn't be a problem.
1 comments
saagarjha
2346 days ago
Unfortunately big-O algorithmic analysis doesn't translate cleanly to the real world due to constants and other inefficiencies.
link
lern_too_spel
2346 days ago
It does in this case. Champtar says it's something about the size of the matrix that makes it run out of space. The overhead of the double array is already paid for.
link