当前位置:网站首页>[combinatorics] permutation and combination (set permutation, step-by-step processing example)
[combinatorics] permutation and combination (set permutation, step-by-step processing example)
2022-07-03 15:02:00 【Programmer community】
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 )
- 【 Combinatorial mathematics 】 Permutation and combination ( Two counting principles 、 Set arrangement example | Set arrangement 、 Example of circle arrangement )
- 【 Combinatorial mathematics 】 Permutation and combination ( Set combination 、 One to one correspondence model analysis example )
One 、 Set arrangement 、 Step by step example
Yes
9
9
9 A different book ,
4
4
4 Ben hongpi ,
5
5
5 Ben Baipi ;
1.
9
9
9 The arrangement of this book :
9
9
9 This book , Every book is different , Elements do not repeat , Permutation refers to orderly selection ,
So here Elements do not repeat , Orderly selection , The corresponding is Arrangement of sets , Use the set arrangement formula ;
N
=
P
(
n
,
r
)
=
P
(
9
,
9
)
=
9
!
(
9
−
9
)
!
=
9
!
N = P(n,r) = P(9, 9) = \cfrac{9!}{(9-9)!} = 9!
N=P(n,r)=P(9,9)=(9−9)!9!=9!
* Review of permutations and combinations :
- Number of permutations :
n
n
n Meta set
S
S
S
S
S Collection Orderly , No repetition selection
r
r
r Elements ,
P
(
n
,
r
)
=
n
!
(
n
−
r
)
!
P(n,r) = \dfrac{n!}{(n-r)!}
P(n,r)=(n−r)!n!
S , from
- Combinatorial number :
n
n
n Meta set
S
S
S
S
S Collection disorder , No repetition selection
r
r
r Elements ,
C
(
n
,
r
)
=
P
(
n
,
r
)
r
!
n
!
(
n
−
r
)
!
r
!
C(n,r) = \dfrac{P(n,r)}{r!} \dfrac{n!}{(n-r)!r!}
C(n,r)=r!P(n,r)(n−r)!r!n!
Reference resources : 【 Combinatorial mathematics 】 Permutation and combination ( Arrange and combine content summary | Select the question | Set arrangement | Set combination )S , from
2. The arrangement of white papers together :
Step by step processing : Step by step processing is required , Arrange the white papers first , And then All white papers As an element , Sort with the red book ;
( 1 ) The first
1
1
1 Step :
5
5
5 This white paper is put together , The arrangement is Elements do not repeat Orderly selection , Is the arrangement of sets ;
N
=
P
(
n
,
r
)
=
P
(
5
,
5
)
=
5
!
(
5
−
5
)
!
=
5
!
N = P(n,r) = P(5, 5) = \cfrac{5!}{(5-5)!} = 5!
N=P(n,r)=P(5,5)=(5−5)!5!=5!
( 2 ) The first
2
2
2 Step :
4
4
4 This red book , With a set of white papers Sort , Yes
5
5
5 Elements , Arrange them all ;
N
=
P
(
n
,
r
)
=
P
(
5
,
5
)
=
5
!
(
5
−
5
)
!
=
5
!
N = P(n,r) = P(5, 5) = \cfrac{5!}{(5-5)!} = 5!
N=P(n,r)=P(5,5)=(5−5)!5!=5!
( 3 ) Step by step summary ( Multiplication principle ) : Multiply the number of arrangement schemes of the above two steps , It's the end result ;
N
=
5
!
5
!
N = 5! \ 5!
N=5! 5!
3. Put the white papers together , Put the red books together The arrangement of :
Step by step processing : Step by step processing is required ,
- Arrange the white papers first ;
- Then arrange the red books ;
- The final will be All white papers As an element , All red books are treated as an element , Arrange the above two elements ;
( 1 ) The first
1
1
1 Step :
5
5
5 This white paper is put together , The arrangement is Elements do not repeat Orderly selection , Is the arrangement of sets ;
N
=
P
(
n
,
r
)
=
P
(
5
,
5
)
=
5
!
(
5
−
5
)
!
=
5
!
N = P(n,r) = P(5, 5) = \cfrac{5!}{(5-5)!} = 5!
N=P(n,r)=P(5,5)=(5−5)!5!=5!
( 2 ) The first
2
2
2 Step :
4
4
4 Put the red books together , The arrangement is Elements do not repeat Orderly selection , Is the arrangement of sets ;
N
=
P
(
n
,
r
)
=
P
(
4
,
4
)
=
4
!
(
4
−
4
)
!
=
4
!
N = P(n,r) = P(4, 4) = \cfrac{4!}{(4-4)!} = 4!
N=P(n,r)=P(4,4)=(4−4)!4!=4!
( 3 ) The first
3
3
3 Step : The final will be All white papers As an element , All red books are treated as an element , Arrange the above two elements ;
N
=
P
(
n
,
r
)
=
P
(
2
,
2
)
=
2
!
(
2
−
2
)
!
=
2
!
N = P(n,r) = P(2, 2) = \cfrac{2!}{(2-2)!} = 2!
N=P(n,r)=P(2,2)=(2−2)!2!=2!
( 4 ) Step by step summary ( Multiplication principle ) : Put the above
3
3
3 Multiply the number of arrangement schemes of steps , It's the end result ;
N
=
5
!
4
!
2
!
N = 5! \ 4! \ 2!
N=5! 4! 2!
4. White papers and red books are arranged alternately The arrangement of :
Step by step processing : Step by step processing is required ,
- Arrange the white papers first ;
- Then insert the red book into ;
( 1 ) The first
1
1
1 Step :
5
5
5 This white paper is put together , The arrangement is Elements do not repeat Orderly selection , Is the arrangement of sets ;
N
=
P
(
n
,
r
)
=
P
(
5
,
5
)
=
5
!
(
5
−
5
)
!
=
5
!
N = P(n,r) = P(5, 5) = \cfrac{5!}{(5-5)!} = 5!
N=P(n,r)=P(5,5)=(5−5)!5!=5!
( 2 ) The first
2
2
2 Step :
5
5
5 This white paper is arranged to form
4
4
4 Empty space , Insert the red book into
4
4
4 A place , That is, the set is arranged completely ;
N
=
P
(
n
,
r
)
=
P
(
4
,
4
)
=
4
!
(
4
−
4
)
!
=
4
!
N = P(n,r) = P(4, 4) = \cfrac{4!}{(4-4)!} = 4!
N=P(n,r)=P(4,4)=(4−4)!4!=4!
( 3 ) Step by step summary ( Multiplication principle ) : Put the above
2
2
2 Multiply the number of arrangement schemes of steps , It's the end result ;
N
=
5
!
4
!
N = 5! \ 4!
N=5! 4!
边栏推荐
- How does vs+qt set the software version copyright, obtain the software version and display the version number?
- Tensor ellipsis (three points) slice
- Optical cat super account password and broadband account password acquisition
- 【微信小程序】WXSS 模板样式
- [ue4] geometry drawing pipeline
- Introduction to opengl4.0 tutorial computing shaders
- Several sentences extracted from the book "leather bag"
- Influxdb2 sources add data sources
- Global and Chinese markets for sterile packaging 2022-2028: Research Report on technology, participants, trends, market size and share
- Global and Chinese market of iron free motors 2022-2028: Research Report on technology, participants, trends, market size and share
猜你喜欢

