What Is An Algorithm?
An Algorithm is simply a set of instructions to solve a problem. That's it. We use algorithms more often than we think. For example: When following a recipe, you are using a cooking recipe. You are following a set of instructions to solve the problem of how to cook the food. Let's look at a more programming related example. And as always this will be done in pseudocode. Let's say we are given a list of [1,4,3] and we want to sort this list in increasing order. Well approaches could we take to solve this? First we'll look at bubble sort. Bubble Sort: Check indices 0 & 1 if list at index 0 is larger than index 1, swap the values so that index 1(the smaller number) comes before index 2 (the larger number). continue this process for index 1 & 2, 2 & 3 and so on check if the list is sorted, if not, run this process again Bubble sort works, however can be very slow, in other words, have a very slow time complexity(how long it take an algorithm to solve the prob