Skip to content

Commit

Permalink
Deployed 0913ae4 with MkDocs version: 1.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
walkccc committed Jun 15, 2024
1 parent 3992f62 commit a754e65
Show file tree
Hide file tree
Showing 4 changed files with 296 additions and 296 deletions.
2 changes: 1 addition & 1 deletion Chap06/6.5/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10163,7 +10163,7 @@ <h2 id="65-9">6.5-9<a class="headerlink" href="#65-9" title="Permanent link">&pa
<a id="__codelineno-9-10" name="__codelineno-9-10" href="#__codelineno-9-10"></a><span class="w"> </span><span class="c1">// We are sssuming that pairs of &quot;type&quot; (element-value, index-of-list) are compared according to the values of elements.</span>
<a id="__codelineno-9-11" name="__codelineno-9-11" href="#__codelineno-9-11"></a><span class="w"> </span><span class="n">A</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MIN</span><span class="o">-</span><span class="n">HEAP</span><span class="p">(</span><span class="n">lowest</span><span class="o">-</span><span class="n">from</span><span class="o">-</span><span class="n">each</span><span class="p">)</span>
<a id="__codelineno-9-12" name="__codelineno-9-12" href="#__codelineno-9-12"></a><span class="w"> </span><span class="n">let</span><span class="w"> </span><span class="n">merged</span><span class="o">-</span><span class="n">lists</span><span class="w"> </span><span class="n">be</span><span class="w"> </span><span class="n">an</span><span class="w"> </span><span class="n">empty</span><span class="w"> </span><span class="n">array</span>
<a id="__codelineno-9-13" name="__codelineno-9-13" href="#__codelineno-9-13"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="k">not</span><span class="w"> </span><span class="o">!</span><span class="n">min</span><span class="o">-</span><span class="n">heap</span><span class="p">.</span><span class="n">EMPTY</span><span class="p">()</span>
<a id="__codelineno-9-13" name="__codelineno-9-13" href="#__codelineno-9-13"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="k">not</span><span class="w"> </span><span class="n">A</span><span class="p">.</span><span class="n">EMPTY</span><span class="p">()</span>
<a id="__codelineno-9-14" name="__codelineno-9-14" href="#__codelineno-9-14"></a><span class="w"> </span><span class="n">element</span><span class="o">-</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">index</span><span class="o">-</span><span class="n">of</span><span class="o">-</span><span class="n">list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">HEAP</span><span class="o">-</span><span class="n">EXTRACT</span><span class="o">-</span><span class="n">MIN</span><span class="p">(</span><span class="n">A</span><span class="p">)</span>
<a id="__codelineno-9-15" name="__codelineno-9-15" href="#__codelineno-9-15"></a><span class="w"> </span><span class="n">add</span><span class="w"> </span><span class="n">element</span><span class="o">-</span><span class="n">value</span><span class="w"> </span><span class="n">to</span><span class="w"> </span><span class="n">merged</span><span class="o">-</span><span class="n">lists</span>
<a id="__codelineno-9-16" name="__codelineno-9-16" href="#__codelineno-9-16"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="n">lists</span><span class="p">[</span><span class="n">index</span><span class="o">-</span><span class="n">of</span><span class="o">-</span><span class="n">list</span><span class="p">].</span><span class="n">length</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">0</span>
Expand Down
2 changes: 1 addition & 1 deletion search/search_index.json

Large diffs are not rendered by default.

Loading

0 comments on commit a754e65

Please sign in to comment.