数据结构学习(1-1、算法定义)
一、算法导论
1. what is an Algorithm?
A set of steps or instructions for completing a task.
- Clearly defined problem statement, input, and output
- The steps in the algorithm need to be in a very specific order
- The steps also need to be distinct
- The algorithm should produce a result
2. How to evaluate an algorithm?
-
Correctness
-
Efficiency
-
Time Complexity
-
Space Complexity
Big O---->O(n)评估效率的函数
-
Time:42:41
Data:7/10/2025

浙公网安备 33010602011771号