├── LICENSE ├── README.md ├── answer ├── 1706 │ ├── Assignment01_Solution.pdf │ ├── Assignment02_Solution.pdf │ ├── Assignment03_Solution.pdf │ └── Assignment04_Solution.pdf ├── 1806 │ ├── solution1.pdf │ ├── solution2.pdf │ ├── solution3.pdf │ └── solution4.pdf ├── 1823 │ ├── solution1.pdf │ ├── solution2.pdf │ ├── solution3.pdf │ └── solution4.pdf ├── 1906 │ ├── 计算机学院《算法设计与分析》第一次作业参考答案.pdf │ ├── 计算机学院《算法设计与分析》第三次作业参考答案.pdf │ ├── 计算机学院《算法设计与分析》第二次作业参考答案.pdf │ └── 计算机学院《算法设计与分析》第四次作业参考答案.pdf ├── 1923 │ ├── Solution1.pdf │ ├── Solution2.pdf │ ├── Solution3.pdf │ └── Solution4.pdf └── 2006 │ ├── 6系-sol3-release.pdf │ ├── 6系_hw4_sol_release.pdf │ ├── 第一次算法作业-参考答案.pdf │ └── 第二次算法作业-参考答案.pdf ├── exam └── 2022-算法期末试卷.pdf ├── homework ├── 算法设计与分析week11第三次作业_使用模板_100.pdf ├── 算法设计与分析week11第四次作业_使用模板_100.pdf ├── 算法设计与分析week3第一次作业_使用模板_100.pdf └── 算法设计与分析week7第二次作业_使用模板_100.pdf └── homework_template_latex ├── Algorithm_Homework.aux ├── Algorithm_Homework.log ├── Algorithm_Homework.out ├── Algorithm_Homework.pdf ├── Algorithm_Homework.synctex.gz └── Algorithm_Homework.tex /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 YJK 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # BUAA-Algorithm-2022 作业 2 | 3 | 4 | 5 | ![license: MIT](https://img.shields.io/badge/license-MIT-green) 6 | 7 | ## 课程简介 8 | 9 | 《算法设计与分析》是北航计算机学院大三上学期核心专业课之一。本课程不要求具体代码的实现(如C/Java等),重在算法设计、复杂度分析、证明、伪代码设计等。 10 | 11 | ## 课程作业简介 12 | 13 | 实验部分分为四次作业,以下简介每次作业的要求: 14 | 15 | - 第一次作业 :时间复杂度分析+分治算法 16 | - 第二次作业 :动态规划 17 | - 第三次作业 :贪心算法 18 | - 第四次作业 :P与NP理论+图论 19 | 20 | ## 仓库简介 21 | 22 | ### 作业完成情况 23 | 24 | 四次作业均100/100。 25 | 26 | ### 仓库结构介绍 27 | 28 | - answer:部分年份的标准答案 29 | - exam:2022年试题 30 | - homework:笔者2022年的作业批改发回版,有助教的分数和批注 31 | - homework_template_latex:作业latex模板,适合TeXworks Editor本地编译运行 -------------------------------------------------------------------------------- /answer/1706/Assignment01_Solution.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saltyfishyjk/BUAA-Algorithm/2c2fb45cefda7ca69565988b2d1221314a1e4ea8/answer/1706/Assignment01_Solution.pdf -------------------------------------------------------------------------------- /answer/1706/Assignment02_Solution.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saltyfishyjk/BUAA-Algorithm/2c2fb45cefda7ca69565988b2d1221314a1e4ea8/answer/1706/Assignment02_Solution.pdf -------------------------------------------------------------------------------- /answer/1706/Assignment03_Solution.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saltyfishyjk/BUAA-Algorithm/2c2fb45cefda7ca69565988b2d1221314a1e4ea8/answer/1706/Assignment03_Solution.pdf -------------------------------------------------------------------------------- /answer/1706/Assignment04_Solution.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saltyfishyjk/BUAA-Algorithm/2c2fb45cefda7ca69565988b2d1221314a1e4ea8/answer/1706/Assignment04_Solution.pdf -------------------------------------------------------------------------------- /answer/1806/solution1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saltyfishyjk/BUAA-Algorithm/2c2fb45cefda7ca69565988b2d1221314a1e4ea8/answer/1806/solution1.pdf -------------------------------------------------------------------------------- /answer/1806/solution2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saltyfishyjk/BUAA-Algorithm/2c2fb45cefda7ca69565988b2d1221314a1e4ea8/answer/1806/solution2.pdf -------------------------------------------------------------------------------- /answer/1806/solution3.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saltyfishyjk/BUAA-Algorithm/2c2fb45cefda7ca69565988b2d1221314a1e4ea8/answer/1806/solution3.pdf -------------------------------------------------------------------------------- /answer/1806/solution4.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saltyfishyjk/BUAA-Algorithm/2c2fb45cefda7ca69565988b2d1221314a1e4ea8/answer/1806/solution4.pdf -------------------------------------------------------------------------------- /answer/1823/solution1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saltyfishyjk/BUAA-Algorithm/2c2fb45cefda7ca69565988b2d1221314a1e4ea8/answer/1823/solution1.pdf -------------------------------------------------------------------------------- /answer/1823/solution2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saltyfishyjk/BUAA-Algorithm/2c2fb45cefda7ca69565988b2d1221314a1e4ea8/answer/1823/solution2.pdf -------------------------------------------------------------------------------- /answer/1823/solution3.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saltyfishyjk/BUAA-Algorithm/2c2fb45cefda7ca69565988b2d1221314a1e4ea8/answer/1823/solution3.pdf -------------------------------------------------------------------------------- /answer/1823/solution4.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saltyfishyjk/BUAA-Algorithm/2c2fb45cefda7ca69565988b2d1221314a1e4ea8/answer/1823/solution4.pdf -------------------------------------------------------------------------------- /answer/1906/计算机学院《算法设计与分析》第一次作业参考答案.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saltyfishyjk/BUAA-Algorithm/2c2fb45cefda7ca69565988b2d1221314a1e4ea8/answer/1906/计算机学院《算法设计与分析》第一次作业参考答案.pdf -------------------------------------------------------------------------------- /answer/1906/计算机学院《算法设计与分析》第三次作业参考答案.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saltyfishyjk/BUAA-Algorithm/2c2fb45cefda7ca69565988b2d1221314a1e4ea8/answer/1906/计算机学院《算法设计与分析》第三次作业参考答案.pdf -------------------------------------------------------------------------------- /answer/1906/计算机学院《算法设计与分析》第二次作业参考答案.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saltyfishyjk/BUAA-Algorithm/2c2fb45cefda7ca69565988b2d1221314a1e4ea8/answer/1906/计算机学院《算法设计与分析》第二次作业参考答案.pdf -------------------------------------------------------------------------------- /answer/1906/计算机学院《算法设计与分析》第四次作业参考答案.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saltyfishyjk/BUAA-Algorithm/2c2fb45cefda7ca69565988b2d1221314a1e4ea8/answer/1906/计算机学院《算法设计与分析》第四次作业参考答案.pdf -------------------------------------------------------------------------------- /answer/1923/Solution1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saltyfishyjk/BUAA-Algorithm/2c2fb45cefda7ca69565988b2d1221314a1e4ea8/answer/1923/Solution1.pdf -------------------------------------------------------------------------------- /answer/1923/Solution2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saltyfishyjk/BUAA-Algorithm/2c2fb45cefda7ca69565988b2d1221314a1e4ea8/answer/1923/Solution2.pdf -------------------------------------------------------------------------------- /answer/1923/Solution3.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saltyfishyjk/BUAA-Algorithm/2c2fb45cefda7ca69565988b2d1221314a1e4ea8/answer/1923/Solution3.pdf -------------------------------------------------------------------------------- /answer/1923/Solution4.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saltyfishyjk/BUAA-Algorithm/2c2fb45cefda7ca69565988b2d1221314a1e4ea8/answer/1923/Solution4.pdf -------------------------------------------------------------------------------- /answer/2006/6系-sol3-release.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saltyfishyjk/BUAA-Algorithm/2c2fb45cefda7ca69565988b2d1221314a1e4ea8/answer/2006/6系-sol3-release.pdf -------------------------------------------------------------------------------- /answer/2006/6系_hw4_sol_release.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saltyfishyjk/BUAA-Algorithm/2c2fb45cefda7ca69565988b2d1221314a1e4ea8/answer/2006/6系_hw4_sol_release.pdf -------------------------------------------------------------------------------- /answer/2006/第一次算法作业-参考答案.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saltyfishyjk/BUAA-Algorithm/2c2fb45cefda7ca69565988b2d1221314a1e4ea8/answer/2006/第一次算法作业-参考答案.pdf -------------------------------------------------------------------------------- /answer/2006/第二次算法作业-参考答案.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saltyfishyjk/BUAA-Algorithm/2c2fb45cefda7ca69565988b2d1221314a1e4ea8/answer/2006/第二次算法作业-参考答案.pdf -------------------------------------------------------------------------------- /exam/2022-算法期末试卷.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saltyfishyjk/BUAA-Algorithm/2c2fb45cefda7ca69565988b2d1221314a1e4ea8/exam/2022-算法期末试卷.pdf -------------------------------------------------------------------------------- /homework/算法设计与分析week11第三次作业_使用模板_100.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saltyfishyjk/BUAA-Algorithm/2c2fb45cefda7ca69565988b2d1221314a1e4ea8/homework/算法设计与分析week11第三次作业_使用模板_100.pdf -------------------------------------------------------------------------------- /homework/算法设计与分析week11第四次作业_使用模板_100.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saltyfishyjk/BUAA-Algorithm/2c2fb45cefda7ca69565988b2d1221314a1e4ea8/homework/算法设计与分析week11第四次作业_使用模板_100.pdf -------------------------------------------------------------------------------- /homework/算法设计与分析week3第一次作业_使用模板_100.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saltyfishyjk/BUAA-Algorithm/2c2fb45cefda7ca69565988b2d1221314a1e4ea8/homework/算法设计与分析week3第一次作业_使用模板_100.pdf -------------------------------------------------------------------------------- /homework/算法设计与分析week7第二次作业_使用模板_100.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saltyfishyjk/BUAA-Algorithm/2c2fb45cefda7ca69565988b2d1221314a1e4ea8/homework/算法设计与分析week7第二次作业_使用模板_100.pdf -------------------------------------------------------------------------------- /homework_template_latex/Algorithm_Homework.aux: -------------------------------------------------------------------------------- 1 | \relax 2 | \providecommand\hyper@newdestlabel[2]{} 3 | \providecommand\babel@aux[2]{} 4 | \@nameuse{bbl@beforestart} 5 | \providecommand\HyperFirstAtBeginDocument{\AtBeginDocument} 6 | \HyperFirstAtBeginDocument{\ifx\hyper@anchor\@undefined 7 | \global\let\oldcontentsline\contentsline 8 | \gdef\contentsline#1#2#3#4{\oldcontentsline{#1}{#2}{#3}} 9 | \global\let\oldnewlabel\newlabel 10 | \gdef\newlabel#1#2{\newlabelxx{#1}#2} 11 | \gdef\newlabelxx#1#2#3#4#5#6{\oldnewlabel{#1}{{#2}{#3}}} 12 | \AtEndDocument{\ifx\hyper@anchor\@undefined 13 | \let\contentsline\oldcontentsline 14 | \let\newlabel\oldnewlabel 15 | \fi} 16 | \fi} 17 | \global\let\hyper@last\relax 18 | \gdef\HyperFirstAtBeginDocument#1{#1} 19 | \providecommand*\HyPL@Entry[1]{} 20 | \HyPL@Entry{0<>} 21 | \providecommand \oddpage@label [2]{} 22 | \babel@aux{english}{} 23 | \@writefile{toc}{\contentsline {section}{\numberline {1}[作业题目1]}{1}{section.1}\protected@file@percent } 24 | \@writefile{toc}{\contentsline {subsection}{\numberline {1.1}[作业题目1.1]}{1}{subsection.1.1}\protected@file@percent } 25 | \@writefile{toc}{\contentsline {subsection}{\numberline {1.2}[作业题目1.2]}{1}{subsection.1.2}\protected@file@percent } 26 | \@writefile{toc}{\contentsline {section}{\numberline {2}[作业题目2]}{1}{section.2}\protected@file@percent } 27 | \@writefile{toc}{\contentsline {subsection}{\numberline {2.1}[作业题目2分析]}{1}{subsection.2.1}\protected@file@percent } 28 | \@writefile{toc}{\contentsline {subsection}{\numberline {2.2}[作业题目2算法与伪代码]}{2}{subsection.2.2}\protected@file@percent } 29 | \@writefile{loa}{\contentsline {algocf}{\numberline {1}{\ignorespaces k路归并问题优化做法}}{2}{algocf.1}\protected@file@percent } 30 | \@writefile{loa}{\contentsline {algocf}{\numberline {2}{\ignorespaces 填数字问题朴素做法}}{3}{algocf.2}\protected@file@percent } 31 | \@writefile{loa}{\contentsline {algocf}{\numberline {3}{\ignorespaces 填数字问题优化做法}}{3}{algocf.3}\protected@file@percent } 32 | \@writefile{toc}{\contentsline {section}{\numberline {3}[附录暨部分算法的实现]}{4}{section.3}\protected@file@percent } 33 | \@writefile{toc}{\contentsline {subsection}{\numberline {3.1}填数字问题朴素做法与测试数据生成}{4}{subsection.3.1}\protected@file@percent } 34 | \@writefile{toc}{\contentsline {subsection}{\numberline {3.2}填数字问题优化做法与自动对拍}{4}{subsection.3.2}\protected@file@percent } 35 | \gdef \@abspage@last{5} 36 | -------------------------------------------------------------------------------- /homework_template_latex/Algorithm_Homework.log: -------------------------------------------------------------------------------- 1 | This is XeTeX, Version 3.141592653-2.6-0.999994 (TeX Live 2022) (preloaded format=xelatex 2022.7.11) 13 OCT 2022 16:02 2 | entering extended mode 3 | restricted \write18 enabled. 4 | %&-line parsing enabled. 5 | **Algorithm_Homework.tex 6 | (./Algorithm_Homework.tex 7 | LaTeX2e <2021-11-15> patch level 1 8 | L3 programming layer <2022-02-24> 9 | (d:/texlive/2022/texmf-dist/tex/latex/base/article.cls 10 | Document Class: article 2021/10/04 v1.4n Standard LaTeX document class 11 | (d:/texlive/2022/texmf-dist/tex/latex/base/size10.clo 12 | File: size10.clo 2021/10/04 v1.4n Standard LaTeX file (size option) 13 | ) 14 | \c@part=\count181 15 | \c@section=\count182 16 | \c@subsection=\count183 17 | \c@subsubsection=\count184 18 | \c@paragraph=\count185 19 | \c@subparagraph=\count186 20 | \c@figure=\count187 21 | \c@table=\count188 22 | \abovecaptionskip=\skip47 23 | \belowcaptionskip=\skip48 24 | \bibindent=\dimen138 25 | ) 26 | (d:/texlive/2022/texmf-dist/tex/generic/babel/babel.sty 27 | Package: babel 2022/02/26 3.73 The Babel package 28 | \babel@savecnt=\count189 29 | \U@D=\dimen139 30 | \l@unhyphenated=\language87 31 | 32 | (d:/texlive/2022/texmf-dist/tex/generic/babel/xebabel.def 33 | (d:/texlive/2022/texmf-dist/tex/generic/babel/txtbabel.def)) 34 | \bbl@readstream=\read2 35 | \bbl@dirlevel=\count190 36 | 37 | (d:/texlive/2022/texmf-dist/tex/generic/babel-english/english.ldf 38 | Language: english 2017/06/06 v3.3r English support from the babel system 39 | Package babel Info: Hyphen rules for 'canadian' set to \l@english 40 | (babel) (\language0). Reported on input line 102. 41 | Package babel Info: Hyphen rules for 'australian' set to \l@ukenglish 42 | (babel) (\language21). Reported on input line 105. 43 | Package babel Info: Hyphen rules for 'newzealand' set to \l@ukenglish 44 | (babel) (\language21). Reported on input line 108. 45 | )) 46 | (d:/texlive/2022/texmf-dist/tex/latex/ctex/ctex.sty 47 | (d:/texlive/2022/texmf-dist/tex/latex/l3kernel/expl3.sty 48 | Package: expl3 2022-02-24 L3 programming layer (loader) 49 | 50 | (d:/texlive/2022/texmf-dist/tex/latex/l3backend/l3backend-xetex.def 51 | File: l3backend-xetex.def 2022-02-07 L3 backend support: XeTeX 52 | 53 | (|extractbb --version) 54 | \c__kernel_sys_dvipdfmx_version_int=\count191 55 | \l__color_backend_stack_int=\count192 56 | \g__color_backend_stack_int=\count193 57 | \g__graphics_track_int=\count194 58 | \l__pdf_internal_box=\box50 59 | \g__pdf_backend_object_int=\count195 60 | \g__pdf_backend_annotation_int=\count196 61 | \g__pdf_backend_link_int=\count197 62 | )) 63 | Package: ctex 2021/12/12 v2.5.8 Chinese adapter in LaTeX (CTEX) 64 | 65 | (d:/texlive/2022/texmf-dist/tex/latex/l3packages/xparse/xparse.sty 66 | Package: xparse 2022-01-12 L3 Experimental document command parser 67 | ) 68 | (d:/texlive/2022/texmf-dist/tex/latex/l3packages/l3keys2e/l3keys2e.sty 69 | Package: l3keys2e 2022-01-12 LaTeX2e option processing using LaTeX3 keys 70 | ) 71 | (d:/texlive/2022/texmf-dist/tex/latex/ctex/ctexhook.sty 72 | Package: ctexhook 2021/12/12 v2.5.8 Document and package hooks (CTEX) 73 | ) 74 | (d:/texlive/2022/texmf-dist/tex/latex/ctex/ctexpatch.sty 75 | Package: ctexpatch 2021/12/12 v2.5.8 Patching commands (CTEX) 76 | ) 77 | (d:/texlive/2022/texmf-dist/tex/latex/base/fix-cm.sty 78 | Package: fix-cm 2020/11/24 v1.1t fixes to LaTeX 79 | 80 | (d:/texlive/2022/texmf-dist/tex/latex/base/ts1enc.def 81 | File: ts1enc.def 2001/06/05 v3.0e (jk/car/fm) Standard LaTeX file 82 | LaTeX Font Info: Redeclaring font encoding TS1 on input line 47. 83 | )) 84 | \l__ctex_tmp_int=\count198 85 | \l__ctex_tmp_box=\box51 86 | \l__ctex_tmp_dim=\dimen140 87 | \g__ctex_section_depth_int=\count199 88 | \g__ctex_font_size_int=\count266 89 | 90 | (d:/texlive/2022/texmf-dist/tex/latex/ctex/config/ctexopts.cfg 91 | File: ctexopts.cfg 2021/12/12 v2.5.8 Option configuration file (CTEX) 92 | ) 93 | (d:/texlive/2022/texmf-dist/tex/latex/ctex/engine/ctex-engine-xetex.def 94 | File: ctex-engine-xetex.def 2021/12/12 v2.5.8 XeLaTeX adapter (CTEX) 95 | 96 | (d:/texlive/2022/texmf-dist/tex/xelatex/xecjk/xeCJK.sty 97 | Package: xeCJK 2021/12/12 v3.8.8 Typesetting CJK scripts with XeLaTeX 98 | 99 | (d:/texlive/2022/texmf-dist/tex/latex/l3packages/xtemplate/xtemplate.sty 100 | Package: xtemplate 2022-01-12 L3 Experimental prototype document functions 101 | \l__xtemplate_tmp_dim=\dimen141 102 | \l__xtemplate_tmp_int=\count267 103 | \l__xtemplate_tmp_muskip=\muskip16 104 | \l__xtemplate_tmp_skip=\skip49 105 | ) 106 | \l__xeCJK_tmp_int=\count268 107 | \l__xeCJK_tmp_box=\box52 108 | \l__xeCJK_tmp_dim=\dimen142 109 | \l__xeCJK_tmp_skip=\skip50 110 | \g__xeCJK_space_factor_int=\count269 111 | \l__xeCJK_begin_int=\count270 112 | \l__xeCJK_end_int=\count271 113 | \c__xeCJK_CJK_class_int=\XeTeXcharclass1 114 | \c__xeCJK_FullLeft_class_int=\XeTeXcharclass2 115 | \c__xeCJK_FullRight_class_int=\XeTeXcharclass3 116 | \c__xeCJK_HalfLeft_class_int=\XeTeXcharclass4 117 | \c__xeCJK_HalfRight_class_int=\XeTeXcharclass5 118 | \c__xeCJK_NormalSpace_class_int=\XeTeXcharclass6 119 | \c__xeCJK_CM_class_int=\XeTeXcharclass7 120 | \c__xeCJK_HangulJamo_class_int=\XeTeXcharclass8 121 | \l__xeCJK_last_skip=\skip51 122 | \g__xeCJK_node_int=\count272 123 | \c__xeCJK_CJK_node_dim=\dimen143 124 | \c__xeCJK_CJK-space_node_dim=\dimen144 125 | \c__xeCJK_default_node_dim=\dimen145 126 | \c__xeCJK_default-space_node_dim=\dimen146 127 | \c__xeCJK_CJK-widow_node_dim=\dimen147 128 | \c__xeCJK_normalspace_node_dim=\dimen148 129 | \l__xeCJK_ccglue_skip=\skip52 130 | \l__xeCJK_ecglue_skip=\skip53 131 | \l__xeCJK_punct_kern_skip=\skip54 132 | \l__xeCJK_last_penalty_int=\count273 133 | \l__xeCJK_last_bound_dim=\dimen149 134 | \l__xeCJK_last_kern_dim=\dimen150 135 | \l__xeCJK_widow_penalty_int=\count274 136 | 137 | Package xtemplate Info: Declaring object type 'xeCJK/punctuation' taking 0 138 | (xtemplate) argument(s) on line 2337. 139 | 140 | \l__xeCJK_fixed_punct_width_dim=\dimen151 141 | \l__xeCJK_mixed_punct_width_dim=\dimen152 142 | \l__xeCJK_middle_punct_width_dim=\dimen153 143 | \l__xeCJK_fixed_margin_width_dim=\dimen154 144 | \l__xeCJK_mixed_margin_width_dim=\dimen155 145 | \l__xeCJK_middle_margin_width_dim=\dimen156 146 | \l__xeCJK_bound_punct_width_dim=\dimen157 147 | \l__xeCJK_bound_margin_width_dim=\dimen158 148 | \l__xeCJK_margin_minimum_dim=\dimen159 149 | \l__xeCJK_kerning_total_width_dim=\dimen160 150 | \l__xeCJK_same_align_margin_dim=\dimen161 151 | \l__xeCJK_different_align_margin_dim=\dimen162 152 | \l__xeCJK_kerning_margin_width_dim=\dimen163 153 | \l__xeCJK_kerning_margin_minimum_dim=\dimen164 154 | \l__xeCJK_bound_dim=\dimen165 155 | \l__xeCJK_reverse_bound_dim=\dimen166 156 | \l__xeCJK_margin_dim=\dimen167 157 | \l__xeCJK_minimum_bound_dim=\dimen168 158 | \l__xeCJK_kerning_margin_dim=\dimen169 159 | \g__xeCJK_family_int=\count275 160 | \l__xeCJK_fam_int=\count276 161 | \g__xeCJK_fam_allocation_int=\count277 162 | \l__xeCJK_verb_case_int=\count278 163 | \l__xeCJK_verb_exspace_skip=\skip55 164 | 165 | (d:/texlive/2022/texmf-dist/tex/latex/fontspec/fontspec.sty 166 | Package: fontspec 2022/01/15 v2.8a Font selection for XeLaTeX and LuaLaTeX 167 | 168 | (d:/texlive/2022/texmf-dist/tex/latex/fontspec/fontspec-xetex.sty 169 | Package: fontspec-xetex 2022/01/15 v2.8a Font selection for XeLaTeX and LuaLaTe 170 | X 171 | \l__fontspec_script_int=\count279 172 | \l__fontspec_language_int=\count280 173 | \l__fontspec_strnum_int=\count281 174 | \l__fontspec_tmp_int=\count282 175 | \l__fontspec_tmpa_int=\count283 176 | \l__fontspec_tmpb_int=\count284 177 | \l__fontspec_tmpc_int=\count285 178 | \l__fontspec_em_int=\count286 179 | \l__fontspec_emdef_int=\count287 180 | \l__fontspec_strong_int=\count288 181 | \l__fontspec_strongdef_int=\count289 182 | \l__fontspec_tmpa_dim=\dimen170 183 | \l__fontspec_tmpb_dim=\dimen171 184 | \l__fontspec_tmpc_dim=\dimen172 185 | 186 | (d:/texlive/2022/texmf-dist/tex/latex/base/fontenc.sty 187 | Package: fontenc 2021/04/29 v2.0v Standard LaTeX package 188 | ) 189 | (d:/texlive/2022/texmf-dist/tex/latex/fontspec/fontspec.cfg))) 190 | (d:/texlive/2022/texmf-dist/tex/xelatex/xecjk/xeCJK.cfg 191 | File: xeCJK.cfg 2021/12/12 v3.8.8 Configuration file for xeCJK package 192 | )) 193 | \ccwd=\dimen173 194 | \l__ctex_ccglue_skip=\skip56 195 | ) 196 | \l__ctex_ziju_dim=\dimen174 197 | 198 | (d:/texlive/2022/texmf-dist/tex/latex/zhnumber/zhnumber.sty 199 | Package: zhnumber 2020/05/01 v2.8 Typesetting numbers with Chinese glyphs 200 | \l__zhnum_scale_int=\count290 201 | 202 | (d:/texlive/2022/texmf-dist/tex/latex/zhnumber/zhnumber-utf8.cfg 203 | File: zhnumber-utf8.cfg 2020/05/01 v2.8 Chinese numerals with UTF8 encoding 204 | )) 205 | (d:/texlive/2022/texmf-dist/tex/latex/ctex/scheme/ctex-scheme-chinese.def 206 | File: ctex-scheme-chinese.def 2021/12/12 v2.5.8 Chinese scheme for generic (CTE 207 | X) 208 | 209 | (d:/texlive/2022/texmf-dist/tex/latex/ctex/config/ctex-name-utf8.cfg 210 | File: ctex-name-utf8.cfg 2021/12/12 v2.5.8 Caption with encoding UTF-8 (CTEX) 211 | )) 212 | (d:/texlive/2022/texmf-dist/tex/latex/tools/indentfirst.sty 213 | Package: indentfirst 1995/11/23 v1.03 Indent first paragraph (DPC) 214 | ) 215 | (d:/texlive/2022/texmf-dist/tex/latex/ctex/ctex-c5size.clo 216 | File: ctex-c5size.clo 2021/12/12 v2.5.8 c5size option (CTEX) 217 | ) 218 | (d:/texlive/2022/texmf-dist/tex/latex/ctex/fontset/ctex-fontset-windows.def 219 | File: ctex-fontset-windows.def 2021/12/12 v2.5.8 Windows fonts definition (CTEX 220 | ) 221 | 222 | Package fontspec Info: Could not resolve font "KaiTi/B" (it probably doesn't 223 | (fontspec) exist). 224 | 225 | 226 | Package fontspec Info: Could not resolve font "SimHei/I" (it probably doesn't 227 | (fontspec) exist). 228 | 229 | 230 | Package fontspec Info: Could not resolve font "SimSun/BI" (it probably doesn't 231 | (fontspec) exist). 232 | 233 | 234 | Package fontspec Info: Font family 'SimSun(0)' created for font 'SimSun' with 235 | (fontspec) options 236 | (fontspec) [Script={CJK},BoldFont={SimHei},ItalicFont={KaiTi}]. 237 | (fontspec) 238 | (fontspec) This font family consists of the following NFSS 239 | (fontspec) series/shapes: 240 | (fontspec) 241 | (fontspec) - 'normal' (m/n) with NFSS spec.: 242 | (fontspec) <->"SimSun/OT:script=hani;language=dflt;" 243 | (fontspec) - 'small caps' (m/sc) with NFSS spec.: 244 | (fontspec) - 'bold' (b/n) with NFSS spec.: 245 | (fontspec) <->"SimHei/OT:script=hani;language=dflt;" 246 | (fontspec) - 'bold small caps' (b/sc) with NFSS spec.: 247 | (fontspec) - 'italic' (m/it) with NFSS spec.: 248 | (fontspec) <->"KaiTi/OT:script=hani;language=dflt;" 249 | (fontspec) - 'italic small caps' (m/scit) with NFSS spec.: 250 | 251 | )) 252 | (d:/texlive/2022/texmf-dist/tex/latex/ctex/config/ctex.cfg 253 | File: ctex.cfg 2021/12/12 v2.5.8 Configuration file (CTEX) 254 | ) 255 | (d:/texlive/2022/texmf-dist/tex/latex/geometry/geometry.sty 256 | Package: geometry 2020/01/02 v5.9 Page Geometry 257 | 258 | (d:/texlive/2022/texmf-dist/tex/latex/graphics/keyval.sty 259 | Package: keyval 2014/10/28 v1.15 key=value parser (DPC) 260 | \KV@toks@=\toks16 261 | ) 262 | (d:/texlive/2022/texmf-dist/tex/generic/iftex/ifvtex.sty 263 | Package: ifvtex 2019/10/25 v1.7 ifvtex legacy package. Use iftex instead. 264 | 265 | (d:/texlive/2022/texmf-dist/tex/generic/iftex/iftex.sty 266 | Package: iftex 2022/02/03 v1.0f TeX engine tests 267 | )) 268 | \Gm@cnth=\count291 269 | \Gm@cntv=\count292 270 | \c@Gm@tempcnt=\count293 271 | \Gm@bindingoffset=\dimen175 272 | \Gm@wd@mp=\dimen176 273 | \Gm@odd@mp=\dimen177 274 | \Gm@even@mp=\dimen178 275 | \Gm@layoutwidth=\dimen179 276 | \Gm@layoutheight=\dimen180 277 | \Gm@layouthoffset=\dimen181 278 | \Gm@layoutvoffset=\dimen182 279 | \Gm@dimlist=\toks17 280 | ) 281 | (d:/texlive/2022/texmf-dist/tex/latex/amsmath/amsmath.sty 282 | Package: amsmath 2021/10/15 v2.17l AMS math features 283 | \@mathmargin=\skip57 284 | 285 | For additional information on amsmath, use the `?' option. 286 | (d:/texlive/2022/texmf-dist/tex/latex/amsmath/amstext.sty 287 | Package: amstext 2021/08/26 v2.01 AMS text 288 | 289 | (d:/texlive/2022/texmf-dist/tex/latex/amsmath/amsgen.sty 290 | File: amsgen.sty 1999/11/30 v2.0 generic functions 291 | \@emptytoks=\toks18 292 | \ex@=\dimen183 293 | )) 294 | (d:/texlive/2022/texmf-dist/tex/latex/amsmath/amsbsy.sty 295 | Package: amsbsy 1999/11/29 v1.2d Bold Symbols 296 | \pmbraise@=\dimen184 297 | ) 298 | (d:/texlive/2022/texmf-dist/tex/latex/amsmath/amsopn.sty 299 | Package: amsopn 2021/08/26 v2.02 operator names 300 | ) 301 | \inf@bad=\count294 302 | LaTeX Info: Redefining \frac on input line 234. 303 | \uproot@=\count295 304 | \leftroot@=\count296 305 | LaTeX Info: Redefining \overline on input line 399. 306 | \classnum@=\count297 307 | \DOTSCASE@=\count298 308 | LaTeX Info: Redefining \ldots on input line 496. 309 | LaTeX Info: Redefining \dots on input line 499. 310 | LaTeX Info: Redefining \cdots on input line 620. 311 | \Mathstrutbox@=\box53 312 | \strutbox@=\box54 313 | \big@size=\dimen185 314 | LaTeX Font Info: Redeclaring font encoding OML on input line 743. 315 | LaTeX Font Info: Redeclaring font encoding OMS on input line 744. 316 | \macc@depth=\count299 317 | \c@MaxMatrixCols=\count300 318 | \dotsspace@=\muskip17 319 | \c@parentequation=\count301 320 | \dspbrk@lvl=\count302 321 | \tag@help=\toks19 322 | \row@=\count303 323 | \column@=\count304 324 | \maxfields@=\count305 325 | \andhelp@=\toks20 326 | \eqnshift@=\dimen186 327 | \alignsep@=\dimen187 328 | \tagshift@=\dimen188 329 | \tagwidth@=\dimen189 330 | \totwidth@=\dimen190 331 | \lineht@=\dimen191 332 | \@envbody=\toks21 333 | \multlinegap=\skip58 334 | \multlinetaggap=\skip59 335 | \mathdisplay@stack=\toks22 336 | LaTeX Info: Redefining \[ on input line 2938. 337 | LaTeX Info: Redefining \] on input line 2939. 338 | ) 339 | (d:/texlive/2022/texmf-dist/tex/latex/amsfonts/amssymb.sty 340 | Package: amssymb 2013/01/14 v3.01 AMS font symbols 341 | 342 | (d:/texlive/2022/texmf-dist/tex/latex/amsfonts/amsfonts.sty 343 | Package: amsfonts 2013/01/14 v3.01 Basic AMSFonts support 344 | \symAMSa=\mathgroup4 345 | \symAMSb=\mathgroup5 346 | LaTeX Font Info: Redeclaring math symbol \hbar on input line 98. 347 | LaTeX Font Info: Overwriting math alphabet `\mathfrak' in version `bold' 348 | (Font) U/euf/m/n --> U/euf/b/n on input line 106. 349 | )) 350 | (d:/texlive/2022/texmf-dist/tex/latex/graphics/graphicx.sty 351 | Package: graphicx 2021/09/16 v1.2d Enhanced LaTeX Graphics (DPC,SPQR) 352 | 353 | (d:/texlive/2022/texmf-dist/tex/latex/graphics/graphics.sty 354 | Package: graphics 2021/03/04 v1.4d Standard LaTeX Graphics (DPC,SPQR) 355 | 356 | (d:/texlive/2022/texmf-dist/tex/latex/graphics/trig.sty 357 | Package: trig 2021/08/11 v1.11 sin cos tan (DPC) 358 | ) 359 | (d:/texlive/2022/texmf-dist/tex/latex/graphics-cfg/graphics.cfg 360 | File: graphics.cfg 2016/06/04 v1.11 sample graphics configuration 361 | ) 362 | Package graphics Info: Driver file: xetex.def on input line 107. 363 | 364 | (d:/texlive/2022/texmf-dist/tex/latex/graphics-def/xetex.def 365 | File: xetex.def 2021/03/18 v5.0k Graphics/color driver for xetex 366 | )) 367 | \Gin@req@height=\dimen192 368 | \Gin@req@width=\dimen193 369 | ) 370 | (d:/texlive/2022/texmf-dist/tex/latex/listings/listings.sty 371 | \lst@mode=\count306 372 | \lst@gtempboxa=\box55 373 | \lst@token=\toks23 374 | \lst@length=\count307 375 | \lst@currlwidth=\dimen194 376 | \lst@column=\count308 377 | \lst@pos=\count309 378 | \lst@lostspace=\dimen195 379 | \lst@width=\dimen196 380 | \lst@newlines=\count310 381 | \lst@lineno=\count311 382 | \lst@maxwidth=\dimen197 383 | 384 | (d:/texlive/2022/texmf-dist/tex/latex/listings/lstmisc.sty 385 | File: lstmisc.sty 2020/03/24 1.8d (Carsten Heinz) 386 | \c@lstnumber=\count312 387 | \lst@skipnumbers=\count313 388 | \lst@framebox=\box56 389 | ) 390 | (d:/texlive/2022/texmf-dist/tex/latex/listings/listings.cfg 391 | File: listings.cfg 2020/03/24 1.8d listings configuration 392 | )) 393 | Package: listings 2020/03/24 1.8d (Carsten Heinz) 394 | 395 | (d:/texlive/2022/texmf-dist/tex/xelatex/xecjk/xeCJK-listings.sty 396 | Package: xeCJK-listings 2021/12/12 v3.8.8 xeCJK patch file for listings 397 | \l__xeCJK_listings_max_char_int=\count314 398 | \l__xeCJK_listings_flag_int=\count315 399 | ) 400 | (d:/texlive/2022/texmf-dist/tex/latex/algorithm2e/algorithm2e.sty 401 | Invalid UTF-8 byte or sequence at line 284 replaced by U+FFFD. 402 | Invalid UTF-8 byte or sequence at line 299 replaced by U+FFFD. 403 | Invalid UTF-8 byte or sequence at line 550 replaced by U+FFFD. 404 | Package: algorithm2e 2017/07/18 v5.2 algorithms environments 405 | \c@AlgoLine=\count316 406 | 407 | (d:/texlive/2022/texmf-dist/tex/latex/base/ifthen.sty 408 | Package: ifthen 2020/11/24 v1.1c Standard LaTeX ifthen package (DPC) 409 | ) 410 | \algocf@hangindent=\skip60 411 | 412 | (d:/texlive/2022/texmf-dist/tex/latex/ifoddpage/ifoddpage.sty 413 | Package: ifoddpage 2016/04/23 v1.1 Conditionals for odd/even page detection 414 | \c@checkoddpage=\count317 415 | ) 416 | (d:/texlive/2022/texmf-dist/tex/latex/tools/xspace.sty 417 | Package: xspace 2014/10/28 v1.13 Space after command names (DPC,MH) 418 | ) 419 | (d:/texlive/2022/texmf-dist/tex/latex/relsize/relsize.sty 420 | Package: relsize 2013/03/29 ver 4.1 421 | ) 422 | \skiptotal=\skip61 423 | \skiplinenumber=\skip62 424 | \skiprule=\skip63 425 | \skiphlne=\skip64 426 | \skiptext=\skip65 427 | \skiplength=\skip66 428 | \algomargin=\skip67 429 | \skipalgocfslide=\skip68 430 | \algowidth=\dimen198 431 | \inoutsize=\dimen199 432 | \inoutindent=\dimen256 433 | \interspacetitleruled=\dimen257 434 | \interspacealgoruled=\dimen258 435 | \interspacetitleboxruled=\dimen259 436 | \algocf@ruledwidth=\skip69 437 | \algocf@inoutbox=\box57 438 | \algocf@inputbox=\box58 439 | \AlCapSkip=\skip70 440 | \AlCapHSkip=\skip71 441 | \algoskipindent=\skip72 442 | \algocf@nlbox=\box59 443 | \algocf@hangingbox=\box60 444 | \algocf@untilbox=\box61 445 | \algocf@skipuntil=\skip73 446 | \algocf@capbox=\box62 447 | \algocf@lcaptionbox=\skip74 448 | \algoheightruledefault=\skip75 449 | \algoheightrule=\skip76 450 | \algotitleheightruledefault=\skip77 451 | \algotitleheightrule=\skip78 452 | \c@algocfline=\count318 453 | \c@algocfproc=\count319 454 | \c@algocf=\count320 455 | \algocf@algoframe=\box63 456 | \algocf@algobox=\box64 457 | ) 458 | (d:/texlive/2022/texmf-dist/tex/latex/hyperref/hyperref.sty 459 | Package: hyperref 2022-02-21 v7.00n Hypertext links for LaTeX 460 | 461 | (d:/texlive/2022/texmf-dist/tex/generic/ltxcmds/ltxcmds.sty 462 | Package: ltxcmds 2020-05-10 v1.25 LaTeX kernel commands for general use (HO) 463 | ) 464 | (d:/texlive/2022/texmf-dist/tex/generic/pdftexcmds/pdftexcmds.sty 465 | Package: pdftexcmds 2020-06-27 v0.33 Utility functions of pdfTeX for LuaTeX (HO 466 | ) 467 | 468 | (d:/texlive/2022/texmf-dist/tex/generic/infwarerr/infwarerr.sty 469 | Package: infwarerr 2019/12/03 v1.5 Providing info/warning/error messages (HO) 470 | ) 471 | Package pdftexcmds Info: \pdf@primitive is available. 472 | Package pdftexcmds Info: \pdf@ifprimitive is available. 473 | Package pdftexcmds Info: \pdfdraftmode not found. 474 | ) 475 | (d:/texlive/2022/texmf-dist/tex/generic/kvsetkeys/kvsetkeys.sty 476 | Package: kvsetkeys 2019/12/15 v1.18 Key value parser (HO) 477 | ) 478 | (d:/texlive/2022/texmf-dist/tex/generic/kvdefinekeys/kvdefinekeys.sty 479 | Package: kvdefinekeys 2019-12-19 v1.6 Define keys (HO) 480 | ) 481 | (d:/texlive/2022/texmf-dist/tex/generic/pdfescape/pdfescape.sty 482 | Package: pdfescape 2019/12/09 v1.15 Implements pdfTeX's escape features (HO) 483 | ) 484 | (d:/texlive/2022/texmf-dist/tex/latex/hycolor/hycolor.sty 485 | Package: hycolor 2020-01-27 v1.10 Color options for hyperref/bookmark (HO) 486 | ) 487 | (d:/texlive/2022/texmf-dist/tex/latex/letltxmacro/letltxmacro.sty 488 | Package: letltxmacro 2019/12/03 v1.6 Let assignment for LaTeX macros (HO) 489 | ) 490 | (d:/texlive/2022/texmf-dist/tex/latex/auxhook/auxhook.sty 491 | Package: auxhook 2019-12-17 v1.6 Hooks for auxiliary files (HO) 492 | ) 493 | (d:/texlive/2022/texmf-dist/tex/latex/kvoptions/kvoptions.sty 494 | Package: kvoptions 2020-10-07 v3.14 Key value format for package options (HO) 495 | ) 496 | \@linkdim=\dimen260 497 | \Hy@linkcounter=\count321 498 | \Hy@pagecounter=\count322 499 | 500 | (d:/texlive/2022/texmf-dist/tex/latex/hyperref/pd1enc.def 501 | File: pd1enc.def 2022-02-21 v7.00n Hyperref: PDFDocEncoding definition (HO) 502 | ) 503 | (d:/texlive/2022/texmf-dist/tex/generic/intcalc/intcalc.sty 504 | Package: intcalc 2019/12/15 v1.3 Expandable calculations with integers (HO) 505 | ) 506 | (d:/texlive/2022/texmf-dist/tex/generic/etexcmds/etexcmds.sty 507 | Package: etexcmds 2019/12/15 v1.7 Avoid name clashes with e-TeX commands (HO) 508 | ) 509 | \Hy@SavedSpaceFactor=\count323 510 | 511 | (d:/texlive/2022/texmf-dist/tex/latex/hyperref/puenc.def 512 | File: puenc.def 2022-02-21 v7.00n Hyperref: PDF Unicode definition (HO) 513 | ) 514 | Package hyperref Info: Option `unicode' set `true' on input line 4018. 515 | Package hyperref Info: Option `colorlinks' set `true' on input line 4018. 516 | Package hyperref Info: Hyper figures OFF on input line 4137. 517 | Package hyperref Info: Link nesting OFF on input line 4142. 518 | Package hyperref Info: Hyper index ON on input line 4145. 519 | Package hyperref Info: Plain pages OFF on input line 4152. 520 | Package hyperref Info: Backreferencing OFF on input line 4157. 521 | Package hyperref Info: Implicit mode ON; LaTeX internals redefined. 522 | Package hyperref Info: Bookmarks ON on input line 4390. 523 | \c@Hy@tempcnt=\count324 524 | 525 | (d:/texlive/2022/texmf-dist/tex/latex/url/url.sty 526 | \Urlmuskip=\muskip18 527 | Package: url 2013/09/16 ver 3.4 Verb mode for urls, etc. 528 | ) 529 | LaTeX Info: Redefining \url on input line 4749. 530 | \XeTeXLinkMargin=\dimen261 531 | 532 | (d:/texlive/2022/texmf-dist/tex/generic/bitset/bitset.sty 533 | Package: bitset 2019/12/09 v1.3 Handle bit-vector datatype (HO) 534 | 535 | (d:/texlive/2022/texmf-dist/tex/generic/bigintcalc/bigintcalc.sty 536 | Package: bigintcalc 2019/12/15 v1.5 Expandable calculations on big integers (HO 537 | ) 538 | )) 539 | \Fld@menulength=\count325 540 | \Field@Width=\dimen262 541 | \Fld@charsize=\dimen263 542 | Package hyperref Info: Hyper figures OFF on input line 6027. 543 | Package hyperref Info: Link nesting OFF on input line 6032. 544 | Package hyperref Info: Hyper index ON on input line 6035. 545 | Package hyperref Info: backreferencing OFF on input line 6042. 546 | Package hyperref Info: Link coloring ON on input line 6045. 547 | Package hyperref Info: Link coloring with OCG OFF on input line 6052. 548 | Package hyperref Info: PDF/A mode OFF on input line 6057. 549 | LaTeX Info: Redefining \ref on input line 6097. 550 | LaTeX Info: Redefining \pageref on input line 6101. 551 | 552 | (d:/texlive/2022/texmf-dist/tex/latex/base/atbegshi-ltx.sty 553 | Package: atbegshi-ltx 2021/01/10 v1.0c Emulation of the original atbegshi 554 | package with kernel methods 555 | ) 556 | \Hy@abspage=\count326 557 | \c@Item=\count327 558 | \c@Hfootnote=\count328 559 | ) 560 | Package hyperref Info: Driver (autodetected): hxetex. 561 | 562 | (d:/texlive/2022/texmf-dist/tex/latex/hyperref/hxetex.def 563 | File: hxetex.def 2022-02-21 v7.00n Hyperref driver for XeTeX 564 | 565 | (d:/texlive/2022/texmf-dist/tex/generic/stringenc/stringenc.sty 566 | Package: stringenc 2019/11/29 v1.12 Convert strings between diff. encodings (HO 567 | ) 568 | ) 569 | \pdfm@box=\box65 570 | \c@Hy@AnnotLevel=\count329 571 | \HyField@AnnotCount=\count330 572 | \Fld@listcount=\count331 573 | \c@bookmark@seq@number=\count332 574 | 575 | (d:/texlive/2022/texmf-dist/tex/latex/rerunfilecheck/rerunfilecheck.sty 576 | Package: rerunfilecheck 2019/12/05 v1.9 Rerun checks for auxiliary files (HO) 577 | 578 | (d:/texlive/2022/texmf-dist/tex/latex/base/atveryend-ltx.sty 579 | Package: atveryend-ltx 2020/08/19 v1.0a Emulation of the original atveryend pac 580 | kage 581 | with kernel methods 582 | ) 583 | (d:/texlive/2022/texmf-dist/tex/generic/uniquecounter/uniquecounter.sty 584 | Package: uniquecounter 2019/12/15 v1.4 Provide unlimited unique counter (HO) 585 | ) 586 | Package uniquecounter Info: New unique counter `rerunfilecheck' on input line 2 587 | 86. 588 | ) 589 | \Hy@SectionHShift=\skip79 590 | ) 591 | No file Algorithm_Homework.aux. 592 | \openout1 = `Algorithm_Homework.aux'. 593 | 594 | LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 34. 595 | LaTeX Font Info: ... okay on input line 34. 596 | LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 34. 597 | LaTeX Font Info: ... okay on input line 34. 598 | LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 34. 599 | LaTeX Font Info: ... okay on input line 34. 600 | LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 34. 601 | LaTeX Font Info: ... okay on input line 34. 602 | LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line 34. 603 | LaTeX Font Info: ... okay on input line 34. 604 | LaTeX Font Info: Checking defaults for TU/lmr/m/n on input line 34. 605 | LaTeX Font Info: ... okay on input line 34. 606 | LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 34. 607 | LaTeX Font Info: ... okay on input line 34. 608 | LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 34. 609 | LaTeX Font Info: ... okay on input line 34. 610 | LaTeX Font Info: Checking defaults for PD1/pdf/m/n on input line 34. 611 | LaTeX Font Info: ... okay on input line 34. 612 | LaTeX Font Info: Checking defaults for PU/pdf/m/n on input line 34. 613 | LaTeX Font Info: ... okay on input line 34. 614 | 615 | Package fontspec Info: Adjusting the maths setup (use [no-math] to avoid 616 | (fontspec) this). 617 | 618 | \symlegacymaths=\mathgroup6 619 | LaTeX Font Info: Overwriting symbol font `legacymaths' in version `bold' 620 | (Font) OT1/cmr/m/n --> OT1/cmr/bx/n on input line 34. 621 | LaTeX Font Info: Redeclaring math accent \acute on input line 34. 622 | LaTeX Font Info: Redeclaring math accent \grave on input line 34. 623 | LaTeX Font Info: Redeclaring math accent \ddot on input line 34. 624 | LaTeX Font Info: Redeclaring math accent \tilde on input line 34. 625 | LaTeX Font Info: Redeclaring math accent \bar on input line 34. 626 | LaTeX Font Info: Redeclaring math accent \breve on input line 34. 627 | LaTeX Font Info: Redeclaring math accent \check on input line 34. 628 | LaTeX Font Info: Redeclaring math accent \hat on input line 34. 629 | LaTeX Font Info: Redeclaring math accent \dot on input line 34. 630 | LaTeX Font Info: Redeclaring math accent \mathring on input line 34. 631 | LaTeX Font Info: Redeclaring math symbol \Gamma on input line 34. 632 | LaTeX Font Info: Redeclaring math symbol \Delta on input line 34. 633 | LaTeX Font Info: Redeclaring math symbol \Theta on input line 34. 634 | LaTeX Font Info: Redeclaring math symbol \Lambda on input line 34. 635 | LaTeX Font Info: Redeclaring math symbol \Xi on input line 34. 636 | LaTeX Font Info: Redeclaring math symbol \Pi on input line 34. 637 | LaTeX Font Info: Redeclaring math symbol \Sigma on input line 34. 638 | LaTeX Font Info: Redeclaring math symbol \Upsilon on input line 34. 639 | LaTeX Font Info: Redeclaring math symbol \Phi on input line 34. 640 | LaTeX Font Info: Redeclaring math symbol \Psi on input line 34. 641 | LaTeX Font Info: Redeclaring math symbol \Omega on input line 34. 642 | LaTeX Font Info: Redeclaring math symbol \mathdollar on input line 34. 643 | LaTeX Font Info: Redeclaring symbol font `operators' on input line 34. 644 | LaTeX Font Info: Encoding `OT1' has changed to `TU' for symbol font 645 | (Font) `operators' in the math version `normal' on input line 34. 646 | LaTeX Font Info: Overwriting symbol font `operators' in version `normal' 647 | (Font) OT1/cmr/m/n --> TU/lmr/m/n on input line 34. 648 | LaTeX Font Info: Encoding `OT1' has changed to `TU' for symbol font 649 | (Font) `operators' in the math version `bold' on input line 34. 650 | LaTeX Font Info: Overwriting symbol font `operators' in version `bold' 651 | (Font) OT1/cmr/bx/n --> TU/lmr/m/n on input line 34. 652 | LaTeX Font Info: Overwriting symbol font `operators' in version `normal' 653 | (Font) TU/lmr/m/n --> TU/lmr/m/n on input line 34. 654 | LaTeX Font Info: Overwriting math alphabet `\mathit' in version `normal' 655 | (Font) OT1/cmr/m/it --> TU/lmr/m/it on input line 34. 656 | LaTeX Font Info: Overwriting math alphabet `\mathbf' in version `normal' 657 | (Font) OT1/cmr/bx/n --> TU/lmr/b/n on input line 34. 658 | LaTeX Font Info: Overwriting math alphabet `\mathsf' in version `normal' 659 | (Font) OT1/cmss/m/n --> TU/lmss/m/n on input line 34. 660 | LaTeX Font Info: Overwriting math alphabet `\mathtt' in version `normal' 661 | (Font) OT1/cmtt/m/n --> TU/lmtt/m/n on input line 34. 662 | LaTeX Font Info: Overwriting symbol font `operators' in version `bold' 663 | (Font) TU/lmr/m/n --> TU/lmr/b/n on input line 34. 664 | LaTeX Font Info: Overwriting math alphabet `\mathit' in version `bold' 665 | (Font) OT1/cmr/bx/it --> TU/lmr/b/it on input line 34. 666 | LaTeX Font Info: Overwriting math alphabet `\mathsf' in version `bold' 667 | (Font) OT1/cmss/bx/n --> TU/lmss/b/n on input line 34. 668 | LaTeX Font Info: Overwriting math alphabet `\mathtt' in version `bold' 669 | (Font) OT1/cmtt/m/n --> TU/lmtt/b/n on input line 34. 670 | *geometry* driver: auto-detecting 671 | *geometry* detected driver: xetex 672 | *geometry* verbose mode - [ preamble ] result: 673 | * driver: xetex 674 | * paper: a4paper 675 | * layout: 676 | * layoutoffset:(h,v)=(0.0pt,0.0pt) 677 | * modes: 678 | * h-part:(L,W,R)=(56.9055pt, 483.69687pt, 56.9055pt) 679 | * v-part:(T,H,B)=(42.67912pt, 759.6886pt, 42.67912pt) 680 | * \paperwidth=597.50787pt 681 | * \paperheight=845.04684pt 682 | * \textwidth=483.69687pt 683 | * \textheight=759.6886pt 684 | * \oddsidemargin=-15.36449pt 685 | * \evensidemargin=-15.36449pt 686 | * \topmargin=-66.59087pt 687 | * \headheight=12.0pt 688 | * \headsep=25.0pt 689 | * \topskip=10.0pt 690 | * \footskip=30.0pt 691 | * \marginparwidth=49.79231pt 692 | * \marginparsep=11.0pt 693 | * \columnsep=10.0pt 694 | * \skip\footins=9.0pt plus 4.0pt minus 2.0pt 695 | * \hoffset=0.0pt 696 | * \voffset=0.0pt 697 | * \mag=1000 698 | * \@twocolumnfalse 699 | * \@twosidefalse 700 | * \@mparswitchfalse 701 | * \@reversemarginfalse 702 | * (1in=72.27pt=25.4mm, 1cm=28.453pt) 703 | 704 | \c@lstlisting=\count333 705 | (d:/texlive/2022/texmf-dist/tex/latex/graphics/color.sty 706 | Package: color 2021/12/07 v1.3c Standard LaTeX Color (DPC) 707 | 708 | (d:/texlive/2022/texmf-dist/tex/latex/graphics-cfg/color.cfg 709 | File: color.cfg 2016/01/02 v1.6 sample color configuration 710 | ) 711 | Package color Info: Driver file: xetex.def on input line 149. 712 | ) 713 | Package hyperref Info: Link coloring ON on input line 34. 714 | 715 | (d:/texlive/2022/texmf-dist/tex/latex/hyperref/nameref.sty 716 | Package: nameref 2021-04-02 v2.47 Cross-referencing by name of section 717 | 718 | (d:/texlive/2022/texmf-dist/tex/latex/refcount/refcount.sty 719 | Package: refcount 2019/12/15 v3.6 Data extraction from label references (HO) 720 | ) 721 | (d:/texlive/2022/texmf-dist/tex/generic/gettitlestring/gettitlestring.sty 722 | Package: gettitlestring 2019/12/15 v1.6 Cleanup title references (HO) 723 | ) 724 | \c@section@level=\count334 725 | ) 726 | LaTeX Info: Redefining \ref on input line 34. 727 | LaTeX Info: Redefining \pageref on input line 34. 728 | LaTeX Info: Redefining \nameref on input line 34. 729 | \@outlinefile=\write3 730 | \openout3 = `Algorithm_Homework.out'. 731 | 732 | 733 | 734 | Package hyperref Warning: Rerun to get /PageLabels entry. 735 | 736 | 737 | Package fontspec Info: Could not resolve font "SimHei/BI" (it probably doesn't 738 | (fontspec) exist). 739 | 740 | 741 | Package fontspec Info: Could not resolve font "SimHei/B" (it probably doesn't 742 | (fontspec) exist). 743 | 744 | 745 | Package fontspec Info: Could not resolve font "SimHei/I" (it probably doesn't 746 | (fontspec) exist). 747 | 748 | 749 | Package fontspec Info: Font family 'SimHei(0)' created for font 'SimHei' with 750 | (fontspec) options [Script={CJK}]. 751 | (fontspec) 752 | (fontspec) This font family consists of the following NFSS 753 | (fontspec) series/shapes: 754 | (fontspec) 755 | (fontspec) - 'normal' (m/n) with NFSS spec.: 756 | (fontspec) <->"SimHei/OT:script=hani;language=dflt;" 757 | (fontspec) - 'small caps' (m/sc) with NFSS spec.: 758 | 759 | LaTeX Font Info: Trying to load font information for U+msa on input line 36. 760 | 761 | (d:/texlive/2022/texmf-dist/tex/latex/amsfonts/umsa.fd 762 | File: umsa.fd 2013/01/14 v3.01 AMS symbols A 763 | ) 764 | LaTeX Font Info: Trying to load font information for U+msb on input line 36. 765 | 766 | 767 | (d:/texlive/2022/texmf-dist/tex/latex/amsfonts/umsb.fd 768 | File: umsb.fd 2013/01/14 v3.01 AMS symbols B 769 | ) [1 770 | 771 | ] [2] 772 | (d:/texlive/2022/texmf-dist/tex/latex/listings/lstlang1.sty 773 | File: lstlang1.sty 2020/03/24 1.8d listings language file 774 | ) 775 | (d:/texlive/2022/texmf-dist/tex/latex/listings/lstlang1.sty 776 | File: lstlang1.sty 2020/03/24 1.8d listings language file 777 | ) 778 | (d:/texlive/2022/texmf-dist/tex/latex/listings/lstmisc.sty 779 | File: lstmisc.sty 2020/03/24 1.8d (Carsten Heinz) 780 | ) [3] [4] [5] 781 | (./Algorithm_Homework.aux) 782 | 783 | Package rerunfilecheck Warning: File `Algorithm_Homework.out' has changed. 784 | (rerunfilecheck) Rerun to get outlines right 785 | (rerunfilecheck) or use package `bookmark'. 786 | 787 | Package rerunfilecheck Info: Checksums for `Algorithm_Homework.out': 788 | (rerunfilecheck) Before: 789 | (rerunfilecheck) After: 1FF3908EA230A0DFB45CB2D94511E1E6;1167. 790 | ) 791 | Here is how much of TeX's memory you used: 792 | 18652 strings out of 476179 793 | 381082 string characters out of 5813072 794 | 1219243 words of memory out of 5000000 795 | 39115 multiletter control sequences out of 15000+600000 796 | 479017 words of font info for 95 fonts, out of 8000000 for 9000 797 | 1348 hyphenation exceptions out of 8191 798 | 89i,19n,97p,357b,1764s stack positions out of 10000i,1000n,20000p,200000b,200000s 799 | 800 | Output written on Algorithm_Homework.pdf (5 pages). 801 | -------------------------------------------------------------------------------- /homework_template_latex/Algorithm_Homework.out: -------------------------------------------------------------------------------- 1 | \BOOKMARK [1][-]{section.1}{\376\377\000[\117\134\116\032\230\230\166\356\0001\000]}{}% 1 2 | \BOOKMARK [2][-]{subsection.1.1}{\376\377\000[\117\134\116\032\230\230\166\356\0001\000.\0001\000]}{section.1}% 2 3 | \BOOKMARK [2][-]{subsection.1.2}{\376\377\000[\117\134\116\032\230\230\166\356\0001\000.\0002\000]}{section.1}% 3 4 | \BOOKMARK [1][-]{section.2}{\376\377\000[\117\134\116\032\230\230\166\356\0002\000]}{}% 4 5 | \BOOKMARK [2][-]{subsection.2.1}{\376\377\000[\117\134\116\032\230\230\166\356\0002\122\006\147\220\000]}{section.2}% 5 6 | \BOOKMARK [2][-]{subsection.2.2}{\376\377\000[\117\134\116\032\230\230\166\356\0002\173\227\154\325\116\016\117\052\116\343\170\001\000]}{section.2}% 6 7 | \BOOKMARK [1][-]{section.3}{\376\377\000[\226\104\137\125\146\250\220\350\122\006\173\227\154\325\166\204\133\236\163\260\000]}{}% 7 8 | \BOOKMARK [2][-]{subsection.3.1}{\376\377\130\153\145\160\133\127\225\356\230\230\147\064\175\040\120\132\154\325\116\016\155\113\213\325\145\160\143\156\165\037\142\020}{section.3}% 8 9 | \BOOKMARK [2][-]{subsection.3.2}{\376\377\130\153\145\160\133\127\225\356\230\230\117\030\123\026\120\132\154\325\116\016\201\352\122\250\133\371\142\315}{section.3}% 9 10 | -------------------------------------------------------------------------------- /homework_template_latex/Algorithm_Homework.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saltyfishyjk/BUAA-Algorithm/2c2fb45cefda7ca69565988b2d1221314a1e4ea8/homework_template_latex/Algorithm_Homework.pdf -------------------------------------------------------------------------------- /homework_template_latex/Algorithm_Homework.synctex.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saltyfishyjk/BUAA-Algorithm/2c2fb45cefda7ca69565988b2d1221314a1e4ea8/homework_template_latex/Algorithm_Homework.synctex.gz -------------------------------------------------------------------------------- /homework_template_latex/Algorithm_Homework.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | % Language setting 4 | % Replace `English' with e.g. `Spanish' to change the document language 5 | \usepackage[english]{babel} 6 | \usepackage{ctex} 7 | 8 | % Set page size and margins 9 | % Replace `letter paper' with`a4paper' for UK/EU standard size 10 | \usepackage[a4paper,top=1.5cm,bottom=1.5cm,left=2cm,right=2cm,marginparwidth=1.75cm]{geometry} 11 | 12 | % Useful packages 13 | \usepackage{amsmath} 14 | \usepackage{amssymb} 15 | % 引入{amssymb}包,避免输入\nexists(存在否定)这个符号时 报未定义符号的错误 16 | \usepackage{graphicx} 17 | \usepackage{listings} 18 | \usepackage[ruled]{algorithm2e} 19 | \usepackage[colorlinks=true, allcolors=blue]{hyperref} 20 | 21 | \SetKwProg{Function}{function}{:}{end} 22 | 23 | % TODO 个人信息参数全局变量 24 | % -------------- define personal variables begin -------------- 25 | \newcommand\myCollege{[college name]} 26 | \newcommand\myId{[author id]} 27 | \newcommand\myName{[author name]} 28 | \newcommand\myHomeworkId{[homework id]} 29 | % -------------- define personal variables end -------------- 30 | 31 | \title{\heiti \myCollege《算法设计与分析》第\myHomeworkId 次作业} % 文章标题 32 | \author{\myCollege \quad \myId \quad \myName} % 作者信息 33 | 34 | \begin{document} 35 | \maketitle 36 | 37 | \section{[作业题目1]} % TODO 作业题目1名字 38 | 39 | \subsection{[作业题目1.1]} % TODO 作业题目1.1名字 40 | 41 | % TODO 大括号样例 42 | 43 | $$ 44 | T(n)=\left\{ 45 | \begin{array}{l} 46 | 1\ ,\ n=1\\ 47 | T(n-2)+3n\ ,\ n>1 48 | \end{array} 49 | \right. 50 | $$ 51 | 52 | $T(n)=T(n-2)+3n=T(n-4)+3n+3(n-2)=T(n-6)+3n+3(n-2)+3(n-4)=...$ 53 | 54 | \qquad\ $=3n+3(n-2)+3(n-4)+...+9+1=\frac{1}{2}(3n+9)(\frac{3n-9}{6}+1)+1=O(n^2)$ 55 | 56 | 由此可知,原式渐进上界为$O(n^2)$。 57 | 58 | 59 | 60 | \qquad$n=1$时,对$c\ge1$结论显然成立; 61 | 62 | \qquad$n>1$时,有:$T(n)=T(n/2)+2^n$ 63 | 64 | \qquad\qquad\qquad\qquad\qquad\quad$\le{c}2^\frac{n}{2}+2^n$ 65 | 66 | \qquad\qquad\qquad\qquad\qquad\quad$=c2^n-(c-1)2^n+c2^\frac{n}{2}$ 67 | 68 | \qquad\qquad\qquad\qquad\qquad\quad$=c2^n-((c-1)2^\frac{n}{2}-c)2^\frac{n}{2}$ 69 | 70 | \qquad\qquad\qquad\qquad\qquad\quad$\le{c}2^n-(2(c-1)-c)2^\frac{n}{2}$ 71 | 72 | \qquad\qquad\qquad\qquad\qquad\quad$=c2^n-(c-2)2^\frac{n}{2}$ 73 | 74 | 显然,只要$c\ge2$,就有$T(n)\le{c2^n}$成立,从而原式渐进上界为$O(2^n)$。 75 | 76 | \subsection{[作业题目1.2]} % TODO 作业题目1.2名字 77 | 78 | $$ 79 | T(n)=\left\{ 80 | \begin{array}{l} 81 | 1\ ,\ n=1\\ 82 | 8T(n/4)+2n\ ,\ n>1 83 | \end{array} 84 | \right. 85 | $$ 86 | 87 | 使用主方法计算渐进上界,注意到$2n=O(n)$,由上式可知$a=8,b=4,d=1$,由$d 240 | #include 241 | using namespace std; 242 | 243 | struct Node 244 | { 245 | int l,r,len; 246 | 247 | inline Node(int l,int r) 248 | { 249 | this->l=l,this->r=r; 250 | len=r-l+1; return; 251 | } 252 | 253 | inline bool operator<(const Node& rhs) const 254 | { 255 | if (this->lenlen>rhs.len) return false; 257 | return this->l>rhs.l; 258 | } 259 | 260 | inline bool operator>(const Node& rhs) const 261 | { 262 | if (this->len>rhs.len) return true; 263 | if (this->lenl pq; 276 | Node node(0,n-1); pq.push(node); 277 | for (int i=1,l,r;i<=n;i++) 278 | { 279 | Node node=pq.top(); pq.pop(); 280 | l=node.l,r=node.r; 281 | // printf("%d %d\n",l,r); 282 | int mid=(l+r)>>1; 283 | a[mid]=i; 284 | if (mid-1>=l) {Node newNode(l,mid-1); pq.push(newNode);} 285 | if (r>=mid+1) {Node newNode(mid+1,r); pq.push(newNode);} 286 | } 287 | for (int i=0;i 297 | #include 298 | using namespace std; 299 | 300 | int a[10005]; 301 | int tot,fst[10005],nxt[10005],val[10005]; 302 | 303 | void build(int l,int r) 304 | { 305 | nxt[++tot]=fst[r-l+1],fst[r-l+1]=tot; 306 | int mid=(l+r)>>1; val[tot]=mid; 307 | if (r>=mid+1) build(mid+1,r); 308 | if (mid-1>=l) build(l,mid-1); 309 | return; 310 | } 311 | 312 | int main() 313 | { 314 | int n,cnt=0; 315 | freopen("testcase.txt","r",stdin); 316 | scanf("%d",&n); 317 | build(0,n-1); 318 | for (int i=n;i>0;i--) 319 | for (int j=fst[i];j;j=nxt[j]) 320 | a[val[j]]=++cnt; 321 | for (int i=0;i