My QT learning path -- how qdatetimeedit is empty

Centos7 deployment sentry redis (with architecture diagram, clear and easy to understand)

C language DUP function

第04章_逻辑架构

【Transform】【实践】使用Pytorch的torch.nn.MultiheadAttention来实现self-attention

Dllexport et dllimport

Influxdb2 sources add data sources

There are links in the linked list. Can you walk three steps faster or slower

复合类型(自定义类型)

dllexport和dllimport
随机推荐
Several sentences extracted from the book "leather bag"
Zzuli: cumulative sum of 1050 factorials
【pytorch学习笔记】Transforms
Global and Chinese markets of AC electromechanical relays 2022-2028: Research Report on technology, participants, trends, market size and share
Vs+qt application development, set software icon icon
[Yu Yue education] scientific computing and MATLAB language reference materials of Central South University
Qt—绘制其他东西
There are links in the linked list. Can you walk three steps faster or slower
[graphics] adaptive shadow map
B2020 分糖果
【Transformer】入门篇-哈佛Harvard NLP的原作者在2018年初以逐行实现的形式呈现了论文The Annotated Transformer
The latest M1 dedicated Au update Adobe audit CC 2021 Chinese direct installation version has solved the problems of M1 installation without flash back!
Container of symfony
【pytorch学习笔记】Datasets and Dataloaders
Yolov5系列(一)——網絡可視化工具netron
[engine development] rendering architecture and advanced graphics programming
Optical cat super account password and broadband account password acquisition
[opengl] pre bake using computational shaders
Yolov5 advanced 8 format conversion between high and low versions
Bucket sorting in C language