- Java 9 Data Structures and Algorithms
- Debasish Ray Chawdhuri
- 263字
- 2021-07-02 23:26:43
Summary
In this chapter, you saw how we can think about measuring the running time of and the memory required by an algorithm in seconds and bytes, respectively. Since this depends on the particular implementation, the programming platform, and the hardware, we need a notion of talking about running time in an abstract way. Asymptotic complexity is a measure of the growth of a function when the input is very large. We can use it to abstract our discussion on running time. This is not to say that a programmer should not spend any time to make a run a program twice as fast, but that comes only after the program is already running at the minimum asymptotic complexity.
We also saw that the asymptotic complexity is not just a property of the problem at hand that we are trying to solve, but also a property of the particular way we are solving it, that is, the particular algorithm we are using. We also saw that two programs solving the same problem while running different algorithms with different asymptotic complexities can perform vastly differently for large inputs. This should be enough motivation to study algorithms explicitly.
In the following chapters, we will study the most used algorithmic tricks and concepts required in daily use. We will start from the very easy ones that are also the building blocks for the more advanced techniques. This book is, of course, by no means comprehensive; the objective is to provide enough background to make you comfortable with the basic concepts and then you can read on.
- Learning ROS for Robotics Programming(Second Edition)
- OpenCV實(shí)例精解
- Maven Build Customization
- Mastering Natural Language Processing with Python
- 數(shù)據(jù)結(jié)構(gòu)簡(jiǎn)明教程(第2版)微課版
- Hands-On GPU:Accelerated Computer Vision with OpenCV and CUDA
- 零基礎(chǔ)學(xué)Python數(shù)據(jù)分析(升級(jí)版)
- Keras深度學(xué)習(xí)實(shí)戰(zhàn)
- 移動(dòng)增值應(yīng)用開(kāi)發(fā)技術(shù)導(dǎo)論
- Learning Image Processing with OpenCV
- 零基礎(chǔ)入門(mén)學(xué)習(xí)C語(yǔ)言:帶你學(xué)C帶你飛
- jQuery權(quán)威指南
- 流程讓管理更高效:流程管理全套方案制作、設(shè)計(jì)與優(yōu)化
- C#網(wǎng)絡(luò)程序開(kāi)發(fā)(第二版)
- Python Machine Learning / Second Edition