Two Sides of the Same Coin: Data Storage and Algorithms
Algorithms and Data Structures are a powerful pair within the world of computers. First and foremost , Algorithms : What is an A lgorithm? M ost people only ever hear about algorithms from a scientific perspective. Therefore, a lot of pe ople don’t understand what an algorithm is. Despite this, they are a ctually a g eneral term for methods that complete tasks. From that perspective, everything you do is an algorithm. Cooking food, getting ready for the day, and doing your job at work; everything that requires tasks needs an algorithm to complete them. With respect to our discussion, the ability to perform work is meaningless when there is nothing to work on. Therefore, good algorithms are often used in tandem with Data Structures. What is a Data Structure? Simply put, it is a way of organizing data. Surprisingly, there is a method to how data should be stored, leading to many types of Data Structures : Arrays/Lists: S...