Chapter 2: Algorithms

This article refers to "Dahua Data Structure", thanks to the author Mr. Cheng Jie.

One: The characteristics of the algorithm:
finiteness;
certainty;
feasibility;
input;
output;

Two: Good algorithm design requirements:
correctness;
readability;
robustness;
high and low rate:
low storage;

Three: the time complexity of the algorithm (large O order):
O(n): linear order
O(1): constant order
O(n^2): square order
O(log n): logarithmic order

Guess you like

Origin blog.csdn.net/yanghangwww/article/details/110303910