Site icon Study Algorithms

Symbol Tables

Since childhood, we have all used a dictionary, and many of us have used a word processor (say Microsoft WORD) which comes with a spell checker. The spell checker is also a dictionary but limited. There are many real time examples for dictionaries and few of them are:-

In computer science, we generally use the term symbol table rather than dictionary, when referring to the ADT (Abstract Data Type).

What are Symbol Tables?

From the above discussion, we can define the symbol table as a data structure that associates a value with a key. It supports the following operations:

There are only three basic operations on symbol tables: searching, hashing and deleting.

Example: DNS Lookup. Let us assume that the key in this case is URL and value is an IP address.

Key [Website] Value [IP Address]
www.abc.com 128.112.136.11
www.def.com 128.112.128.15
www.ghi.com 130.132.143.21
www.klm.com 128.103.060.55
www.studyalgorithms.com 104.28.31.39

Read about symbol table implementations.

Exit mobile version