
6 Programming and Data Structures
easy to solve a given problem. Every step is known as an instruction.
In our daily life we come across numerous algorithms for solving problems. We perform several
routine tasks, for example, riding a bike, lifting a phone, making a telephone call, switching on the
television, and so on.
Let us take an example. To establish a telephonic communication between two subscribers the
following steps are to be followed.
1) Dial the phone number
2) Phone rings at the called party
3) Caller waits for the response
4) Called party picks up the phone
5) Conversation begins between them
6) Release of connectio ...