What Is an Algorithm?
When you bake a cake or when you tie your shoes, did you know you are using an algorithm? Algorithms aren’t just complex sets of instructions for computers. Anytime you follow a replicable step-by-step process to accomplish a task, those steps are an algorithm. My bedtime routine is a pretty simple algorithm. I take a shower, put on pajamas, brush my teeth, and get into bed. It works every time, but what happens if I’m out of toothpaste? Now my brain needs a different set of instructions. Should I run to the drugstore? What if they’re out of my regular brand of toothpaste? Those sorts of decisions create new and different parts for me to complete my task.
This is how algorithms get more complicated. When we program computers, we are giving them instructions for all the possible paths they might need to take stemming from all the possible series of events that might occur in a particular process. Stock trading, encryption, traffic modeling and social media are just some of the applications that use or require complex algorithms, and machine learning algorithms can perform new and unexpected calculations and predictions. The main thing to remember is that algorithms aren’t just for computers and programmers. They’re how we all get things done every day of our lives.