Sunday 10 October 2010

Operations on Dictionaries




Operations  on   dictionary:
The   basic  operations  that  can  be   performed   on  dictionary  are:
Ø  Insertion  of  a  value   in  the   dictionary.
Ø  Deletion  of  particular   value  from   dictionary.
Ø  Searching   of  particular  value  with  the  help  of  keys.
    Dictionary   is   a   data   structure   using    which  basic  operations   i.e   insertion  of  a  value ,deletion  of  a  value  and  searching  with
the  help  of   key  can  be  performed  efficiently.
Example:
                In  the  library  the  book  data base  is  prepared  which  is  actually  in  a dictionary  . When  a  book  is  issued  that  book  entry is  deleted  from the  data base  and  on returning   of  the  book  to  the  library  the  corresponding  book  entry  is  added  in  the  book  data base. If  student  demands  for  some  specific  book then  its  entry  is  searched in the book  database.

Dictionaries

No comments:

Post a Comment