Partial permutation
View on WikipediaIn combinatorial mathematics, a partial permutation, or sequence without repetition, on a finite set S is a bijection between two specified subsets of S. That is, it is defined by two subsets U and V of equal size, and a one-to-one mapping from U to V. Equivalently, it is a partial function on S that can be extended to a permutation.[1][2]
Representation
[edit]It is common to consider the case when the set S is simply the set {1, 2, ..., n} of the first n positive integers. In this case, a partial permutation may be represented by a string of n symbols, some of which are distinct numbers in the range from 1 to and the remaining ones of which are a special "hole" symbol ◊. In this formulation, the domain U of the partial permutation consists of the positions in the string that do not contain a hole, and each such position is mapped to the number in that position. For instance, the string "1 ◊ 2" would represent the partial permutation that maps 1 to itself and maps 3 to 2.[3] The seven partial permutations on two items are
- ◊◊, ◊1, ◊2, 1◊, 2◊, 12, 21.
Combinatorial enumeration
[edit]The number of partial permutations on n items, for n = 0, 1, 2, ..., is given by the integer sequence
- 1, 2, 7, 34, 209, 1546, 13327, 130922, 1441729, 17572114, 234662231, ... (sequence A002720 in the OEIS)
where the nth item in the sequence is given by the summation formula
in which the ith term counts the number of partial permutations with support of size i, that is, the number of partial permutations with i non-hole entries. Alternatively, it can be computed by a recurrence relation
This is determined as follows:
- partial permutations where the final elements of each set are omitted:
- partial permutations where the final elements of each set map to each other.
- partial permutations where the final element of the first set is included, but does not map to the final element of the second set
- partial permutations where the final element of the second set is included, but does not map to the final element of the first set
- , the partial permutations included in both counts 3 and 4, those permutations where the final elements of both sets are included, but do not map to each other.
Restricted partial permutations
[edit]Some authors restrict partial permutations so that either the domain[4] or the range[3] of the bijection is forced to consist of the first k items in the set of n items being permuted, for some k. In the former case, a partial permutation of length k from an n-set is just a sequence of k terms from the n-set without repetition. (In elementary combinatorics, these objects are sometimes confusingly called "k-permutations" of the n-set.)
References
[edit]- ^ Straubing, Howard (1983), "A combinatorial proof of the Cayley-Hamilton theorem", Discrete Mathematics, 43 (2–3): 273–279, doi:10.1016/0012-365X(83)90164-4, MR 0685635.
- ^ Ku, C. Y.; Leader, I. (2006), "An Erdős-Ko-Rado theorem for partial permutations", Discrete Mathematics, 306 (1): 74–86, doi:10.1016/j.disc.2005.11.007, MR 2202076.
- ^ a b Claesson, Anders; Jelínek, Vít; Jelínková, Eva; Kitaev, Sergey (2011), "Pattern avoidance in partial permutations", Electronic Journal of Combinatorics, 18 (1): Paper 25, 41, arXiv:1005.2216, doi:10.37236/512, MR 2770130.
- ^ Burstein, Alexander; Lankham, Isaiah (2010), "Restricted patience sorting and barred pattern avoidance", Permutation patterns, London Math. Soc. Lecture Note Ser., vol. 376, Cambridge: Cambridge Univ. Press, pp. 233–257, arXiv:math/0512122, doi:10.1017/CBO9780511902499.013, ISBN 978-0-521-72834-8, MR 2732833.
Partial permutation
View on GrokipediaDefinition and Basics
Formal Definition
A partial permutation on a finite set is defined as a bijection , where and are subsets of such that .[1] This structure ensures that is one-to-one and onto between the specified subsets, capturing a matching of elements from to itself without requiring full coverage of .[4] The domain of , denoted , is the subset on which is defined, while the range, denoted , is the subset that serves as the image of under .[1] The size of the partial permutation is given by , representing the number of elements actively mapped by .[4] For instance, consider and the mapping that sends to while leaving and undefined in the domain; here, , , and the size is .[1] Partial permutations are frequently studied in the context of the set , where . Unlike a general injection from a subset of into , a partial permutation specifically requires the mapping to be a bijection onto its range subset, ensuring an exact correspondence between domain and range.[1] Full permutations arise as the special case where .[4]Relation to Permutations
Partial permutations generalize the concept of full permutations by allowing the mapping to apply only to a proper subset of the elements, rather than the entire set. Specifically, a full permutation of a set of size is equivalent to an -partial permutation on , where the domain and range both coincide with .[5] Note that in some combinatorial contexts, particularly in permutation pattern avoidance, "partial permutations" alternatively refer to injections from to , which are ordered selections of distinct elements from (counted by ). This differs from the bijection-between-subsets definition used here.[6]Properties
Structural Properties
A partial permutation on a finite set is defined as a bijection , where and are subsets of with equal cardinality .[1][4] By this definition, is injective on its domain, meaning distinct elements in map to distinct elements in , and surjective onto its range, meaning every element in is the image of exactly one element in .[1][4] The support of a partial permutation , denoted , is the union , which captures all elements of involved in the mapping.[7] The size of the support satisfies , since , with equality to occurring when .[4] For a partial permutation of size on the set with , the possible supports are subsets of of size between and , chosen such that there exist subsets (not necessarily disjoint) with and . For example, on [5] with , a possible support is , where and , allowing mappings like , .[4] Fixed points of are elements such that .[3] These arise naturally when the domain and range overlap, and the number of fixed points is the size of the set . In the identity partial permutation on a subset with , every element of is a fixed point.[1] A fundamental structural theorem states that any partial permutation on a finite set can be extended to a full permutation of the entire set. Specifically, given with and , there exists a permutation of such that extends , meaning and for all . This extension is not unique in general but always exists, for example by choosing any bijection from to .[1] Conversely, any injective mapping between finite subsets with uniquely defines a partial permutation with and , as the bijectivity follows directly from the injectivity and equal cardinalities.[4]Operations on Partial Permutations
Partial permutations, as bijections between subsets of a finite set, support several key operations that preserve their bijective nature. The primary operation is composition, which combines two partial permutations and on a set . The composition is defined on the subset of where , with for such . Thus, and , ensuring the result remains a partial permutation with rank at most the minimum of the ranks of and .[8] If , standard composition yields the empty partial permutation unless the domains and ranges are structured to allow partial overlap; however, in cases of disjoint supports (where and ), the disjoint union operation defines a new partial permutation as the union of their graphs, resulting in a larger bijection with rank equal to the sum of the individual ranks. Another fundamental operation is inversion. For a partial permutation , its inverse is the unique partial permutation satisfying and , where denotes the identity on the respective subsets. Here, and , with if . This operation swaps the domain and range while preserving bijectivity.[8] Extension provides a way to enlarge a partial permutation while maintaining its properties. Given a partial permutation of rank on a set with , an extension to rank is obtained by selecting an element for the domain and for the range, then adding the mapping to . The resulting function remains a bijection between the enlarged subsets. This process can be repeated until the rank reaches , potentially yielding a full permutation. For example, consider and , a rank-1 partial permutation. Composing with (rank 1, with overlap) gives (rank 1). If instead (disjoint support), their disjoint union is (rank 2). Extending by adding yields the same rank-2 partial permutation. In non-disjoint cases, such as composing with (overlap but cycle), the result is the empty partial permutation since but the preimage domain is non-empty only if compatible, here reducing rank to 0.[9] The collection of all partial permutations on a finite set with , denoted , forms an inverse monoid under the above composition operation, including the identity partial permutation (full bijection on ) as the unit and the empty map as a zero element. This structure is closed under composition and inversion, with every element idempotent in its local sense, and .[9]Representations
Bijection Representation
A partial permutation can be viewed as a bijection , where for a finite set and , with being one-to-one and onto between these subsets.[1] This representation emphasizes the injective mapping property while allowing elements outside and to remain unmapped, distinguishing it from full permutations where .[10] Graphically, a partial permutation is often depicted as a bipartite graph with partite sets corresponding to two copies of , say the domain side and range side, where edges connect to , ensuring no two edges share a vertex.[11] Alternatively, it can be shown in a permutation diagram, similar to full permutations, with horizontal lines for unmatched elements in or to highlight the partial nature of the matching.[12] In matrix form, a partial permutation is represented by a partial permutation matrix, an (0,1)-matrix with at most one 1 in each row and each column, where the positions of the 1s indicate the bijection: a 1 at entry means .[13] This differs from a full permutation matrix, which has exactly one 1 per row and column, by permitting zero rows and columns for unmatched elements.[14] For example, consider and , ; the corresponding matrix isSequence Representation
A partial permutation can be represented in sequence form as an ordered tuple consisting of distinct elements from the finite set with , where this sequence implies a bijection defined by for each .[16] This view treats the positions in the sequence as an ordered domain, mapping consecutively from 1 to , while the values form the corresponding image subset.[17] For instance, given , the sequence represents the partial permutation where and , leaving 3 unmapped.[16] This representation highlights the injective nature of the mapping, ensuring no repetitions in the sequence, which aligns with the total number of such partial permutations being .[17] To convert a general bijection representation—where the domain is an arbitrary subset of size —to this sequence form, one orders the elements of in increasing natural order (or another fixed ordering) to relabel them as 1 through , then lists the corresponding images in that sequence.[18] This process facilitates systematic enumeration and generation of partial permutations, as sequences lend themselves to lexicographic ordering or recursive construction algorithms for listing all possibilities without duplication.[16] However, this sequence representation assumes an implicitly ordered domain as the initial segment , making it less flexible for cases where the domain subset requires preservation of its original structure or non-consecutive labeling, in contrast to the more general bijection view that directly specifies arbitrary subsets.[18]Enumeration
Counting Formulas
The number of partial permutations of order k (i.e., with |\operatorname{dom}(p)| = |\operatorname{ran}(p)| = k) on an n-element set isThis counting aligns with the bijection representation of partial permutations.