From 6b736530b1a8eacc7155514bf2baa1d8c8db5ba5 Mon Sep 17 00:00:00 2001 From: krahets Date: Thu, 4 Jan 2024 04:56:58 +0800 Subject: [PATCH] deploy --- 404.html | 2 +- chapter_appendix/contribution/index.html | 2 +- chapter_appendix/index.html | 2 +- chapter_appendix/installation/index.html | 2 +- chapter_appendix/terminology/index.html | 2 +- chapter_array_and_linkedlist/array/index.html | 2 +- chapter_array_and_linkedlist/index.html | 2 +- .../linked_list/index.html | 2 +- chapter_array_and_linkedlist/list/index.html | 2 +- .../ram_and_cache/index.html | 2 +- .../summary/index.html | 2 +- .../backtracking_algorithm/index.html | 2 +- chapter_backtracking/index.html | 2 +- .../n_queens_problem/index.html | 2 +- .../permutations_problem/index.html | 2 +- .../subset_sum_problem/index.html | 2 +- chapter_backtracking/summary/index.html | 2 +- chapter_computational_complexity/index.html | 2 +- .../iteration_and_recursion/index.html | 34 ++++++++++- .../performance_evaluation/index.html | 2 +- .../space_complexity/index.html | 2 +- .../summary/index.html | 2 +- .../time_complexity/index.html | 2 +- .../basic_data_types/index.html | 2 +- .../character_encoding/index.html | 2 +- .../index.html | 2 +- chapter_data_structure/index.html | 2 +- .../number_encoding/index.html | 2 +- chapter_data_structure/summary/index.html | 2 +- .../binary_search_recur/index.html | 2 +- .../build_binary_tree_problem/index.html | 2 +- .../divide_and_conquer/index.html | 2 +- .../hanota_problem/index.html | 2 +- chapter_divide_and_conquer/index.html | 2 +- chapter_divide_and_conquer/summary/index.html | 2 +- .../dp_problem_features/index.html | 2 +- .../dp_solution_pipeline/index.html | 2 +- .../edit_distance_problem/index.html | 2 +- chapter_dynamic_programming/index.html | 2 +- .../intro_to_dynamic_programming/index.html | 2 +- .../knapsack_problem/index.html | 2 +- .../summary/index.html | 2 +- .../unbounded_knapsack_problem/index.html | 2 +- chapter_graph/graph/index.html | 2 +- chapter_graph/graph_operations/index.html | 2 +- chapter_graph/graph_traversal/index.html | 2 +- chapter_graph/index.html | 2 +- chapter_graph/summary/index.html | 2 +- .../fractional_knapsack_problem/index.html | 2 +- chapter_greedy/greedy_algorithm/index.html | 2 +- chapter_greedy/index.html | 2 +- .../max_capacity_problem/index.html | 2 +- .../max_product_cutting_problem/index.html | 2 +- chapter_greedy/summary/index.html | 2 +- chapter_hashing/hash_algorithm/index.html | 2 +- chapter_hashing/hash_collision/index.html | 2 +- chapter_hashing/hash_map/index.html | 2 +- chapter_hashing/index.html | 2 +- chapter_hashing/summary/index.html | 2 +- chapter_heap/build_heap/index.html | 2 +- chapter_heap/heap/index.html | 2 +- chapter_heap/index.html | 2 +- chapter_heap/summary/index.html | 2 +- chapter_heap/top_k/index.html | 2 +- .../algorithms_are_everywhere/index.html | 2 +- chapter_introduction/index.html | 2 +- chapter_introduction/summary/index.html | 2 +- chapter_introduction/what_is_dsa/index.html | 2 +- chapter_preface/about_the_book/index.html | 2 +- chapter_preface/index.html | 2 +- chapter_preface/suggestions/index.html | 2 +- chapter_preface/summary/index.html | 2 +- chapter_reference/index.html | 2 +- chapter_searching/binary_search/index.html | 2 +- .../binary_search_edge/index.html | 2 +- .../binary_search_insertion/index.html | 2 +- chapter_searching/index.html | 2 +- .../replace_linear_by_hashing/index.html | 2 +- .../searching_algorithm_revisited/index.html | 2 +- chapter_searching/summary/index.html | 2 +- chapter_sorting/bubble_sort/index.html | 2 +- chapter_sorting/bucket_sort/index.html | 2 +- chapter_sorting/counting_sort/index.html | 2 +- chapter_sorting/heap_sort/index.html | 2 +- chapter_sorting/index.html | 2 +- chapter_sorting/insertion_sort/index.html | 2 +- chapter_sorting/merge_sort/index.html | 2 +- chapter_sorting/quick_sort/index.html | 2 +- chapter_sorting/radix_sort/index.html | 2 +- chapter_sorting/selection_sort/index.html | 2 +- chapter_sorting/sorting_algorithm/index.html | 2 +- chapter_sorting/summary/index.html | 2 +- chapter_stack_and_queue/deque/index.html | 2 +- chapter_stack_and_queue/index.html | 2 +- chapter_stack_and_queue/queue/index.html | 2 +- chapter_stack_and_queue/stack/index.html | 2 +- chapter_stack_and_queue/summary/index.html | 2 +- .../array_representation_of_tree/index.html | 2 +- chapter_tree/avl_tree/index.html | 2 +- chapter_tree/binary_search_tree/index.html | 2 +- chapter_tree/binary_tree/index.html | 2 +- chapter_tree/binary_tree_traversal/index.html | 2 +- chapter_tree/index.html | 2 +- chapter_tree/summary/index.html | 2 +- en/404.html | 2 +- .../array/index.html | 2 +- en/chapter_array_and_linkedlist/index.html | 2 +- .../linked_list/index.html | 2 +- .../list/index.html | 2 +- .../ram_and_cache/index.html | 2 +- .../summary/index.html | 2 +- .../index.html | 2 +- .../iteration_and_recursion/index.html | 2 +- .../performance_evaluation/index.html | 2 +- .../space_complexity/index.html | 2 +- .../summary/index.html | 2 +- .../time_complexity/index.html | 2 +- .../basic_data_types/index.html | 56 +++++++++--------- .../character_encoding/index.html | 2 +- .../index.html | 2 +- en/chapter_data_structure/index.html | 2 +- .../number_encoding/index.html | 2 +- en/chapter_data_structure/summary/index.html | 2 +- .../algorithms_are_everywhere/index.html | 2 +- en/chapter_introduction/index.html | 2 +- en/chapter_introduction/summary/index.html | 2 +- .../what_is_dsa/index.html | 2 +- en/chapter_preface/about_the_book/index.html | 2 +- en/chapter_preface/index.html | 2 +- en/chapter_preface/suggestions/index.html | 2 +- en/chapter_preface/summary/index.html | 2 +- en/index.html | 2 +- en/search/search_index.json | 2 +- en/sitemap.xml.gz | Bin 451 -> 451 bytes en/stylesheets/extra.css | 34 ++++++++++- index.html | 2 +- search/search_index.json | 2 +- sitemap.xml.gz | Bin 999 -> 999 bytes stylesheets/extra.css | 34 ++++++++++- 139 files changed, 260 insertions(+), 164 deletions(-) diff --git a/404.html b/404.html index e88641ecc..7a749ae23 100644 --- a/404.html +++ b/404.html @@ -3408,7 +3408,7 @@ +
+分步调试 +

+

观察以上代码,我们在函数内递归调用了两个函数,这意味着从一个调用产生了两个调用分支。如图 2-6 所示,这样不断递归调用下去,最终将产生一棵层数为 \(n\) 的「递归树 recursion tree」。

斐波那契数列的递归树

图 2-6   斐波那契数列的递归树

@@ -5230,6 +5258,10 @@ +
+分步调试 +

+

观察以上代码,当递归转化为迭代后,代码变得更加复杂了。尽管迭代和递归在很多情况下可以互相转化,但不一定值得这样做,有以下两点原因。