Fast Zeta / Mobius Transform (高速ゼータ変換・高速メビウス変換)
(convolution/fast_zeta_mobius_transform.hpp)
- 下位集合に対する高速ゼータ変換
- 下位集合に対する高速メビウス変換
- 上位集合に対する高速ゼータ変換
- 上位集合に対する高速メビウス変換
使用例
-
PAST12 O
- 各 popcount の組合せごとに Bitwise OR Convolution を計 $ O(N^2) $ 回行い、全体の計算量は $ O(N^3 2^N + Q) $ であると思いきや、Fast Mobius Transform をまとめて行うことができるため、全体の計算量は $ O(N^2 2^N + Q) $ である
Required by
Code
Back to top page