Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[pull] main from itcharge:main #31

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
pull merged 5 commits into AlgorithmAndLeetCode:main from itcharge:main
Aug 22, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update 02.Algorithm-Complexity.md
  • Loading branch information
itcharge committed Aug 22, 2022
commit 180859b4aa396a7c7ee4dfc689925c0474749c4e
4 changes: 2 additions & 2 deletions Contents/00.Introduction/02.Algorithm-Complexity.md
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,14 @@ def algorithm(n):

例如:$T(n) = 3n^2 + 4n + 5 = \Theta(n^2),ドル可以找到 $c_1 = 1,ドル$c_2 = 12,ドル$n_0 = 1,ドル使得对于所有 $n \ge 1,ドル都有 $n^2 \le 3n^2 + 4n + 5 \le 12n^2$。

#### 2.2.1 $O$ 渐进上界符号
#### 2.2.2 $O$ 渐进上界符号

> **$O$ 渐进上界符号**:
> 对于函数 $f(n)$ 和 $g(n),ドル$f(n) = O(g(n))$。存在常量 $c,ドル$n_0,ドル使得当 $n > n_0$ 时,有 0ドル \le f(n) \le c \cdot g(n)$。

$\Theta$ 符号渐进地给出了一个函数的上界和下界,如果我们只知道一个函数的上界,可以使用 $O$ 符号。

#### 2.2.1 $\Omega$ 渐进下界符号
#### 2.2.3 $\Omega$ 渐进下界符号

> **$\Omega$ 渐进下界符号**:
> 对于函数 $f(n)$ 和 $g(n),ドル$f(n) = \Omega(g(n))$。存在常量 $c,ドル$n_0,ドル使得当 $n > n_0$ 时,有 0ドル \le c \cdot g(n) \le f(n)$。
Expand Down

AltStyle によって変換されたページ (->オリジナル) /