Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
srcreigh
1y ago
0 comments
Share
It’s more like 2NM where M is loading the data from disk/memory. One pass is 2N+M.
Why go to the store and back twice to buy two things instead of buying two things in one trip? ;p
0 comments
default
newest
oldest
jiggawatts
1y ago
I think you meant 2N+2M vs 2N+M, but yes, that’s the point: not reading twice is cheaper because unlike in traditional big-O analysis compute is cheap but data access is very expensive.
srcreigh
OP
1y ago
Yep, thx.
j
/
k
navigate · click thread line to collapse