News for hackers. Stuff that matters.
Re:My Favorite Algorithm: Linear Time Median Finding by jiggawatts on Friday July 26, 2024 @08:01PM (#41083439)
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.
Re:My Favorite Algorithm: Linear Time Median Finding by srcreigh on Sunday July 28, 2024 @08:44AM (#41092819)
Yep, thx.