Constant Time Generation of Set Partitions

Size: px
Start display at page:

Download "Constant Time Generation of Set Partitions"

Transcription

1 930 PAPER Special Section on Selected Papers from the 17th Workshop on Circuits and Systems in Karuizawa Constant Time Generation of Set Partitions Shin-ichiro KAWANO a) and Shin-ichi NAKANO b), Members SUMMARY In this paper we give a simple algorithm to generate all partitions of {1, 2,, n} into k non-empty subsets. The number of such partitions is known as the Stirling number of the second kind. The algorithm generates each partition in constant time without repetition. By choosing k = 1, 2,, n we can also generate all partitions of {1, 2,, n} into subsets. The number of such partitions is known as the Bell number. key words: algorithm, enumeration, the Stirling number of the second kind, the Bell number, Gray code 1. Introduction It is useful to have the complete list of objects for a particular class. One can use such a list to search for a counterexample to some conjecture, to find the best object among all candidates, or to experimentally measure an average performance of an algorithm over all possible inputs. Many algorithms to generate a particular class of objects, without repetition, are already known [1], [6] [9], [11], [16]. Many excellent textbooks have been published on the subject [2], [5], [15]. In this paper we consider the following generation problem. For a positive integer n and k < n, lets (n, k) denote the set of all partitions of {1, 2,, n} into k non-empty subsets. For instance, for n = 4andk = 2thereareseven such partitions: {1, 2, 3} {4}, {1, 2, 4} {3}, {1, 3, 4} {2}, {2, 3, 4} {1}, {1, 2} {3, 4}, {1, 3} {2, 4}, {1, 4} {2, 3}. Thus S (4, 2) = 7. The cardinality S (n, k) of such partitions is called the Stirling number of the second kind, and we can compute the number by the recurrence: S (n, k) = S (n 1, k 1) + k S (n 1, k). by a very small amount, and output each object as the difference from the preceding one. Such orderings of objects are known as Gray codes [4], [12] [14]. Let G be a graph, where each vertex corresponds to each object and each edge connects two similar objects. Then the Gray code corresponds to a Hamiltonian path of G. A Gray code for S (n, k) is known in [12]. The main idea is reversing sublists technique based on the recurrence above. The paper also gives a generation algorithm to generate each partition in S (n, k) in constant time in amortized sense. In this paper we give a simple algorithm to generate all partitions in S (n, k), base on a new simple tree structure on the partitions in S (n, k). The algorithm generates each partition in constant time (in ordinary sense). Our algorithm outputs each partition as the difference from the preceding one. The main idea of the algorithm, so called family tree method, is as follows. We first define a rooted tree (See Fig. 1) such that each vertex corresponds to a partition in S (n, k), and each edge corresponds to a relation between two partitions. Then with traversing the tree we generate all partitions in S (n, k). With a similar technique we have already solved some generation problems for graphs [6], [9]. In this paper for the first time we apply the technique for non-graph objects. The rest of the paper is organized as follows. Section 2 introduces the family tree. Section 3 presents our first algorithm. The algorithm generates each partition in S (n, k) in O(1) time on average. In Sect. 4 we improve the algo- The recurrence means that we either put the last object into a class by itself, or we put it together with some non-empty subset of the first n 1 objects [3, p259]. Generally, generating algorithms produce huge outputs, and the outputs dominate the running time of the generating algorithms. So if we can compress the outputs, then it considerably improves the efficiency of the algorithms. Therefore many generating algorithms output objects in an order such that each object differs from the preceding one Manuscript received June 23, Manuscript revised October 3, Final manuscript received December 10, The authors are with the Department of Computer Science, Gunma University, Kiryu-shi, Japan. a) kawano@msc.cs.gunma-u.ac.jp b) nakano@msc.cs.gunma-u.ac.jp DOI: /ietfec/e88 a Fig. 1 The family tree T 5,3. Copyright c 2005 The Institute of Electronics, Information and Communication Engineers

2 KAWANO and NAKANO: CONSTANT TIME GENERATION OF SET PARTITIONS 931 rithm so that it generates each partition in O(1) time. Finally Sect. 5 is a conclusion. 2. The Family Tree In this section we define a tree structure among partitions in S (n, k). For positive integers n and k < n, leta S (n, k) bea partition of {1, 2,, n} into k non-empty subsets B 1 B 2 B k. Assume that the B 1, B 2,, B k are ordered by their smallest elements. For each i = 1, 2,, n, definea i = j so that i B j. Then for each A S (n, k) a unique sequence a 1 a 2, a n is defined. For example, {1, 2, 4} {3} {5} defines We can observe that any sequence derived as above has the following property. (a) If i = 1thena i = 1. (b) If i > 1thena i 1 + max{a 1, a 2,, a i 1 }. (c) k = max{a 1, a 2,, a n }. We call such a sequence a k-restricted growth sequence. We can also observe the following. Let R(n, k) bethesetofallk-restricted growth sequences satisfying (a) (c) above. Let A = a 1 a 2, a n be a k-restricted growth sequence in R(n, k). For each j = 1, 2,, k, defineb j = {i a i = j}. Then each A R(n, k) defines a unique partition B 1 B 2 B k of {1, 2,, n}. For example, defines {1, 2, 4} {3} {5}. Thus there is a simple bijection between S (n, k) and R(n, k), and we can easily translate one into the other. We designate one special sequence k, which corresponds to a special partition {1, 2,, n k + 1} {n k + 2} {n k + 3} {n}, and call it the root sequence. Then we define the parent sequence P(A) for each sequence A in R(n, k) except for the root sequence as follows. Let A = a 1 a 2 a n be a sequence in R(n, k), and assume that A is not the root sequence. We have the following two cases. Case 1: a 1 a 2 a 3 a n. Let b be the maximum i such that a i k (n i) and n k + 1 i n. This means a b is the rightmost disagree between A and the root sequence k. Note that, b 2 holds since a 1 = 1forA and a 1 matches to the root sequence by (a). (Note that we have assumed k < n.) Also b n holds since a n = k by (c) and the condition a 1 a 2 a 3 a n.nowa i = k (n i) holds for each i = b + 1, b + 2,, n, by the choice of b. Properties (b) and (c) mean that A must contain every 1, 2,, k, so the condition a 1 a 2 a 3 a n means a b 2, a b = k (n b)+1 = a b+1,anda b 1 is equal to either a b or a b 1. In this case we subtract one from a b, and define P(A) = a 1 a 2 a b 1 (a b 1)a b+1 a b+2 a n. Then the former rightmost disagree integer a b now matches the corresponding integer in the root sequence. Now P(A) S (n, k) holds, because (a) holds since b 1, (b) holds since a b = a b+1 and a b 1 is either a b or a b 1, (c) holds since a n = k in A and b n. For instance, P(112223) = with b = 4, and P(111233) = with b = 5, where the rightmost disagree a b is underlined. Case 2: Otherwise. Let b be the maximum i such that 1 i < n and a i > a i+1. Note that b 1sincea 1 = 1by(a). In this case we swap a b and a b+1, and define P(A) = a 1 a 2 a b 1 a b+1 a b a b+2 a b+3 a n. The swapped a b and a b+1 are underlined. Now P(A) R(n, k) holds, because (a) holds since b 1, (b) holds since the swap a b and a b+1 (< a b )never destroys the property (b), and (c) holds since we only swap two integers. For instance, P(122131) = with b = 5, and P(122113) = with b = 3, where the pair (a b, a b+1 ) is underlined. If P(A) is the parent sequence of A then we say A is a child sequence of P(A). Note that A has the unique parent P(A), while P(A) may have many child sequences. We have the following lemma by the case analysis above. Lemma 2.1: If A R(n, k) anda is not the root sequence, then P(A) R(n, k). By the lemma above, given a sequence A in R(n, k), where A is not the root sequence, by repeatedly finding the parent sequence of the derived sequence, we have the unique sequence A, P(A), P(P(A)), of sequences in R(n, k), which eventually s with the root sequence. (If Case 2 occurs then the number of general reverse pair, which is a pair (a i, a j ) such that a i > a j and i < j, decrease, and if the number of general reverse pair reaches to zero, then Case 1 occurs and then the sum of the sequence decrease by one. Thus A, P(A), P(P(A)), never lead into a cycle.) By merging these sequences we have the family tree of R(n, k), denoted by T n,k, such that the vertices of T n,k correspond to the sequences in R(n, k), and each edge corresponds to each relation between some A and P(A). For instance, T 5,3 is shown in Fig. 1, where each dashed line corresponds to the relation with Case 1, and each solid line corresponds to Case 2. This proves that all partitions are in the tree. 3. Algorithm In this section we give an algorithm to construct T n,k and generate all partitions. If we can generate all child sequences of a given sequence in R(n, k), then in a recursive manner we can construct T n,k, and generate all sequences in R(n, k). How can we generate all child sequences of a given sequence? For any sequence P = p 1 p 2 p 3 p n in R(n, k), each child sequence C = c 1 c 2 c 3 c n of P is one of the following two types. Type 1: C satisfies Case 1 in Sect. 2, that is c 1 c 2 c 3 c n holds. Type 2: C satisfies Case 2 in Sect. 2, that is c i > c i+1 holds

