Algorithms: Computer Science Basics
- Jul 10, 2024
- 2 min read
In computer science, the term "algorithm" may be familiar to you. It's a term that's often used. But what does it really mean? To put it simply, algorithms are sets of steps used to complete tasks. They are the fundamentals of programming, allowing the functionality of devices such as computers, cell phones, and websites. However, many of the operations we conduct daily are algorithms, even if they are not carried out using technology.
Let's assume you want to make Indomie. To complete this correctly, you must follow a specific order of actions. First, bring a pot of water to a boil. Once it's boiling, add the Indomie and cook for a set amount of time. Once cooked, drain the water and serve with Indomie's special seasonings. The entire procedure is an algorithm. Because you followed those steps in that order, you got what you wanted -- a tasty Indomie.
However, if you make a mistake, such as overcooking or undercooking your noodles, the results will most likely be less than appealing. Programs function similarly. Their programming is made up of algorithms that direct them what to do. Imagine we want to use a navigation app to get directions. When we enter a destination, the software utilizes an algorithm to search for possible routes. Next, it applies a different algorithm to evaluate the current traffic. Then a third one uses that information to calculate the best possible route.
All of these algorithms have been built directly into the app's code. If that code contained any errors, the app would be incapable to correctly follow these algorithms. This means that you will not receive your directions. Both of these scenarios demonstrate how people and computers can use algorithms to complete everyday activities. The difference is that computers can use algorithms to calculate things faster, more accurately, and more efficiently than we can. Technology will only continue to progress and improve its capabilities.
Comments