multivariate generating function MGF 多变量生成函数

MGF多变量生成函数multivariate generating function

定义

比如,以前可能让你计数有\(k-1\)个逆序对的n-排列个数\(A(n,k)\)

现在让你计数

指定了n-排列圆分解后各个长度\(j\)的cycles的个数\(\chi_j\),让你计数

或者,指定了各字符出现频数的长n的字符串个数

例子

the exponential MGF of permutation with \(u_1,u_2\) marking the number of 1-cycles and 2-cycles to be

\[P\left(z, u_{1}, u_{2}\right)=\frac{\exp \left(\left(u_{1}-1\right) z+\left(u_{2}-1\right) \frac{z^{2}}{2}\right)}{1-z}
\]

可以想象其实还有其他的\(u_j\),这些\(u_j\)都取1了

如果取$u_1=u_2=1 $ , 对应的是计数所有的n-排列个数的EGF

\[P(z,1,1)=(1-z)^{-1}
\]

对应的计数是\(n!\)

 

如果\(u_1=0,u_2=1\),给出derangement(错排;长度为1的cycles的个数为0)的EGF

\[P(z,0,1)=e^{-z}/(1-z)
\]

对应的计数是\((n!)(\frac{1}{2!}-\frac{1}{3!}...+(-1)^{n}\frac{1}{(n)!})\)

 

如果\(u_1=u_2=0\) ,给出所有的cycles长度都大于2的n-排列个数的EGF

\[P(z,0,0)=e^{-z-z^2/2}/(1-z)
\]

对应的计数是$

a(n) = \sum_{i=3..n} \binom{n-1}{i-1}\cdot (i-1)! \cdot a(n-i).a(0)=1,a(1)=0,a(2)=0$ https://oeis.org/A038205

 

如果置\(u_1=u,u_2=1\),给出有k个singleton cycles(k个位置正好不变)的n-排列的EBGF

\[P(z,u,1)=\frac{e^{(u-1)z}}{1-z}
\]

对应的计数是 \(\tbinom{n}{k}(n-k)!(\frac{1}{2!}-\frac{1}{3!}...+(-1)^{n-k}\frac{1}{(n-k)!})\)

Extremal parameters

现在要研究这样的问题:

比如:

一个例子是the largest component in a combinatorial structure (for instance, the largest cycle of a permutation) ,指定了排列的长度\(n\)和最大的cycle长度\(k\),让你计数

另一个例子是 the maximum degree of nesting of constructions in a recursive structure (typically, the height of a tree). 制定了树的节点数\(n\)和树的的高度\(h\),让你计数

面对这样的问题,(传统的)BGF无能为力。

III.8.1 largest components

例子1 decomposition of permutations

the cycle decomposition of permutations translated by

\[P(z)=\exp \left(\log \frac{1}{1-z}\right)
\]

使用truncation后,得到the EGF of permutations with longest cycle≤ b

\[P^{\langle b\rangle}(z)=\exp \left(\frac{z}{1}+\frac{z^{2}}{2}+\cdots+\frac{z^{b}}{b}\right)
\]

by the way,the EGF of permutations with smallest cycle of size > b

\[\begin{aligned}
\exp(\log \frac{1}{1-z}-\frac{z}{1}-\frac{z^{2}}{2}-\cdots-\frac{z^{b}}{b})=\frac{1}{1-z}\exp(-\frac{z}{1}-\frac{z^{2}}{2}-\cdots-\frac{z^{b}}{b})
\end{aligned}
\]

例子2 words over an m–ary alphabet

the EGF of words over an m–ary alphabet

\[W(z)=(e^z)^m
\]

使用truncation后,得到the EGF of words such that each letter occurs at most b times

\[W^{(b)}(z)=\left(1+\frac{z}{1 !}+\frac{z^{2}}{2 !}+\cdots+\frac{z^{b}}{b !}\right)^{m}
\]

例子3 set partitions

the EGF of set partitions