3 932 for some i. We need to observe those types more. For a sequence A = a 1 a 2 a n, a consecutive pair (a i, a i+1 )ona is called a reverse pair if a i > a i+1. Type 1: C satisfies Case 1 in Sect. 2. In this case c 1 c 2 c 3 c n holds. Let b be the maximum i such that c i k (n i). Then P = P(C) = c 1 c 2 c b 1 (c b 1)c b+1 c b+2 c n. Note that, since C has no reverse pair, P has either one or zero reverse pair. The only possible reverse pair of P is (p b 1, p b ) = (c b 1, c b 1), since we have subtracted one from c b. Thus if P has two or more reverse pairs, then P has no child sequence with Type 1. We have the following two subtypes. Type 1(a): P has exactly one reverse pair. Let (p x, p x+1 ) be the reverse pair. If p y = p y+1 for some y>x then C never satisfies Case 1. For instance, p 5 = p 6 for P = with x = 2and y = 5 > 2, then P has no child sequence with Type 1, since by adding one to p 3 we have a sequence C = with c 1 c 2 c 3 c n,howeverp(c) = P(122233) = = P. If p x > p x+1 + 1thenalsoC never satisfies Case 1. For instance, p 3 > p 4 + 1forP = with x = 3, then P has no child sequence with Type 1, since after adding one to p 4 the resulting sequence C = still has a reverse pair, a contradiction. Otherwise (1) p n = k, p n 1 = k 1,, p x+1 = k (n (x + 1)), and (2) p x = p x hold. Then P has a child sequence p 1 p 2 p x (p x+1 + 1)p x+2 p x+3 p n with Type 1. For instance, P = has a child sequence , P = has a child sequence , and P = has a child sequence , where each reverse pair is underlined. Type 1(b): P has no reverse pair. Since n > k there is some integer i such that p i = p i+1. Let x be the maximum such integer i. Nowp n = k, p n 1 = k 1,, p x+1 = k (n (x + 1)) hold. In this case we have two subcases. If x n 1, then P has a child sequence C = p 1 p 2 p x (p x+1 + 1)p x+2 p x+3 p n. Note that now c x+1 = c x+2 holds. Otherwise x = n 1 holds, then P has no child sequence with Type 1. For instance, P = has a child sequence , P = has a child sequence , where p x and p x+1 are underlined. On the other hand, P = has no child sequence with Type 1. Thus P has at most one child sequence with Type 1. We have two cases. If P is not the root sequence, then the child sequence can be derived by adding one to p x+1 for both Type 1(a) and (b), where p x is the rightmost disagree between P and the root sequence. Especially if P is the root sequence, then the child sequence can be derived by adding one to rightmost 1 in P. For example if P = then we have a child sequence Type 2: C satisfies Case 2 in Sect. 2. In this case c i > c i+1 holds for some i. Let b be the maximum integer i such that c i > c i+1. Now c b+1 c b+2 c n holds, and the rightmost reverse pair of C is (c b, c b+1 ). By swapping the pair (c b, c b+1 )inc, wederive P = p 1 p 2 p n = c 1 c 2 c b 1 c b+1 c b c b+2 c b+3 c n. The swapped pair is underlined. Note that c b+2 c b+3 c n still holds as it was. Let x be the maximum integer i such that p i > p i+1. We can observe that x b + 1, since otherwise x b + 2 holds which means (c x, c x+1 ) (c b, c b+1 )is the rightmost reverse pair of C, a contradiction. Similarly, x b holds since if x = b then (c b, c b+1 ) is not a reverse pair in P(C), a contradiction. Therefore, either x = b + 1or x b 1 holds. Thus either b = x 1orb x + 1 holds. Let P[i] be the sequence derived from P by swapping p i and p i+1. We have several cases. If p i = p i+1 then P[i] is not a child sequence of P,since P[i] = P. If p i > p i+1 then P[i] is not a child sequence of P,since then c i < c i+1 holds in P[i], and P(P[i]) P. Otherwise, now p i < p i+1. If both p i and p i+1 are the leftmost occurrences of the integers p i and p i+1 and p i + 1 = p i+1,thenp[i] is not a child sequence of P,sinceP[i] is not a k-restricted growth sequence. For instance, for P = 11123, P[4] = is not a k-restricted growth sequence. Otherwise, now p i < p i+1 and at least one of {p i, p i+1 } is not the leftmost occurrence of the integer. We have the following four cases. For each i, x + 1 i n 1, P[i] is a child sequence. In this case b = i holds. For i = x, P[i] is not a child sequence. For each i, 1 i x 2, P[i] is not a child sequence. Especially, for i = x 1, we have two subcases. If p x 1 p x+1 then P[x 1] is a child sequence, otherwise P[x 1] is not a child sequence. For instance, for P = with x = 4, P[3] = is a child sequence, since P(12312) = 12132, while for P = with x = 4, P[3] = is not a child sequence, since P(12321) = P. Procedure find-all-children(a = a 1 a 2 a n ) {A is the current sequence.} 01 Output H {Output the difference 02 from the preceding sequence.} 03 if A is the root sequence A r then 04 Let a x be the 2nd last 1 in A. 05 else Let a x be the rightmost disagree 06 between A and the root sequence A r. 07 if the number of reverse pairs 08 in A is at most one and 09 either a x = a x+1 + 1ora x = a x+1 then 10 find-all-children (a 1 a 2 11 a x (a x+1 + 1)a x+2 a n ){Type 1} 12 for each i, x + 1 i n 1suchthat 13 a i < a i+1 and at least one of 14 {a i, a i+1 } is not

