共查询到20条相似文献,搜索用时 15 毫秒
1.
We give a Gray code and constant average time generating algorithm for derangements, i.e., permutations with no fixed points. In our Gray code, each derangement is transformed into its successor either via one or two transpositions or a rotation of three elements. We generalize these results to permutations with number of fixed points bounded between two constants. 相似文献
2.
Jean-Luc Baril 《Discrete Mathematics》2007,307(13):1559-1571
We give the first Gray code for the set of n-length permutations with a given number of cycles. In this code, each permutation is transformed into its successor by a product with a cycle of length three, which is optimal. If we represent each permutation by its transposition array then the obtained list still remains a Gray code and this allows us to construct a constant amortized time (CAT) algorithm for generating these codes. Also, Gray code and generating algorithm for n-length permutations with fixed number of left-to-right minima are discussed. 相似文献
3.
The generation of efficient Gray codes and combinatorial algorithms that list all the members of a combinatorial object has received a lot of attention in the last few years. Knuth gave a code for the set of all partitions of [n] = {1,2,...,n}. Ruskey presented a modified version of Knuth’s algorithm with distance 2. Ehrlich introduced a looplees algorithm for the set of the partitions of [n]; Ruskey and Savage generalized Ehrlich’s results and introduced two Gray codes for the set of partitions of [n]. In this paper, we give another combinatorial Gray code for the set of the partitions of [n] which differs from the aforementioned Gray codes. Also, we construct a different loopless algorithm for generating the set of all partitions of [n] which gives a constant time between successive partitions in the construction process. 相似文献
4.
5.
6.
In this paper we present two cyclic Gray codes for signed involutions. The first one has a natural construction, implemented by a CAT algorithm, based in the recursive formula for the number of signed involutions. The second code, although with a higher computational cost, has the smallest possible Hamming distance for this family of objects. 相似文献
7.
Bahattin Yildiz 《Discrete Mathematics》2009,309(10):3408-3412
In this correspondence, we will introduce a new combinatorial method for a coordinate-wise construction of the homogeneous-weight preserving Gray map for Galois rings by using elementary tools from Affine Geometries. Our construction differs in the methods used from the algebraic constructions done previously in [M. Greferath, S.E. Schmidt, Gray Isometries for finite chain rings and a nonlinear ternary (36, 312, 15) code, IEEE Trans. Inform. Theory 45 (1999) 2522-2524; S. Ling, J.T. Blackford, Zpk+1-linear codes, IEEE Trans. Inform. Theory 48 (2002) 2592-2605]. 相似文献
8.
9.
In this paper we develop Gray codes for two families of geometric objects: non-crossing partitions and dissections of a convex polygon by means of non-crossing diagonals. 相似文献
10.
Generating functions for computing power indices efficiently 总被引:1,自引:0,他引:1
TheShapley-Shubik power index in a voting situation depends on the number of orderings in which each player is pivotal. TheBanzhaf power index depends on the number of ways in which each voter can effect a swing. We introduce a combinatorial method based
ingenerating functions for computing these power indices efficiently and we study thetime complexity of the algorithms. We also analyze the meet of two weighted voting games. Finally, we compute the voting power in the Council
of Ministers of the European Union with the generating functions algorithms and we present its implementation in the system
Mathematica.
This work has been partially supported by the Spanish Ministery of Science and Technology under grant SEC2000-1243. 相似文献
11.
We introduce the problem of polyomino Gray codes, which is the listing of all members of certain classes of polyominoes such that successive polyominoes differ by some well-defined closeness condition (e.g., the movement of one cell). We discuss various closeness conditions and provide several Gray codes for the class of column-convex polyominoes with a fixed number of cells in each column. For one of our closeness conditions, a natural new class of distributive lattice arises: the partial order is defined on the set of m-tuples [S1]×[S2]××[Sm], where each Si>1 and [Si]={0,1,…,Si−1}, and the cover relations are (p1,p2,…,pm)(p1+1,p2,…,pm) and (p1,p2,…,pj,pj+1,…,pm)(p1,p2,…,pj−1,pj+1+1,…,pm). We also discuss some properties of this lattice. 相似文献
12.
Kouyemon Iriye 《Topology and its Applications》2010,157(13):2059-2068
We study the Gray index, a numerical invariant for phantom maps. It has been conjectured that the only phantom map between finite-type spaces with infinite Gray index is the constant map. We disprove this conjecture by constructing a counter example. We also prove that this conjecture is valid if the target spaces of the phantom maps are restricted to being simply connected finite complexes.As a result of the counter example, we can show that SNT∞(X) can be non-trivial for some space X of finite type. 相似文献
14.
Bradley W. Brock 《Applicable analysis》2013,92(1-4):103-106
From the observation that weights in the Newton-Cotes formulae look like integrals of binomial coefficient polynomials, we are able to evaluate their generating function. We also obtain a generating function for the error terms in the Newton-Cotes formulae by generalizing the Euler-Maclaurin sum formula. 相似文献
15.
《Discrete Mathematics》2023,346(1):113168
We present a simple algorithm that generates a cyclic 2-Gray code for ballot sequences. The algorithm generates each ballot sequence in constant amortized time using a linear amount of space. This is the first known cyclic 2-Gray code for ballot sequences that achieves this time bound. In addition, the algorithm can be easily modified to output ballot sequences in binary reflected Gray code order in constant amortized time per string using a linear amount of space. 相似文献
16.
Andrew King 《Discrete Mathematics》2006,306(5):508-518
An indecomposable permutation π on [n] is one such that π([m])=[m] for no m<n. We consider indecomposable permutations and give a new, inclusive enumerative recurrence for them. This recurrence allows us to generate all indecomposable permutations of length n in transposition Gray code order, in constant amortized time (CAT). We also present a CAT generation algorithm for indecomposable permutations which is based on the Johnson-Trotter algorithm for generating all permutations of length n. The question of whether or not there exists an adjacent transposition Gray code for indecomposable permutations remains open. 相似文献
17.
K. Tarvainen 《Journal of Optimization Theory and Applications》1994,80(1):181-185
A hierarchical algorithm for generating Pareto-optimal alternatives for convex multicriteria problems is derived. At the upper level, values for Lagrange multipliers of the coupling constraints are first given. Then at the subsystems, Pareto-optimal values are determined for the subsystem objectives, whereby an additional term or an additional objective is included due to the Lagrange multipliers. In the subsystem optimizations, the coupling equations between the subsystems are not satisfied; therefore, the method is called nonfeasible. Finally, the upper level checks which of the subsystem solutions satisfy the coupling constraints; these solutions are Pareto-optimal solutions for the overall system. 相似文献
19.
An ordered list of binary words of length n is called a distance-preserving m, n-code, if the list distance between two words is equal to their Hamming distance, for distances up to m. A technique for constructing cyclic m, n-codes is presented, based on the standard Gray code and on some simple tools from linear algebra. 相似文献
20.
I Nengah Suparta 《Discrete Mathematics》2008,308(18):4124-4132
A binary Gray code G(n) of length n, is a list of all 2nn-bit codewords such that successive codewords differ in only one bit position. The sequence of bit positions where the single change occurs when going to the next codeword in G(n), denoted by S(n)?s1,s2,…,s2n-1, is called the transition sequence of the Gray code G(n). The graph GG(n) induced by a Gray code G(n) has vertex set {1,2,…,n} and edge set {{si,si+1}:1?i?2n-2}. If the first and the last codeword differ only in position s2n, the code is cyclic and we extend the graph by two more edges {s2n-1,s2n} and {s2n,s1}. We solve a problem of Wilmer and Ernst [Graphs induced by Gray codes, Discrete Math. 257 (2002) 585-598] about a construction of an n-bit Gray code inducing the complete graph Kn. The technique used to solve this problem is based on a Gray code construction due to Bakos [A. Ádám, Truth Functions and the Problem of their Realization by Two-Terminal Graphs, Akadémiai Kiadó, Budapest, 1968], and which is presented in D.E. Knuth [The Art of Computer Programming, vol. 4, Addison-Wesley as part of “fascicle” 2, USA, 2005]. 相似文献