\[S(z)=exp(e^z-1)
\]

the EGF of set partitions with largest block of size at most b

\[S^{\langle b\rangle}(z)=\exp \left(\frac{z}{1 !}+\frac{z^{2}}{2 !}+\cdots+\frac{z^{b}}{b !}\right)
\]

例子4 the longest run in a sequence of binary draws

\(\mathcal{W}=\operatorname{SEQ}(a) \cdot \operatorname{SEQ}(b \operatorname{SEQ}(a))\)这么写有点正则的感觉,比如aabbbaabaa分解过来就是 aa|b|b|baa|baa

III.8.2 Height

例子1 plane trees

general plane trees定义是这样的

\[\mathcal{G}=\mathcal{N} \times \operatorname{SEQ}(\mathcal{G}) \quad \text { so that } \quad G(z)=\frac{z}{1-G(z)}
\]

定义一个树的高度是最长的分支(branch)的边的个数,那么the set of trees of height\(\leq h\) 满足如下的递归关系

\[\mathcal{G}^{[0]}=\mathcal{N}, \mathcal{G}^{[h+1]}=\mathcal{N} \times \operatorname{SEQ}\left(\mathcal{G}^{[h]}\right)
\]

对应的OGF满足

\[G^{[-1]}(z)=0, G^{[0]}(z)=z, G^{[h+1]}(z)=\frac{z}{1-G^{[h]}(z)}
\]

展开得到(别问连分数怎么打的,问就是\frac套\frac)

\[G^{[h]}(z)=\frac{z}{1-\frac{z}{1-\frac{z}{\frac{\ddots}{1-z}}}}
\]

例子2 plane binary trees

平面二叉树定义如下

\[\mathcal{B}=\mathcal{Z}+\mathcal{B} \times \mathcal{B} \quad \text { so that } \quad B(z)=z+(B(z))^{2}
\]

递归关系是

\[B^{[0]}(z)=z, B^{[h+1]}(z)=z+\left(B^{[h]}(z)\right)^{2}
\]

得到

\[B^{[h]}(z)=z+\left(z+\left(z+(\cdots)^{2}\right)^{2}\right)^{2}
\]

例子3 Cayley trees

CayleyTree词条 所有非叶子节点的度都为\(n\)的树叫n-CayleyTree

Cayley树定义方程

\[\mathcal{T}=\mathcal{Z} \star \operatorname{SET}(\mathcal{T}) \quad \text { so that } \quad T(z)=z e^{T(z)}
\]

有界高度的CayleyTrees的EGF的递归关系

\[T^{[0]}(z)=z, T^{[h+1]}(z)=z e^{T^{[h]}(z)}
\]

得到\(T^{[h]}(z)\)的"连指数“形式

\[T^{[h]}(z)=z e^{z e^{z e^{\cdot^{\cdot^{\cdot^{ze^z}}}}} }
\]

III 8.3 Averages and moments

没看懂


资料来自网络

书用的是Analytic Combinatorics by Philippe Flajolet, Robert Sedgewick

