Permutations without two-cycles 2026-10-06
These permutations have no cycle of length two, while fixed points and longer cycles are allowed. Inclusion-exclusion over specified two-cycles gives the count shown: only disjoint specified pairs can coexist. Their fraction among all permutations tends to . This condition differs from being a derangement and from refusing to express a permutation as a product of transpositions.
Polarization spanning of symmetric tensors Created 2026-10-07 Updated 2026-10-14
Over a field of characteristic zero, degree- symmetric tensors are spanned by pure powers . Inclusion-exclusion expands into the sum of all permutation orderings of . Every surviving term uses each of the labels once. This converts an invariant-tensor spanning problem into pure tensor powers.
Prefix reversal Created 2026-10-24 Updated 2026-10-31
Reverse the first entries of a sequence and leave its suffix unchanged. On a permutation, this is a bijection on positions and is its own inverse: performing the same reversal twice restores the state. The nontrivial moves have . With unit-cost moves, the resulting state graph supports a breadth-first search for a minimum-move solution.
Prefix reversal sorting Created 2026-10-24 Updated 2026-10-31
To sort a permutation using prefix reversals, work backwards through final positions. On an active prefix of length , find its largest value. If it is already at the final position, shorten the active prefix. Otherwise move it to the front with one reversal if necessary, then reverse the entire active prefix to put it last. Already settled suffix positions are untouched.
The settled suffix is a loop invariant, and active-prefix length decreases to one. This proves reachability of the identity permutation in at most nontrivial flips. The construction is a finite upper bound, not a promise of minimum length; breadth-first search can find the minimum for small instances.
For , every permutation of order of a permutation in is one full cycle if and only if is a prime power. If , all lengths in its disjoint cycle decomposition divide , and their least common multiple is their maximum. One cycle therefore has length and uses every symbol. If has more than one prime divisor, write with coprime by separating one full prime-power factor from the others. Since , disjoint cycles of lengths and fit inside . Their product has order of a permutation , but is not a full cycle.
Projection kernel determinant integration Created 2026-10-07 Updated 2026-10-25
Suppose an integral kernel reproduces under convolution and has integrable diagonal with integral , and the displayed single-variable integrals exist. In the determinant , permutations fixing contribute after integration. For every permutation on letters there are ways to insert into a cycle; convolution contracts the two adjacent factors, and insertion reverses the permutation sign. These terms contribute . This proves the formula without a symmetry assumption on the kernel.
Prüfer sequence 2026-10-14
For , a Prüfer sequence is the encoding of a labelled tree on by a sequenceRepeated labels are allowed, and their order matters. To encode the tree, repeatedly remove its smallest-labelled leaf of a graph together with its incident edge, recording the label of its unique neighbour. Stop when two vertices remain; do not record their final edge. Removing a leaf of a graph leaves a tree, so the procedure makes exactly deletions. The choice of the smallest label makes the encoding deterministic. [ref]
https://users.math.msu.edu/users/magyarp/math481/. Peter Magyar, Math 481: Prüfer encoding with the smallest leaf
For a concrete example, take six vertices and the set of edgesInitially label the vertices of vertex degree one. Remove and record its neighbour . Now has become a leaf of a graph, so remove and record . Next remove and record again; then remove and record . The final edge joins and . Thus the Prüfer sequence isThe deletion order is : removing a leaf of a graph can make its neighbour a leaf of a graph, so the eligible labels change as the tree shrinks.
To decode, keep a set of remaining labels, initially , and the remaining sequence, initially . While the sequence is nonempty, let be the smallest label in absent from the entire remaining sequence. Add an edge between and its first entry, then remove from and delete that first entry. Finally join the two labels left in . For the example:
The decoder always has a choice: if the remaining sequence has length , then has labels, so at least two of them are absent. Its first entry is still in , and differs from the chosen absent label. Every removed vertex attaches to a vertex that survives longer; following these attachments eventually reaches the final pair. Consequently the decoded graph is connected, and its edges make it a tree. In this construction, each occurrence of contributes an incident edge, and gets one more edge at its final attachment. Thus a remaining label is absent from the remaining sequence exactly when it labels a leaf of a graph. Encoding and decoding choose the same smallest label at each step and undo each other. This bijection proves Cayley's formula and explains why every freely chosen sequence is valid. [ref]
https://www.cs.columbia.edu/~cs4203/files/GT-Lec4.pdf. Columbia University, Graph Theory Lecture 4: Prüfer degree identity, decoding algorithm, and bijection
For there is exactly one empty sequence, and decoding adds the sole edge. For there is one tree, with vertex degree zero, but no length- Prüfer sequence. This is the exception both to the encoding convention and to the Prüfer degree formula.
Heinz Prüfer's 1918 paper "Neuer Beweis eines Satzes über Permutationen" appeared in Archiv der Mathematik und Physik, third series, volume 27, pages 142–144. It gives an encoding proof of the labelled tree count. The historical title means "New proof of a theorem on permutations"; the modern Prüfer sequence permits repeated labels, so it is not a permutation. [ref]
https://i.sstatic.net/WDvxyMwX.png. Prüfer (1918), original opening-page scan, page 142
Quadratic assignment problem 2026-10-14
A permutation assigns facilities to locations, and the objective combines their pairwise interactions with pairwise location costs. Ordered-pair and unordered-pair conventions differ by a factor of two for symmetric data. The decision version is NP-complete: letting record a directed cycle makes the objective exactly the length of a travelling salesman problem tour under the ordering given by the permutation. The optimization version is NP-hard.
Quadratic median-of-three selection family 2026-10-25
A distinct-input counterexample for Quickselect that chooses the first/middle/last median, reserves it at the last slot, scans lower values to the front, and finally swaps the pivot into place. Let be the following permutation of . For , take increasing order. For , let componentwise and , then setand put at every other index . These assignments use every entry of once and add zero and one, so they really define a permutation.
The sampled values are , with the last at least two, so the pivot is one. After the initial pivot swap, the only lower value is the zero at index . Moving it to the front places the displaced at its intended tail position. The final pivot swap moves from index one to the last position. Every other tail entry already has its intended position. Thus the complete partitioned result is exactly followed by .
Selecting the maximum consequently repeats the same construction on entries. If counts only pivot comparisons made by the partition scan, then , with and . Hence and total runtime is . For example, . This disproves a linear worst-case claim even when every value is distinct.
Quotient group Created 2026-09-24 Updated 2026-10-14
For a group and a normal subgroup , the quotient group is the set of cosets , with operationIts identity element is the coset , and the inverse element of is . A quotient group treats all elements within one coset as the same input while retaining a consistent operation on the classes. The normal subgroup condition is what makes this operation independent of which representatives are chosen. [ref]
https://ocw.mit.edu/courses/18-703-modern-algebra-spring-2013/ecdbd211f736b3ac92379dea05b34491_MIT18_703S13_pra_l_9.pdf. McKernan, MIT 18.703, Theorem 9.1: quotient-group construction
.Take the additive group and . Since is an abelian group, is a normal subgroup. There are three elements in the quotient group:Adding two copies of gives ; adding and gives . Hence the quotient group has the addition table of . It does not select one representative and discard the others: its elements are the entire cosets.
Identifying residues differing by three turns a six-element cyclic group into a three-element quotient group
. Details. This is useful whenever distinctions within a normal subgroup should be ignored. For example, the sign of a permutation retains only even or odd parity of a permutation in . Its group kernel is the alternating group , and the quotient group has two elements. The first isomorphism theorem explains why a group homomorphism's image is a quotient group of its domain.
Radix sort suffix invariant 2026-10-18
After passes, , the array is in nondecreasing order of , the integer represented by its lowest numerical digits. Equivalently it is ordered by the tuple under lexicographic order, with the most significant processed numerical digit first. Among equal suffixes it retains the original order of the complete sorting records.
The loop invariant has a simple mathematical induction proof. Before any pass, for every sort key, so the original array satisfies it. Suppose it holds after passes. The next stable digit sort puts smaller groups first and preserves the existing order within each tie. Sincethe new array is ordered by . Equal new suffixes have equal current numerical digits and equal old suffixes, so their original order is also preserved. Every pass is a permutation of complete sorting records, establishing sorting permutation preservation. At termination , the assumption gives : the invariant becomes whole-key sortedness, together with stable sorting.
Robinson–Schensted correspondence Created 2026-10-06 Updated 2026-10-07
Insert the successive letters of a permutation by row insertion to obtain an insertion tableau , recording the insertion times in the new boxes of . This is a bijection between permutations and pairs of standard Young tableaux of a common shape. Reverse insertion removes the box marked by the latest recording time. The first row of has length equal to the longest increasing subsequence.
Rotational symmetry group of a cube Created 2026-10-05 Updated 2026-10-14
The orientation-preserving symmetries of a cube are the signed permutation matrices with determinant one. There are of them. Their group action on the four body diagonals identifies this group with the symmetric group . Indeed choose diagonal directions , whose sum is zero and whose only linear relation has all coefficients equal. A rotation fixing every diagonal sends each direction to itself or its negative; the relation forces all four signs equal. All negative would give , which has determinant , so the kernel of a group homomorphism is trivial. Both groups have order 24, giving the identification. Its face permutations have cycle types , , , and , occurring times respectively.
Sampling without replacement Created 2026-10-14 Updated 2026-10-14
Sampling without replacement selects distinct labelled units: after a unit is selected it is unavailable for the remaining draws. Distinct labels can carry equal numerical values, so repeated values do not necessarily imply a repeated unit. The rule alone does not specify selection probabilities; a procedure favoring particular units is still sampling without replacement but need not be simple random sampling.
In uniform sequential sampling without replacement, the next label is chosen uniformly among those remaining. For a population of labels, any ordered sequence of distinct labels has probability . Each size- subset has possible orders, so its probability is . This gives the fixed-size simple random sampling design. Equivalently, take the first labels of a uniformly random permutation. Restricting a uniformly random permutation to a specified label set preserves uniformity; biased modulo mappings should not replace uniform selection.
The draw positions have identical marginal probability distributions, but exhibit statistical dependence. If the first label is , the conditional probability that the second label is is zero, whereas its marginal probability is . Thus these draws are not independent and identically distributed when and . For a marked subset of labels, counting size- subsets with binomial coefficients gives the hypergeometric distribution. The resulting negative covariance explains the finite population correction for both counts and sample means.
Shapley value denominator in a simple game 2026-10-25
In an -player simple cooperative game, every marginal contribution along a player permutation is zero or one. The Shapley value is its average over the equally likely permutations. Thus counts the orders in which player changes a losing coalition into a winning one and is an integer. In lowest terms, the coordinate's denominator divides . This is a necessary constraint on a proposed Shapley value vector, not a sufficient one.
Shapley value of an airport game 2026-10-31
Suppose the distinct required runway lengths are , with users of type , constant cost per unit length, and suffix counts . Then every type- user has the displayed Shapley value. For layer , exactly users require it. The first of them in a uniformly random permutation contributes its entire cost . Each requiring user has probability of being first. Linearity of the Shapley value sums these expected marginal contributions across the layers that user needs.
The allocation lies in the cost core. Its payments sum to the full runway cost. For any coalition , its total payment toward layer is , where is the set of users requiring that layer. This is zero if needs no such layer, and at most the full layer cost otherwise. Summing gives . Suffix counts followed by prefix sums compute all distinct type payments in arithmetic operations.
Shapley value of an induced subgraph game 2026-10-25
In a uniformly random player permutation, edge contributes to 's marginal contribution exactly when precedes , which occurs with probability . Sum these expected contributions over incident graph edges to obtain the displayed Shapley value. This proof works for arbitrary real edge weights; nonnegativity is not required.
Sorting permutation preservation 2026-10-13
The output of a sorting algorithm must be a permutation of the complete input sequence. For equal lengths , require a permutation of such thatEquivalently, the input and output have the same multiset of complete entries: each entry has the same multiplicity. Equality of the underlying sets is insufficient; and have the same set of values and the same length but different multisets. When tracking occurrences rather than contents, retain original identity labels to check that each one is moved exactly once. A swap preserves this multiset automatically; an overwrite need not.
Square discriminants in characteristic two 2026-10-25
For a separable polynomial in characteristic two, the Vandermonde determinant of its roots is fixed by every Galois automorphism: root permutations change it only by a sign, and in . It therefore lies in . Its square, multiplied by the square of the appropriate leading-coefficient power for a nonmonic polynomial, is the polynomial discriminant. Thus being a square does not detect containment of the Galois group in the alternating group. For example over has discriminant one and Galois group , while is trivial. The discriminant criterion for an alternating Galois group requires characteristic different from two.
Stable matching in a bipartite graph Created 2026-10-14 Updated 2026-10-18
A stable matching in a bipartite graph pairs two groups so that no acceptable unpaired pair would both rather be together. Give a finite bipartite graph a strict preference ordering at each vertex over its neighbours of a vertex. An edge means that both endpoints regard the pair as acceptable; every acceptable partner ranks above being unmatched. Lists may be incomplete, and and may have unequal cardinalities. A matching in a graph is stable when it has no blocking pair in stable matching.
Write for the partner of a vertex , or if is an unmatched vertex in a matching. An unused edge is a blocking pair in stable matching precisely whenwhere denotes the strict preference at and ranks below every neighbour of a vertex. Both inequalities matter: wanting a different partner alone cannot upset a stable matching. A stable matching need not be a perfect matching; the Gale-Shapley algorithm still finds one with incomplete lists and unequal sides.
Here is an original example on the complete bipartite graph , with and . Read each row from best to worst:There are two stable matchings,For , the only unpaired partners preferred by left vertices are wanting and wanting . But prefers its partner to , and prefers its partner to . Hence neither is a blocking pair in stable matching. For , the left vertices want with , with or , and with or . In every case the right vertex prefers its current partner: has , has , and has .
By contrast, is a perfect matching with a blocking pair in stable matching : prefers to , while prefers to . The abandoned partners need not agree to the change; stability tests the incentives of the two endpoints of the unused edge.
There are permutations of right partners. The following table lists every blocking pair in stable matching for each perfect matching; the middle column gives the partners of in that order:This exhausts the stable matchings: any nonperfect matching in a graph here leaves an unmatched vertex on each side, and those two form a blocking pair in stable matching because every cross-pair is acceptable. Notice that every left vertex prefers and every right vertex prefers . Stability can accommodate opposing interests without selecting a single universally preferred outcome.
A stable matching addresses the possibility of mutually beneficial departures. Its definition contains no numerical total social benefit or maximum-weight matching objective. For example, assigning benefit to each edge of and zero to every other edge makes the unique maximum-weight matching, yet still blocks it under the displayed preference relations. Such external benefits need not represent participants' rankings.


