Generating Gray codes for weak orders in constant amortized time

被引:0
|
作者
Jacques, Marsden [1 ]
Wong, Dennis [1 ]
Woo, Kyounga [1 ]
机构
[1] State Univ New York, Incheon, South Korea
基金
新加坡国家研究基金会;
关键词
Weak order; Cayley permutation; Gray code; Shift Gray code; Reflectable language; CAT algorithm; LINEAR EXTENSIONS; PERMUTATIONS; ALGORITHM; NUMBER;
D O I
10.1016/j.disc.2020.111992
中图分类号
O1 [数学];
学科分类号
0701 ; 070101 ;
摘要
A weak order is a way to rank n objects where ties are allowed. In this paper, we develop a generic framework to generate Gray codes for weak orders. We then describe a simple algorithm based on the framework that generates cyclic 2-Gray codes for weak orders in constant amortized time per string. This is the first known cyclic 2-Gray codes for weak orders. The framework can easily be modified to generate other Gray codes for weak orders. We provide an example of using the framework to generate the first shift Gray codes for weak orders in constant amortized time per string, where consecutive strings differ by a shift or a symbol change. Published by Elsevier B.V.
引用
收藏
页数:10
相关论文
共 50 条
  • [1] Generating 2-Gray codes for ballot sequences in constant amortized time
    Wong, Dennis
    Calero, Fabio
    Sedhai, Kushal
    [J]. DISCRETE MATHEMATICS, 2023, 346 (01)
  • [2] Generating bracelets in constant amortized time
    Sawada, J
    [J]. SIAM JOURNAL ON COMPUTING, 2001, 31 (01) : 259 - 268
  • [3] Generating a Gray code for prefix normal words in amortized polylogarithmic time per word
    Burcsi, Peter
    Fici, Gabriele
    Liptak, Zsuzsanna
    Raman, Rajeev
    Sawada, Joe
    [J]. THEORETICAL COMPUTER SCIENCE, 2020, 842 : 86 - 99
  • [4] A Constant Amortized Time Algorithm for Generating Left-Child Sequences in Lexicographic Order
    Pai, Kung-Jui
    Chang, Jou-Ming
    Wu, Ro-Yu
    [J]. FRONTIERS IN ALGORITHMICS, FAW 2017, 2017, 10336 : 221 - 232
  • [5] A Gray code for fixed-density necklaces and Lyndon words in constant amortized time
    Sawada, J.
    Williams, A.
    [J]. THEORETICAL COMPUTER SCIENCE, 2013, 502 : 46 - 54
  • [6] A TECHNIQUE FOR GENERATING GRAY CODES
    LUDMAN, JE
    SAMPSON, JL
    [J]. JOURNAL OF STATISTICAL PLANNING AND INFERENCE, 1981, 5 (02) : 171 - 180
  • [7] Gray codes for the ideals of interval orders
    Habib, M
    Nourine, L
    Steiner, G
    [J]. JOURNAL OF ALGORITHMS, 1997, 25 (01) : 52 - 66
  • [8] A constant-time algorithm for middle levels Gray codes
    Muetze, Torsten
    Nummenpalo, Jerri
    [J]. PROCEEDINGS OF THE TWENTY-EIGHTH ANNUAL ACM-SIAM SYMPOSIUM ON DISCRETE ALGORITHMS, 2017, : 2238 - 2253
  • [9] A Constant-Time Algorithm for Middle Levels Gray Codes
    Torsten Mütze
    Jerri Nummenpalo
    [J]. Algorithmica, 2020, 82 : 1239 - 1258
  • [10] A Constant-Time Algorithm for Middle Levels Gray Codes
    Muetze, Torsten
    Nummenpalo, Jerri
    [J]. ALGORITHMICA, 2020, 82 (05) : 1239 - 1258