This article has two main results. First, we develop a simple algorithm to list all nonisomorphic rooted plane trees in lexicographic order using a level sequence representation. Then, by selecting a unique centroid t...
详细信息
This article has two main results. First, we develop a simple algorithm to list all nonisomorphic rooted plane trees in lexicographic order using a level sequence representation. Then, by selecting a unique centroid to act as the root of a free plane tree, we apply the rooted plane tree algorithm to develop an algorithm to list all nonisomorphic free plane trees. The latter algorithm also uses a level sequence representation and lists all free plane trees with a unique centroid first followed by all free plane trees with two centroids. Both algorithms are proved to run in constant amortized time using straightforward bounding methods.
A k-ary de Bruijn sequence of order n is a cyclic sequence of length k(n) in which each k-ary string of length n appears exactly once as a substring. A shift rule for a de Bruijn sequence of order n is a function that...
详细信息
A k-ary de Bruijn sequence of order n is a cyclic sequence of length k(n) in which each k-ary string of length n appears exactly once as a substring. A shift rule for a de Bruijn sequence of order n is a function that maps each length n substring to the next length n substring in the sequence. We present the first known shift rule for k-ary de Bruijn sequences that runs in O(1)-amortized time per symbol using O(n) space. Our rule generalizes the authors' recent shift rule for the binary case (A surprisingly simple de Bruijn sequence construction, Discrete Math. 339, 127-131). Published by Elsevier B.V.
Pick any length n binary string b(1)b(2)...b(n) and remove the first bit b(1). If b(2)b(3)...b(n)1 is a necklace, then append the complement of b(1) to the end of the remaining string;otherwise append b(1). By repeati...
详细信息
Pick any length n binary string b(1)b(2)...b(n) and remove the first bit b(1). If b(2)b(3)...b(n)1 is a necklace, then append the complement of b(1) to the end of the remaining string;otherwise append b(1). By repeating this process, eventually all 2(n) binary strings will be visited cyclically. This shift rule leads to a new de Bruijn sequence construction that can be generated in 0(1)-amortized time per bit. (C) 2015 Elsevier B.V. All rights reserved.
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...
详细信息
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. (C) 2018 Elsevier B.V. All rights reserved.
We present a simple algorithm that generates cyclic rotation Gray codes for stamp foldings and semi-meanders, where consecutive strings differ by a stamp rotation. These are the first known Gray codes for stamp foldin...
详细信息
ISBN:
(纸本)9783031343469;9783031343476
We present a simple algorithm that generates cyclic rotation Gray codes for stamp foldings and semi-meanders, where consecutive strings differ by a stamp rotation. These are the first known Gray codes for stamp foldings and semi-meanders, and we thus solve an open problem posted by Sawada and Li in [Electron. J. Comb. 19(2), 2012]. The algorithm generates each stamp folding and semi-meander in constant amortized time and O(n)-amortized time per string respectively, using a linear amount of memory.
The behaviour of a bad Tetris player suggests a class of polyominoes that we call prefix-closed. Such a class contains all polyominoes P such that for any integer i>0 the first i columns of P form a polyomino. We p...
详细信息
Fault tolerance is an important aspect of real-time control systems, due to unavoidable timing constraints. In this paper, the timing problem of a set of concurrent periodic tasks is considered where each task has pri...
详细信息
ISBN:
(纸本)9781424441549
Fault tolerance is an important aspect of real-time control systems, due to unavoidable timing constraints. In this paper, the timing problem of a set of concurrent periodic tasks is considered where each task has primary and alternate versions. In the literature, probability of fault in the alternate version of a task is assumed to be zero. Here, a fault probability with uniform distribution has been used. In addition, to cover the situations in which both versions are scheduled with some time overlapping, a criterion is defined for prioritizing primary version against the alternate version. A new scheduling algorithm is proposed based on the defined criterion. Simulation results show that an increase in the number of executed primary tasks which improves the efficiency of processor utilization, hence prove the efficiency of the proposed algorithm.
The cyclic sequence 0000100110101111 has the unlikelyproperty that the 16 unique binary substrings of length 4 appearexactly once in the sequence as a substring. This sequence is anexample of a universal cycle. A univ...
详细信息
The cyclic sequence 0000100110101111 has the unlikelyproperty that the 16 unique binary substrings of length 4 appearexactly once in the sequence as a substring. This sequence is anexample of a universal cycle. A universal cycle for an arbitraryset S is a cyclic sequence of length |S| whose substrings of lengthn encode |S| distinct instances in S. When S is the set of k-arystrings of length n, these sequences are commonly studied under thename de Bruijn sequence. Universal cycles have been studied fora wide variety of combinatorial objects including permutations,partitions, subsets, multisets, labeled graphs, various functionsand passwords. The study of universal cycles has a long historywith applications including dynamic connections in overlaynetworks, genomics, software calculation of the ruler function incomputer words, and indexing a 1 in a computer word. There arestandard proofs to demonstrate the existence of universal cyclesfor a variety of combinatorial objects; however, only a smallnumber of universal cycles can be constructed efficiently andpractically. This thesis provides novel efficient constructions togenerate universal cycles for a variety of combinatorial objects. Our research leads to several new results. Firstly, we propose anovel shift rule to construct de Bruijn sequence for length nbinary strings. The shift rule provides a simple and efficientsuccessor rule to find the next bit in the de Bruijn sequence andis applicable to all values of n. We then extend the shift rule toconstruct de Bruijn sequence for k-ary strings of length ***, we generalize the Fredricksen-Kessler-Maiorana (FKM)construction and Greedy construction to generate universal cyclesfor a broad class of k-ary strings. We also prove that theuniversal cycles produced are the lexicographically smallest forthe sets. Lastly, we provide the first known efficient constructionto generate universal cycles for length n binary strings where thenumber of 1s range from c to d given 0 <
An open meandric system is a planar configuration of acyclic curves crossing an infinite horizontal line in the plane such that the curves may extend in both horizontal directions. We present a fast, recursive algorit...
详细信息
An open meandric system is a planar configuration of acyclic curves crossing an infinite horizontal line in the plane such that the curves may extend in both horizontal directions. We present a fast, recursive algorithm to exhaustively generate open meandric systems with n crossings. We then illustrate how to modify the algorithm to generate unidirectional open meandric systems ( the curves extend only to the right) and nonisomorphic open meandric systems where equivalence is taken under horizontal reflection. Each algorithm can be modified to generate systems with exactly k curves. In the unidirectional case when k = 1, we can apply a minor modification along with some additional optimization steps to yield the first fast and simple algorithm to generate open meanders.
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 c...
详细信息
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.(c) 2022 Elsevier B.V. All rights reserved.
暂无评论