4 KAWANO and NAKANO: CONSTANT TIME GENERATION OF SET PARTITIONS 933 Fig. 2 The family tree T 6,3. 15 the leftmost occurrence of the integer. 16 find-all-children (A = a 1 a 2 17 a i 1 a i+1 a i a i+2 a n ) {Type 2} 18 if a x 1 a x+1 then 19 find-all-children (a 1 a 2 20 a x 2 a x a x 1 a x+1 a x+2 a n ) {Type 2} Algorithm find-all-partitions(n, k) Output the root sequence A r find-all-children(a r ) Theorem 3.1: The algorithm uses O(n) space and runs in O( S (n, k) ) time. Proof. Since we traverse the family tree T n,k and output each sequence at each corresponding vertex of T n,k, we can generate all the sequences in S (n, k) without repetition. We maintain the following for the current sequence. (1) A list of reversed pairs, in the order of occurrences in the sequence, (2) the consecutively matched subsequences to the root sequence, and (3) consecutive occurrences of the same integers. To maintain those we need O(1) time for each output sequence. Other parts of the algorithm need only constant time for each edge of T n,k. Thus the algorithm runs in O( S (n, k) ) time. Some examples of the family trees are shown in Fig. 1 and Fig. 2, where each dashed line corresponds to Type 1, and each solid line corresponds to the relation with Type Modification The algorithm in Sect. 3 generates all sequences in S (n, k) in O( S (n, k) ) time. Thus the algorithm generates each sequence in O(1) time on average. However, after generating a sequence corresponding to the last vertex in a large subtree of T n,k, we have to merely return from the deep recursive call without outputting any sequence. This may take much time. Therefore, we cannot generate each sequence in O(1) time (in ordinary sense). However, a simple modification [10] improves the algorithm to generate each sequence in O(1) time. The algorithm is as follows. Procedure find-all-children2(a, depth) {A is the current sequence and depth is the depth of the recursive call.} 01 if depth is even 02 then Output A 03 {before outputting its child sequences.} 04 Generate child sequences A 1, A 2,, A x 05 by the method in Sect. 3, and

5 934 Fig. 3 A Gray code for S (5, 3). 06 recursively call find-all-children2 07 for each child sequence. 08 if depth is odd 09 then Output A 10 {after outputting its child sequences.} One can observe that the algorithm generates all sequences so that each sequence can be obtained from the preceding one by tracing at most three edges of T n,k. Note that if A corresponds to a vertex v in T n,k with odd depth, then we may need to trace three edges to generate the next sequence. Otherwise we need to trace at most two edges to generate the next sequence. Thus we can generate the next sequence by a constant number of operations. Therefore, we can generate each sequence in constant time. Note that each sequence is similar to the preceding one, since it can be obtained with at most three operations. See Fig. 3. Thus, we can regard the derived sequence of the sequences as a combinatorial Gray code [4], [12], [14], [15] for partitions. 5. Conclusion In this paper we gave a simple algorithm to generate all partitions in S (n, k). The algorithm generates each partition in constant time. By choosing k = 1, 2,, n we can also generate all partitions of {1, 2,, n} into subsets. The number of such partitions is known as the Bell number. [8] B.D. McKay, Isomorph-free exhaustive generation, J. Algorithms, vol.26, pp , [9] S. Nakano, Efficient generation of plane trees, Inf. Process. Lett., vol.84, pp , [10] S. Nakano and T. Uno, A simple constant time enumeration algorithm for free trees, IPSJ Technical Report, 2003-AL-91-2, [11] R.C. Read, How to avoid isomorphism search when cataloguing combinatorial configurations, Annals of Discrete Mathematics, vol.2, pp , [12] F. Ruskey, Simple combinatorial Gray codes constructed by reversing sublists, Proc. ISAAC93, LNCS 762, pp , [13] K.H. Rosen, ed., Handbook of Discrete and Combinatorial Mathematics, CRC Press, Boca Raton, [14] C. Savage, A survey of combinatorial Gray codes, SIAM Review, vol.39, pp , [15] H.S. Wilf, Combinatorial Algorithms: An Update, SIAM, [16] R.A. Wright, B. Richmond, A. Odlyzko, and B.D. McKay, Constant time generation of free trees, SIAM J. Comput., vol.15, pp , Shin-ichiro Kawano received B.E. and M.E. from Gunma University in 2001 and 2003, respectively. He is currently a doctoral student in the Graduate School of Engineering, Gunma University. His research interests include combinatorial algorithms and graph algorithms. Shin-ichi Nakano received B.E., M.E. and Ph.D. from Tohoku University in 1985,1987 and 1992, respectively. He is currently a Professor in the Department of Computer Science, Faculty of Engineering, Gunma University. His research interests include combinatorial algorithms and graph algorithms. References [1] T. Beyer and S.M. Hedetniemi, Constant time generation of rooted trees, SIAM J. Comput., vol.9, pp , [2] L.A. Goldberg, Efficient Algorithms for Listing Combinatorial Structures, Cambridge University Press, New York, [3] R. Graham, D.E. Knuth, and O. Patashnik, Concrete Mathematics, Addison-Wesley, [4] J.T. Joichi, D.E. White, and S.G. Williamson, Combinatorial Gray codes, SIAM J. Comput., vol.9, pp , [5] D.L. Kreher and D.R. Stinson, Combinatorial Algorithms, CRC Press, Boca Raton, [6] Z. Li and S. Nakano, Efficient generation of plane triangulations without repetitions, Proc. ICALP2001, LNCS 2076, pp , [7] G. Li and F. Ruskey, The advantage of forward thinking in generating rooted and free trees, Proc. 10th Annual ACM-SIAM Symp. on Discrete Algorithms, pp , 1999.

Sequences that satisfy a(n a(n)) = 0

Sequences that satisfy a(n a(n)) = 0 Sequences that satisfy a(n a(n)) = 0 Nate Kube Frank Ruskey October 13, 2005 Abstract We explore the properties of some sequences for which a(n a(n)) = 0. Under the natural restriction that a(n) < n the

More information

A fast algorithm to generate necklaces with xed content

A fast algorithm to generate necklaces with xed content Theoretical Computer Science 301 (003) 477 489 www.elsevier.com/locate/tcs Note A fast algorithm to generate necklaces with xed content Joe Sawada 1 Department of Computer Science, University of Toronto,

More information

A REFINED ENUMERATION OF p-ary LABELED TREES

A REFINED ENUMERATION OF p-ary LABELED TREES Korean J. Math. 21 (2013), No. 4, pp. 495 502 http://dx.doi.org/10.11568/kjm.2013.21.4.495 A REFINED ENUMERATION OF p-ary LABELED TREES Seunghyun Seo and Heesung Shin Abstract. Let T n (p) be the set of

More information

EXHAUSTIVELY generating a class of combinatorial objects

