Skip to main content

hilbert_mo

Function hilbert_mo 

Source
pub fn hilbert_mo<S>(
    slice: S,
    q: Vec<(Range<usize>, S::Salt)>,
) -> impl Iterator<Item = S::Hashed>
Expand description

Hilbert curve に基づく Mo’s algorithm。

See https://codeforces.com/blog/entry/61203Range Set Query に投げたら TLE したのでつらい。