Fast Möbius transform (Subsets)
(Mylib/Convolution/fast_mobius_transform_subset.cpp)
Operations
-
fast_mobius_transform_subset(f[N], op = std::minus())
-
N
は2の累乗
- $g(S) = \sum_{T \subseteq S} f(T) * (-1) ^ {\vert S \vert - \vert T \vert}$
Requirements
Notes
Problems
References
Required by
Verified with
Code
Back to top page