当前位置:网站首页>[combinatorics] permutation and combination (two counting principles, examples of set permutation | examples of set permutation and circle permutation)
[combinatorics] permutation and combination (two counting principles, examples of set permutation | examples of set permutation and circle permutation)
2022-07-03 13:54:00 【Programmer community】
List of articles
- One 、 Two counting principles 、 Set arrangement example
- Two 、 Set arrangement 、 Example of circle arrangement
Arrange and combine reference blogs :
- 【 Combinatorial mathematics 】 Basic counting principle ( The principle of addition | Multiplication principle )
- 【 Combinatorial mathematics 】 Examples of permutation and combination of sets ( array | Combine | Circular arrangement | binomial theorem )
- 【 Combinatorial mathematics 】 Permutation and combination ( Arrange and combine content summary | Select the question | Set arrangement | Set combination )
- 【 Combinatorial mathematics 】 Permutation and combination ( Examples of permutations )
- 【 Combinatorial mathematics 】 Permutation and combination ( Multiset arrangement | Full Permutation of multiple sets | Multiset incomplete permutation The repetition of all elements is greater than the number of permutations | Multiset incomplete permutation The repetition of some elements is less than the number of permutations )
- 【 Combinatorial mathematics 】 Permutation and combination ( The combinatorial number of multiple sets | The repetition of all elements is greater than the number of combinations | The combinatorial number of multiple sets deduction 1 Division line derivation | The combinatorial number of multiple sets deduction 2 Derivation of the number of nonnegative integer solutions of indefinite equations )
- 【 Combinatorial mathematics 】 Permutation and combination ( Example of the number of combinations of multiple sets | Three counting models | Select the question | Multiple set combinatorial problem | Nonnegative integer solutions of indefinite equations )
One 、 Two counting principles 、 Set arrangement example
array
26
26
26 Letters , bring
a
,
b
a,b
a,b There are
7
7
7 Letters , Find the number of permutation methods ;
Need to use Classification and counting principle ( The principle of addition ) , Step by step counting principle ( Multiplication principle ) ;
- Category count ( The principle of addition ) : Yes
3
3
3 Class scheme , The first is
2
2
2 A plan , The second category is
4
4
4 A plan , The third category is
1
1
1 A plan , All in all
2
+
4
+
1
=
7
2 + 4 + 1 = 7
2+4+1=7 A plan ;
- Step by step counting principle ( Multiplication principle ) : Yes
3
3
3 Class scheme , The first step is
2
2
2 A plan , The second step is
4
4
4 A plan , The third step is
1
1
1 A plan , All in all
2
×
4
×
1
=
8
2 \times 4 \times 1 = 8
2×4×1=8 A plan ;
1. First, use the step-by-step counting principle ,
- First step : First construct with
a
,
b
a,b
a,b As boundary , There is... In the middle
7
7
7 A substructure of letters ;
- The second step : take
a
,
b
a,b
a,b Substructure as element , And others
26
−
9
=
17
26-9 = 17
26−9=17 Child elements together , in total
18
18
18 All elements are arranged ;
The principle of counting by steps corresponds to the law of multiplication , The end result is Number of solutions in the first step multiply Number of schemes in the second step ;
2. First step calculation : First construct with
a
,
b
a,b
a,b As boundary , There is... In the middle
7
7
7 A substructure of letters ;
In this substructure
7
7
7 Letters , It is equivalent to dividing
a
,
b
a,b
a,b Other than
24
24
24 Choose from the letters
7
7
7 Arrange letters ,
One-to-one correspondence : It is equivalent to a set in which the elements are not repeated , Make an orderly selection , Corresponding to the arrangement of sets , Use the set arrangement formula to calculate ;
24
24
24 Choose from the letters
7
7
7 Arrange letters , The selection methods are
P
(
24
,
7
)
P(24, 7)
P(24,7) Kind of ;
This involves the principle of classification and counting ,
- The first category is
a
a
a before ,
b
b
P
(
24
,
7
)
P(24, 7)
P(24,7) Kind of ;
b The situation after , The selection methods are
- The second type is
b
b
b before ,
a
a
P
(
24
,
7
)
P(24, 7)
P(24,7) Kind of ;
a The situation after , The selection methods are
The principle of classification and counting corresponds to the law of addition , The total number of methods is The first category And The second category Add it up , The selection methods are
2
P
(
24
,
7
)
2\ P(24, 7)
2 P(24,7) Kind of ;
3. The second step is to calculate : take
a
,
b
a,b
a,b Substructure as element , And others
26
−
9
=
17
26-9 = 17
26−9=17 Child elements together , in total
18
18
18 All elements are arranged ;
18
18
18 All elements are arranged , The result is
18
!
18!
18! ;
4. The first step multiply The second step plan ( Step by step calculation principle The law of addition ) :
Number of solutions in the first step multiply Number of schemes in the second step ;
N
=
2
P
(
24
,
7
)
18
!
N = 2\ P(24, 7) \ 18!
N=2 P(24,7) 18!
Two 、 Set arrangement 、 Example of circle arrangement
10
10
10 A boy ,
5
5
5 A girl , Stand in a row , If there are no girls nearby , How many ways ? If you stand in a circle , How many ways ?
Need to use Classification and counting principle ( The principle of addition ) , Step by step counting principle ( Multiplication principle ) ;
- Category count ( The principle of addition ) : Yes
3
3
3 Class scheme , The first is
2
2
2 A plan , The second category is
4
4
4 A plan , The third category is
1
1
1 A plan , All in all
2
+
4
+
1
=
7
2 + 4 + 1 = 7
2+4+1=7 A plan ;
- Step by step counting principle ( Multiplication principle ) : Yes
3
3
3 Class scheme , The first step is
2
2
2 A plan , The second step is
4
4
4 A plan , The third step is
1
1
1 A plan , All in all
2
×
4
×
1
=
8
2 \times 4 \times 1 = 8
2×4×1=8 A plan ;
1.
10
10
10 A boy ,
5
5
5 A girl , Stand in a row , If there are no girls nearby , How many ways :
Step by step processing is required : Put the boys away first , Then insert the girl into the space ;
① First step : Put the boys away first , schoolboy
10
10
10 individual , After standing there
11
11
11 Lattice ;
10
10
10 The placement of boys , Orderly selection of elements without repetition , This is a set arrangement problem , The arrangement scheme has
P
(
10
,
10
)
=
10
!
P(10,10) = 10!
P(10,10)=10! A plan ;
② The second step : Then insert the girl into the space ,
5
5
5 Girls can only put here
11
11
11 In a grid ;
11
11
11 Put
5
5
5 A girl , Orderly selection of elements without repetition , This is the arrangement of sets , The arrangement scheme has
P
(
11
,
5
)
P(11, 5)
P(11,5)
③ Step by step counting principle ( Multiplication principle ) : take Number of solutions in the first step And Number of schemes in the second step Multiply , The number of schemes is :
P
(
10
,
10
)
P
(
11
,
5
)
P(10,10) \ P(11, 5)
P(10,10) P(11,5)
2.
10
10
10 A boy ,
5
5
5 A girl , stand in a ring , If there are no girls nearby , How many ways :
Step by step processing is required : Put the boys away first , Then insert the girl into the space ;
① First step : First put the boys in a circle , schoolboy
10
10
10 individual , Because it's in a circle , So after standing up, there is only
10
10
10 Lattice ;
10
10
10 The placement of boys , Orderly selection of elements without repetition , This is the arrangement of set circles , You need to use the circle arrangement formula , The arrangement scheme has
P
(
10
,
10
)
10
\cfrac{P(10,10)}{10}
10P(10,10) A plan ;
Reference resources : 【 Combinatorial mathematics 】 Permutation and combination ( Arrange and combine content summary | Select the question | Set arrangement | Set combination ) Four 、 Ring arrangement
n
n
n Meta set
S
S
S , from
S
S
S Collection Orderly , No repetition selection
r
r
r Elements ,
S
S
S A collection of
r
−
r-
r− Ring arrangement number
=
P
(
n
,
r
)
r
= \dfrac{P(n,r)}{r}
=rP(n,r)
r
r
r Different linear permutations , Equivalent to the same ring arrangement ;
A ring arrangement , Cut from any position , Can constitute ar
r
r Different linear arrangements ;
② The second step : Then insert the girl into the space ,
5
5
5 Girls can only put here
10
10
10 In a grid ;
10
10
10 Put
5
5
5 A girl , Orderly selection of elements without repetition , This is the arrangement of sets , The arrangement scheme has
P
(
10
,
5
)
P(10, 5)
P(10,5)
③ Step by step counting principle ( Multiplication principle ) : take Number of solutions in the first step And Number of schemes in the second step Multiply , The number of schemes is :
P
(
10
,
10
)
10
P
(
10
,
5
)
\cfrac{P(10,10)}{10} \ P(10, 5)
10P(10,10) P(10,5)
边栏推荐
- JVM系列——概述,程序计数器day1-1
- mysql中的字段问题
- pytorch 载入历史模型时更换gpu卡号,map_location设置
- Several common optimization methods matlab principle and depth analysis
- Qt学习25 布局管理器(四)
- 【556. 下一个更大元素 III】
- 金属有机骨架(MOFs)抗肿瘤药载体|PCN-223装载甲硝唑|UiO-66包载盐酸环丙沙星([email protected])
- [développement technologique - 24]: caractéristiques des technologies de communication Internet des objets existantes
- Go language unit test 4: go language uses gomonkey to test functions or methods
- Qt学习17 对话框及其类型
猜你喜欢