EXHAUSTIVELY generating a class of combinatorial objects International Conference on Mechanical, Production and Materials Engineering (ICMPME') June 6-7,, Bangkok An Improving Scheme of Unranking t-ary Trees in Gray-code Order Ro Yu Wu, Jou Ming Chang, An Hang

More information

Combinatorial algorithms

Combinatorial algorithms Combinatorial algorithms computing subset rank and unrank, Gray codes, k-element subset rank and unrank, computing permutation rank and unrank Jiří Vyskočil, Radek Mařík 2012 Combinatorial Generation definition:

More information

Identifying an m-ary Partition Identity through an m-ary Tree

Identifying an m-ary Partition Identity through an m-ary Tree Bridgewater State University Virtual Commons - Bridgewater State University Mathematics Faculty Publications Mathematics Department 06 Identifying an m-ary Partition Identity through an m-ary Tree Timothy

More information

Hanoi Graphs and Some Classical Numbers

Hanoi Graphs and Some Classical Numbers Hanoi Graphs and Some Classical Numbers Sandi Klavžar Uroš Milutinović Ciril Petr Abstract The Hanoi graphs Hp n model the p-pegs n-discs Tower of Hanoi problem(s). It was previously known that Stirling

More information

Two algorithms extending a perfect matching of the hypercube into a Hamiltonian cycle

Two algorithms extending a perfect matching of the hypercube into a Hamiltonian cycle Two algorithms extending a perfect matching of the hypercube into a Hamiltonian cycle Jiří Fink Department of Theoretical Computer Science and Mathematical Logic Faculty of Mathematics and Physics Charles

More information

1 Basic Definitions. 2 Proof By Contradiction. 3 Exchange Argument

1 Basic Definitions. 2 Proof By Contradiction. 3 Exchange Argument 1 Basic Definitions A Problem is a relation from input to acceptable output. For example, INPUT: A list of integers x 1,..., x n OUTPUT: One of the three smallest numbers in the list An algorithm A solves

More information

Fixed-Density Necklaces and Lyndon Words in Cool-lex Order

Fixed-Density Necklaces and Lyndon Words in Cool-lex Order Fixed-Density Necklaces and Lyndon Words in Cool-lex Order J. Sawada A. Williams July 6, 2009 Abstract This paper creates a simple Gray code for fixed-density binary necklaces and Lyndon words. The Gray

More information

Counting k-marked Durfee Symbols

Counting k-marked Durfee Symbols Counting k-marked Durfee Symbols Kağan Kurşungöz Department of Mathematics The Pennsylvania State University University Park PA 602 kursun@math.psu.edu Submitted: May 7 200; Accepted: Feb 5 20; Published:

More information

Anti-Slide. Regular Paper. Kazuyuki Amano 1,a) Shin-ichi Nakano 1,b) Koichi Yamazaki 1,c) 1. Introduction

Anti-Slide. Regular Paper. Kazuyuki Amano 1,a) Shin-ichi Nakano 1,b) Koichi Yamazaki 1,c) 1. Introduction [DOI: 10.2197/ipsjjip.23.252] Regular Paper Anti-Slide Kazuyuki Amano 1,a) Shin-ichi Nakano 1,b) Koichi Yamazaki 1,c) Received: July 31, 2014, Accepted: January 7, 2015 Abstract: The anti-slide packing

More information

On Minimal Words With Given Subword Complexity

On Minimal Words With Given Subword Complexity On Minimal Words With Given Subword Complexity Ming-wei Wang Department of Computer Science University of Waterloo Waterloo, Ontario N2L 3G CANADA m2wang@neumann.uwaterloo.ca Jeffrey Shallit Department

More information

An Application of Catalan Numbers on Cayley Tree of Order 2: Single Polygon Counting

An Application of Catalan Numbers on Cayley Tree of Order 2: Single Polygon Counting BULLETIN of the Malaysian Mathematical Sciences Society http://math.usm.my/bulletin Bull. Malays. Math. Sci. Soc. (2) 31(2) (2008), 175 183 An Application of Catalan Numbers on Cayley Tree of Order 2:

More information

Mathematical Association of America is collaborating with JSTOR to digitize, preserve and extend access to The American Mathematical Monthly.

Mathematical Association of America is collaborating with JSTOR to digitize, preserve and extend access to The American Mathematical Monthly. Recounting the Rationals Author(s): Neil Calkin and Herbert S. Wilf Source: The American Mathematical Monthly, Vol. 107, No. 4 (Apr., 2000), pp. 360-363 Published by: Mathematical Association of America

More information

Gray Codes and Overlap Cycles for Restricted Weight Words

Gray Codes and Overlap Cycles for Restricted Weight Words Gray Codes and Overlap Cycles for Restricted Weight Words Victoria Horan Air Force Research Laboratory Information Directorate Glenn Hurlbert School of Mathematical and Statistical Sciences Arizona State

More information

Passing from generating functions to recursion relations

Passing from generating functions to recursion relations Passing from generating functions to recursion relations D Klain last updated December 8, 2012 Comments and corrections are welcome In the textbook you are given a method for finding the generating function

More information

On the Density of Languages Representing Finite Set Partitions 1

On the Density of Languages Representing Finite Set Partitions 1 2 3 47 6 23 Journal of Integer Sequences, Vol. 8 2005, Article 05.2.8 On the Density of Languages Representing Finite Set Partitions Nelma Moreira and Rogério Reis DCC-FC & LIACC Universidade do Porto

More information

The Interlace Polynomial of Graphs at 1

The Interlace Polynomial of Graphs at 1 The Interlace Polynomial of Graphs at 1 PN Balister B Bollobás J Cutler L Pebody July 3, 2002 Department of Mathematical Sciences, University of Memphis, Memphis, TN 38152 USA Abstract In this paper we

More information

Postorder Preimages. arxiv: v3 [math.co] 2 Feb Colin Defant 1. 1 Introduction

Postorder Preimages. arxiv: v3 [math.co] 2 Feb Colin Defant 1. 1 Introduction Discrete Mathematics and Theoretical Computer Science DMTCS vol. 19:1, 2017, #3 Postorder Preimages arxiv:1604.01723v3 [math.co] 2 Feb 2017 1 University of Florida Colin Defant 1 received 7 th Apr. 2016,

More information

PATH BUNDLES ON n-cubes

PATH BUNDLES ON n-cubes PATH BUNDLES ON n-cubes MATTHEW ELDER Abstract. A path bundle is a set of 2 a paths in an n-cube, denoted Q n, such that every path has the same length, the paths partition the vertices of Q n, the endpoints

More information

Dominating Set Counting in Graph Classes

Dominating Set Counting in Graph Classes Dominating Set Counting in Graph Classes Shuji Kijima 1, Yoshio Okamoto 2, and Takeaki Uno 3 1 Graduate School of Information Science and Electrical Engineering, Kyushu University, Japan kijima@inf.kyushu-u.ac.jp

More information

CSCE 750 Final Exam Answer Key Wednesday December 7, 2005

CSCE 750 Final Exam Answer Key Wednesday December 7, 2005 CSCE 750 Final Exam Answer Key Wednesday December 7, 2005 Do all problems. Put your answers on blank paper or in a test booklet. There are 00 points total in the exam. You have 80 minutes. Please note

More information

Independent even cycles in the Pancake graph and greedy Prefix reversal Gray codes.

Independent even cycles in the Pancake graph and greedy Prefix reversal Gray codes. Graphs and Combinatorics manuscript No. (will be inserted by the editor) Independent even cycles in the Pancake graph and greedy Prefix reversal Gray codes. Elena Konstantinova Alexey Medvedev Received:

More information

arxiv: v3 [math.co] 19 Sep 2018

