@@ -45,7 +45,7 @@ You can check out an example project to see how to use the library [combinatoric
4545| [ Permutations with repetitions] ( #4-permutations-with-repetitions ) | Yes | Yes | ` Generator.permutation(...).withRepetitions(n).stream() ` |
4646
4747
48- ###1 . Simple combinations
48+ ### 1. Simple combinations
4949A simple k-combination of a finite set S is a subset of k distinct elements of S.
5050Specifying a subset does not arrange them in a particular order. As an example, a poker hand can
5151be described as a 5-combination of cards from a 52-card deck: the 5 cards of the hand are all distinct,
@@ -73,7 +73,7 @@ And the result of 10 combinations
7373 [white, green, blue]
7474```
7575
76- ###2 . Combinations with repetitions
76+ ### 2. Combinations with repetitions
7777A k-multicombination or k-combination with repetition of a finite set S is given by a sequence of
7878k not necessarily distinct elements of S, where order is not taken into account.
7979
@@ -98,7 +98,7 @@ And the result will be:
9898 [orange, orange, orange]
9999```
100100
101- ###3 . Simple permutations
101+ ### 3. Simple permutations
102102A permutation is an ordering of a set in the context of all possible orderings. For example, the set
103103containing the first three digits, 123, has six permutations: 123, 132, 213, 231, 312, and 321.
104104
@@ -142,7 +142,7 @@ The result does not have duplicates. All permutations are distinct by default.
142142Notice that we have 6 permutations here instead of 24. If you still need all permutations,
143143you should call method ` simple(PermutationGenerator.TreatDuplicatesAs.IDENTICAL) ` .
144144
145- ###4 . Permutations with repetitions
145+ ### 4. Permutations with repetitions
146146Permutation may have more elements than slots. For example, all possible permutation of ` 12 `
147147in three slots are: ` 111 ` , ` 211 ` , ` 121 ` , ` 221 ` , ` 112 ` , ` 212 ` , ` 122 ` , and ` 222 ` .
148148
@@ -171,7 +171,7 @@ And the list of all 8 permutations
171171 [orange, orange, orange]
172172```
173173
174- ###5 . Subsets
174+ ### 5. Subsets
175175A set ` A ` is a subset of a set ` B ` if ` A ` is "contained" inside ` B ` . ` A ` and ` B ` may coincide.
176176The relationship of one set being a subset of another is called inclusion or sometimes containment.
177177
@@ -213,7 +213,7 @@ And the list of all 8 subsets
213213 [one, two, three]
214214```
215215
216- ###6 . Integer Partitions
216+ ### 6. Integer Partitions
217217In number theory, a partition of a positive integer ` n ` is a way of writing ` n ` as a sum of positive integers.
218218Two sums that differ only in the order of their summands are considered to be the same partition;
219219if order matters then the sum becomes a composition. A summand in a partition is also called a part.
0 commit comments