Skip to content

Commit 2d2e5c8

Browse files
committed
fix segtree doc
1 parent 95a08b7 commit 2d2e5c8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

document_en/segtree.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ It is the data structure for [monoids](https://en.wikipedia.org/wiki/Monoid) $(S
55
- associativity: $(a \cdot b) \cdot c$ = $a \cdot (b \cdot c)$ for all $a, b, c \in S$
66
- existence of the identity element: $a \cdot e$ = $e \cdot a$ = $a$ for all $a \in S$
77

8-
Given an array $S$ of length $N$, it processes the following queries in $O(\log N)$ time (see [Appendix](./appendix.html) for further details).
8+
Given an array $S$ of length $n$, it processes the following queries in $O(\log n)$ time (see [Appendix](./appendix.html) for further details).
99

1010
- Updating an element
1111
- Calculating the product of the elements of an interval

document_ja/segtree.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77

88
を満たす代数構造に対し使用できるデータ構造です。
99

10-
長さ $N$ の $S$ の配列に対し、
10+
長さ $n$ の $S$ の配列に対し、
1111

1212
- 要素の $1$ 点変更
1313
- 区間の要素の総積の取得
1414

15-
を $O(\log N)$ で行うことが出来ます。詳細な要件は [Appendix](./appendix.html) を参照してください。
15+
を $O(\log n)$ で行うことが出来ます。詳細な要件は [Appendix](./appendix.html) を参照してください。
1616

1717
また、このライブラリはオラクルとして`op, e`の2種類を使用しますが、これらが定数時間で動くものと仮定したときの計算量を記述します。オラクル内部の計算量が $O(f(n))$ である場合はすべての計算量が $O(f(n))$ 倍となります。
1818

0 commit comments

Comments
 (0)