arxiv: v3 [math.co] 19 Sep 2018 Decycling Number of Linear Graphs of Trees arxiv:170101953v3 [mathco] 19 Sep 2018 Jian Wang a, Xirong Xu b, a Department of Mathematics Taiyuan University of Technology, Taiyuan, 030024, PRChina b School

More information

The Coolest Way To Generate Combinations

The Coolest Way To Generate Combinations The Coolest Way To Generate Combinations Frank Ruskey and Aaron Williams Dept of Computer Science, University of Victoria Abstract We present a practical and elegant method for generating all (s, t)-combinations

More information

AN EXPLICIT UNIVERSAL CYCLE FOR THE (n 1)-PERMUTATIONS OF AN n-set

AN EXPLICIT UNIVERSAL CYCLE FOR THE (n 1)-PERMUTATIONS OF AN n-set AN EXPLICIT UNIVERSAL CYCLE FOR THE (n 1)-PERMUTATIONS OF AN n-set FRANK RUSKEY AND AARON WILLIAMS Abstract. We show how to construct an explicit Hamilton cycle in the directed Cayley graph Cay({σ n, σ

More information

HAMMING DISTANCE FROM IRREDUCIBLE POLYNOMIALS OVER F Introduction and Motivation

HAMMING DISTANCE FROM IRREDUCIBLE POLYNOMIALS OVER F Introduction and Motivation HAMMING DISTANCE FROM IRREDUCIBLE POLYNOMIALS OVER F 2 GILBERT LEE, FRANK RUSKEY, AND AARON WILLIAMS Abstract. We study the Hamming distance from polynomials to classes of polynomials that share certain

More information

Partition of Integers into Distinct Summands with Upper Bounds. Partition of Integers into Even Summands. An Example

Partition of Integers into Distinct Summands with Upper Bounds. Partition of Integers into Even Summands. An Example Partition of Integers into Even Summands We ask for the number of partitions of m Z + into positive even integers The desired number is the coefficient of x m in + x + x 4 + ) + x 4 + x 8 + ) + x 6 + x

More information

Alpha-Beta Pruning: Algorithm and Analysis

Alpha-Beta Pruning: Algorithm and Analysis Alpha-Beta Pruning: Algorithm and Analysis Tsan-sheng Hsu tshsu@iis.sinica.edu.tw http://www.iis.sinica.edu.tw/~tshsu 1 Introduction Alpha-beta pruning is the standard searching procedure used for 2-person

More information

Exploring the Calkin-Wilf Tree: Subtrees and the Births of Numbers

Exploring the Calkin-Wilf Tree: Subtrees and the Births of Numbers Bridgewater State University Virtual Commons - Bridgewater State University Honors Program Theses and Projects Undergraduate Honors Program 5-12-2015 Exploring the Calkin-Wilf Tree: Subtrees and the Births

More information

De Bruijn Sequences for the Binary Strings with Maximum Density

De Bruijn Sequences for the Binary Strings with Maximum Density De Bruijn Sequences for the Binary Strings with Maximum Density Joe Sawada 1, Brett Stevens 2, and Aaron Williams 2 1 jsawada@uoguelph.ca School of Computer Science, University of Guelph, CANADA 2 brett@math.carleton.ca

More information

CATERPILLAR TOLERANCE REPRESENTATIONS OF CYCLES

CATERPILLAR TOLERANCE REPRESENTATIONS OF CYCLES CATERPILLAR TOLERANCE REPRESENTATIONS OF CYCLES NANCY EATON AND GLENN FAUBERT Abstract. A caterpillar, H, is a tree containing a path, P, such that every vertex of H is either in P or adjacent to P. Given

More information

THIS paper is aimed at designing efficient decoding algorithms

THIS paper is aimed at designing efficient decoding algorithms IEEE TRANSACTIONS ON INFORMATION THEORY, VOL. 45, NO. 7, NOVEMBER 1999 2333 Sort-and-Match Algorithm for Soft-Decision Decoding Ilya Dumer, Member, IEEE Abstract Let a q-ary linear (n; k)-code C be used

More information

A new Euler-Mahonian constructive bijection

A new Euler-Mahonian constructive bijection A new Euler-Mahonian constructive bijection Vincent Vajnovszki LE2I, Université de Bourgogne BP 47870, 21078 Dijon Cedex, France vvajnov@u-bourgogne.fr March 19, 2011 Abstract Using generating functions,

More information

Title. Citation Information Processing Letters, 112(16): Issue Date Doc URLhttp://hdl.handle.net/2115/ Type.

Title. Citation Information Processing Letters, 112(16): Issue Date Doc URLhttp://hdl.handle.net/2115/ Type. Title Counterexamples to the long-standing conjectur Author(s) Yoshinaka, Ryo; Kawahara, Jun; Denzumi, Shuhei Citation Information Processing Letters, 112(16): 636-6 Issue Date 2012-08-31 Doc URLhttp://hdl.handle.net/2115/50105

More information

Algorithmic Approach to Counting of Certain Types m-ary Partitions

Algorithmic Approach to Counting of Certain Types m-ary Partitions Algorithmic Approach to Counting of Certain Types m-ary Partitions Valentin P. Bakoev Abstract Partitions of integers of the type m n as a sum of powers of m (the so called m-ary partitions) and their

More information

ALGORITHMS AND COMBINATORICS OF MAXIMAL COMPACT CODES by. CHRISTOPHER JORDAN DEUGAU B.Sc., Malaspina University-College, 2004

ALGORITHMS AND COMBINATORICS OF MAXIMAL COMPACT CODES by. CHRISTOPHER JORDAN DEUGAU B.Sc., Malaspina University-College, 2004 ALGORITHMS AND COMBINATORICS OF MAXIMAL COMPACT CODES by CHRISTOPHER JORDAN DEUGAU B.Sc., Malaspina University-College, 2004 A Thesis Submitted in Partial Fulfillment of the Requirements for the Degree

More information

Bounds on parameters of minimally non-linear patterns

Bounds on parameters of minimally non-linear patterns Bounds on parameters of minimally non-linear patterns P.A. CrowdMath Department of Mathematics Massachusetts Institute of Technology Massachusetts, U.S.A. crowdmath@artofproblemsolving.com Submitted: Jan

More information

Counting the number of independent s chordal graphs. Author(s)Okamoto, Yoshio; Uno, Takeaki; Uehar. Citation Journal of Discrete Algorithms, 6(2)

Counting the number of independent s chordal graphs. Author(s)Okamoto, Yoshio; Uno, Takeaki; Uehar. Citation Journal of Discrete Algorithms, 6(2) JAIST Reposi https://dspace.j Title Counting the number of independent s chordal graphs Author(s)Okamoto, Yoshio; Uno, Takeaki; Uehar Citation Journal of Discrete Algorithms, 6(2) Issue Date 2008-06 Type

More information

arxiv: v1 [math.co] 22 Jan 2013

arxiv: v1 [math.co] 22 Jan 2013 NESTED RECURSIONS, SIMULTANEOUS PARAMETERS AND TREE SUPERPOSITIONS ABRAHAM ISGUR, VITALY KUZNETSOV, MUSTAZEE RAHMAN, AND STEPHEN TANNY arxiv:1301.5055v1 [math.co] 22 Jan 2013 Abstract. We apply a tree-based

More information

Alternative Combinatorial Gray Codes

Alternative Combinatorial Gray Codes Alternative Combinatorial Gray Codes Cormier-Iijima, Samuel sciyoshi@gmail.com December 17, 2010 Abstract Gray codes have numerous applications in a variety of fields, including error correction, encryption,

