mirror of
https://github.com/krahets/hello-algo.git
synced 2026-04-05 03:30:30 +08:00
deploy
This commit is contained in:
@@ -5189,7 +5189,7 @@
|
||||
<h2 id="424">4.2.4 链表典型应用<a class="headerlink" href="#424" title="Permanent link">¶</a></h2>
|
||||
<p>单向链表通常用于实现栈、队列、哈希表和图等数据结构。</p>
|
||||
<ul>
|
||||
<li><strong>栈与队列</strong>:当插入和删除操作都在链表的一端进行时,它表现出先进后出的特性,对应栈;当插入操作在链表的一端进行,删除操作在链表的另一端进行,它表现出先进先出的特性,对应队列。</li>
|
||||
<li><strong>栈与队列</strong>:当插入和删除操作都在链表的一端进行时,它表现的特性为先进后出,对应栈;当插入操作在链表的一端进行,删除操作在链表的另一端进行,它表现的特性为先进先出,对应队列。</li>
|
||||
<li><strong>哈希表</strong>:链式地址是解决哈希冲突的主流方案之一,在该方案中,所有冲突的元素都会被放到一个链表中。</li>
|
||||
<li><strong>图</strong>:邻接表是表示图的一种常用方式,其中图的每个顶点都与一个链表相关联,链表中的每个元素都代表与该顶点相连的其他顶点。</li>
|
||||
</ul>
|
||||
|
||||
@@ -3748,8 +3748,8 @@
|
||||
<p><a class="glightbox" href="../ram_and_cache.assets/storage_pyramid.png" data-type="image" data-width="100%" data-height="auto" data-desc-position="bottom"><img alt="计算机存储系统" class="animation-figure" src="../ram_and_cache.assets/storage_pyramid.png" /></a></p>
|
||||
<p align="center"> 图 4-9 计算机存储系统 </p>
|
||||
|
||||
<div class="admonition note">
|
||||
<p class="admonition-title">Note</p>
|
||||
<div class="admonition tip">
|
||||
<p class="admonition-title">Tip</p>
|
||||
<p>计算机的存储层次结构体现了速度、容量和成本三者之间的精妙平衡。实际上,这种权衡普遍存在于所有工业领域,它要求我们在不同的优势和限制之间找到最佳平衡点。</p>
|
||||
</div>
|
||||
<p>总的来说,<strong>硬盘用于长期存储大量数据,内存用于临时存储程序运行中正在处理的数据,而缓存则用于存储经常访问的数据和指令</strong>,以提高程序运行效率。三者共同协作,确保计算机系统高效运行。</p>
|
||||
|
||||
Reference in New Issue
Block a user