Skip to content

Commit 80bac8f

Browse files
committed
feat: use chinese alg name
also use autoref when ref alg
1 parent 844182b commit 80bac8f

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

book.tex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
\usepackage{hyperref}
88

99
\def\figureautorefname{图}
10+
\SetAlgorithmName{算法}{算法}{算法索引}
1011

1112
\title{何老师算法课笔记}
1213
\subtitle{还没有想好的副标题}

src/dynamic-programming-1.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ \subsection{算法设计}
194194

195195
\subsection{算法分析}
196196
\paragraph*{时间复杂度}
197-
简单分析算法\ref{alg:mco}的嵌套循环结构,可以得到算法的运行时间为$O(n^3)$
197+
简单分析\autoref{alg:mco}的嵌套循环结构,可以得到算法的运行时间为$O(n^3)$
198198
循环嵌套的深度为三层,每层的循环变量$(i\text{、}j\text{和}k)$最多取$n-1$个值。
199199
\paragraph*{空间复杂度}
200-
需要$O(n^2)$的空间来保存$OPT$$s$
200+
需要$O(n^2)$的空间来保存$OPT$$s$

0 commit comments

Comments
 (0)