{"format":"brushup-mindmap-v1","id":"ds-00-sheet1","title":"第一章：绪论","structure":"timeline-h","theme":"auto","root":{"id":"6b4b820f6fbaa59d929a8a4588","topic":"第一章：绪论","expanded":true,"children":[{"id":"53fae278d8caa4881050eae0f6","topic":"概念","expanded":true,"children":[{"id":"7ccbcfbfedc89651f647998b36","topic":"数据分类","expanded":true,"children":[{"id":"b6598287b748f50ca1aef8271f","topic":"数据结构","expanded":true,"children":[{"id":"cf7bd501f529478f82c64b9de3","topic":"关系","expanded":true,"children":[{"id":"ab1859b0f119b0651a0b2b5bab","topic":"存在一种或多种特定关系的数据元素的集合","expanded":true}]}]},{"id":"38c84adab62bf79f608fa956f9","topic":"数据对象","expanded":true,"children":[{"id":"30bb71dd190b47e86704ca6c6a","topic":"相同性质","expanded":true,"children":[{"id":"436ad7702b282683d443ab582c","topic":"具有相同性质的数据元素的集合","expanded":true}]}]},{"id":"d898c645435ad829faf6e8c9e9","topic":"数据元素","expanded":true},{"id":"34398992891832b56595a9ddb9","topic":"数据项","expanded":true},{"id":"3cbb3cc9a4393f472358fa1ccd","topic":"图片","expanded":true,"children":[{"id":"fb1bb282bd496b0e5db51bc3e5","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-aa543b4fab9652.png","width":467,"height":342}}]}]},{"id":"e5887a28f2891dfe9c51d8e843","topic":"数据类型","expanded":true,"children":[{"id":"162bdd17b5e9775d43e23aab1d","topic":"数据类型","expanded":true,"children":[{"id":"d8b8eca94dd920a87e39095944","topic":"概念","expanded":true,"children":[{"id":"7d680ae1489a39c157d83aecc8","topic":"一个值的集合","expanded":true},{"id":"5e89bea8609b0ee945d64a126d","topic":"在这个集合上可以进行的操作","expanded":true}]},{"id":"08c8251e896befb968180ba521","topic":"分类","expanded":true,"children":[{"id":"5e0acf768df87181c2fda9547f","topic":"原子类型","expanded":true,"style":{"background":"#FDD834"},"children":[{"id":"3539da6f4d59f16a32db081cd6","topic":"不可再分","expanded":true,"style":{"background":"#FDD834"}}]},{"id":"a6aa72069b18fec97188ebb457","topic":"结构类型","expanded":true,"style":{"background":"#FDD834"},"children":[{"id":"89ab507c946bf6f1f1760a501e","topic":"可以再分","expanded":true,"style":{"background":"#FDD834"}}]}]}]},{"id":"4248ee4bded82512688c584aaa","topic":"抽象数据类型（ADT）","expanded":true,"children":[{"id":"047b984d3bea93bd55cd3ba220","topic":"抽象的数据组织与之相关的操作","expanded":true},{"id":"2a9b88000e48afd3f11b4bc7c1","topic":"数据","expanded":true,"children":[{"id":"8ddbab971b18bb7e9bee6b3810","topic":"数据对象","expanded":true,"children":[{"id":"6a4bf1f43f3bec3962573a1be1","topic":"数据类型就已经隐含在了数据对象里面了，例如定义的时候的 int a，或者ElemType e","expanded":true}]},{"id":"2bb86883a0e82e338205b99e88","topic":"数据关系","expanded":true,"children":[{"id":"006bc9b0000b9070351eea34d6","topic":"【数据对象的集合结构】，例如一对一（线性表），一对多（树）","expanded":true}]}]},{"id":"7aaa92ee6d98e244d0a70a0a1a","topic":"基本操作集","expanded":true,"children":[{"id":"f86a5996dd4a03da66c3187835","topic":"就是数据的存取方法","expanded":true}]}]}]},{"id":"da324b72-6152-4b39-8f81-4657204a2a0b","topic":"考频：低","expanded":true,"style":{"background":"#8EDDF9"}}]},{"id":"680b0eb5448bfac73ecf4912bf","topic":"数据结构三要素","expanded":true,"children":[{"id":"0bcc0c17-220d-47a0-95e7-4897afd83e26","topic":"考频：低","expanded":true,"style":{"background":"#8EDDF9"}},{"id":"407a6b59a7fa885af35d0a652a","topic":"逻辑结构","expanded":true,"icons":["priority:1"],"children":[{"id":"d8d8689ecb1afcf5a5f4d8addf","topic":"集合结构","expanded":true,"children":[{"id":"fd0bbe99bb691c550f1479e8dd","topic":"和数学里的集合概念一致","expanded":true}]},{"id":"3b3a00e5f73921f10fa898a219","topic":"线性结构","expanded":true,"children":[{"id":"2eb931f24f4b0e59e6a45a4ef3","topic":"特点：","expanded":true,"children":[{"id":"7f8b7ec7151bf9a1a77468f70b","topic":"每个元素都是一对一的关系，除了第一个元素都由前驱，除了最后一个元素都有后继","expanded":true}]}]},{"id":"3749e3db283b06c76ab21bf422","topic":"树形结构","expanded":true,"children":[{"id":"bcb896e1a18a4667d8c61b1d7c","topic":"一对多","expanded":true},{"id":"d38a862278f9d2c04c7e5ab349","topic":"OS中的目录结构就是树形结构","expanded":true}]},{"id":"46fbc2cf583820939d71e97bef","topic":"图结构","expanded":true,"children":[{"id":"a16a59367088b387f7ad0b07ff","topic":"多对多","expanded":true}]},{"id":"938ad5a3df098cbc24b749ea06","topic":"或者王道上的分类方式：","expanded":true,"children":[{"id":"1a697184008964371085dad47b","topic":"线性结构","expanded":true,"children":[{"id":"8438f28f540aa750eee5ebeb14","topic":"一般线性表","expanded":true},{"id":"84cb8d41742a09d6160159239e","topic":"受限线性表","expanded":true,"children":[{"id":"89bb1c5b8efb6d8ad2a63b66c2","topic":"栈和队列","expanded":true},{"id":"c48bcc737198a905be7898db55","topic":"串","expanded":true}]},{"id":"f33acbb8d46925904ff9aabde3","topic":"线性表的推广","expanded":true,"children":[{"id":"0fb958bc02188c662365ab5ccb","topic":"数组","expanded":true}]}]},{"id":"042ba9561ff91cde9523bb5901","topic":"非线性结构","expanded":true,"children":[{"id":"5bbb76ef66daaa5ccb7d5b1a6f","topic":"集合","expanded":true},{"id":"f21a0447132b07dff95d7a2814","topic":"树","expanded":true,"children":[{"id":"c478caa0744886d640567abfd2","topic":"一般树","expanded":true},{"id":"24f88b77d19be171e894c908cb","topic":"二叉树","expanded":true}]},{"id":"506abb8c562b37bc1fe44972ab","topic":"图","expanded":true,"children":[{"id":"a68869085d8a76a95ee74bb31b","topic":"有向图","expanded":true},{"id":"d16950e78b2981a7d7d7697b25","topic":"无向图","expanded":true}]}]}]}]},{"id":"d2ab65467ba881b38ba6a9916b","topic":"数据的运算","expanded":true,"icons":["priority:2"]},{"id":"0eeba669508a8093bf151a63e4","topic":"物理结构\n【类比OS中的\n文件物理结构\n来理解】","expanded":true,"icons":["priority:3"],"children":[{"id":"f41842e260b92ec99bfceb67ec","topic":"线性存储","expanded":true,"children":[{"id":"155b5d932bbb0f4c8d3eaa35b6","topic":"（OS文件：循序存储），在物理上相邻的存放","expanded":true}]},{"id":"62785000995ac309ff4aaa17ea","topic":"链式存储","expanded":true,"children":[{"id":"bdfae73596b9261c59fd6bdd6f","topic":"链表，离散存储，每个物理内容中含有指向下一个的指针","expanded":true}]},{"id":"c8bb1f3dc36a0d2366962971d1","topic":"索引存储","expanded":true,"children":[{"id":"b28923eac4baf08838251a0f1a","topic":"用索引表来存地址","expanded":true,"children":[{"id":"aaa9cc74af9966354f765b35fa","topic":"通过索引表的索引信息来查","expanded":true}]}]},{"id":"5d5a4e9a967ab8094b5489394c","topic":"散列存储","expanded":true,"children":[{"id":"8ffa7b8a94bb257a82e82b57be","topic":"哈希","expanded":true}]}]},{"id":"1a3ad24c8c08d5b9762c2927cc","topic":"关系：","expanded":true,"children":[{"id":"ea899a5dfba8b64cd8204b07ae","topic":"逻辑结构是设计者独立思考后采用的抽象表示方式，独立于存储结构","expanded":true},{"id":"7589615b0eb8050f2013e80933","topic":"存储结构是逻辑结构在计算机上的映射，它不能独立于逻辑结构而存在","expanded":true,"children":[{"id":"59fa47991b38b46c312498d414","topic":"例如int[]就是连续空间，ListNode就是离散空间","expanded":true}]},{"id":"1e15adfa-b3a9-47dd-916f-40b0afe53dd2","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-380e8546425b83.png","width":665.18,"height":441.62}}]}]},{"id":"ee5b9cf71ff9129fe3e9c8f817","topic":"算法","expanded":true,"children":[{"id":"7179b6f786d9bc63426fd95985","topic":"概率","expanded":true,"children":[{"id":"c958b5c72bebe34501a088da5b","topic":"对特定问题求解步骤的描述","expanded":true}]},{"id":"1b79fc401a9a41acbfed892ce7","topic":"特性","expanded":true,"children":[{"id":"29ab557e9ef8e43ff2ee3a54a5","topic":"有穷性（时间、步骤）","expanded":true},{"id":"fb180fc38fab998ccc84885da3","topic":"确定性","expanded":true},{"id":"4d98f96a4d69b77d513258654e","topic":"可行性","expanded":true},{"id":"bab96e3e02e8e24a91e1ea6167","topic":"输入","expanded":true},{"id":"224848cfbad9b15748311bfb81","topic":"输出","expanded":true}]},{"id":"297a94703d7844090070f9d8b1","topic":"好算法的特质","expanded":true,"children":[{"id":"b98b6813ee598fa33323896922","topic":"正确性","expanded":true},{"id":"9bb82538f69a05eeaf997a2327","topic":"可读性","expanded":true},{"id":"b46a58baa1eb4ec8a8547ab9ed","topic":"健壮性","expanded":true,"children":[{"id":"fa38620c540b068f49ccd8df99","topic":"非法数据的处理","expanded":true}]},{"id":"6169ebddde1954c5010de821fa","topic":"时间复杂度低","expanded":true},{"id":"f4b8fb4b672a1e0d985a292584","topic":"空间复杂度低","expanded":true}]},{"id":"59243d17-c79a-4f45-9b81-38dc0c9b9b5f","topic":"考频：低","expanded":true,"style":{"background":"#8EDDF9"}}]},{"id":"cc0adecc289b064bd19079fcab","topic":"算法复杂度","expanded":true,"children":[{"id":"4e98f897-c0e8-4fc0-9222-4a998231693d","topic":"考频：高","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"45ae801e-83fa-4f6a-9422-1e26b7a5bfe4","topic":"11、12、13、14、17、19、22","expanded":true}]},{"id":"acfb1b29eef923af4419295025","topic":"时间复杂度","expanded":true,"children":[{"id":"0bca25db-e54a-43ae-b52b-d2346104621c","topic":"计算：","expanded":true,"children":[{"id":"3051f422-b36f-4f98-8931-664699f2a05c","topic":"1. 找到基本操作（最深层的循环）","expanded":true},{"id":"3d65c2bc-5847-41ce-852c-e41919d4391f","topic":"2. 分析该基本操作的执行次数 x 和问题的规模 n 的数学形式关系","expanded":true,"formula":{"tex":"x = f(n)","displayMode":true,"mathml":"<span class=\"katex\"><math xmlns=\"http://www.w3.org/1998/Math/MathML\" display=\"block\"><semantics><mrow><mi>x</mi><mo>=</mo><mi>f</mi><mo stretchy=\"false\">(</mo><mi>n</mi><mo stretchy=\"false\">)</mo></mrow><annotation encoding=\"application/x-tex\">x = f(n)</annotation></semantics></math></span>"}},{"id":"39e2092c-9645-45f0-878a-024bba675ab4","topic":"3. x 的数量级 O(x) 是算法时间复杂度 T(n)","expanded":true}]},{"id":"d0922e0a-f763-48eb-ac43-5d836d0261a5","topic":"常用技巧：","expanded":true,"children":[{"id":"cf811bfd-2ddc-40a2-a93b-28daad3c075a","topic":"加法规则","expanded":true,"formula":{"tex":"O(f(n)) + O(g(n)) = O(\\max(f(n), g(n)))","displayMode":true,"mathml":"<span class=\"katex\"><math xmlns=\"http://www.w3.org/1998/Math/MathML\" display=\"block\"><semantics><mrow><mi>O</mi><mo stretchy=\"false\">(</mo><mi>f</mi><mo stretchy=\"false\">(</mo><mi>n</mi><mo stretchy=\"false\">)</mo><mo stretchy=\"false\">)</mo><mo>+</mo><mi>O</mi><mo stretchy=\"false\">(</mo><mi>g</mi><mo stretchy=\"false\">(</mo><mi>n</mi><mo stretchy=\"false\">)</mo><mo stretchy=\"false\">)</mo><mo>=</mo><mi>O</mi><mo stretchy=\"false\">(</mo><mi>max</mi><mo>⁡</mo><mo stretchy=\"false\">(</mo><mi>f</mi><mo stretchy=\"false\">(</mo><mi>n</mi><mo stretchy=\"false\">)</mo><mo separator=\"true\">,</mo><mi>g</mi><mo stretchy=\"false\">(</mo><mi>n</mi><mo stretchy=\"false\">)</mo><mo stretchy=\"false\">)</mo><mo stretchy=\"false\">)</mo></mrow><annotation encoding=\"application/x-tex\">O(f(n)) + O(g(n)) = O(\\max(f(n), g(n)))</annotation></semantics></math></span>"}},{"id":"ea48366d-81cc-45fd-9737-f26edffa97e7","topic":"乘法规则","expanded":true,"formula":{"tex":"O(f(n)) \\times O(g(n)) = O(f(n) \\times g(n))","displayMode":true,"mathml":"<span class=\"katex\"><math xmlns=\"http://www.w3.org/1998/Math/MathML\" display=\"block\"><semantics><mrow><mi>O</mi><mo stretchy=\"false\">(</mo><mi>f</mi><mo stretchy=\"false\">(</mo><mi>n</mi><mo stretchy=\"false\">)</mo><mo stretchy=\"false\">)</mo><mo>×</mo><mi>O</mi><mo stretchy=\"false\">(</mo><mi>g</mi><mo stretchy=\"false\">(</mo><mi>n</mi><mo stretchy=\"false\">)</mo><mo stretchy=\"false\">)</mo><mo>=</mo><mi>O</mi><mo stretchy=\"false\">(</mo><mi>f</mi><mo stretchy=\"false\">(</mo><mi>n</mi><mo stretchy=\"false\">)</mo><mo>×</mo><mi>g</mi><mo stretchy=\"false\">(</mo><mi>n</mi><mo stretchy=\"false\">)</mo><mo stretchy=\"false\">)</mo></mrow><annotation encoding=\"application/x-tex\">O(f(n)) \\times O(g(n)) = O(f(n) \\times g(n))</annotation></semantics></math></span>"}},{"id":"5a2510db-b644-4bc1-96ec-2094647aea50","topic":"咸鱼口诀：“常对幂指阶”","expanded":true,"style":{"background":"#FF9595"},"formula":{"tex":"\\begin{aligned} &O(1) < O(\\log_2 n) < O(n) < O(n\\log_2 n) < O(n^2) \\\\ &< O(n^3) < O(2^n) > O(n!) < O(n^n) \\end{aligned}","displayMode":true,"mathml":"<span class=\"katex\"><math xmlns=\"http://www.w3.org/1998/Math/MathML\" display=\"block\"><semantics><mtable rowspacing=\"0.25em\" columnalign=\"right left\" columnspacing=\"0em\"><mtr><mtd><mstyle scriptlevel=\"0\" displaystyle=\"true\"><mrow></mrow></mstyle></mtd><mtd><mstyle scriptlevel=\"0\" displaystyle=\"true\"><mrow><mrow></mrow><mi>O</mi><mo stretchy=\"false\">(</mo><mn>1</mn><mo stretchy=\"false\">)</mo><mo>&lt;</mo><mi>O</mi><mo stretchy=\"false\">(</mo><msub><mrow><mi>log</mi><mo>⁡</mo></mrow><mn>2</mn></msub><mi>n</mi><mo stretchy=\"false\">)</mo><mo>&lt;</mo><mi>O</mi><mo stretchy=\"false\">(</mo><mi>n</mi><mo stretchy=\"false\">)</mo><mo>&lt;</mo><mi>O</mi><mo stretchy=\"false\">(</mo><mi>n</mi><msub><mrow><mi>log</mi><mo>⁡</mo></mrow><mn>2</mn></msub><mi>n</mi><mo stretchy=\"false\">)</mo><mo>&lt;</mo><mi>O</mi><mo stretchy=\"false\">(</mo><msup><mi>n</mi><mn>2</mn></msup><mo stretchy=\"false\">)</mo></mrow></mstyle></mtd></mtr><mtr><mtd><mstyle scriptlevel=\"0\" displaystyle=\"true\"><mrow></mrow></mstyle></mtd><mtd><mstyle scriptlevel=\"0\" displaystyle=\"true\"><mrow><mrow></mrow><mo>&lt;</mo><mi>O</mi><mo stretchy=\"false\">(</mo><msup><mi>n</mi><mn>3</mn></msup><mo stretchy=\"false\">)</mo><mo>&lt;</mo><mi>O</mi><mo stretchy=\"false\">(</mo><msup><mn>2</mn><mi>n</mi></msup><mo stretchy=\"false\">)</mo><mo>&gt;</mo><mi>O</mi><mo stretchy=\"false\">(</mo><mi>n</mi><mo stretchy=\"false\">!</mo><mo stretchy=\"false\">)</mo><mo>&lt;</mo><mi>O</mi><mo stretchy=\"false\">(</mo><msup><mi>n</mi><mi>n</mi></msup><mo stretchy=\"false\">)</mo></mrow></mstyle></mtd></mtr></mtable><annotation encoding=\"application/x-tex\">\\begin{aligned} &amp;O(1) &lt; O(\\log_2 n) &lt; O(n) &lt; O(n\\log_2 n) &lt; O(n^2) \\\\ &amp;&lt; O(n^3) &lt; O(2^n) &gt; O(n!) &lt; O(n^n) \\end{aligned}</annotation></semantics></math></span>"}}]},{"id":"6b27d330-8ac6-4229-80ef-c30fccd2bb77","topic":"三种复杂度：","expanded":true,"children":[{"id":"f62c5913-1886-4f13-b8bb-7a076592ba12","topic":"最坏时间复杂度：考虑输入数据“最坏”的情况","expanded":true},{"id":"475556e8-5883-4f7a-86c7-aa78cbe616b3","topic":"平均时间复杂度：考虑所有输入数据等概率出现的情况","expanded":true},{"id":"c3b8bfbf-15fa-45cd-a392-304c8a9344e3","topic":"最好时间复杂度：考虑输入数据“最好”的情况","expanded":true}]}]},{"id":"9e291cf7af3a97d9168b7be5dc","topic":"空间复杂度","expanded":true,"children":[{"id":"658ab8ce-1ae2-4441-b60a-49ecda38d9a3","topic":"如何计算","expanded":true,"children":[{"id":"c276d5cf-e155-4e24-a4f5-ad3302bd7515","topic":"1. 算法空间大小和问题规模的关系","expanded":true},{"id":"d007c000-1fc0-4e61-bd71-f243a5865f75","topic":"2. 数学形式分析：空间x，问题规模n","expanded":true,"formula":{"tex":"x = f(n)","displayMode":true,"mathml":"<span class=\"katex\"><math xmlns=\"http://www.w3.org/1998/Math/MathML\" display=\"block\"><semantics><mrow><mi>x</mi><mo>=</mo><mi>f</mi><mo stretchy=\"false\">(</mo><mi>n</mi><mo stretchy=\"false\">)</mo></mrow><annotation encoding=\"application/x-tex\">x = f(n)</annotation></semantics></math></span>"}},{"id":"5e89e448-d40a-4fd8-8133-8bcfbdaacfc0","topic":"3. x 的数量级 O(x) 就是算法的空间复杂度S(n)","expanded":true},{"id":"2b8f8a19-996c-4f4f-a59e-a279216bdb2b","topic":"注：如果是递归程序，则各层算法所需存储空间不同，分析方法有所区别","expanded":true}]},{"id":"c3335ae5-2b38-444a-b669-86afb99412df","topic":"常用技巧：","expanded":true,"children":[{"id":"862c45e0-01ca-4eb0-8988-d3d29785e81b","topic":"同上 ↑","expanded":true}]},{"id":"1738b4cc7009c29da2a2283e3f","topic":"原地工作","expanded":true,"children":[{"id":"81fa7ba1765ab16dd5de5ae1e4","topic":"空间复杂度O(1)","expanded":true,"children":[{"id":"1db747d6-da3d-44c6-ad48-363b092e31fa","topic":"程序消耗的空间和问题规模没有相关性","expanded":true,"style":{"background":"#FDD834"}}]}]}]}]},{"id":"148af1d15ddbee555741e8c2aa","topic":"存取存储器","expanded":true,"children":[{"id":"82f9982fbd7a59f9a60418bcda","topic":"RAM随机存取存储器","expanded":true,"children":[{"id":"e20bf781e00be42972a1089216","topic":"可以直接访问任一个存储单元，只要知道该单元所在记忆行和记忆列的地址即可。","expanded":true},{"id":"dad8b6cbb7483d281f9feb793f","topic":"分为三个部分","expanded":true,"children":[{"id":"165b750d4a5a080feec988c914","topic":"存储矩阵","expanded":true},{"id":"ff491eef33086bf5a4827a95c7","topic":"地址译码器","expanded":true},{"id":"5a48c403774a05d27e02596a71","topic":"读写电路","expanded":true}]}]},{"id":"e66b0c15792ab443d2132b5801","topic":"SAM顺序存取存储器","expanded":true,"children":[{"id":"c36a5003ea5bba29ab27bafa7e","topic":"SAM中的数据存储单元按照线性顺序排列，因而只能依顺序访问（类似于盒式录音带）。如果当前位置不能找到所需数据，就必须依次查找下一个存储单元，直至找到所需数据为止。SAM非常适合作缓冲存储器之用，一般情况下，缓存中数据的存储","expanded":true}]},{"id":"3cf6b7c8-e37b-47cb-86f3-71b3ef9a876b","topic":"考频：低","expanded":true,"style":{"background":"#8EDDF9"}}]},{"id":"7569cdec-067b-4013-a8dc-69a6a11a45c5","topic":"END","expanded":true}]},"summaries":[{"id":"1bda4b6aa428da609a3719fa08","parentId":"0eeba669508a8093bf151a63e4","start":1,"end":3,"label":"非线性存储"}],"boundaries":[{"id":"cba9a73d-68d1-469f-b45f-8c42a768b3b9","parentId":"e5887a28f2891dfe9c51d8e843","start":1,"end":1,"label":"一个完整的ADT可以定义一个数据结构"},{"id":"4baa7619a84ad368b39d38ccf6","parentId":"407a6b59a7fa885af35d0a652a","start":0,"end":0,"label":"22年考纲新增"}]}