Building your own algorithms
As you learned in Chapter 8, Introduction to Data Structures, Algorithms, and Pseudocode, algorithms are computer programs that solve problems. From this, we can conclude that programmers who build computer programs (including you if you have tried any of this chapter’s exercises and previous chapters on C#) can build an algorithm. Algorithms won’t always be the common sorting and searching problems that were built in this chapter or ones you may discover in other algorithm books but can be customized to solve unique problems that a programmer may face. Algorithms not only solve problems but also need to solve the right problem within a reasonably estimated time frame. When you’re building algorithms, you’ll want to take this into consideration, in addition to reviewing it to make sure that any input and data that it works with will produce the same result, and whether it’s an efficient way to solve the problem. To help...