MGF multivariate generating function 多变量生成函数的更多相关文章

  1. 矩量母函数(Moment Generating Function,mgf,又称:动差生成函数)

    在统计学中,矩又被称为动差(Moment).矩量母函数(Moment Generating Function,简称mgf)又被称为动差生成函数. 称exp(tξ)的数学期望为随机变量ξ的矩量母函数,记 ...

  2. 【转】母函数(Generating function)详解 — TankyWoo(红色字体为批注)

    母函数(Generating function)详解 - Tanky Woo 在数学中,某个序列的母函数(Generating function,又称生成函数)是一种形式幂级数,其每一项的系数可以提供 ...

  3. 母函数(Generating function)详解

    母函数(Generating function)详解 在数学中,某个序列的母函数(Generating function,又称生成函数)是一种形式幂级数,其每一项的系数可以提供关于这个序列的信息.使用 ...

  4. polynomial&generating function学习笔记

    生成函数 多项式 形如$\sum_{i=0}^{n}a_i x^i$的代数式称为n阶多项式 核函数 {ai}的核函数为f(x),它的生成函数为sigma(ai*f(i)*x^i) 生成函数的加减 {a ...

  5. 读书笔记 1 of Statistics :Moments and Moment Generating Functions (c.f. Statistical Inference by George Casella and Roger L. Berger)

    Part 1: Moments Definition 1 For each integer $n$, the nth moment of $X$, $\mu_n^{'}$ is \[\mu_{n}^{ ...

  6. 母函数(Generation Function) 入门 + 模板

    转自:母函数 入门 + 模板  感谢 在数学中,某个序列的母函数(Generating function,又称生成函数)是一种形式幂级数,其每一项的系数可以提供关于这个序列的信息.使用母函数解决问题的 ...

  7. 生成函数(TBC)

    生成函数 生成函数 (Generating Function) 的应用简单来说在于研究未知(通项)数列规律,用这种方法在给出递推式的情况下求出数列的通项. 对于一个数列 aaa,称f(x)=∑i=0n ...

  8. [zz] 混合高斯模型 Gaussian Mixture Model

    聚类(1)——混合高斯模型 Gaussian Mixture Model http://blog.csdn.net/jwh_bupt/article/details/7663885 聚类系列: 聚类( ...

  9. HDU 2082 母函数模板题

    找单词 Time Limit: 1000MS   Memory Limit: 32768KB   64bit IO Format: %I64d & %I64u Submit Status De ...

  10. 整数划分 Integer Partition(一)

    话说今天百度面试,可能是由于我表现的不太好,面试官显得有点不耐烦,说话的语气也很具有嘲讽的意思,搞得我有点不爽.Whatever,面试中有问到整数划分问题,回答这个问题过程中被面试官搞的不胜其烦,最后 ...

随机推荐

  1. idea开发工具无法解析jdk

    jdk 设置好了,但是总是无法引入 java的库 解决办法如下 点击按钮即可

  2. OpenGL_Extension_Viewer

    使用OpenGL,查验一下我电脑显卡的相关配置

  3. QT搭建Ffmpeg开发环境gcc版本

    1 先安装qt 解压ffmpeg包 2打开qt创建工程 3 导入头文件和库文件 这里一定要注意gcc版本和库的版本一定要一致 4 添加一下简单的源代码 1 #include <libavcode ...

  4. Django基础篇 07-Django后端和html交互

    一.上下文管理器 context_processors 执行顺序是 先执行views.py中代码,在views返回之前在走到TEMPLATES.OPTIONS.context_processors的方 ...

  5. Java下 BigDecimal类型数值的计算(转)

    BigDecimal bignum1 = new BigDecimal("40"); BigDecimal bignum2 = new BigDecimal("7&quo ...

  6. this和箭头函数的this

    https://www.cnblogs.com/lfri/p/11872696.html https://www.ruanyifeng.com/blog/2018/06/javascript-this ...

  7. 时间格式转换成指定格式(Vue)

    1 /** 2 * Parse the time to string 3 * @param {(Object|string|number)} time 4 * @param {string} cFor ...

  8. JS笔记(四):面向对象、异常处理

    镇楼图 Pixiv:torino 六.JS中的面向对象 类(class) 博主视为你已拥有相关基础,这里不再赘述相关概念 类的语法如下,class在本质上是function,可以说class只是针对构 ...

  9. testNG框架之我见

    testNG框架中会有一个xml文件夹,里面放xml文件,之后必须要在pom文件中配置 xml文件中有一个suite,在suite中可以配置parameter参数.test用例,还可以添加listen ...

  10. MySQL的卸载与安装

    卸载 1.右键点击我的电脑 -->服务-->停掉MySQL的服务 2.控制面板卸载MySQL 3.删除隐藏文件夹 C:\ProgramData下的MySQL文件夹 4.删除MySQL文件夹 ...