Y
Hacker News
new
|
ask
|
show
|
jobs
by
mountainreason
1432 days ago
Wouldn't you at least be looking at nlog(n) for the sort in the merge join?
1 comments
umanwizard
1432 days ago
Yes, if the data is not already sorted. Thus it's O(n) for already sorted data and O(n log(n) + n) -- which simplifies to O(n log(n)) -- for arbitrary data.
link
mountainreason
1432 days ago
Yeah. I know. Why would the data already be sorted?
link
umanwizard
1432 days ago
In a database you might have already built an index on that data.
link