TRees are one of the most important structures in computer

Size: px
Start display at page:

Download "TRees are one of the most important structures in computer"

Transcription

1 Raning and Unraning Algorithms for -ary Trees in Gray Code Order Fateme Ashari-Ghomi, Najme Khorasani, and Abbas Nowzari-Dalini Abstract In this paper, we present two new raning and unraning algorithms for -ary trees represented by x-sequences in Gray code order These algorithms are based on a gray code generation algorithm developed by Ahrabian et al In mentioned paper, a recursive bactracing generation algorithm for x-sequences corresponding to -ary trees in Gray code was presented This generation algorithm is based on Vajnovszi s algorithm for generating binary trees in Gray code ordering Up to our nowledge no raning and unraning algorithms were given for x-sequences in this ordering we present raning and unraning algorithms with O(n 2 ) time complexity for x-sequences in this Gray code ordering Keywords -ary Tree Generation, Raning, Unraning, Gray Code I INTRODUCTION TRees are one of the most important structures in computer science Trees have many applications such as database generation, decision table programming, analysis algorithms, string matching [], switching theory, and even in the theoretical VLSI circuit design [26] Trees are also widely used data structures for maintaining data [9] and as auxiliary structures for compressing data [0] In addition, the exhaustive generation of all trees of a certain type is often useful; for example, a list of all trees with a given number of nodes n, may be used to test and analyze of algorithm complexity, and prove the correctness of an algorithm [] As such, the problem of generating binary trees [], [4], [7], [2], [22], [30], -ary trees [2], [5], [6], [7], [8], [3], [8], [23], [28], and other types of trees[20], [25], has been thoroughly investigated and many papers have been published in the literature for generating trees In most of these algorithms, trees are encoded as integer sequences and then these sequences are generated with a certain order, and consequently their corresponding trees are also generated in a specific order The most well-nown orderings on trees are A-order and B-order [22], [33], and the orderings on the sequences are lexicographical [33] and Gray code [5], [7] Typically, an important issue for algorithms to enumerate various classes of objects is that they must be run in a constant time for each generation Therefore so many algorithms have been proposed to generate -ary trees in constant time in the worst case These algorithms generate the sequences corresponding to trees in Gray code order [4], [5], [6], [24], [32] Fateme Ashari-Ghomi, Najme Khorasani and Abbas Nowzari-Dalini are with the Department of computer Science, School of Mathematics, Statistics and Computer Science, University of Tehran, Tehran, Iran addresses: (ftmashari@utacir, nhorasani@utacir, nowzari@utacir) Beside the generation algorithm for -ary trees, raning and unraning algorithms are also important in the concept of generation [23], [28], [3], [33] Given a specific order on the set of -ary trees, the ran of a tree (or corresponding sequence) is its position in the exhaustive generated list, and the raning algorithm computes the ran of a given tree (or corresponding sequence) in this order The reverse operation of the raning is called unraning, which generates the tree (or sequence) corresponding to a given ran Usually tree generation papers present raning and unraning algorithms for tree generation algorithm Raning and unraning algorithms also have many applications For example, in traditional tree compression algorithm for encoding the tree to code sequence and decoding the code sequence bac to a tree, the raning and unraning algorithms can be used As mentioned, in tree generation algorithms, trees are represented as sequences and then these sequences are generated Two well-nown representations of -ary trees with n nodes are x-sequences (or 0- sequences) and z-sequences presented by Zas [33] He presented a generation algorithm for z- sequences encoding in lexicographical ordering such that the corresponding trees are generated in B-order, and generates one sequence from a given sequence in O(n) (n is the length of z-sequence) He also presented two raning and unraning algorithms for this generation in O(n) Later, some other -ary tree generation algorithms were presented on this encoding [7], [24], [32] Vajonvszi presented a new Gray code for the x-sequence corresponding to binary trees with n nodes [27] A constant average time algorithm for generating this Gray code is also given Ahrabian et al introduced another algorithm for generating -ary trees represented by x-sequence in Gray code order [3], which is based on Vajnovszi s paper [27] This algorithm is a bactracing generation algorithm Up to now, no raning and unraning algorithms are presented for x- sequences in Gray code ordering given by Vajonvszi [27] and Ahrabian et al [3] In this paper, we present raning and unraning algorithms for x-sequences corresponding to -ary trees with n nodes generated in Gray code based on the Ahrabian et al [3] generation algorithm The time complexity of raning algorithm is O(n 2 ) and unraning algorithm is also O(n 2 ) The rest of this paper is organized as follows Section II introduces the definitions and notations that are used subsequently In Section III, raning and unraning algorithms are discussed Finally, some concluding remars are offered in Section IV 020

2 II PRELIMINARIES In graph theory, a tree is a connected and undirected graph without any cycle A rooted tree is a tree with a distinct node which is called root Rooted trees are directed trees and the direction is from the root to the offspring A rooted tree where the children of each node have a designated order is called ordered tree A -regular ordered tree is an ordered tree in which each node has either children (internal node) or no children (external node or leaf), and is called -ary tree An n- node -ary tree has n internal nodes and ( )n+ external nodes or leaves, and the total number of -ary trees with n internal nodes is denoted by C n, and is nown to have the value C n, ( )n + ( n n A -ary tree T can also be defined recursively as being either an external (leaf) or an internal node together with a sequence T,T 2,,T of -ary trees, which T i is defined as the ith subtree of T [] Let us introduce basic notations used through this paper and a definition of -ary trees by means of choice functions of indexed families of sets (from [9], [2], [3]) Let Γ{,,m} and I {,,l} be two sets, and l, m, then < Γ i > i I where Γ i Γ, show an family of sets indexed by I Any mapping function f which chooses one element from each set Γ,, Γ l is called a choice function of the indexed family < Γ i > i I With supplementary restrictions, various classes of combinatorial objects can be modeled by choice functions [9], [2], [3] If I {,,l} and Γ i {0, }, then any choice function χ < x i > i I, that belongs to the indexed family < Γ i > i I, is called binary choice function of this family [2] If l n for a given and n, each binary choice function which x + +x i i/, for i n, is called binary choice function with -dominating properties There exist bijections between set of choice functions χ and sets of -ary trees with n internal nodes in widely used representations All -dominating binary choice functions, with l n and the number of x + + x i n, are bitstring representations of all -ary trees of the set Γ This bitstring representation is called x-sequence [33] By -dominating definition, in each subsequence {x j } i ( i n) the accumulated number of s is at least i/ Clearly, each sequence has n s and ( )n 0 s For any given choice functions δ < d,,d l > and γ < g,,g l >, we say that δ and γ are in Gray code order, if they differ by a constant number of changes [29] The x-sequence can be obtained directly from -ary trees Given a regular -ary tree with n internal nodes, we label each internal node with and each external node with 0 Reading tree labels in pre-order (recursively, visit first root and then all the subtrees from left to right), we get a bitstring with n s and ( )n + 0 s As the last visited node is an external node, we omit the corresponding 0 [33] For example, the x-sequence corresponding to the tree presented in Fig is x Now, let be a set of all -dominating binary choice functions with the number of x + +x i n and m l n, ) in other words the set of all bitstrings with a -dominating property with m 0 s and n s such that m ( )n 0 In particular case where m ( )n, is the set of all x-sequences of length n As it is mentioned, we call a list of bitstrings in Gray code list if every two successive bitstrings in the list differ by an interchange of two bits Also, let α and β be two bitstrings then we denote αβ the concatenation of α and β By these definitions, the following lemma shows the recursion property of the set, which helps us in the generation schema [3] Lemma For any >0, and m, n 0, we have 0 m if n 0, if m ( )n, 0S m,n if m>( )n >0 For example, Table I shows all bitstrings S 6,2 3 0S 5,2 3 S 6, 3 With regard to the recursion property of the set, we can easily count the number of elements in this set Let be the number of bitstrings in According to the above lemma, can be obtained as follows Corollary For any >0, and m, n 0, we have Fig if n 0, if m ( )n, S m,n + if m>( )n > A 3-ary tree with 4 internal nodes TABLE I ALL BITSTRINGS IN S 6,2 3 0S 5,2 3 S 6, 3 0S 5,2 3 S 6,

