Conditional
Insertion
•Suppose we want to
either insert a new element if this is a new key, or modify the
existing element if the key already exists.
•One technique would be
to first try to Find the key, and if it's not found, then Insert
the key in the map.