More information

CPSC 320 Sample Final Examination December 2013

CPSC 320 Sample Final Examination December 2013 CPSC 320 Sample Final Examination December 2013 [10] 1. Answer each of the following questions with true or false. Give a short justification for each of your answers. [5] a. 6 n O(5 n ) lim n + This is

More information

Laplacian Integral Graphs with Maximum Degree 3

Laplacian Integral Graphs with Maximum Degree 3 Laplacian Integral Graphs with Maximum Degree Steve Kirkland Department of Mathematics and Statistics University of Regina Regina, Saskatchewan, Canada S4S 0A kirkland@math.uregina.ca Submitted: Nov 5,

More information

Pattern Popularity in 132-Avoiding Permutations

Pattern Popularity in 132-Avoiding Permutations Pattern Popularity in 132-Avoiding Permutations The MIT Faculty has made this article openly available. Please share how this access benefits you. Your story matters. Citation As Published Publisher Rudolph,

More information

Asymptotic Enumeration of Compacted Binary Trees

Asymptotic Enumeration of Compacted Binary Trees Asymptotic Enumeration of Compacted Binary Trees Antoine Genitrini Bernhard Gittenberger Manuel Kauers Michael Wallner March 30, 207 Abstract A compacted tree is a graph created from a binary tree such

More information

arxiv: v1 [math.co] 22 May 2014

arxiv: v1 [math.co] 22 May 2014 Using recurrence relations to count certain elements in symmetric groups arxiv:1405.5620v1 [math.co] 22 May 2014 S.P. GLASBY Abstract. We use the fact that certain cosets of the stabilizer of points are

More information

A Linear-Time Algorithm for the Terminal Path Cover Problem in Cographs

A Linear-Time Algorithm for the Terminal Path Cover Problem in Cographs A Linear-Time Algorithm for the Terminal Path Cover Problem in Cographs Ruo-Wei Hung Department of Information Management Nan-Kai Institute of Technology, Tsao-Tun, Nantou 54, Taiwan rwhung@nkc.edu.tw

More information

Spanning Trees in Grid Graphs

Spanning Trees in Grid Graphs Spanning Trees in Grid Graphs Paul Raff arxiv:0809.2551v1 [math.co] 15 Sep 2008 July 25, 2008 Abstract A general method is obtained for finding recurrences involving the number of spanning trees of grid

More information

On non-hamiltonian circulant digraphs of outdegree three

On non-hamiltonian circulant digraphs of outdegree three On non-hamiltonian circulant digraphs of outdegree three Stephen C. Locke DEPARTMENT OF MATHEMATICAL SCIENCES, FLORIDA ATLANTIC UNIVERSITY, BOCA RATON, FL 33431 Dave Witte DEPARTMENT OF MATHEMATICS, OKLAHOMA

More information

Words restricted by patterns with at most 2 distinct letters

Words restricted by patterns with at most 2 distinct letters Words restricted by patterns with at most 2 distinct letters Alexander Burstein Department of Mathematics Iowa State University Ames, IA 50011-2064 USA burstein@math.iastate.edu Toufik Mansour LaBRI, Université

More information

Note. A Note on the Binomial Drop Polynomial of a Poset JOE BUHLER. Reed College, Portland, Oregon AND RON GRAHAM

Note. A Note on the Binomial Drop Polynomial of a Poset JOE BUHLER. Reed College, Portland, Oregon AND RON GRAHAM JOURNAL OF COMBINATORIAL THEORY, Series A 66, 321-326 (1994) Note A Note on the Binomial Drop Polynomial of a Poset JOE BUHLER Reed College, Portland, Oregon 97202 AND RON GRAHAM AT&T Bell Laboratories,

More information

Factoring Banded Permutations and Bounds on the Density of Vertex Identifying Codes on the Infinite Snub Hexagonal Grid

Factoring Banded Permutations and Bounds on the Density of Vertex Identifying Codes on the Infinite Snub Hexagonal Grid College of William and Mary W&M ScholarWorks Undergraduate Honors Theses Theses, Dissertations, & Master Projects 2011 Factoring Banded Permutations and Bounds on the Density of Vertex Identifying Codes

More information

Alpha-Beta Pruning: Algorithm and Analysis

Alpha-Beta Pruning: Algorithm and Analysis Alpha-Beta Pruning: Algorithm and Analysis Tsan-sheng Hsu tshsu@iis.sinica.edu.tw http://www.iis.sinica.edu.tw/~tshsu 1 Introduction Alpha-beta pruning is the standard searching procedure used for solving

More information

Some Examples of Lexicographic Order Algorithms and some Open Combinatorial Problems

Some Examples of Lexicographic Order Algorithms and some Open Combinatorial Problems Some Examples of Lexicographic Order Algorithms and some Open Combinatorial Problems Dimitar Vandev A general reasoning based on the lexicographic order is studied. It helps to create algorithms for generation

More information

Applicable Analysis and Discrete Mathematics available online at HAMILTONIAN PATHS IN ODD GRAPHS 1

Applicable Analysis and Discrete Mathematics available online at  HAMILTONIAN PATHS IN ODD GRAPHS 1 Applicable Analysis and Discrete Mathematics available online at http://pefmath.etf.bg.ac.yu Appl. Anal. Discrete Math. 3 (2009, 386 394. doi:10.2298/aadm0902386b HAMILTONIAN PATHS IN ODD GRAPHS 1 Letícia

More information

On a generalization of addition chains: Addition multiplication chains

On a generalization of addition chains: Addition multiplication chains Discrete Mathematics 308 (2008) 611 616 www.elsevier.com/locate/disc On a generalization of addition chains: Addition multiplication chains Hatem M. Bahig Computer Science Division, Department of Mathematics,

More information

Running Modulus Recursions

Running Modulus Recursions 1 2 3 47 6 23 11 Journal of Integer Sequences, Vol. 13 (2010), Article 10.1.6 Running Modulus Recursions Bruce Dearden and Jerry Metzger University of North Dakota Department of Mathematics Witmer Hall

More information

CSE 591 Foundations of Algorithms Homework 4 Sample Solution Outlines. Problem 1

CSE 591 Foundations of Algorithms Homework 4 Sample Solution Outlines. Problem 1 CSE 591 Foundations of Algorithms Homework 4 Sample Solution Outlines Problem 1 (a) Consider the situation in the figure, every edge has the same weight and V = n = 2k + 2. Easy to check, every simple

More information

Tree Decompositions and Tree-Width

Tree Decompositions and Tree-Width Tree Decompositions and Tree-Width CS 511 Iowa State University December 6, 2010 CS 511 (Iowa State University) Tree Decompositions and Tree-Width December 6, 2010 1 / 15 Tree Decompositions Definition

More information

Domination in Cayley Digraphs of Right and Left Groups

Domination in Cayley Digraphs of Right and Left Groups Communications in Mathematics and Applications Vol. 8, No. 3, pp. 271 287, 2017 ISSN 0975-8607 (online); 0976-5905 (print) Published by RGN Publications http://www.rgnpublications.com Domination in Cayley

More information

Announcements. Read Section 2.1 (Sets), 2.2 (Set Operations) and 5.1 (Mathematical Induction) Existence Proofs. Non-constructive