RichView TRVStyle ListStyle 列表样式(项目符号编号)

GoLand 2021.1: rename the go project

【BW16 应用篇】安信可BW16模组与开发板更新固件烧录说明

Go language web development series 27: Gin framework: using gin swagger to implement interface documents

全面发展数字经济主航道 和数集团积极推动UTONMOS数藏市场
![[技术发展-24]:现有物联网通信技术特点](/img/f3/a219fe8e7438b8974d2226b4c3d4a4.png)
[技术发展-24]:现有物联网通信技术特点
![[技術發展-24]:現有物聯網通信技術特點](/img/f3/a219fe8e7438b8974d2226b4c3d4a4.png)
[技術發展-24]:現有物聯網通信技術特點

Multi person collaborative data annotation based on Baidu brain easydata from scratch

Kivy tutorial how to automatically load kV files

GoLand 2021.2 configure go (go1.17.6)
随机推荐
TensorBoard可视化处理案例简析
php 迷宫游戏
使用Tensorflow进行完整的深度神经网络CNN训练完成图片识别案例2
Mobile phones and computers can be used, whole people, spoof code connections, "won't you Baidu for a while" teach you to use Baidu
PhpMyAdmin stage file contains analysis traceability
Box layout of Kivy tutorial BoxLayout arranges sub items in vertical or horizontal boxes (tutorial includes source code)
Mysql:insert date:sql error [1292] [22001]: data truncation: incorrect date value:
Qt学习23 布局管理器(二)
Stack application (balancer)
[556. Next larger element III]
3D视觉——2.人体姿态估计(Pose Estimation)入门——OpenPose含安装、编译、使用(单帧、实时视频)
使用tensorflow进行完整的DNN深度神经网络CNN训练完成图片识别案例
Unity embeddedbrowser browser plug-in event communication
Go language web development series 27: Gin framework: using gin swagger to implement interface documents
软件测试工作那么难找,只有外包offer,我该去么?
MapReduce implements matrix multiplication - implementation code
C language standard IO function sorting
Qt学习24 布局管理器(三)
顺序表(C语言实现)
Heap structure and heap sort heapify