Algorithms
Filed under Introduction , on Sunday, January 24, 2010
0
A logical and concise list of steps required to solve a problem is called an algorithm. An algorithm is the first step in problem solving. Not only in programming world, actually have algorithms also existed in daily life. Given below is the example case in daily life:
A person wishes to book a railway ticket from Oxford to London.
The steps involved or rather the algorithm as follows:
• The passenger enters details like his name, age, the starting point of journey, destination, and the date of journey in the reservation slip.
• On submitting the slip at the reservation counter, the counter assistant checks for the availability of the seats.
• If the required number of seats is available the passenger is given a confirmed ticket.
• Otherwise, a wait-listed ticket is issued.
• A wait-listed ticket is confirmed if another person cancels his ticket.
• The passenger is given a refund if he is not given the confirmation.
Algorithms
How to Think About Algorithms
Comments Posted (0)
Post a Comment