J
John
Is there a way to union two maps into one map in O(log n) time?
John said:Is there a way to union two maps into one map in O(log n) time?
John said:Here is a better formulation of my question, I have two maps M1,M2.
I would like to do the set_union type operation on it. I can of course
make a set and put the data inside it using pair. Any other ideas
on how to do this more naturally? can maps be unioned?
John said:stupid me. I was thinking if the sets were disjoint (non-overlapping).
You are absolutely right.
Here is a better formulation of my question, I have two maps M1,M2.
I would like to do the set_union type operation on it. I can of course
make a set and put the data inside it using pair. Any other ideas
on how to do this more naturally? can maps be unioned?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.