pub struct DynamicSegmentTree<K: Ord, M: Monoid> {
pub root: Option<Box<NodeInner<K, M>>>,
/* private fields */
}
Expand description
動的セグメント木
- 平行2分木(AA木)
- 遅延評価なし
Fields§
§root: Option<Box<NodeInner<K, M>>>
Implementations§
source§impl<K: Ord, M: Monoid> DynamicSegmentTree<K, M>
impl<K: Ord, M: Monoid> DynamicSegmentTree<K, M>
source§impl<K, M> DynamicSegmentTree<K, M>where
K: Ord + Debug,
M: Monoid,
M::Val: Debug,
impl<K, M> DynamicSegmentTree<K, M>where K: Ord + Debug, M: Monoid, M::Val: Debug,
sourcepub fn print_as_binary_tree(&self)
pub fn print_as_binary_tree(&self)
2分木として出力する