Announcements. Read Section 2.1 (Sets), 2.2 (Set Operations) and 5.1 (Mathematical Induction) Existence Proofs. Non-constructive Announcements Homework 2 Due Homework 3 Posted Due next Monday Quiz 2 on Wednesday Read Section 2.1 (Sets), 2.2 (Set Operations) and 5.1 (Mathematical Induction) Exam 1 in two weeks Monday, February 19

More information

Chapter 5: Integer Compositions and Partitions and Set Partitions

Chapter 5: Integer Compositions and Partitions and Set Partitions Chapter 5: Integer Compositions and Partitions and Set Partitions Prof. Tesler Math 184A Winter 2017 Prof. Tesler Ch. 5: Compositions and Partitions Math 184A / Winter 2017 1 / 32 5.1. Compositions A strict

More information

k-protected VERTICES IN BINARY SEARCH TREES

k-protected VERTICES IN BINARY SEARCH TREES k-protected VERTICES IN BINARY SEARCH TREES MIKLÓS BÓNA Abstract. We show that for every k, the probability that a randomly selected vertex of a random binary search tree on n nodes is at distance k from

More information

Application of Logic to Generating Functions. Holonomic (P-recursive) Sequences

Application of Logic to Generating Functions. Holonomic (P-recursive) Sequences Application of Logic to Generating Functions Holonomic (P-recursive) Sequences Johann A. Makowsky Faculty of Computer Science, Technion - Israel Institute of Technology, Haifa, Israel http://www.cs.technion.ac.il/

More information

Computing Connected Components Given a graph G = (V; E) compute the connected components of G. Connected-Components(G) 1 for each vertex v 2 V [G] 2 d

Computing Connected Components Given a graph G = (V; E) compute the connected components of G. Connected-Components(G) 1 for each vertex v 2 V [G] 2 d Data Structures for Disjoint Sets Maintain a Dynamic collection of disjoint sets. Each set has a unique representative (an arbitrary member of the set). x. Make-Set(x) - Create a new set with one member

More information

ECO-generation for some restricted classes of compositions

ECO-generation for some restricted classes of compositions ECO-generation for some restricted classes of compositions Jean-Luc Baril and Phan-Thuan Do 1 LE2I UMR-CNRS 5158, Université de Bourgogne BP 47 870, 21078 DIJON-Cedex France e-mail: barjl@u-bourgognefr

More information

c 1999 Society for Industrial and Applied Mathematics

c 1999 Society for Industrial and Applied Mathematics SIAM J. DISCRETE MATH. Vol. 1, No. 1, pp. 64 77 c 1999 Society for Industrial and Applied Mathematics OPTIMAL BOUNDS FOR MATCHING ROUTING ON TREES LOUXIN ZHANG Abstract. The permutation routing problem

More information

Alpha-Beta Pruning: Algorithm and Analysis

Alpha-Beta Pruning: Algorithm and Analysis Alpha-Beta Pruning: Algorithm and Analysis Tsan-sheng Hsu tshsu@iis.sinica.edu.tw http://www.iis.sinica.edu.tw/~tshsu 1 Introduction Alpha-beta pruning is the standard searching procedure used for 2-person

More information

MATH 363: Discrete Mathematics

MATH 363: Discrete Mathematics MATH 363: Discrete Mathematics Learning Objectives by topic The levels of learning for this class are classified as follows. 1. Basic Knowledge: To recall and memorize - Assess by direct questions. The

More information

Exhaustive generation for ballot sequences in lexicographic and Gray code order

Exhaustive generation for ballot sequences in lexicographic and Gray code order Exhaustive generation for ballot sequences in lexicographic and Gray code order Ahmad Sabri Department of Informatics Gunadarma University, Depok, Indonesia sabri@staff.gunadarma.ac.id Vincent Vajnovszki

More information

11 Division Mod n, Linear Integer Equations, Random Numbers, The Fundamental Theorem of Arithmetic

11 Division Mod n, Linear Integer Equations, Random Numbers, The Fundamental Theorem of Arithmetic 11 Division Mod n, Linear Integer Equations, Random Numbers, The Fundamental Theorem of Arithmetic Bezout s Lemma Let's look at the values of 4x + 6y when x and y are integers. If x is -6 and y is 4 we

More information

Sets in Abelian groups with distinct sums of pairs

Sets in Abelian groups with distinct sums of pairs Journal of Number Theory 13 (007) 144 153 www.elsevier.com/locate/jnt Sets in Abelian groups with distinct sums of pairs Harri Haanpää a,,1,patricr.j.östergård b, a Department of Computer Science and Engineering,

More information

Enumerating split-pair arrangements

