版本比较
CSP 组合数学
正文
增加 2 行删除 2 行
10 行未改动111213141515161718199 行未改动2930313233333435363721 行未改动10 行未改动
### 排列 $A_n^m$- **定义**:从 $n$ 个中选出 $m$ 个物品,**考虑顺序**的方案总数- **相关公式**:$A_n^m$ 或是 $A(n,m)$ $=\Large \frac{n!}{(n-m)!}$- **速算技巧**:$A_n^m=n\times(n-1)\times(n-1)\times\cdots\times(n-m+1)$- **速算技巧**:$A_n^m=n\times(n-1)\times(n-2)\times\cdots\times(n-m+1)$- **示例**:一共有 $10$ 本书(编号 $1\thicksim10$),要从中选取 $4$ 本放到书架上,**摆放顺序不同算不同方案**,共 $A_{10}^4=\Large\frac{10!}{(10-4)!}\normalsize=\Large\frac{10\times9\times8\times\cdots\times1}{6\times5\times4\times\cdots\times1}\normalsize=5040$ 种方案- **注意**:$0!=1,0!\ne0$
### 组合 $C_n^m$9 行未改动
### 特殊值- $C_n^0=1$ (什么都不选,只有 $1$ 种方案)- $C_n^n=1$ (全选,只有 $1$ 种方案)- $C_n^1=n$- $C_n^1=n$ (选一个,共有 $n$ 种方案)
### 递推公式- **杨辉三角**:$C_n^m=C_{n-1}^{m-1}+C_{n-1}^m$- **应用**:用于动态规划求组合数,或是解决路径计数问题21 行未改动