Summary
In this chapter, we discussed the definition of an algorithm, which is a set of steps that allows a computer to complete a process and provide some output. We went through the characteristics of algorithms.
We designed algorithms based on problem scenarios and then analyzed algorithms to determine whether they met the characteristics needed to run properly. Understanding the characteristics of algorithms and how algorithms work allows us to create algorithms with far fewer errors than if we were unaware of these characteristics. Notice that I said fewer errors.
When working with code, errors are a fact of life. We will inevitably make mistakes and accidentally introduce bugs or make some code loop infinitely. Understanding the characteristics of a good algorithm allows us to reduce those errors, even if we can’t fully eliminate them from our day-to-day work.
In the next chapter, we will learn more about logical reasoning. Throughout the chapter, we will discuss...