Enumerating split-pair arrangements Journal of Combinatorial Theory, Series A 115 (28 293 33 www.elsevier.com/locate/jcta Enumerating split-pair arrangements Ron Graham 1, Nan Zang Department of Computer Science, University of California

More information

On the indecomposability of polynomials

On the indecomposability of polynomials On the indecomposability of polynomials Andrej Dujella, Ivica Gusić and Robert F. Tichy Abstract Applying a combinatorial lemma a new sufficient condition for the indecomposability of integer polynomials

More information

Antipodal Gray Codes

Antipodal Gray Codes Antipodal Gray Codes Charles E Killian, Carla D Savage,1 Department of Computer Science N C State University, Box 8206 Raleigh, NC 27695, USA Abstract An n-bit Gray code is a circular listing of the 2

More information

The Impossibility of Certain Types of Carmichael Numbers

The Impossibility of Certain Types of Carmichael Numbers The Impossibility of Certain Types of Carmichael Numbers Thomas Wright Abstract This paper proves that if a Carmichael number is composed of primes p i, then the LCM of the p i 1 s can never be of the

More information

Chapter 5: Integer Compositions and Partitions and Set Partitions

Chapter 5: Integer Compositions and Partitions and Set Partitions Chapter 5: Integer Compositions and Partitions and Set Partitions Prof. Tesler Math 184A Fall 2017 Prof. Tesler Ch. 5: Compositions and Partitions Math 184A / Fall 2017 1 / 46 5.1. Compositions A strict

More information

Combinatorial Interpretations of a Generalization of the Genocchi Numbers

Combinatorial Interpretations of a Generalization of the Genocchi Numbers 1 2 3 47 6 23 11 Journal of Integer Sequences, Vol. 7 (2004), Article 04.3.6 Combinatorial Interpretations of a Generalization of the Genocchi Numbers Michael Domaratzki Jodrey School of Computer Science

More information

ARTICLE IN PRESS. Hanoi graphs and some classical numbers. Received 11 January 2005; received in revised form 20 April 2005

ARTICLE IN PRESS. Hanoi graphs and some classical numbers. Received 11 January 2005; received in revised form 20 April 2005 PROD. TYPE: COM PP: -8 (col.fig.: nil) EXMATH2002 DTD VER:.0. ED: Devanandh PAGN: Vijay -- SCAN: SGeetha Expo. Math. ( ) www.elsevier.de/exmath Hanoi graphs and some classical numbers Sandi Klavžar a,,

More information

are the q-versions of n, n! and . The falling factorial is (x) k = x(x 1)(x 2)... (x k + 1).

are the q-versions of n, n! and . The falling factorial is (x) k = x(x 1)(x 2)... (x k + 1). Lecture A jacques@ucsd.edu Notation: N, R, Z, F, C naturals, reals, integers, a field, complex numbers. p(n), S n,, b(n), s n, partition numbers, Stirling of the second ind, Bell numbers, Stirling of the

More information

Inferring Strings from Graphs and Arrays

Inferring Strings from Graphs and Arrays Inferring Strings from Graphs and Arrays Hideo Bannai 1, Shunsuke Inenaga 2, Ayumi Shinohara 2,3, and Masayuki Takeda 2,3 1 Human Genome Center, Institute of Medical Science, University of Tokyo, 4-6-1

More information

ON THE NUMBER OF COMPONENTS OF A GRAPH

ON THE NUMBER OF COMPONENTS OF A GRAPH Volume 5, Number 1, Pages 34 58 ISSN 1715-0868 ON THE NUMBER OF COMPONENTS OF A GRAPH HAMZA SI KADDOUR AND ELIAS TAHHAN BITTAR Abstract. Let G := (V, E be a simple graph; for I V we denote by l(i the number

More information

Relating minimum degree and the existence of a k-factor

Relating minimum degree and the existence of a k-factor Relating minimum degree and the existence of a k-factor Stephen G Hartke, Ryan Martin, and Tyler Seacrest October 6, 010 Abstract A k-factor in a graph G is a spanning regular subgraph in which every vertex

More information

Pairs of a tree and a nontree graph with the same status sequence

Pairs of a tree and a nontree graph with the same status sequence arxiv:1901.09547v1 [math.co] 28 Jan 2019 Pairs of a tree and a nontree graph with the same status sequence Pu Qiao, Xingzhi Zhan Department of Mathematics, East China Normal University, Shanghai 200241,

More information

Enumerating multiplex juggling patterns

Enumerating multiplex juggling patterns Enumerating multiplex juggling patterns Steve Butler Jeongyoon Choi Kimyung Kim Kyuhyeok Seo Abstract Mathematics has been used in the exploration and enumeration of juggling patterns. In the case when

More information

Graphs with few total dominating sets

Graphs with few total dominating sets Graphs with few total dominating sets Marcin Krzywkowski marcin.krzywkowski@gmail.com Stephan Wagner swagner@sun.ac.za Abstract We give a lower bound for the number of total dominating sets of a graph

More information

A Tight Lower Bound for Top-Down Skew Heaps

A Tight Lower Bound for Top-Down Skew Heaps A Tight Lower Bound for Top-Down Skew Heaps Berry Schoenmakers January, 1997 Abstract Previously, it was shown in a paper by Kaldewaij and Schoenmakers that for topdown skew heaps the amortized number

More information

On the Entropy of a Two Step Random Fibonacci Substitution

On the Entropy of a Two Step Random Fibonacci Substitution Entropy 203, 5, 332-3324; doi:0.3390/e509332 Article OPEN ACCESS entropy ISSN 099-4300 www.mdpi.com/journal/entropy On the Entropy of a Two Step Random Fibonacci Substitution Johan Nilsson Department of

More information

Matroid Representation of Clique Complexes

Matroid Representation of Clique Complexes Matroid Representation of Clique Complexes Kenji Kashiwabara 1, Yoshio Okamoto 2, and Takeaki Uno 3 1 Department of Systems Science, Graduate School of Arts and Sciences, The University of Tokyo, 3 8 1,

More information

COMPLEMENTARY FAMILIES OF THE FIBONACCI-LUCAS RELATIONS. Ivica Martinjak Faculty of Science, University of Zagreb, Zagreb, Croatia

COMPLEMENTARY FAMILIES OF THE FIBONACCI-LUCAS RELATIONS. Ivica Martinjak Faculty of Science, University of Zagreb, Zagreb, Croatia #A2 INTEGERS 9 (209) COMPLEMENTARY FAMILIES OF THE FIBONACCI-LUCAS RELATIONS Ivica Martinjak Faculty of Science, University of Zagreb, Zagreb, Croatia imartinjak@phy.hr Helmut Prodinger Department of Mathematics,

More information

Research Statement. Janine E. Janoski

Research Statement. Janine E. Janoski Research Statement Janine E. Janoski 1 Introduction My research is in discrete mathematics and combinatorics. I have worked on a wide variety of research topics including, enumeration problems, eigenvalue

More information

Mining Maximal Flexible Patterns in a Sequence

Mining Maximal Flexible Patterns in a Sequence Mining Maximal Flexible Patterns in a Sequence Hiroki Arimura 1, Takeaki Uno 2 1 Graduate School of Information Science and Technology, Hokkaido University Kita 14 Nishi 9, Sapporo 060-0814, Japan arim@ist.hokudai.ac.jp

More information

Homework 7 Solutions, Math 55

Homework 7 Solutions, Math 55 Homework 7 Solutions, Math 55 5..36. (a) Since a is a positive integer, a = a 1 + b 0 is a positive integer of the form as + bt for some integers s and t, so a S. Thus S is nonempty. (b) Since S is nonempty,

More information

Packing of Rigid Spanning Subgraphs and Spanning Trees

Packing of Rigid Spanning Subgraphs and Spanning Trees Packing of Rigid Spanning Subgraphs and Spanning Trees Joseph Cheriyan Olivier Durand de Gevigney Zoltán Szigeti December 14, 2011 Abstract We prove that every 6k + 2l, 2k-connected simple graph contains

More information

#A45 INTEGERS 9 (2009), BALANCED SUBSET SUMS IN DENSE SETS OF INTEGERS. Gyula Károlyi 1. H 1117, Hungary

#A45 INTEGERS 9 (2009), BALANCED SUBSET SUMS IN DENSE SETS OF INTEGERS. Gyula Károlyi 1. H 1117, Hungary #A45 INTEGERS 9 (2009, 591-603 BALANCED SUBSET SUMS IN DENSE SETS OF INTEGERS Gyula Károlyi 1 Institute of Mathematics, Eötvös University, Pázmány P. sétány 1/C, Budapest, H 1117, Hungary karolyi@cs.elte.hu

More information

Approximability and Parameterized Complexity of Consecutive Ones Submatrix Problems

Approximability and Parameterized Complexity of Consecutive Ones Submatrix Problems Proc. 4th TAMC, 27 Approximability and Parameterized Complexity of Consecutive Ones Submatrix Problems Michael Dom, Jiong Guo, and Rolf Niedermeier Institut für Informatik, Friedrich-Schiller-Universität

More information

On Some Three-Color Ramsey Numbers for Paths

On Some Three-Color Ramsey Numbers for Paths On Some Three-Color Ramsey Numbers for Paths Janusz Dybizbański, Tomasz Dzido Institute of Informatics, University of Gdańsk Wita Stwosza 57, 80-952 Gdańsk, Poland {jdybiz,tdz}@inf.ug.edu.pl and Stanis

More information

ENUMERATING DISTINCT CHESSBOARD TILINGS

ENUMERATING DISTINCT CHESSBOARD TILINGS ENUMERATING DISTINCT CHESSBOARD TILINGS DARYL DEFORD Abstract. Counting the number of distinct colorings of various discrete objects, via Burnside s Lemma and Pólya Counting, is a traditional problem in

More information

Algorithms for pattern involvement in permutations

Algorithms for pattern involvement in permutations Algorithms for pattern involvement in permutations M. H. Albert Department of Computer Science R. E. L. Aldred Department of Mathematics and Statistics M. D. Atkinson Department of Computer Science D.

More information