知识卡片
长度k字符串有n的k次方种
字母表有n个符号、每个位置都可独立从中取值时,长度k的字符串共有nᵏ种。
子串还要求在原串中占连续位置,和任意子序列不同。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 附录C 计数与概率 · 查看原书依据
A string over a finite set S is a sequence of elements of S. For example, there are eight binary strings of length 3: 000, 001, 010, 011, 100, 101, 110, 111. (Here we use the shorthand of
参考来源
- 位置:《算法导论(第4版)》附录C《计数与概率》(OEBPS/appendix003.xhtml,文本字符[0,5000))。
- 结论依据:附录C的计数定义、概率公理和例子;公式图Art_P1636–P1677逐项查看。
- 原始内容:A string over a finite set S is a sequence of elements of S . For example, there are eight binary strings of length 3: 000, 001, 010, 011, 100, 101, 110, 111. (Here we use the shorthand of