suxxsfe

一言(ヒトコト)

随笔分类 -  数学-FWT

摘要:用来解决在下标中进行位运算的卷积 具体形式就是求 \(c_i=\sum_{i=j\oplus k} a_j\cdot b_j\) 思路大概就是把序列 \(a\) 变换为 \(fwt(a)\),\(b,c\) 同理,使得 \(fwt(c)=fwt(a) fwt(b)\),这样得到了 \(fwt(c)\ 阅读全文
posted @ 2021-03-11 21:17 suxxsfe 阅读(87) 评论(0) 推荐(0)
摘要:max-min 容斥: 设 \(\max(S)\) 为 \(S\) 中的最大元素,\(\min(S)\) 为 \(S\) 中的最小元素,则有: \(\max(S)=\sum_{T \subseteq S}(-1)^{|T|-1} \min(T)\) \(\min(S)=\sum_{T \subset 阅读全文
posted @ 2021-03-11 20:14 suxxsfe 阅读(73) 评论(0) 推荐(0)