Y
Hacker News
new
|
ask
|
show
|
jobs
by
dooglius
498 days ago
Why would iterating over the dense vector be O(m) rather than O(n)?
1 comments
Sesse__
498 days ago
Sorry, I meant iterating over the sparse vector, not the dense vector (I find the nomenclature in the article somehow inverted).
link
dooglius
497 days ago
You could do intersection by iterating over the dense vector though, not sure why you would need to iterate over the sparse one
link
Sesse__
496 days ago
Yeah, sure, you can iterate over the dense vector and check in the other side's sparse vector, that's correct.
link