- Python Data Structures and Algorithms
- Benjamin Baka
- 91字
- 2021-07-09 19:45:08
Asymptotic analysis
There are essentially three things that characterize an algorithm's runtime performance. They are:
- Worst case - Use an input that gives the slowest performance
- Best case - Use an input that give, the best results
- Average case - Assumes the input is random
To calculate each of these, we need to know the upper and lower bounds. We have seen a way to represent an algorithm's runtime using mathematical expressions, essentially adding and multiplying operations. To use asymptotic analyses, we simply create two expressions, one each for the best and worst cases.
推薦閱讀
- Learning Linux Binary Analysis
- Python Tools for Visual Studio
- C語言程序設計立體化案例教程
- 名師講壇:Java微服務架構實戰(SpringBoot+SpringCloud+Docker+RabbitMQ)
- JavaScript by Example
- Hands-On Swift 5 Microservices Development
- jQuery炫酷應用實例集錦
- Python Data Science Cookbook
- Spring MVC+MyBatis開發從入門到項目實踐(超值版)
- 零基礎輕松學C++:青少年趣味編程(全彩版)
- 算法圖解
- Arduino電子設計實戰指南:零基礎篇
- Learning Image Processing with OpenCV
- Leaflet.js Essentials
- Java網絡編程實用精解