This commit is contained in:
krahets
2023-02-26 19:53:32 +08:00
parent 62d7f2c85d
commit d5d3a29676
31 changed files with 179 additions and 1 deletions

View File

@ -1581,6 +1581,8 @@
<li><strong>非线性数据结构</strong>:树、图、堆、哈希表;</li>
</ul>
<p><img alt="线性与非线性数据结构" src="../classification_of_data_structure.assets/classification_logic_structure.png" /></p>
<p align="center"> Fig. 线性与非线性数据结构 </p>
<h2 id="322">3.2.2. &nbsp; 物理结构:连续与离散<a class="headerlink" href="#322" title="Permanent link">&para;</a></h2>
<div class="admonition note">
<p class="admonition-title">Note</p>
@ -1588,6 +1590,8 @@
</div>
<p><strong>「物理结构」反映了数据在计算机内存中的存储方式</strong>。从本质上看,分别是 <strong>数组的连续空间存储</strong><strong>链表的离散空间存储</strong>。物理结构从底层上决定了数据的访问、更新、增删等操作方法,在时间效率和空间效率方面呈现出此消彼长的特性。</p>
<p><img alt="连续空间存储与离散空间存储" src="../classification_of_data_structure.assets/classification_phisical_structure.png" /></p>
<p align="center"> Fig. 连续空间存储与离散空间存储 </p>
<p><strong>所有数据结构都是基于数组、或链表、或两者组合实现的</strong>。例如栈和队列,既可以使用数组实现、也可以使用链表实现,而例如哈希表,其实现同时包含了数组和链表。</p>
<ul>
<li><strong>基于数组可实现</strong>:栈、队列、哈希表、树、堆、图、矩阵、张量(维度 <span class="arithmatex">\(\geq 3\)</span> 的数组)等;</li>