Generation of permutations of multisets

dc.contributor.authorKo, Chun Waen_US
dc.date.accessioned2024-08-14T18:33:47Z
dc.date.available2024-08-14T18:33:47Z
dc.date.copyright1986en_US
dc.date.issued1986
dc.degree.departmentDepartment of Computer Science
dc.degree.levelMaster of Science M.Sc.en
dc.description.abstractA multiset is a set in which elements may repeat. A permutation of a multiset is a permutation of the sequence consisting of all elements in the multiset. An algorithm is given that generates all permutations of a multiset such that consecutively generated permutations differ by an interchange of elements. On average the permutat10ns are generated in time bounded by a constant, independent of the number of symbols and n, the length of each permutation. Ranking and unranking algorithms of order O(n²) for the generat10n algorithm are also given. An adjacent interchange generation algorithm for multiset permutations has the following property consecutively generated permutations differ by an interchange of adjacent elements. However it is not always possible to generate all permutations of a multiset by adjacent interchange. The problem of determining if an adjacent interchange algorithm exists for a multiset is equivalent to determining if a Hamilton path exists in the graph whose vertices are the multiset permutations and whose edges represent adjacent interchange. Necessary conditions are given for such graphs not to contain any Hamilton path. A rooted ordered tree with n₀+1 leaves and nᵢ internal nodes with i children each, for i = 1, ,t, can be represented uniquely by a sequence cons1stmg of nᵢ occurrences of i, i = 0, ,t Such sequences are permutations of multisets. The results for multiset generation by adjacent interchange are extended to rooted trees represented by these sequences. Necessary conditions on nᵢ, i = 0, ,t, are given for cases where it is impossible to generate by adjacent interchange all trees with the prescribed number of leaves and internal nodes.en
dc.format.extent95 pages
dc.identifier.urihttps://hdl.handle.net/1828/18484
dc.rightsAvailable to the World Wide Weben_US
dc.subjectUN SDG 17: Partnershipsen
dc.titleGeneration of permutations of multisetsen_US
dc.typeThesisen_US

Files

Original bundle
Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
KO_Chun_Wa_MSc_1986_57229.pdf
Size:
14.59 MB
Format:
Adobe Portable Document Format