Abstract
In the realm of informatics and computational analysis, it is important to understand the efficiency of a program or calculation procedure. This chapter presents an exploration of time complexity, a fundamental metric that underpins computational efficiency. The chapter begins by showing the definition and representation of time complexity. It delves into the fundamental understanding of how time complexity depicts the relation between input data size and the time required for execution. It provides perspectives for perceiving time complexity from a polynomial expression of the number of instructions. Furthermore, it demonstrates how to infer time complexity directly from flowcharts—a visual representation introduced in the previous chapter. By comparing two cases different in time complexity, the chapter showcases how the analytical insights gained through time complexity can inform the efficiency of a program. By dissecting polynomials and flowcharts in the skill-enhancing exercises, learners will sharpen their ability to assess time complexity in diverse contexts.
This is a preview of subscription content,log in via an institution to check access.
Access this chapter
Subscribe and save
- Get 10 units per month
- Download Article/Chapter or eBook
- 1 Unit = 1 Article or 1 Chapter
- Cancel anytime
Buy Now
- Chapter
- JPY 3498
- Price includes VAT (Japan)
- eBook
- JPY 5147
- Price includes VAT (Japan)
- Softcover Book
- JPY 6434
- Price includes VAT (Japan)
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
Levitin A (2011) Introduction to the design and analysis of algorithms. Addison Wesley Publishing Company, London
Huang S (2020) What is big O notation: space and time complexity.https://www.freecodecamp.org/news/big-o-notation-why-it-matters-and-why-it-doesnt-1674cfa8a23c/
Zindros D (2012) A gentle introduction to algorithm complexity analysis.https://discrete.gr/complexity/
Author information
Authors and Affiliations
Institute of Liberal Arts and Science, Kanazawa University, Kanazawa, Ishikawa, Japan
Wei Weng
- Wei Weng
Search author on:PubMed Google Scholar
Corresponding author
Correspondence toWei Weng.
Rights and permissions
Copyright information
© 2024 The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd.
About this chapter
Cite this chapter
Weng, W. (2024). Time Complexity. In: A Beginner’s Guide to Informatics and Artificial Intelligence. Springer, Singapore. https://doi.org/10.1007/978-981-97-1477-3_3
Download citation
Published:
Publisher Name:Springer, Singapore
Print ISBN:978-981-97-1476-6
Online ISBN:978-981-97-1477-3
eBook Packages:Computer ScienceComputer Science (R0)
Share this chapter
Anyone you share the following link with will be able to read this content:
Sorry, a shareable link is not currently available for this article.
Provided by the Springer Nature SharedIt content-sharing initiative