<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Segment Tree on BenzHub</title><link>https://benzhub.github.io/tags/segment-tree/</link><description>Recent content in Segment Tree on BenzHub</description><generator>Hugo</generator><language>zh-TW</language><lastBuildDate>Fri, 26 Jun 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://benzhub.github.io/tags/segment-tree/index.xml" rel="self" type="application/rss+xml"/><item><title>線段樹 — Lazy Propagation 與區間查詢完整實作 | 資料結構與演算法</title><link>https://benzhub.github.io/post/javascript/data-structures--algorithms/013-segment-tree/</link><pubDate>Fri, 26 Jun 2026 00:00:00 +0000</pubDate><guid>https://benzhub.github.io/post/javascript/data-structures--algorithms/013-segment-tree/</guid><description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;線段樹（Segment Tree）&lt;/strong&gt; 是一種基於分治思想的二元樹型資料結構，能以 &lt;strong&gt;O(log n)&lt;/strong&gt; 時間同時支援區間查詢與區間更新。搭配 &lt;strong&gt;Lazy Propagation（延遲傳播）&lt;/strong&gt; 機制，它成為競技程式設計與系統工程中處理動態區間問題的首選工具。&lt;/p&gt;
&lt;/blockquote&gt;</description></item></channel></rss>