In Simple Terms, What is an Algorithm?

claribel

Member
I’m starting a basic computer science course and the instructor keeps using this term, but I’d like a more "real-world" explanation of what is an algorithm beyond just "a set of rules." If you were explaining this concept to a complete beginner, how would you describe the way it processes data to reach a specific output or solve a problem?
 
I love cooking, so I'd explain via a recipe association, maybe not the best one, but might make it clearer for some people:
Imagine you give a chef a basket of ingredients. The chef doesn’t just randomly mix things together. They follow a precise process:
  1. First, check what ingredients are there.
  2. Then decide what dish can be made.
  3. Then follow specific steps in the correct order.
  4. If something is missing, adjust.
  5. Finally, serve the finished meal.
 
Back
Top