<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Heap - 标签 - 南冥鹏影</title><link>https://fupcode.com/blog/tags/heap/</link><description>南冥鹏影</description><generator>Hugo 0.168.0 &amp; FixIt v1.0.0-beta.4</generator><language>zh-CN</language><lastBuildDate>Thu, 15 Oct 2026 17:59:10 +0800</lastBuildDate><atom:link href="https://fupcode.com/blog/tags/heap/index.xml" rel="self" type="application/rss+xml"/><item><title>动态集合取最值优化：Heap</title><link>https://fupcode.com/blog/posts/algorithm/perf-dict-with-heap/</link><pubDate>Thu, 06 Aug 2026 13:15:48 +0800</pubDate><guid>https://fupcode.com/blog/posts/algorithm/perf-dict-with-heap/</guid><category domain="https://fupcode.com/blog/categories/%E7%AE%97%E6%B3%95/">算法</category><description>&lt;!--post--&gt;&#13;&#10;&lt;h2 class="heading-element" id="问题模式"&gt;&lt;span&gt;问题模式&lt;/span&gt;&#13;&#10; &lt;a href="#%e9%97%ae%e9%a2%98%e6%a8%a1%e5%bc%8f" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#13;&#10;&lt;/h2&gt;&lt;p&gt;维护一个动态字典：&lt;/p&gt;</description></item></channel></rss>