mirror of
https://github.com/krahets/hello-algo.git
synced 2026-09-02 13:17:14 +00:00
deploy
This commit is contained in:
@@ -3629,7 +3629,7 @@
|
||||
<li>Graphs, compared to linked lists, provide richer logical information but require more memory space.</li>
|
||||
</ul>
|
||||
<h2 id="123-relationship-between-data-structures-and-algorithms">1.2.3 Relationship between data structures and algorithms<a class="headerlink" href="#123-relationship-between-data-structures-and-algorithms" title="Permanent link">¶</a></h2>
|
||||
<p>As shown in the Figure 1-4 , data structures and algorithms are highly related and closely integrated, specifically in the following three aspects:</p>
|
||||
<p>As shown in Figure 1-4, data structures and algorithms are highly related and closely integrated, specifically in the following three aspects:</p>
|
||||
<ul>
|
||||
<li>Data structures are the foundation of algorithms. They provide structured data storage and methods for manipulating data for algorithms.</li>
|
||||
<li>Algorithms are the stage where data structures come into play. The data structure alone only stores data information; it is through the application of algorithms that specific problems can be solved.</li>
|
||||
@@ -3638,11 +3638,11 @@
|
||||
<p><a class="glightbox" href="../what_is_dsa.assets/relationship_between_data_structure_and_algorithm.png" data-type="image" data-width="100%" data-height="auto" data-desc-position="bottom"><img alt="Relationship between data structures and algorithms" class="animation-figure" src="../what_is_dsa.assets/relationship_between_data_structure_and_algorithm.png" /></a></p>
|
||||
<p align="center"> Figure 1-4 Relationship between data structures and algorithms </p>
|
||||
|
||||
<p>Data structures and algorithms can be likened to a set of building blocks, as illustrated in the Figure 1-5 . A building block set includes numerous pieces, accompanied by detailed assembly instructions. Following these instructions step by step allows us to construct an intricate block model.</p>
|
||||
<p>Data structures and algorithms can be likened to a set of building blocks, as illustrated in Figure 1-5. A building block set includes numerous pieces, accompanied by detailed assembly instructions. Following these instructions step by step allows us to construct an intricate block model.</p>
|
||||
<p><a class="glightbox" href="../what_is_dsa.assets/assembling_blocks.png" data-type="image" data-width="100%" data-height="auto" data-desc-position="bottom"><img alt="Assembling blocks" class="animation-figure" src="../what_is_dsa.assets/assembling_blocks.png" /></a></p>
|
||||
<p align="center"> Figure 1-5 Assembling blocks </p>
|
||||
|
||||
<p>The detailed correspondence between the two is shown in the Table 1-1 .</p>
|
||||
<p>The detailed correspondence between the two is shown in Table 1-1.</p>
|
||||
<p align="center"> Table 1-1 Comparing data structures and algorithms to building blocks </p>
|
||||
|
||||
<div class="center-table">
|
||||
|
||||
Reference in New Issue
Block a user