mirror of
https://github.com/krahets/hello-algo.git
synced 2025-07-28 12:52:57 +08:00
deploy
This commit is contained in:
@ -1580,18 +1580,14 @@
|
||||
<li><strong>线性数据结构</strong>:数组、链表、栈、队列、哈希表;</li>
|
||||
<li><strong>非线性数据结构</strong>:树、图、堆、哈希表;</li>
|
||||
</ul>
|
||||
<p><img alt="classification_logic_structure" src="../classification_of_data_structure.assets/classification_logic_structure.png" /></p>
|
||||
<p align="center"> Fig. 线性与非线性数据结构 </p>
|
||||
|
||||
<p><img alt="线性与非线性数据结构" src="../classification_of_data_structure.assets/classification_logic_structure.png" /></p>
|
||||
<h2 id="322">3.2.2. 物理结构:连续与离散<a class="headerlink" href="#322" title="Permanent link">¶</a></h2>
|
||||
<div class="admonition note">
|
||||
<p class="admonition-title">Note</p>
|
||||
<p>若感到阅读困难,建议先看完下个章节「数组与链表」,再回过头来理解物理结构的含义。</p>
|
||||
</div>
|
||||
<p><strong>「物理结构」反映了数据在计算机内存中的存储方式</strong>。从本质上看,分别是 <strong>数组的连续空间存储</strong> 和 <strong>链表的离散空间存储</strong>。物理结构从底层上决定了数据的访问、更新、增删等操作方法,在时间效率和空间效率方面呈现出此消彼长的特性。</p>
|
||||
<p><img alt="classification_phisical_structure" src="../classification_of_data_structure.assets/classification_phisical_structure.png" /></p>
|
||||
<p align="center"> Fig. 连续空间存储与离散空间存储 </p>
|
||||
|
||||
<p><img alt="连续空间存储与离散空间存储" src="../classification_of_data_structure.assets/classification_phisical_structure.png" /></p>
|
||||
<p><strong>所有数据结构都是基于数组、或链表、或两者组合实现的</strong>。例如栈和队列,既可以使用数组实现、也可以使用链表实现,而例如哈希表,其实现同时包含了数组和链表。</p>
|
||||
<ul>
|
||||
<li><strong>基于数组可实现</strong>:栈、队列、哈希表、树、堆、图、矩阵、张量(维度 <span class="arithmatex">\(\geq 3\)</span> 的数组)等;</li>
|
||||
|
Reference in New Issue
Block a user