<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>二元搜尋樹 on BenzHub</title><link>https://benzhub.github.io/tags/%E4%BA%8C%E5%85%83%E6%90%9C%E5%B0%8B%E6%A8%B9/</link><description>Recent content in 二元搜尋樹 on BenzHub</description><generator>Hugo</generator><language>zh-TW</language><lastBuildDate>Tue, 23 Jun 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://benzhub.github.io/tags/%E4%BA%8C%E5%85%83%E6%90%9C%E5%B0%8B%E6%A8%B9/index.xml" rel="self" type="application/rss+xml"/><item><title>二元搜尋樹 — BST 操作、AVL 與紅黑樹自平衡機制 | 資料結構與演算法</title><link>https://benzhub.github.io/post/javascript/data-structures--algorithms/010-bst/</link><pubDate>Tue, 23 Jun 2026 00:00:00 +0000</pubDate><guid>https://benzhub.github.io/post/javascript/data-structures--algorithms/010-bst/</guid><description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;二元搜尋樹（Binary Search Tree，BST）&lt;/strong&gt; 是在二元樹的基礎上加了「左子樹所有值 &amp;lt; 根 &amp;lt; 右子樹所有值」這一條有序約束，讓搜尋效率從 O(n) 提升至 O(log n)。理解 BST 的搜尋、插入、刪除三大操作，以及 &lt;strong&gt;AVL 樹&lt;/strong&gt;與&lt;strong&gt;紅黑樹&lt;/strong&gt;如何自動維持平衡，是資料結構與演算法的重要里程碑。&lt;/p&gt;
&lt;/blockquote&gt;</description></item></channel></rss>