2022-11-04 19:09:51 +08:00
|
|
|
|
# Project information
|
2022-11-08 02:58:42 +08:00
|
|
|
|
site_name: Hello 算法
|
2022-11-25 02:04:38 +08:00
|
|
|
|
site_url: https://www.hello-algo.com/
|
2022-11-04 19:09:51 +08:00
|
|
|
|
site_author: Krahets
|
2022-12-14 01:30:04 +08:00
|
|
|
|
site_description: 一本动画图解、能运行、可提问的数据结构与算法入门书
|
2023-02-06 23:23:21 +08:00
|
|
|
|
docs_dir: build
|
2022-11-04 19:09:51 +08:00
|
|
|
|
# Repository
|
2022-11-08 02:58:42 +08:00
|
|
|
|
repo_name: krahets/hello-algo
|
|
|
|
|
repo_url: https://github.com/krahets/hello-algo
|
2023-02-06 23:23:21 +08:00
|
|
|
|
edit_uri: https://github.com/krahets/hello-algo/tree/main/docs/
|
2022-11-04 19:09:51 +08:00
|
|
|
|
|
|
|
|
|
# Copyright
|
2023-02-11 02:48:58 +08:00
|
|
|
|
copyright: Copyright © 2023 Krahets
|
2022-11-04 19:09:51 +08:00
|
|
|
|
|
|
|
|
|
# Configuration
|
|
|
|
|
theme:
|
|
|
|
|
name: material
|
2023-02-06 23:23:21 +08:00
|
|
|
|
custom_dir: build/overrides
|
2022-11-22 04:17:46 +08:00
|
|
|
|
language: zh
|
2022-11-04 19:09:51 +08:00
|
|
|
|
features:
|
2022-12-14 04:24:06 +08:00
|
|
|
|
# - announce.dismiss
|
|
|
|
|
- content.action.edit
|
|
|
|
|
# - content.action.view
|
2022-11-04 19:09:51 +08:00
|
|
|
|
- content.code.annotate
|
2022-12-11 19:56:33 +08:00
|
|
|
|
- content.code.copy
|
2022-11-15 04:55:19 +08:00
|
|
|
|
- content.tabs.link
|
2022-11-04 19:09:51 +08:00
|
|
|
|
- content.tooltips
|
|
|
|
|
# - header.autohide
|
2022-11-12 22:48:46 +08:00
|
|
|
|
# - navigation.expand
|
2022-11-04 19:09:51 +08:00
|
|
|
|
- navigation.indexes
|
|
|
|
|
# - navigation.instant
|
|
|
|
|
# - navigation.prune
|
2022-12-11 16:52:04 +08:00
|
|
|
|
- navigation.sections
|
2022-11-04 19:09:51 +08:00
|
|
|
|
# - navigation.tabs
|
|
|
|
|
# - navigation.tabs.sticky
|
2023-01-06 03:13:06 +08:00
|
|
|
|
- navigation.top
|
2022-12-15 01:12:03 +08:00
|
|
|
|
- navigation.footer
|
2022-11-04 19:09:51 +08:00
|
|
|
|
- navigation.tracking
|
|
|
|
|
- search.highlight
|
|
|
|
|
- search.share
|
|
|
|
|
- search.suggest
|
|
|
|
|
- toc.follow
|
|
|
|
|
# - toc.integrate
|
|
|
|
|
palette:
|
|
|
|
|
- scheme: default
|
|
|
|
|
primary: white
|
|
|
|
|
# accent: indigo
|
|
|
|
|
toggle:
|
|
|
|
|
icon: material/weather-sunny
|
|
|
|
|
name: Switch to dark mode
|
|
|
|
|
- scheme: slate
|
|
|
|
|
# primary: grey
|
|
|
|
|
# accent: indigo
|
|
|
|
|
toggle:
|
|
|
|
|
icon: material/weather-night
|
|
|
|
|
name: Switch to light mode
|
|
|
|
|
font:
|
2022-12-14 04:24:06 +08:00
|
|
|
|
text: Noto Sans SC
|
|
|
|
|
code: Fira Code
|
2022-11-04 19:09:51 +08:00
|
|
|
|
favicon: assets/images/favicon.png
|
2022-11-17 02:48:17 +08:00
|
|
|
|
logo: assets/images/logo.png
|
2022-11-22 04:17:46 +08:00
|
|
|
|
icon:
|
|
|
|
|
logo: logo
|
|
|
|
|
repo: fontawesome/brands/github
|
2022-12-14 04:24:06 +08:00
|
|
|
|
edit: material/file-edit-outline
|
2022-11-04 19:09:51 +08:00
|
|
|
|
|
|
|
|
|
extra:
|
|
|
|
|
social:
|
2023-03-10 02:06:29 +08:00
|
|
|
|
- icon: fontawesome/brands/github
|
2022-11-04 19:09:51 +08:00
|
|
|
|
link: https://github.com/krahets
|
2023-03-10 02:06:29 +08:00
|
|
|
|
- icon: fontawesome/brands/twitter
|
2022-11-04 19:09:51 +08:00
|
|
|
|
link: https://twitter.com/krahets
|
2023-03-10 02:06:29 +08:00
|
|
|
|
- icon: fontawesome/solid/code
|
2022-11-22 04:17:46 +08:00
|
|
|
|
link: https://leetcode.cn/u/jyd/
|
2022-11-25 13:01:14 +08:00
|
|
|
|
generator: false
|
2022-11-04 19:09:51 +08:00
|
|
|
|
|
|
|
|
|
# Plugins
|
|
|
|
|
plugins:
|
|
|
|
|
- search
|
|
|
|
|
|
|
|
|
|
# Extensions
|
|
|
|
|
markdown_extensions:
|
|
|
|
|
- abbr
|
|
|
|
|
- admonition
|
|
|
|
|
- attr_list
|
|
|
|
|
- def_list
|
|
|
|
|
- footnotes
|
|
|
|
|
- md_in_html
|
|
|
|
|
- toc:
|
|
|
|
|
permalink: true
|
|
|
|
|
- pymdownx.arithmatex:
|
|
|
|
|
generic: true
|
|
|
|
|
- pymdownx.betterem:
|
|
|
|
|
smart_enable: all
|
|
|
|
|
- pymdownx.caret
|
|
|
|
|
- pymdownx.details
|
|
|
|
|
# - pymdownx.emoji:
|
|
|
|
|
# emoji_index: !!python/name:materialx.emoji.twemoji
|
2022-11-24 01:12:14 +08:00
|
|
|
|
# emoji_generator: !!python/name:materialx.emoji.to_svg
|
2022-11-04 19:09:51 +08:00
|
|
|
|
- pymdownx.highlight:
|
|
|
|
|
anchor_linenums: true
|
|
|
|
|
- pymdownx.inlinehilite
|
|
|
|
|
- pymdownx.snippets
|
|
|
|
|
- pymdownx.superfences
|
|
|
|
|
- pymdownx.keys
|
|
|
|
|
# - pymdownx.magiclink:
|
|
|
|
|
# repo_url_shorthand: true
|
|
|
|
|
# user: squidfunk
|
|
|
|
|
# repo: mkdocs-material
|
|
|
|
|
- pymdownx.mark
|
|
|
|
|
- pymdownx.smartsymbols
|
|
|
|
|
- pymdownx.tabbed:
|
|
|
|
|
alternate_style: true
|
|
|
|
|
- pymdownx.tasklist:
|
|
|
|
|
custom_checkbox: true
|
|
|
|
|
- pymdownx.tilde
|
|
|
|
|
|
|
|
|
|
extra_javascript:
|
|
|
|
|
- javascripts/mathjax.js
|
|
|
|
|
- https://polyfill.io/v3/polyfill.min.js?features=es6
|
|
|
|
|
- https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js
|
|
|
|
|
extra_css:
|
|
|
|
|
- stylesheets/extra.css
|
|
|
|
|
|
|
|
|
|
# Page tree
|
|
|
|
|
nav:
|
2023-02-24 18:49:13 +08:00
|
|
|
|
- 0. 写在前面:
|
|
|
|
|
- 0.1. 关于本书: chapter_preface/about_the_book.md
|
|
|
|
|
- 0.2. 如何使用本书: chapter_preface/suggestions.md
|
2023-03-03 21:54:04 +08:00
|
|
|
|
- 0.3. 小结: chapter_preface/summary.md
|
2023-02-25 01:26:34 +08:00
|
|
|
|
- 1. 引言:
|
2023-02-24 18:49:13 +08:00
|
|
|
|
- 1.1. 算法无处不在: chapter_introduction/algorithms_are_everywhere.md
|
|
|
|
|
- 1.2. 算法是什么: chapter_introduction/what_is_dsa.md
|
2023-02-26 22:47:21 +08:00
|
|
|
|
- 1.3. 小结: chapter_introduction/summary.md
|
2023-02-27 03:44:54 +08:00
|
|
|
|
- 2. 复杂度分析:
|
2023-02-24 18:49:13 +08:00
|
|
|
|
- 2.1. 算法效率评估: chapter_computational_complexity/performance_evaluation.md
|
|
|
|
|
- 2.2. 时间复杂度: chapter_computational_complexity/time_complexity.md
|
|
|
|
|
- 2.3. 空间复杂度: chapter_computational_complexity/space_complexity.md
|
|
|
|
|
- 2.4. 权衡时间与空间: chapter_computational_complexity/space_time_tradeoff.md
|
|
|
|
|
- 2.5. 小结: chapter_computational_complexity/summary.md
|
2023-02-25 01:26:34 +08:00
|
|
|
|
- 3. 数据结构简介:
|
2023-02-24 18:49:13 +08:00
|
|
|
|
- 3.1. 数据与内存: chapter_data_structure/data_and_memory.md
|
|
|
|
|
- 3.2. 数据结构分类: chapter_data_structure/classification_of_data_structure.md
|
|
|
|
|
- 3.3. 小结: chapter_data_structure/summary.md
|
2023-02-25 01:26:34 +08:00
|
|
|
|
- 4. 数组与链表:
|
2023-02-28 20:03:53 +08:00
|
|
|
|
- 4.1. 数组: chapter_array_and_linkedlist/array.md
|
|
|
|
|
- 4.2. 链表: chapter_array_and_linkedlist/linked_list.md
|
|
|
|
|
- 4.3. 列表: chapter_array_and_linkedlist/list.md
|
2023-02-24 18:49:13 +08:00
|
|
|
|
- 4.4. 小结: chapter_array_and_linkedlist/summary.md
|
|
|
|
|
- 5. 栈与队列:
|
2023-02-28 20:03:53 +08:00
|
|
|
|
- 5.1. 栈: chapter_stack_and_queue/stack.md
|
|
|
|
|
- 5.2. 队列: chapter_stack_and_queue/queue.md
|
|
|
|
|
- 5.3. 双向队列: chapter_stack_and_queue/deque.md
|
2023-02-24 18:49:13 +08:00
|
|
|
|
- 5.4. 小结: chapter_stack_and_queue/summary.md
|
|
|
|
|
- 6. 散列表:
|
2023-02-28 20:03:53 +08:00
|
|
|
|
- 6.1. 哈希表: chapter_hashing/hash_map.md
|
2023-02-24 18:49:13 +08:00
|
|
|
|
- 6.2. 哈希冲突处理: chapter_hashing/hash_collision.md
|
|
|
|
|
- 6.3. 小结: chapter_hashing/summary.md
|
2023-02-28 20:03:53 +08:00
|
|
|
|
- 7. 树:
|
|
|
|
|
- 7.1. 二叉树: chapter_tree/binary_tree.md
|
2023-02-24 18:49:13 +08:00
|
|
|
|
- 7.2. 二叉树遍历: chapter_tree/binary_tree_traversal.md
|
|
|
|
|
- 7.3. 二叉搜索树: chapter_tree/binary_search_tree.md
|
|
|
|
|
- 7.4. AVL 树 *: chapter_tree/avl_tree.md
|
|
|
|
|
- 7.5. 小结: chapter_tree/summary.md
|
|
|
|
|
- 8. 堆:
|
2023-02-28 20:03:53 +08:00
|
|
|
|
- 8.1. 堆: chapter_heap/heap.md
|
2023-02-26 20:12:17 +08:00
|
|
|
|
- 8.2. 建堆操作 *: chapter_heap/build_heap.md
|
2023-02-26 22:47:21 +08:00
|
|
|
|
- 8.3. 小结: chapter_heap/summary.md
|
2023-02-24 18:49:13 +08:00
|
|
|
|
- 9. 图:
|
2023-02-28 20:03:53 +08:00
|
|
|
|
- 9.1. 图: chapter_graph/graph.md
|
2023-02-24 18:49:13 +08:00
|
|
|
|
- 9.2. 图基础操作: chapter_graph/graph_operations.md
|
2023-04-16 16:38:04 +08:00
|
|
|
|
- 9.3. 图的遍历: chapter_graph/graph_traversal.md
|
2023-02-26 22:47:21 +08:00
|
|
|
|
- 9.4. 小结: chapter_graph/summary.md
|
2023-02-24 18:49:13 +08:00
|
|
|
|
- 10. 查找算法:
|
|
|
|
|
- 10.1. 线性查找: chapter_searching/linear_search.md
|
|
|
|
|
- 10.2. 二分查找: chapter_searching/binary_search.md
|
|
|
|
|
- 10.3. 哈希查找: chapter_searching/hashing_search.md
|
|
|
|
|
- 10.4. 小结: chapter_searching/summary.md
|
|
|
|
|
- 11. 排序算法:
|
2023-04-16 04:52:42 +08:00
|
|
|
|
- 11.1. 排序算法: chapter_sorting/sorting_algorithm.md
|
2023-02-24 18:49:13 +08:00
|
|
|
|
- 11.2. 冒泡排序: chapter_sorting/bubble_sort.md
|
|
|
|
|
- 11.3. 插入排序: chapter_sorting/insertion_sort.md
|
|
|
|
|
- 11.4. 快速排序: chapter_sorting/quick_sort.md
|
|
|
|
|
- 11.5. 归并排序: chapter_sorting/merge_sort.md
|
2023-03-26 22:02:37 +08:00
|
|
|
|
- 11.6. 桶排序(New): chapter_sorting/bucket_sort.md
|
|
|
|
|
- 11.7. 计数排序(New): chapter_sorting/counting_sort.md
|
|
|
|
|
- 11.8. 基数排序(New): chapter_sorting/radix_sort.md
|
|
|
|
|
- 11.9. 小结: chapter_sorting/summary.md
|
2023-04-16 04:52:42 +08:00
|
|
|
|
- 12. 回溯算法:
|
2023-04-16 16:38:04 +08:00
|
|
|
|
- 12.1. 回溯算法(New): chapter_backtracking/backtracking_algorithm.md
|
2023-04-16 04:52:42 +08:00
|
|
|
|
- 13. 附录:
|
|
|
|
|
- 13.1. 编程环境安装: chapter_appendix/installation.md
|
|
|
|
|
- 13.2. 一起参与创作: chapter_appendix/contribution.md
|
2022-11-17 02:48:17 +08:00
|
|
|
|
- 参考文献:
|
2022-11-22 04:17:46 +08:00
|
|
|
|
- chapter_reference/index.md
|