You are on page 1of 1

Dictionary is one of the important Data Structures that is usually used to store data in the key-

value format. Each element presents in a dictionary data structure compulsorily have a key and
some value is associated with that particular key. In other words, we can also say that
Dictionary data structure is used to store the data in key-value pairs. Other names for the
Dictionary data structure are associative array, map, symbol table but broadly it is referred to as
Dictionary.
A dictionary or associative array is a general-purpose data structure that is used for the storage
of a group of objects.
In Dictionary or associative array, the relation or association between the key and the value is
known as the mapping. We can say that each value in the dictionary is mapped to a particular
key present in the dictionary or vice-versa.
The various operations that are performed on a Dictionary or associative array are:

o Add or Insert: In the Add or Insert operation, a new pair of keys and values is added in the
Dictionary or associative array object.
o Replace or reassign: In the Replace or reassign operation, the already existing value that is
associated with a key is changed or modified. In other words, a new value is mapped to an
already existing key.
o Delete or remove: In the Delete or remove operation, the already present element is
unmapped from the Dictionary or associative array object.
o Find or Lookup: In the Find or Lookup operation, the value associated with a key is searched
by passing the key as a search argument.

You might also like