3 Corollary 2 For any >0, n 0, and m ( )n 0, we have m + ( )n m + ( m + n With regard to the definition of, it should noted that S ( )n,n is the set of bitstrings corresponding to -ary trees with n internal nodes Therefore, we can have the following theorem Theorem In particular case of Corollary 2 where m ( )n, ( ) S ( )n,n n ( )n + n Obviously S ( )n,n C n, (the number of all -ary trees with n nodes) With regard to the above discussion and using Lemma the generation -ary trees algorithm in Gray code order was presented in [3] As an example, a list of 22 x- sequences corresponding to 4-ary trees with n 3nodes in this Gray code order is shown in Table II III RANKING AND UNRANKING ALGORITHM The ran of a -ary tree with respect to some ordering is the number of previously generated trees in that ordering The reverse operation of the raning is unraning As mentioned, for the x-sequences in Gray code, no raning and unraning algorithms are presented in the literature in Gray code ordering given by Vajonvszi [27] and Ahrabian et al [3] In this section, the raning and unraning algorithms for these generation and ordering are presented For raning and unraning algorithms we need for given, m, and n, that are defined and computed earlier We assume that these values are computed and stored in arrays S[m][n] for a fixed Also, for computing the ran of a given bitstring or unraning a given ran, we need three other variables prepos, curpos, and dir In the raning and unraning algorithm, when the ith of a bitstring is investigated, the variable curpos holds the position of this (ith ) and the variable prepos holds the position of previous ((i )th ) The variable dir holds the direction of the ith in a bitstring Direction of the ith in a bitstring is down (represented by 0) if the ith has been shifted one place to the left in the next bitstring in Gray code order, and if the ith has been shifted one place to the right, the direction is up (represented by ) For example, consider two bitstrings and , for the first bitstring the direction of the second is down, because in the next bitstring, the second has been shifted to left But for two bitstrings and , the direction of second in the first bitstring is up, because this has been shifted to right Since the first bit in the input bistring is always equal to and does not shift, we can assume that the direction of the first bit is equal to 0 n ) To determine the direction of the ith for 2 i n, we can use the following relation: If direction of the (i )th is equal to 0 then direction of the ith is equal to { 0 if (i )th is in its last position, if (i )th is not in its last position If direction of the (i )th is equal to then direction of the ith is equal to { if (i )th is in its last position, 0 if (i )th is not in its last position In this relation, if the position of the ith is equal to (i ) +, then it is in the last position As mentioned, a x-sequence corresponding to a -ary tree with n nodes, has n s and m ( )n 0 s In the Gray code order, for generating a bitsring from the previous bitsring, each should be shifted from its position to next position Therefore, each has a shift direction and can be computed using the above relation If the position of the ith in the jth bitsring is p and its direction is up (dir is equal to ) and this is a candidate for shifting, then its position in the (j +)th bitsring is p + Otherwise, if the direction of the ith in the jth bitsring is down then its position in the (j +)th bitsring is p For a given bitsring, ith have a last and a first position The last position of the ith is shown by p last and is equal to (i ) + and the first position of it is shown by p first, and is equal to the position of the (i )th plus A is shiftable if it is not in its last or first position, in other words, a is shiftable if its shift direction is up and it is not in its last position, or if its shift direction is down and it is not in its first position In order to compute the ran of a bitsring, we count the number of generated bitsring before this bitsring in the Gray code order This can be done, using by the shiftable s For this purpose, the bitsring should be scaned from left to right and a shiftable should be found As mentioned, the first is never shifted and is always in position, and shift direction of ith is determined by shift direction of (i )th Assume that we investigate the ith in the jth bitsring, we have two cases which are explained as follows In the first case, the shift direction of the ith in the jth bitsring is equal to down (dir 0) So, the first possible position is p last for this, where is equal to (i ) +, and the last possible position is p first for this, where is equal to the position of the (i )th plus In all the consecutive bitsrings that are generated by shifting of the ith, the possible positions for this can be the positions p last, p last, p last 2,, p first Therefore, if the position of the ith is p then the positions of this in previous bitsrings are p last, p last,, p+2, p+ The number of such bitsrings should be obtained for raning At first, we count the number of bitsrings which the ith of them is in position p last The positions of the first to (i )th are fixed and we have to count the number of 0 s and s which their positions are after the position of ith The number of s that their positions are after the ith in the jth bitsring is equal to n j n i Now 022

4 TABLE II THE 22 x-sequences OF LENGTH 2 FOR n 3AND 4 ran bitstring ran bitstring let q be the number of 0 s which their positions are before the ith in the jth bitsring, so the number of 0 s which their positions are after p is equal to m j m q (it is obvious that q p i) Therefore, the number of bitsrings that the ith of them is in position p last is equal to S m j,n j With the same way, we can count the number of bitsrings which the ith of them are in the positions p last,, p +2, p + Finally, the number of previous bitsrings before bitsring j that the ith of them are in positions p last, p last,, p +2, p + is equal to: p last jp+ S m j,n j In the second case, the shift direction of the ith in the jth bitsring is equal to up (dir ) So the first possible position for this is p first In all the consecutive bitsrings which are generated by shifting of the ith, the possible positions for this can be p first, p first +, p first +2,, p last Therefore, if the position of the ith is p then the positions of this in previous bitsrings are p first, p first +,, p 2, p The number of such bitsrings should be obtained for raning This number can be computed similar to the first case and we have: p S m j,n j, jp first where the values of m j and n j are equal to m q and n i, respectively (similar to the first case) Now, the ran of a given bitsring can be computed as: n p u S m j,n j, i2 jp l where p l and p u are lower and upper bound for positions of the ith With regards to the above discussion, the raning algorithm is given in Algorithm This algorithm taes n,, and bitstring x corresponding to the -ary tree with n nodes as input parameters, and returns the ran of x in variable r Considering the above discussion, the time complexity of the raning algorithm is O(n 2 ) The unraning algorithm essentially reverses the steps carried out in computing the ran The unraning algorithm given in Algorithm 2 taes r,, and n as input, and returns the x- sequence corresponding to the -ary tree with n nodes that has ran r Foragivenr as a ran, the corresponding bitstring x x x n is computed by the following operations Initially x is set to and all x i s (2 i n) are set to zero, the position of the first is set to, and the direction of this is set to 0 The bitstring x has to have n s, therefore the correct position of the ith (2 i n) is computed in a loop In the iteration i (2 i n) of this loop, at first, the direction of the ith (dir) is computed using by the direction and position of the (i )th, after that, the position of the ith (curp os) is computed using s[n ( ) curp os + i][n i] The values of s[n ( ) curp os + i][n i] determine the possible number of shifts which ith can have Finally, the value of this position is set to in bitstring x Considering the above discussion, the time complexity of the unraning algorithm is O(n 2 ) IV CONCLUSION we have introduced two new raning and unraning algorithms for n-node -ary trees represented by x-sequences In these algorithms, it is assumed that the order of x-sequences corresponding to the list of all -ary trees with n nodes is Gray code order The time complexity of both raning and unraning algorithms is O(n 2 ) REFERENCES [] H Ahrabian and A Nowzari-Dalini, On the generation of binary trees from (0-) codes, Intern J Comput Math 69 (998), [2] H Ahrabian and A Nowzari-Dalini, Generation of t-ary trees with Ballot sequences, Intern J Comput Math 80 (2003), [3] H Ahrabian and A Nowzari-Dalini, Gray code algorithm for listing -ary trees, Studies in Information and Control 3 (2004), [4] H Ahrabian and A Nowzari-Dalini, Parallel generation of binary trees in A-order, Parallel Comput 3 (2005), [5] H Ahrabian and A Nowzari-Dalini, Parallel Generation of t-ary trees in A-order, Comput J 50 (2007), [6] A Ahmadi-Adl, A Nowzari-Dalini, and H Ahrabian, Raning and unraning algorithms for loopless generation of t-ary trees, Logic Journal of IGPL 9 (20), [7] MC Er, Efficient generation of -ary trees in natural order, Comput J 35 (992),

5 Algorithm The raning algorithm Procedure Raning(x : bitstring; n, : integer) begin r ; curp os ; dir 0; for i 2to n do begin prep os curp os; curp os curp os +; while (x[curp os]! ) curp os curp os +; if (((dir 0) &&(prep os (i 2) +)) ((dir ) &&(prep os! (i 2) +)))then begin dir 0; for j (i ) + downto curp os + do r r + s[( ) n j + i][n i]; else begin dir ; for j prep os + to curp os do r r + s[( ) n j + i][n i]; return r ; Algorithm 2 The unraning algorithm Procedure UnRaning(r, n, : integer) begin x[] ; for i 2to n do x[i] 0; prep os ; dir 0; for i 2to n do begin if (((dir 0) &&(prep os (i 2) +)) ((dir ) &&(prep os! (i 2) +)))then begin dir 0; curp os (i ) +; while r>s[n ( ) curp os + i][n i] do begin r r s[n ( ) curp os + i][n i]; curp os curp os ; else begin dir ; curp os prep os +; while r>s[n ( ) curp os + i][n i] do begin r r s[n ( ) curp os + i][n i]; curp os curp os +; x[curp os] ; prep os curp os; return x ; 024

6 [8] S Heubach, N Li, and T Mansour, Staircase tilings and -Catalan structures, Discrete Math 308 (2008), [9] A Kapralsi, New methods for the generation of permutations, combinations and other combinatorial objects in parallel, J Parallel Distrib Comput 7 (993), [0] J Katajainen and E Mainen, Tree compression and optimization with application, Inter J Found Comput Sci (990), [] DE Knuth, The Art of Computer Programming, Vol : Fundamental Algorithms, Addision Wesly, Reading, 973 [2] Z Koosinsi, On the generation of permutations through decomposition of symmetric group into cosets, Bit 30 (990), [3] Z Koosinsi, Parallel enumeration of tary trees in ASC SIMD model, International Journal of Computer Science and Networ Security (20), [4] JF Korsh, Loopless generation of -ary tree sequences, Inform Process Lett 52 (994), [5] JF Korsh and P LaFollette, Loopless generation of Gray codes for -ary trees, Inform Process Lett 70 (999), 7 [6] J F Korsh and P LaFollette, A loopless Gray code for rooted trees, ACM Transactions on Algorithms 2 (2006), [7] J Lucas, D Roelants van Baronaigien, and F Rusey, On rotations and the generation of binary trees, J of Algorithms 5 (993), [8] K Manes, A Sapounais, I Tasoulas, and P Tsiouras, Recursive generation of -ary trees, Journal of Integer Sequences 2 (2009), 8 [9] O O Olugbenga, E F Adebiyi, S Fatumo and A Dawodu, PQ trees, consecutive ones problem and applications, International Journal of Natural and Applied Sciences 4 (2008), [20] J M Pallo, A simple algorithm for generating neuronal dritic trees, Comput Meth Prog Bio 33 (990), [2] J M Pallo, Rotational tree structures on binary trees and triangulations, Acta Cybernetica 7 (2006), [22] J M Pallo and R Racca, A note on generating binary trees in A-order and B-order, Intern J Comput Math 8 (985), [23] F Rusey, Generating t-ary trees lexicographically, SIAM J Comput 7 (978), [24] D Roelants Van Baronaigien, A loopless Gray code algorithm for listing -ary trees, J Algorithms 35 (2000), [25] E Seyedi-Tabari, H Ahrabian, and A Nowzari-Dalini, A new algorithm for generation of different types of RNA, Intern J Comput Math 87 (200), [26] T Uehara and WM Cleemput, Optical layout of cmos functional arrays, IEEE Trans Comput 7 (98), [27] V Vajnovszi, Constant time algorithm for generating binary tree Gray codes, Studies in Informatics and Control 5 (996), 5 2 [28] V Vajnovszi and J M Pallo, Raning and unraning of -ary trees with 4-4 letter alphabet, Journal of Information and Optimization Science 8 (997), [29] V Vajnovszi and R Vernay, Restricted compositions and permutations: From old to new Gray codes, Inform Process Lett (20), [30] R Wu, J Chang, and Y Wang, A linear time algorithm for binary tree sequences transformation using left-arm and right-arm rotations, Theor Comput Sci 335 (2006), [3] R Wu, J Chang, and C Chang, Raning and unraning of non-regular trees with a prescribed branching sequence, Math Comput Model, 53 (20), [32] L Xiang, K Ushijima, and C Tang, Efficient loopless generation of Gray codes for -ary trees, Inform Process Lett 76 (2000), [33] S Zas, Lexicographic generation of ordered trees, Theor Comput Sci 0 (980),

An Efficient Ranking Algorithm of t-ary Trees in Gray-code Order

An Efficient Ranking Algorithm of t-ary Trees in Gray-code Order The 9th Workshop on Combinatorial Mathematics and Computation Theory An Efficient Ranking Algorithm of t-ary Trees in Gray-code Order Ro Yu Wu Jou Ming Chang, An Hang Chen Chun Liang Liu Department of

More information

A Loopless Algorithm to Generate Gray-codes of t-ary Trees Using RD-sequences

A Loopless Algorithm to Generate Gray-codes of t-ary Trees Using RD-sequences The th Workshop on Combinatorial Mathematics and Computation Theory A Loopless Algorithm to Generate Gray-codes of t-ary Trees Using RD-sequences Ro Yu Wu Jou Ming Chang Yue Li Wang Department of Industrial

More information

A Generalization of the Catalan Numbers

A Generalization of the Catalan Numbers 2 3 47 6 23 Journal of Integer Sequences, Vol 6 (203, Article 368 A Generalization of the Catalan Numbers Reza Kahkeshani Department of Pure Mathematics Faculty of Mathematical Sciences University of Kashan

More information

Generating edge covers of path graphs

Generating edge covers of path graphs Generating edge covers of path graphs J. Raymundo Marcial-Romero, J. A. Hernández, Vianney Muñoz-Jiménez and Héctor A. Montes-Venegas Facultad de Ingeniería, Universidad Autónoma del Estado de México,

More information

A linear time algorithm for binary tree sequences transformation using left-arm and right-arm rotations

A linear time algorithm for binary tree sequences transformation using left-arm and right-arm rotations Theoretical Computer Science 355 (00) 303 31 www.elsevier.com/locate/tcs A linear time algorithm for binary tree sequences transformation using left-arm and right-arm rotations Ro-Yu Wu a, Jou-Ming Chang

More information

Trees. 3. (Minimally Connected) G is connected and deleting any of its edges gives rise to a disconnected graph.

Trees. 3. (Minimally Connected) G is connected and deleting any of its edges gives rise to a disconnected graph. Trees 1 Introduction Trees are very special kind of (undirected) graphs. Formally speaking, a tree is a connected graph that is acyclic. 1 This definition has some drawbacks: given a graph it is not trivial

More information

Parallel algorithms for generating combinatorial objects on linear processor arrays with reconfigurable bus systems*

Parallel algorithms for generating combinatorial objects on linear processor arrays with reconfigurable bus systems* SOdhan& Vol. 22. Part 5, October 1997, pp. 62%636. Printed ill India. Parallel algorithms for generating combinatorial objects on linear processor arrays with reconfigurable bus systems* P THANGAVEL Department

More information

Efficient Generation of Evolutionary Trees

Efficient Generation of Evolutionary Trees fficient Generation of volutionary Trees MUHMM ULLH NN 1 M. SIUR RHMN 2 epartment of omputer Science and ngineering angladesh University of ngineering and Technology (UT) haka-1000, angladesh 1 adnan@cse.buet.ac.bd

More information

Multivariate Lagrange inversion formula and the cycle lemma

Multivariate Lagrange inversion formula and the cycle lemma Multivariate Lagrange inversion formula and the cycle lemma Axel Bacher and Gilles Schaeffer Université Paris Nord, and CNRS / École Polytechnique Abstract. We give a multitype extension of the cycle lemma

More information

A[1] O U T P U T converter ... A[n] data. address range A

A[1] O U T P U T converter ... A[n] data. address range A On Parallel Generation of t{ary Trees in an Associative Model Zbigniew Kokosinski Cracow University of Technology, Faculty of Electrical & Computer Eng., ul. Warszawska 24, 31-155 Krakow, Poland zk@usk.pk.edu.pl

More information

A Reduction of Conway s Thrackle Conjecture

A Reduction of Conway s Thrackle Conjecture A Reduction of Conway s Thrackle Conjecture Wei Li, Karen Daniels, and Konstantin Rybnikov Department of Computer Science and Department of Mathematical Sciences University of Massachusetts, Lowell 01854

More information

Reverse Polish notation in constructing the algorithm for polygon triangulation

Reverse Polish notation in constructing the algorithm for polygon triangulation Reverse Polish notation in constructing the algorithm for polygon triangulation Predrag V. Krtolica, Predrag S. Stanimirović and Rade Stanojević Abstract The reverse Polish notation properties are used

More information

Unlabeled equivalence for matroids representable over finite fields

Unlabeled equivalence for matroids representable over finite fields Unlabeled equivalence for matroids representable over finite fields November 16, 2012 S. R. Kingan Department of Mathematics Brooklyn College, City University of New York 2900 Bedford Avenue Brooklyn,

More information

An Eternal Domination Problem in Grids

An Eternal Domination Problem in Grids Theory and Applications of Graphs Volume Issue 1 Article 2 2017 An Eternal Domination Problem in Grids William Klostermeyer University of North Florida, klostermeyer@hotmail.com Margaret-Ellen Messinger

More information

Noncrossing Trees and Noncrossing Graphs

Noncrossing Trees and Noncrossing Graphs Noncrossing Trees and Noncrossing Graphs William Y. C. Chen and Sherry H. F. Yan 2 Center for Combinatorics, LPMC, Nanai University, 30007 Tianjin, P.R. China chen@nanai.edu.cn, 2 huifangyan@eyou.com Mathematics

More information

A Context-Tree Branch-Weighting Algorithm

A Context-Tree Branch-Weighting Algorithm A Context-Tree Branch-Weighting Algorithm aul A.J. Volf and Frans M.J. Willems Eindhoven University of Technology Information and Communication Theory Group Abstract The context-tree weighting algorithm

More information

New Constructions of Non-Adaptive and Error-Tolerance Pooling Designs

New Constructions of Non-Adaptive and Error-Tolerance Pooling Designs New Constructions of Non-Adaptive and Error-Tolerance Pooling Designs Hung Q Ngo Ding-Zhu Du Abstract We propose two new classes of non-adaptive pooling designs The first one is guaranteed to be -error-detecting

More information

Enumerating All Rooted Trees Including k Leaves

Enumerating All Rooted Trees Including k Leaves IEICE TRANS. INF. & SYST., VOL.E95 D, NO.3 MARCH 2012 763 PAPER Special Section on Foundations of Computer Science Enumerating All Rooted Trees Including k Leaves Masanobu ISHIKAWA a), Nonmember, Katsuhisa

More information

PAPER Constructing the Suffix Tree of a Tree with a Large Alphabet

PAPER Constructing the Suffix Tree of a Tree with a Large Alphabet IEICE TRANS. FUNDAMENTALS, VOL.E8??, NO. JANUARY 999 PAPER Constructing the Suffix Tree of a Tree with a Large Alphabet Tetsuo SHIBUYA, SUMMARY The problem of constructing the suffix tree of a tree is

More information

Average Case Analysis for Tree Labelling Schemes

Average Case Analysis for Tree Labelling Schemes Average Case Analysis for Tree Labelling Schemes Ming-Yang Kao 1, Xiang-Yang Li 2, and WeiZhao Wang 2 1 Northwestern University, Evanston, IL, USA, kao@cs.northwestern.edu 2 Illinois Institute of Technology,

More information

A more efficient algorithm for perfect sorting by reversals

A more efficient algorithm for perfect sorting by reversals A more efficient algorithm for perfect sorting by reversals Sèverine Bérard 1,2, Cedric Chauve 3,4, and Christophe Paul 5 1 Département de Mathématiques et d Informatique Appliquée, INRA, Toulouse, France.

More information

Fast algorithm for generating ascending compositions

Fast algorithm for generating ascending compositions manuscript No. (will be inserted by the editor) Fast algorithm for generating ascending compositions Mircea Merca Received: date / Accepted: date Abstract In this paper we give a fast algorithm to generate

More information

arxiv: v1 [cs.ds] 23 Jul 2014

arxiv: v1 [cs.ds] 23 Jul 2014 Efficient Enumeration of Induced Subtrees in a K-Degenerate Graph Kunihiro Wasa 1, Hiroki Arimura 1, and Takeaki Uno 2 arxiv:1407.6140v1 [cs.ds] 23 Jul 2014 1 Hokkaido University, Graduate School of Information

More information

Stamp Foldings, Semi-meanders, and Open Meanders: Fast Generation Algorithms

Stamp Foldings, Semi-meanders, and Open Meanders: Fast Generation Algorithms Stamp Foldings, Semi-meanders, and Open Meanders: Fast Generation Algorithms J. Sawada R. Li Abstract By considering a permutation representation for stamp-foldings and semi-meanders we construct treelike

More information

STRAIGHT LINE ORTHOGONAL DRAWINGS OF COMPLETE TERNERY TREES SPUR FINAL PAPER, SUMMER July 29, 2015

STRAIGHT LINE ORTHOGONAL DRAWINGS OF COMPLETE TERNERY TREES SPUR FINAL PAPER, SUMMER July 29, 2015 STRIGHT LINE ORTHOGONL DRWINGS OF COMPLETE TERNERY TREES SPUR FINL PPER, SUMMER 2015 SR LI MENTOR: SYLVIN CRPENTIER PROJECT SUGGESTED Y LRRY GUTH July 29, 2015 bstract. In this paper we study embeddings

More information

The 3-Steiner Root Problem

The 3-Steiner Root Problem The 3-Steiner Root Problem Maw-Shang Chang 1 and Ming-Tat Ko 2 1 Department of Computer Science and Information Engineering National Chung Cheng University, Chiayi 621, Taiwan, R.O.C. mschang@cs.ccu.edu.tw

More information

Efficiently decodable insertion/deletion codes for high-noise and high-rate regimes

Efficiently decodable insertion/deletion codes for high-noise and high-rate regimes Efficiently decodable insertion/deletion codes for high-noise and high-rate regimes Venkatesan Guruswami Carnegie Mellon University Pittsburgh, PA 53 Email: guruswami@cmu.edu Ray Li Carnegie Mellon University

More information

1 Introduction to generation and random generation

1 Introduction to generation and random generation Contents 1 Introduction to generation and random generation 1 1.1 Features we might want in an exhaustive generation algorithm............... 1 1.2 What about random generation?.................................

More information

Necklaces and Lyndon words in colexicographic and binary reflected Gray code order

Necklaces and Lyndon words in colexicographic and binary reflected Gray code order Necklaces and Lyndon words in colexicographic and binary reflected Gray code order Joe Sawada Aaron Williams Dennis Wong September 25, 2017 Abstract We present the first efficient algorithm to list necklaces,

More information

arxiv: v3 [cs.ds] 18 Apr 2011

arxiv: v3 [cs.ds] 18 Apr 2011 A tight bound on the worst-case number of comparisons for Floyd s heap construction algorithm Ioannis K. Paparrizos School of Computer and Communication Sciences Ècole Polytechnique Fèdèrale de Lausanne

More information

Universal Cycles for Permutations

Universal Cycles for Permutations arxiv:0710.5611v1 [math.co] 30 Oct 2007 Universal Cycles for Permutations J Robert Johnson School of Mathematical Sciences Queen Mary, University of London Mile End Road, London E1 4NS, UK Email: r.johnson@qmul.ac.uk

More information

The Transformation of Optimal Independent Spanning Trees in Hypercubes

The Transformation of Optimal Independent Spanning Trees in Hypercubes The Transformation of Optimal Independent Spanning Trees in Hypercubes Shyue-Ming Tang, Yu-Ting Li, and Yue-Li Wang Fu Hsing Kang School, National Defense University, Taipei, Taiwan, R.O.C. Department

More information

On Universal Cycles of Labeled Graphs

On Universal Cycles of Labeled Graphs On Universal Cycles of Labeled Graphs Greg Brockman Harvard University Cambridge, MA 02138 United States brockman@hcs.harvard.edu Bill Kay University of South Carolina Columbia, SC 29208 United States

More information

Prime Labeling for Some Planter Related Graphs

Prime Labeling for Some Planter Related Graphs International Journal of Mathematics Research. ISSN 0976-5840 Volume 8, Number 3 (2016), pp. 221-231 International Research Publication House http://www.irphouse.com Prime Labeling for Some Planter Related

More information

Generating Gray Codes in O(1) Worst-Case Time per Word

Generating Gray Codes in O(1) Worst-Case Time per Word Generating Gray Codes in O(1) Worst-Case Time per Word Timothy Walsh Department of Computer Science, UQAM Box 8888, Station A, Montreal, Quebec, Canada H3C-3P8 walsh.timothy@uqam.ca Abstract. We give a

More information

Optimal Variable Length Codes (Arbitrary Symbol Cost and Equal Code Word Probability)* BEN VARN

Optimal Variable Length Codes (Arbitrary Symbol Cost and Equal Code Word Probability)* BEN VARN INFORMATION AND CONTROL 19, 289-301 (1971) Optimal Variable Length Codes (Arbitrary Symbol Cost and Equal Code Word Probability)* BEN VARN School of Systems and Logistics, Air Force Institute of Technology,

More information

Unrestricted and Complete Breadth-First Search of Trapezoid Graphs in O(n) Time

Unrestricted and Complete Breadth-First Search of Trapezoid Graphs in O(n) Time Unrestricted and Complete Breadth-First Search of Trapezoid Graphs in O(n) Time Christophe Crespelle and Philippe Gambette Abstract We present an O(n) Breadth-First Search algorithm for trapezoid graphs,

More information

Super Connectivity of Iterated Line Digraphs

Super Connectivity of Iterated Line Digraphs Super Connectivity of Iterated Line Digraphs Ding-Zhu Du Hung Q. Ngo Lu Ruan Jianhua Sun Abstract Many interconnection networks can be constructed with line digraph iterations. In this paper, we will establish

More information

An Efficient Decoding Technique for Huffman Codes Abstract 1. Introduction

An Efficient Decoding Technique for Huffman Codes Abstract 1. Introduction An Efficient Decoding Technique for Huffman Codes Rezaul Alam Chowdhury and M. Kaykobad Department of Computer Science and Engineering Bangladesh University of Engineering and Technology Dhaka-1000, Bangladesh,

More information

Construction C : an inter-level coded version of Construction C

Construction C : an inter-level coded version of Construction C Construction C : an inter-level coded version of Construction C arxiv:1709.06640v2 [cs.it] 27 Dec 2017 Abstract Besides all the attention given to lattice constructions, it is common to find some very

More information

Cost distribution of the Chang Roberts leader election algorithm and related problems

Cost distribution of the Chang Roberts leader election algorithm and related problems Theoretical Computer Science 369 (2006) 442 447 www.elsevier.com/locate/tcs Note Cost distribution of the Chang Roberts leader election algorithm and related problems Wei-Mei Chen,1 Department of Electronic

More information

Preferred directions for resolving the non-uniqueness of Delaunay triangulations

Preferred directions for resolving the non-uniqueness of Delaunay triangulations Preferred directions for resolving the non-uniqueness of Delaunay triangulations Christopher Dyken and Michael S. Floater Abstract: This note proposes a simple rule to determine a unique triangulation

More information

Optimal Region for Binary Search Tree, Rotation and Polytope

Optimal Region for Binary Search Tree, Rotation and Polytope Optimal Region for Binary Search Tree, Rotation and Polytope Kensuke Onishi Mamoru Hoshi 2 Department of Mathematical Sciences, School of Science Tokai University, 7 Kitakaname, Hiratsuka, Kanagawa, 259-292,

More information

On k-dimensional Balanced Binary Trees*

On k-dimensional Balanced Binary Trees* journal of computer and system sciences 52, 328348 (1996) article no. 0025 On k-dimensional Balanced Binary Trees* Vijay K. Vaishnavi Department of Computer Information Systems, Georgia State University,

More information

Embedding Large Complete Binary Trees in Hypercubes with Load Balancing

Embedding Large Complete Binary Trees in Hypercubes with Load Balancing JOURNAL OF PARALLEL AND DISTRIBUTED COMPUTING 35, 104 109 (1996) ARTICLE NO. 0073 Embedding Large Complete Binary Trees in Hypercubes with Load Balancing KEMAL EFE Center for Advanced Computer Studies,

More information

Basic Properties The Definition of Catalan Numbers

Basic Properties The Definition of Catalan Numbers 1 Basic Properties 1.1. The Definition of Catalan Numbers There are many equivalent ways to define Catalan numbers. In fact, the main focus of this monograph is the myriad combinatorial interpretations

More information

A parallel algorithm for generation of RNA secondary structures with length n and k base-pairs

A parallel algorithm for generation of RNA secondary structures with length n and k base-pairs Iran J Coput Sci (2018) 1:11 17 https://doi.org/10.1007/s42044-017-0001-2 ORIGIAL ARICLE A parallel algorith for generation of RA secondary structures with length n and k base-pairs Shahin Mohaadi 1 Abbas

More information

Chapter 4. Triangular Sum Labeling

Chapter 4. Triangular Sum Labeling Chapter 4 Triangular Sum Labeling 32 Chapter 4. Triangular Sum Graphs 33 4.1 Introduction This chapter is focused on triangular sum labeling of graphs. As every graph is not a triangular sum graph it is

More information

Revisiting the bijection between planar maps and well labeled trees

Revisiting the bijection between planar maps and well labeled trees Revisiting the bijection between planar maps and well labeled trees Daniel Cosmin Porumbel September 1, 2014 Abstract The bijection between planar graphs and well labeled trees was published by Cori and

More information

DOUBLE DOMINATION CRITICAL AND STABLE GRAPHS UPON VERTEX REMOVAL 1

DOUBLE DOMINATION CRITICAL AND STABLE GRAPHS UPON VERTEX REMOVAL 1 Discussiones Mathematicae Graph Theory 32 (2012) 643 657 doi:10.7151/dmgt.1633 DOUBLE DOMINATION CRITICAL AND STABLE GRAPHS UPON VERTEX REMOVAL 1 Soufiane Khelifi Laboratory LMP2M, Bloc of laboratories

More information

The Encoding Complexity of Network Coding

The Encoding Complexity of Network Coding The Encoding Complexity of Network Coding Michael Langberg Alexander Sprintson Jehoshua Bruck California Institute of Technology Email: mikel,spalex,bruck @caltech.edu Abstract In the multicast network

More information

ADAPTIVE SORTING WITH AVL TREES

ADAPTIVE SORTING WITH AVL TREES ADAPTIVE SORTING WITH AVL TREES Amr Elmasry Computer Science Department Alexandria University Alexandria, Egypt elmasry@alexeng.edu.eg Abstract A new adaptive sorting algorithm is introduced. The new implementation

More information

AN APPROXIMATION APPROACH FOR RANKING FUZZY NUMBERS BASED ON WEIGHTED INTERVAL - VALUE 1.INTRODUCTION

AN APPROXIMATION APPROACH FOR RANKING FUZZY NUMBERS BASED ON WEIGHTED INTERVAL - VALUE 1.INTRODUCTION Mathematical and Computational Applications, Vol. 16, No. 3, pp. 588-597, 2011. Association for Scientific Research AN APPROXIMATION APPROACH FOR RANKING FUZZY NUMBERS BASED ON WEIGHTED INTERVAL - VALUE

More information

Sparse Hypercube 3-Spanners

Sparse Hypercube 3-Spanners Sparse Hypercube 3-Spanners W. Duckworth and M. Zito Department of Mathematics and Statistics, University of Melbourne, Parkville, Victoria 3052, Australia Department of Computer Science, University of

More information

Formally Self-Dual Codes Related to Type II Codes

Formally Self-Dual Codes Related to Type II Codes Formally Self-Dual Codes Related to Type II Codes Koichi Betsumiya Graduate School of Mathematics Nagoya University Nagoya 464 8602, Japan and Masaaki Harada Department of Mathematical Sciences Yamagata

More information

Lamé s Theorem. Strings. Recursively Defined Sets and Structures. Recursively Defined Sets and Structures

Lamé s Theorem. Strings. Recursively Defined Sets and Structures. Recursively Defined Sets and Structures Lamé s Theorem Gabriel Lamé (1795-1870) Recursively Defined Sets and Structures Lamé s Theorem: Let a and b be positive integers with a b Then the number of divisions used by the Euclidian algorithm to

More information

FOUR EDGE-INDEPENDENT SPANNING TREES 1

FOUR EDGE-INDEPENDENT SPANNING TREES 1 FOUR EDGE-INDEPENDENT SPANNING TREES 1 Alexander Hoyer and Robin Thomas School of Mathematics Georgia Institute of Technology Atlanta, Georgia 30332-0160, USA ABSTRACT We prove an ear-decomposition theorem

More information

STAIRCASE TILINGS AND LATTICE PATHS

STAIRCASE TILINGS AND LATTICE PATHS STAIRCASE TILINGS AND LATTICE PATHS Silvia Heubach Department of Mathematics, California State University Los Angeles 55 State University Drive, Los Angeles, CA 9-84 USA sheubac@calstatela.edu Toufik Mansour

More information

On Sequential Topogenic Graphs

On Sequential Topogenic Graphs Int. J. Contemp. Math. Sciences, Vol. 5, 2010, no. 36, 1799-1805 On Sequential Topogenic Graphs Bindhu K. Thomas, K. A. Germina and Jisha Elizabath Joy Research Center & PG Department of Mathematics Mary

More information

DDS Dynamic Search Trees

DDS Dynamic Search Trees DDS Dynamic Search Trees 1 Data structures l A data structure models some abstract object. It implements a number of operations on this object, which usually can be classified into l creation and deletion

More information

Optimum Alphabetic Binary Trees T. C. Hu and J. D. Morgenthaler Department of Computer Science and Engineering, School of Engineering, University of C

Optimum Alphabetic Binary Trees T. C. Hu and J. D. Morgenthaler Department of Computer Science and Engineering, School of Engineering, University of C Optimum Alphabetic Binary Trees T. C. Hu and J. D. Morgenthaler Department of Computer Science and Engineering, School of Engineering, University of California, San Diego CA 92093{0114, USA Abstract. We

More information

An Optimal Algorithm for Untangling Binary Trees via Rotations

An Optimal Algorithm for Untangling Binary Trees via Rotations The Author 2011. Published by Oxford University Press on behalf of The British Computer Society. All rights reserved. For Permissions, please email: journals.permissions@oup.com Advance Access publication

More information

THE RAINBOW DOMINATION SUBDIVISION NUMBERS OF GRAPHS. N. Dehgardi, S. M. Sheikholeslami and L. Volkmann. 1. Introduction

THE RAINBOW DOMINATION SUBDIVISION NUMBERS OF GRAPHS. N. Dehgardi, S. M. Sheikholeslami and L. Volkmann. 1. Introduction MATEMATIQKI VESNIK 67, 2 (2015), 102 114 June 2015 originalni nauqni rad research paper THE RAINBOW DOMINATION SUBDIVISION NUMBERS OF GRAPHS N. Dehgardi, S. M. Sheikholeslami and L. Volkmann Abstract.

More information

DOMINATION IN SOME CLASSES OF DITREES

DOMINATION IN SOME CLASSES OF DITREES BULLETIN OF THE INTERNATIONAL MATHEMATICAL VIRTUAL INSTITUTE ISSN (p) 20-4874, ISSN (o) 20-4955 www.imvibl.org /JOURNALS / BULLETIN Vol. 6(2016), 157-167 Former BULLETIN OF THE SOCIETY OF MATHEMATICIANS

More information

A TESSELLATION FOR ALGEBRAIC SURFACES IN CP 3

A TESSELLATION FOR ALGEBRAIC SURFACES IN CP 3 A TESSELLATION FOR ALGEBRAIC SURFACES IN CP 3 ANDREW J. HANSON AND JI-PING SHA In this paper we present a systematic and explicit algorithm for tessellating the algebraic surfaces (real 4-manifolds) F

More information

OPTIMAL TIME AND SPACE COMPLEXITY ALGORITHM FOR CONSTRUCTION OF ALL BINARY TREES FROM PRE-ORDER AND POST-ORDER TRAVERSALS

OPTIMAL TIME AND SPACE COMPLEXITY ALGORITHM FOR CONSTRUCTION OF ALL BINARY TREES FROM PRE-ORDER AND POST-ORDER TRAVERSALS OPTIMAL TIME AND SPACE COMPLEXITY ALGORITHM FOR CONSTRUCTION OF ALL BINARY TREES FROM PRE-ORDER AND POST-ORDER TRAVERSALS ADRIAN DEACONU Transilvania University of Brasov, Roania Abstract A linear tie

More information

An Optimal Algorithm for the Euclidean Bottleneck Full Steiner Tree Problem

An Optimal Algorithm for the Euclidean Bottleneck Full Steiner Tree Problem An Optimal Algorithm for the Euclidean Bottleneck Full Steiner Tree Problem Ahmad Biniaz Anil Maheshwari Michiel Smid September 30, 2013 Abstract Let P and S be two disjoint sets of n and m points in the

More information

NP-completeness of generalized multi-skolem sequences

NP-completeness of generalized multi-skolem sequences Discrete Applied Mathematics 155 (2007) 2061 2068 www.elsevier.com/locate/dam NP-completeness of generalized multi-skolem sequences Gustav Nordh 1 Department of Computer and Information Science, Linköpings

More information

LATIN SQUARES AND TRANSVERSAL DESIGNS

LATIN SQUARES AND TRANSVERSAL DESIGNS LATIN SQUARES AND TRANSVERSAL DESIGNS *Shirin Babaei Department of Mathematics, University of Zanjan, Zanjan, Iran *Author for Correspondence ABSTRACT We employ a new construction to show that if and if

More information

A note on Prüfer-like coding and counting forests of uniform hypertrees

A note on Prüfer-like coding and counting forests of uniform hypertrees A note on Prüfer-like coding and counting forests of uniform hypertrees Christian Lavault Abstract The present note is designing encoding and decoding algorithms for a forest of rooted uniform hypertrees

More information

Edge-disjoint Spanning Trees in Triangulated Graphs on Surfaces and application to node labeling 1

Edge-disjoint Spanning Trees in Triangulated Graphs on Surfaces and application to node labeling 1 Edge-disjoint Spanning Trees in Triangulated Graphs on Surfaces and application to node labeling 1 Arnaud Labourel a a LaBRI - Universite Bordeaux 1, France Abstract In 1974, Kundu [4] has shown that triangulated

More information

Parameterized Complexity of Independence and Domination on Geometric Graphs

Parameterized Complexity of Independence and Domination on Geometric Graphs Parameterized Complexity of Independence and Domination on Geometric Graphs Dániel Marx Institut für Informatik, Humboldt-Universität zu Berlin, Unter den Linden 6, 10099 Berlin, Germany. dmarx@informatik.hu-berlin.de

More information

Roman Domination in Complementary Prism Graphs

Roman Domination in Complementary Prism Graphs International J.Math. Combin. Vol.2(2012), 24-31 Roman Domination in Complementary Prism Graphs B.Chaluvaraju and V.Chaitra 1(Department of Mathematics, Bangalore University, Central College Campus, Bangalore

More information

Bijective counting of tree-rooted maps and shuffles of parenthesis systems

Bijective counting of tree-rooted maps and shuffles of parenthesis systems Bijective counting of tree-rooted maps and shuffles of parenthesis systems Olivier Bernardi Submitted: Jan 24, 2006; Accepted: Nov 8, 2006; Published: Jan 3, 2006 Mathematics Subject Classifications: 05A15,

More information

A TIGHT BOUND ON THE LENGTH OF ODD CYCLES IN THE INCOMPATIBILITY GRAPH OF A NON-C1P MATRIX

A TIGHT BOUND ON THE LENGTH OF ODD CYCLES IN THE INCOMPATIBILITY GRAPH OF A NON-C1P MATRIX A TIGHT BOUND ON THE LENGTH OF ODD CYCLES IN THE INCOMPATIBILITY GRAPH OF A NON-C1P MATRIX MEHRNOUSH MALEKESMAEILI, CEDRIC CHAUVE, AND TAMON STEPHEN Abstract. A binary matrix has the consecutive ones property

More information

15.083J Integer Programming and Combinatorial Optimization Fall Enumerative Methods

15.083J Integer Programming and Combinatorial Optimization Fall Enumerative Methods 5.8J Integer Programming and Combinatorial Optimization Fall 9 A knapsack problem Enumerative Methods Let s focus on maximization integer linear programs with only binary variables For example: a knapsack

More information

An exhaustive generation algorithm for Catalan objects and others

An exhaustive generation algorithm for Catalan objects and others PU.M.A. Vol. 17 (2006), No. 1 2, pp. 39 53 An exhaustive generation algorithm for Catalan objects and others Antonio Bernini Dipartimento Sistemi e Informatica, viale G.B. Morgagni 65, 50134 Firenze, Italy

More information

EDGE-COLOURED GRAPHS AND SWITCHING WITH S m, A m AND D m

EDGE-COLOURED GRAPHS AND SWITCHING WITH S m, A m AND D m EDGE-COLOURED GRAPHS AND SWITCHING WITH S m, A m AND D m GARY MACGILLIVRAY BEN TREMBLAY Abstract. We consider homomorphisms and vertex colourings of m-edge-coloured graphs that have a switching operation

More information

Consistency and Set Intersection

Consistency and Set Intersection Consistency and Set Intersection Yuanlin Zhang and Roland H.C. Yap National University of Singapore 3 Science Drive 2, Singapore {zhangyl,ryap}@comp.nus.edu.sg Abstract We propose a new framework to study

More information

2 Eulerian digraphs and oriented trees.

2 Eulerian digraphs and oriented trees. 2 Eulerian digraphs and oriented trees. A famous problem which goes back to Euler asks for what graphs G is there a closed walk which uses every edge exactly once. (There is also a version for non-closed

More information

arxiv: v3 [math.co] 9 Jan 2015

arxiv: v3 [math.co] 9 Jan 2015 Subset-lex: did we miss an order? arxiv:1405.6503v3 [math.co] 9 Jan 2015 Jörg Arndt, Technische Hochschule Nürnberg January 12, 2015 Abstract We generalize a well-known algorithm for the

More information

Algorithmic aspects of k-domination in graphs

Algorithmic aspects of k-domination in graphs PREPRINT 國立臺灣大學數學系預印本 Department of Mathematics, National Taiwan University www.math.ntu.edu.tw/~mathlib/preprint/2012-08.pdf Algorithmic aspects of k-domination in graphs James K. Lan and Gerard Jennhwa

More information

Math 8803/4803, Spring 2008: Discrete Mathematical Biology

Math 8803/4803, Spring 2008: Discrete Mathematical Biology Math 8803/4803, Spring 2008: Discrete Mathematical Biology Prof. Christine Heitsch School of Mathematics Georgia Institute of Technology Lecture 11 February 1, 2008 and give one secondary structure for

More information

Product constructions for transitive decompositions of graphs

Product constructions for transitive decompositions of graphs 116 Product constructions for transitive decompositions of graphs Geoffrey Pearce Abstract A decomposition of a graph is a partition of the edge set, giving a set of subgraphs. A transitive decomposition

More information

A Connection between Network Coding and. Convolutional Codes

A Connection between Network Coding and. Convolutional Codes A Connection between Network Coding and 1 Convolutional Codes Christina Fragouli, Emina Soljanin christina.fragouli@epfl.ch, emina@lucent.com Abstract The min-cut, max-flow theorem states that a source

More information

Recursive Bijections for Catalan Objects

Recursive Bijections for Catalan Objects 1 2 3 47 6 23 11 Journal of Integer Sequences, Vol. 16 (2013), Article 13.5.3 Recursive Bijections for Catalan Objects Stefan Forcey Department of Mathematics The University of Akron Akron, OH 44325-4002

More information

An Efficient Transformation for Klee s Measure Problem in the Streaming Model Abstract Given a stream of rectangles over a discrete space, we consider the problem of computing the total number of distinct

More information

Complexity Results on Graphs with Few Cliques

Complexity Results on Graphs with Few Cliques Discrete Mathematics and Theoretical Computer Science DMTCS vol. 9, 2007, 127 136 Complexity Results on Graphs with Few Cliques Bill Rosgen 1 and Lorna Stewart 2 1 Institute for Quantum Computing and School

More information

Lecture 1. 1 Notation

Lecture 1. 1 Notation Lecture 1 (The material on mathematical logic is covered in the textbook starting with Chapter 5; however, for the first few lectures, I will be providing some required background topics and will not be

More information

The Number of Connected Components in Graphs and Its. Applications. Ryuhei Uehara. Natural Science Faculty, Komazawa University.

The Number of Connected Components in Graphs and Its. Applications. Ryuhei Uehara. Natural Science Faculty, Komazawa University. The Number of Connected Components in Graphs and Its Applications Ryuhei Uehara uehara@komazawa-u.ac.jp Natural Science Faculty, Komazawa University Abstract For any given graph and an integer k, the number

More information

Clique trees of infinite locally finite chordal graphs

Clique trees of infinite locally finite chordal graphs Clique trees of infinite locally finite chordal graphs Christoph Hofer-Temmel and Florian Lehner Abstract We investigate clique trees of infinite locally finite chordal graphs. Our main contribution is

More information

Binary Heaps in Dynamic Arrays

Binary Heaps in Dynamic Arrays Yufei Tao ITEE University of Queensland We have already learned that the binary heap serves as an efficient implementation of a priority queue. Our previous discussion was based on pointers (for getting

More information

Decreasing the Diameter of Bounded Degree Graphs

Decreasing the Diameter of Bounded Degree Graphs Decreasing the Diameter of Bounded Degree Graphs Noga Alon András Gyárfás Miklós Ruszinkó February, 00 To the memory of Paul Erdős Abstract Let f d (G) denote the minimum number of edges that have to be

More information

Chordal deletion is fixed-parameter tractable

Chordal deletion is fixed-parameter tractable Chordal deletion is fixed-parameter tractable Dániel Marx Institut für Informatik, Humboldt-Universität zu Berlin, Unter den Linden 6, 10099 Berlin, Germany. dmarx@informatik.hu-berlin.de Abstract. It

More information

ON VERTEX b-critical TREES. Mostafa Blidia, Noureddine Ikhlef Eschouf, and Frédéric Maffray

ON VERTEX b-critical TREES. Mostafa Blidia, Noureddine Ikhlef Eschouf, and Frédéric Maffray Opuscula Math. 33, no. 1 (2013), 19 28 http://dx.doi.org/10.7494/opmath.2013.33.1.19 Opuscula Mathematica ON VERTEX b-critical TREES Mostafa Blidia, Noureddine Ikhlef Eschouf, and Frédéric Maffray Communicated

More information

A 2k-Kernelization Algorithm for Vertex Cover Based on Crown Decomposition

A 2k-Kernelization Algorithm for Vertex Cover Based on Crown Decomposition A 2k-Kernelization Algorithm for Vertex Cover Based on Crown Decomposition Wenjun Li a, Binhai Zhu b, a Hunan Provincial Key Laboratory of Intelligent Processing of Big Data on Transportation, Changsha

More information

An Efficient Algorithm for Computing Non-overlapping Inversion and Transposition Distance

An Efficient Algorithm for Computing Non-overlapping Inversion and Transposition Distance An Efficient Algorithm for Computing Non-overlapping Inversion and Transposition Distance Toan Thang Ta, Cheng-Yao Lin and Chin Lung Lu Department of Computer Science National Tsing Hua University, Hsinchu

More information

Encoding/Decoding, Counting graphs

Encoding/Decoding, Counting graphs Encoding/Decoding, Counting graphs Russell Impagliazzo and Miles Jones Thanks to Janine Tiefenbruck http://cseweb.ucsd.edu/classes/sp16/cse21-bd/ May 13, 2016 11-avoiding binary strings Let s consider

More information

Efficient Non-Sequential Access and More Ordering Choices in a Search Tree

Efficient Non-Sequential Access and More Ordering Choices in a Search Tree Efficient Non-Sequential Access and More Ordering Choices in a Search Tree Lubomir Stanchev Computer Science Department Indiana University - Purdue University Fort Wayne Fort Wayne, IN, USA stanchel@ipfw.edu

More information

Computing the Longest Common Substring with One Mismatch 1

Computing the Longest Common Substring with One Mismatch 1 ISSN 0032-9460, Problems of Information Transmission, 2011, Vol. 47, No. 1, pp. 1??. c Pleiades Publishing, Inc., 2011. Original Russian Text c M.A. Babenko, T.A. Starikovskaya, 2011, published in Problemy

More information