An algorithm is a plan for solving a problem, but plans come in several levels of detail.
It's usually better to start with a high-level algorithm that includes the major part of a solution, but leaves the details until later.
High-level algorithm: This algorithm is satisfactory for daily use, but it lacks details that would have to be added were a computer to carry out the solution.
These details include answers to questions such as the following.
Our algorithm development process consists of five major steps.
refers to someone who finds a way to solve the problem.The purpose of this step is to determine both the starting and ending points for solving the problem.This process is analogous to a mathematician determining what is given and what must be proven.Learn a basic process for developing a solution to a problem. I could drive to her house and thank her in person.Nothing in this chapter is unique to using a computer to solve a problem. In fact, there are many ways I could thank her, but that's not the point.In a similar way, a computer does not solve problems, it's just a tool that I can use to implement my plan for solving the problem.Knowing that Aunt Kay appreciates creative and unusual things, I have decided to hire a singing messenger to deliver my thanks.In this context, the messenger is a tool, but one that needs instructions from me.I have to tell the messenger where Aunt Kay lives, what time I would like the message to be delivered, and what lyrics I want sung.A mathematical formula such as is a special case of an algorithm.The form is not particularly important as long as it provides a good way to describe and check the logic of the plan.