DS & A (Algorithm Analysis - Faster Computer OR Faster Algorithm)
| CHAPTER 6 | Till now we have been talking about various concepts in Data Structures & Algorithms but in this chapter, we will be focusing more on a question rather than some concept. So, let's get started. Since we are already familiar with the basics of algorithms and it's running time, I would like to ask you guys a question, what contributes more to reducing the running speed of a program? A faster computer? Or a faster algorithm? Pick One: Faster Algorithm or Faster Computer Before you guys come to an answer, I would like to remind you guys that how fast a program runs depends on the running time of an algorithm and the machine it is running on as well. I know you guys will try to think out of the box and ask why not both? But in this chapter, we will be focusing more on picking the better choice out of the two given options. Now, before picking our answer let us analyze both the available options. Suppose, there are two algorithms for a sin