The complexity of counting colourings and independent sets in sparse graphs and hypergraphs

Size: px
Start display at page:

Download "The complexity of counting colourings and independent sets in sparse graphs and hypergraphs"

Transcription

1 The complexity of counting colourings and independent sets in sparse graphs and hypergraphs Catherine Greenhill Abstract We consider certain counting problems involving colourings of graphs and independent sets in hypergraphs. Using polynomial interpolation techniques, we show that these problems are #P -complete. Therefore, efficient approximate counting is the most one can realistically expect to achieve. Rapidly mixing Markov chains which can be used for approximately solving some of these counting problems have been recently developed by the author and others. 1 Introduction The complexity of counting is an area which has received attention since Valiant [11] introduced the complexity class #P. However, we know much less about the complexity of counting than we do about the complexity of decision problems. As Vadhan notes [10], one area where knowledge is lacking is whether hard counting problems remain hard when extra restrictions are placed on the problem instances. A possible reason for this is that many of the reductions involve blowing up the graph. This destroys special properties such as regularity or degree-boundedness, which may be of interest. In [10], Vadhan uses reductions which preserve the properties of interest of the graphs, and enable restricted-case #P-completeness proofs to be obtained. He also gives a general-purpose lemma (stated in Lemma 1.1 below) which is of great assistance in setting up polynomial interpolation. In this paper we give three #P-completeness proofs which use the same kind of reductions as in [10]. The problems considered are those for which rapidly mixing Markov chains have recently been designed by the author and others. The existence of these Markov chains show that approximate counting is possible in polynomial time, even if exact counting is unachievable (unless P=#P). The first problem we prove to be #P-complete is that of counting all proper colourings of triangle free -regular graphs. This class of graphs includes the physically relevant class of planar grids, of particular interest to statistical physicists. Another motivation for this result is that a rapidly mixing Markov chain for approximately counting proper 7-colourings of triangle free 4-regular graphs was given in [2]. In Section 3, the methods are adapted to the situation of counting independent sets in graphs and hypergraphs. The problem of counting independent sets in graphs with School of Computer Studies, University of Leeds, Leeds LS2 9JT, UNITED KINGDOM. Supported by a Leverhulme Trust Special Research Fellowship. 1

2 maximum degree four (or higher) is known to be #P-complete, as shown by Vadhan [9]. On the other hand, the number of independent sets for graphs with maximum degree at most two can be easily calculated in polynomial time (see [8, Lemma A.4] for details). The second result of this paper closes the gap, and shows that it is #P-complete to count independent sets in graphs with maximum degree three. In fact we prove that this problem remains #P-complete when restricted to 3-regular graphs. The Markov chain described by Luby and Vigoda [6] is the first which can be used to approximately count independent sets in graphs with maximum degree at most four, in polynomial time. A new Markov chain for independent sets in graphs was described in [3], where it was also extended to hypergraphs. Like the Luby-Vigoda chain, the new chain can be used to approximately count independent sets in graphs with maximum degree at most four. In addition, it can be used to approximately count independent sets in two classes of hypergraphs, in polynomial time: (i) hypergraphs with maximum degree two, and (ii) hypergraphs with maximum degree three and maximum edge size three. Counting independent sets in hypergraphs with maximum degree two is equivalent to counting the number of edge covers in graphs, and this problem is #P -complete [1]. Thus the final question, so far as the Markov chain described in [3] is concerned, is whether it is #P-complete to count independent sets in hypergraphs with maximum degree three and maximum edge size three. The final result of this paper shows that this problem is indeed #P-complete. In fact, we prove that the problem remains #Pcomplete when restricted to hypergraphs with maximum degree at most three where every edge has size three. There are two main tools used in the proofs. As mentioned above, an important tool is polynomial interpolation, which has also been employed in [10, 11]. Here a graph (or hypergraph) is constructed by replacing certain edges by a chain of edges (or some more complicated structure) of length r, for each r in a certain range. If the chain has r edges then we call this the r-stretch of the (hyper)graph (with respect to the set of edges replaced). This allows us to relate the number N of proper colourings (or independent sets) of the original (hyper)graph to the number N r of proper colourings (or independent sets) of the r-stretch. If this relationship is well behaved then the value of N can be calculated in polynomial time from a polynomial number of values of N r. Although these interpolation proofs run along similar lines, there are subtle and nontrivial adjustments necessary to fit the argument to each new situation. In the interpolation arguments, we make repeated use of the following lemma. Lemma 1.1 ([10, Lemma A.3]) Let A, B, C, D, x 0 and y 0 be rational numbers. Define the sequences {x n } and {y n } recursively by x n+1 = A x n + B y n and y n+1 = C x n +D y n. Then the sequence {z n = x n /y n } never repeats as long as all of the following conditions hold: AD BC 0, D 2 2AD + A 2 + 4BC 0, D + A 0, D 2 + A 2 + 2BC 0, D 2 + AD + A 2 + BC 0, D 2 AD + A 2 + 3BC 0, B y 0 2 C x 0 2 (A D) x 0 y

3 Notice in particular that if A, B, C, D are all positive, only the first and last conditions must be checked. The second tool is the use of gadgets which enable us to reduce from regular graphs. Here we design a device which can be attached to low degree vertices and which satisfies any other conditions required. 2 Colourings First, we recall the notation used for graph colourings. Let G = (V, E) be a graph and let be the maximum degree of G. Let k be a positive integer and let C be a set of size k. A map from V to C is called a k-colouring (or simply a colouring when k is fixed). A vertex v is said to be properly coloured in the colouring X if v is coloured differently from all of its neighbours. A colouring X is called proper if every vertex is properly coloured in X. The set of all proper k-colourings of G is denoted by Ω k (G). The problem of counting proper k-colourings of graphs is known to be #P -complete for k 3, by [5]. This problem remains #P -complete when restricted to graphs with maximum degree (exactly), whenever 3. A proof of this is presented in [2], and the result is stated below. Theorem 2.1 ( [2, Theorem 6.2]) Let k, be constants such that k 3 and 3. Consider the counting problem #kcolm axdeg, which takes as an instance a graph with maximum degree (exactly), and returns the number of proper k-colourings of the graph. Then #kcolm axdeg is #P -complete. In this section we consider a more restricted versions of this counting problem, and show that it is #P -complete to count the number of proper k-colourings of triangle free -regular graphs with n vertices, when k 3 and 3. Here k and are constants. First let us describe the devices used in the proof. Let γ, γ denote two fixed, distinct colours. The chain graph C r has r + 1 vertices u 1,..., u r+1, and r edges {u i, u i+1 } for 1 i r. Define σ r, δ r by It is not difficult to prove that σ r = {X Ω k (C r ) : X(u 1 ) = γ, X(u r+1 ) = γ}, δ r = { X Ω k (C r ) : X(u 1 ) = γ, X(u r+1 ) = γ }. σ r = (k 1)r + ( 1) r (k 1), δ r = (k 1)r + ( 1) r 1 k k (1) for r 1. The full description of the rest of the devices is deferred until after the proof. For now, we describe only the critical characteristics and give notation for the number of colourings of these devices. We use a triangle free graph P which has 2 vertices of degree and two vertices, q 1, q 2 of degree one. Define α 1, β 1 by α 1 = {X Ω k (P ) : X(q 1 ) = γ, X(q 2 ) = γ}, (2) β 1 = { X Ω k (P ) : X(q 1 ) = γ, X(q 2 ) = γ }. 3

4 We do not have closed form expressions for α 1, β 1, but show how these values can be found in constant time in Section 2.1. We do know that α 1 = (k 1)S + (k 1)(k 2)D, β 1 = (k 2)S + (k 2 3k + 3)D, (3) for some S, D such that S < D. (4) Suppose now that is odd. We use a triangle free graph Q with vertices of degree and one vertex, w, of degree one. Let ϕ be defined by ϕ = {X Ω k (Q) : X(w) = γ}, where γ is some fixed colour. Then, for our graph Q we have ϕ = (k 1) α 1 ( 1)/2, where α 1 is as defined in (2). The final device we use is denoted by U r, for r 1. This is a triangle free graph with 2r vertices of degree and two vertices, q 1, q r+1, of degree one. (When r = 1 we take U 1 = P.) Define α r, β r by α r = { X Ω k (U r ) : X(q 1 ) = γ, X(q r+1 ) = γ }, β r = {X Ω k (U r ) : X(q 1 ) = γ, X(q r+1 ) = γ} for r 1. Then, for the graph U r which we define below, (3) holds, and α r+1 = (k 1)D α r + α 1 β r, β r+1 = α 1 (k 1) α r + β 1 β r (5) for r 1 (where S, D are the quantities which appear in (4)). We can now prove that it is #P -complete to count proper k-colourings of triangle free -regular graphs with n vertices, when k 3 and 3. Theorem 2.2 Let k, be constants such that k 3 and 3. Consider the counting problem #kcolt rianglef ree Regular, which takes as an instance a triangle free -regular graph, and returns the number of proper k-colourings of the graph. Then #kcolt rianglef ree Regular is #P -complete. Proof. Let #kcolm axdeg denote the problem of counting the number of proper k-colourings of a graph with maximum degree. The problem #kcolm axdeg is #P -complete, by Theorem 2.1. We will give a polynomial-time reduction from this problem to the problem #kcolt rianglef ree Regular. This will show that the latter problem is # P-hard. Since the problem is clearly in #P, we can conclude that #kcolt rianglef ree Regular is #P-complete, as stated. We give the required polynomial-time reduction in three steps. Consider the counting problem, denoted by #kcolt rianglef reem axdeg, which takes as instance a triangle free graph with maximum degree and returns the number of proper k-colourings of the graph. This is the first intermediate problem used in the three-step reduction argument. 4

5 The second intermediate problem is denoted by #kcolt rianglef reealmost Regular. This problem takes as instance a graph where every vertex has degree or 1, and returns the number of proper k-colourings of that graph. REDUCTION 1 (#kcolm axdeg #kcolt rianglef reem axdeg ). Let G be a graph with maximum degree (exactly) and let I be a (minimal) set of edges such that deleting all edges in I makes G triangle free. For r 1 let H r be the r-stretch of G with respect to I. That is, obtain H r from G by replacing each edge {v, w} in I with the chain C r, using the identifications u 1 = v, u r+1 = w. Then H r has maximum degree for r 1, and H r is triangle free for r 2. Note that H 1 = G. Let m = I and let p s be the number of k-colourings of G such that s edges in I are monochromatic, the remaining m s edges of I are bichromatic and all other edges are bichromatic. Then Ω k (G) = p 0 and for r 1 we have Ω k (H r ) = p s σ s r δ m s m r = δ r s=0 p s x s r, where x r = σ r /δ r. These equations, for 2 r m + 2, can be expressed using the matrix equation δ m 2 Ω k (H 2 ) 1 x 2 x m 2 p 0 δ m 3 Ω k (H 3 ) 1 x 3 x m 3 p 1. δ m+2 m Ω k (H m+2 ) s=0 = x m+2 x m m+2. p m. (6) The values x r are distinct, as can be verified directly from (1). If we knew the values Ω k (H r ) for 2 r m + 2, then the values of p 0,..., p m could be found in polynomial time by inverting the Vandermonde matrix in (6). Since p 0 = Ω k (H 1 ) = Ω k (G) is the answer we seek, this completes the first reduction. REDUCTION 2 (#kcolt rianglef reem axdeg #kcolt rianglef reealmost Regular). Let G be a triangle free graph with maximum degree. Form the graph H, where every vertex has degree or 1, by attaching ( d)/2 copies of P to every vertex v with degree d < 1 (using the identifications v = q i for i = 1, 2). Suppose that R copies of P are attached to G to form the graph H. Then Ω k (H) = α 1 R Ω k (G), where α 1 is as defined in (2). We can calculate α 1 in polynomial time, as shown in the next section. Since H is triangle free, this completes the second reduction. REDUCTION 3 (#kcolt rianglef reealmost Regular #kcolt rianglef ree Regular). Let H be a triangle free graph such that every vertex has degree or 1. Let U be the set of vertices in H with degree 1. We can assume that U contains an even 5

6 number of vertices, as follows. If U contains an odd number of vertices then is odd. Choose a vertex v U and attach the triangle free graph Q to v using the identification v = w. This ensures that U contains an even number of vertices, and we may partition U into m subsets of size two. Let I be such a partition. For 0 s m, let p s be the number of proper k-colourings X of H such that X(v 1 ) = X(v 2 ) for exactly s pairs {v 1, v 2 } I. Then Ω k (H) = p s, so it suffices to calculate the values p 0,..., p m. Now form the triangle free -regular graph H r from H, for 1 r m+1, by attaching a copy of U r to each pair {v 1, v 2 } I, making the identifications v i = q i for i = 1, 2. Then s=0 Ω k (H r ) = p s α s r β m s m r = β r s=0 p s x s r, s=0 where x r = α r /β r for r 1. Using (3), (4) and (5), one may apply Lemma 1.1 to show that the quotients x r are distinct. Thus we can calculate the values of p 0,..., p m in polynomial time, given the values of Ω k (H r ) for 1 r m + 1. This completes the polynomial-time reduction. Hence we have proved that it is #P -complete to count proper k-colourings of triangle free -regular graphs with n vertices, when k 3 and 3. The above theorem is valid for graphs with maximum degree, where is a constant. It is probably possible to extend this result so that it holds for graphs with maximum degree (n), for some suitable function (n). But a consequence of Edwards [4] work on dense graphs implies that there must be some restriction on the function (n). Specifically, Edwards proves the following result. Suppose that δ is the minimum degree of a graph G with N vertices. Further suppose that δ αn for some rational number α such that 0 α < 1 and α = Ω(1). If 0 α < (k 2)/(k 1) then it is #P -complete to count the number of proper k-colourings of G, while if (k 2)/(k 1) < α < 1 then this problem has a polynomial time solution. For regular graphs, the maximum degree and minimum degree coincide. Thus we can conclude that we must have (n) < (k 2)n/(k 1). 2.1 The devices used We now give a full description of the devices used in the proof of Theorem 2.2. First we describe the graph F which is the building block of all our devices. Consider the complete bipartite graph K 1, 1 with vertex bipartition {u 1,..., u 1 } {w 1,..., w 1 }. Let F be the graph obtained by joining each vertex u i to a new vertex z 1 using the edge {u i, z 1 } for 1 i 1, and joining each vertex w j to a new vertex z 2 using the edge {w j, z 2 } for 1 j 1. Then F has 2( 1) vertices of degree and two vertices, 6

7 z 1 z 2 Figure 1: The graph F for = 4 z 1, z 2, of degree 1. For example, when = 4 the graph F is as shown in Figure 1. Let γ, γ be two fixed, distinct colours, and define S = {X Ω k (F ) : X(z 1 ) = γ, X(z 2 ) = γ}, D = { X Ω k (F ) : X(z 1 ) = γ, X(z 2 ) = γ }. Now define the graph U r inductively, as follows. Let U 1 be obtained from a copy of F by joining z i to the new vertex q i using the edge {z i, q i }, for i = 1, 2. Now suppose that U r has been defined with the following properties: the graph U r is triangle free and has 2r vertices of degree and two vertices q 1, q r+1 of degree one. Obtain U r+1 from U r by joining a new copy of F to U r, using the identification q r+1 = z 1 (where primed vertices belong to the new copy of F ), and then attaching a new vertex q r+2 to the remaining vertex z 2 of degree 1. Then U r+1 is triangle free and has 2(r + 1) vertices of degree and two vertices q 1, q r+2 of degree one, as required. For example, the graph U 2 is as shown in Figure 2 when = 4. q 1 q 3 Figure 2: The graph U 2 for = 4 As mentioned above, we take P to be the graph U 1, a triangle free graph with 2 vertices of degree and two vertices of degree one. If is odd, form Q by taking ( 1)/2 copies of P, identifying all vertices of degree one to give a vertex z of degree 1, then joining z to a new vertex w. Then Q has vertices of degree, and one vertex, w, of degree one. When = 5 the graph Q is as shown in Figure 3. For the proof of Theorem 2.2 to work, we must show that our assumptions hold. That is, we must prove that S < D, and that the value α 1 can be calculated in polynomial time. 7

8 w Figure 3: The graph Q for = 5 Lemma 2.1 With S, D as defined above, we have S < D. Proof. Let λ(s, i, t) be the number of ways to colour s unrelated vertices with exactly i colours, chosen from a set of t colours, where s, i and t are positive integers. Similarly, let λ + (s, i, t) be the number of ways to colour s unrelated vertices with exactly i colours, chosen from a set of t colours, such that a certain distinguished colour is always used. Then λ(s, i, t + 1) = λ(s, i, t) + λ + (s, i, t + 1) (7) for all positive s, i, t. It is not difficult to see that S = D = 1 i=1 1 i=1 λ( 1, i, k 1)(k i 1) 1, { λ( 1, i, k 2)(k i 1) 1 + λ + ( 1, i, k 1)(k i) 1}. Using (7), it follows that S = = < 1 i=1 1 i=1 1 i=1 = D, λ( 1, i, k 1)(k i 1) 1 ( λ( 1, i, k 2) + λ + ( 1, i, k 1) ) (k i 1) 1 { λ( 1, i, k 2)(k i 1) 1 + λ + ( 1, i, k 1)(k i) 1} 8

9 as required. Note that the quantities λ(s, i, t) are related to Stirling numbers of the second kind [12, p.105], as follows. The Stirling numbers of the second kind, S(s, i), count the number of ways of partitioning s objects into i nonempty subsets. Hence S(s, 1) = 1 and S(s, s) = 1 for s 1, while S(s, i) = i S(s 1, i) + S(s 1, i 1) (8) for 2 i s 1. In our situation, each subset corresponds to a distinct colour, and there are t(t 1) (t i + 1) ways to assign colours to these subsets. Therefore λ(s, i, t) = S(s, i) t(t 1) (t i + 1). Using this equation, it is not difficult to show that λ + (s, i, t) = i S(s, i) t(t 1) (t i + 2). We can use these facts to construct a constant time algorithm for calculating S and D, as follows. Starting with the values S(s, 1), S(s, s) for 1 s 1, use (8) to calculate the remaining values of S(s, i) for 1 i s, 1 s 1. This costs O( 2 ) operations. Then the values λ( 1, i, k 1) and λ( 1, i, k 2) can be calculated for 1 i 1 in O( ) operations. The powers (k i) 1 can be calculated for 1 i in O( log( )) operations. Finally these values can be combined to give S, D in O( ) operations. The overall cost is O( 2 ), where the most significant cost is calculating the Stirling numbers. Since is a constant, this is a constant time algorithm. Thus we can calculate α 1 in polynomial time, as claimed in Theorem 2.2. I am very grateful to a referee for suggesting an alternative formulation of the quantities S, D using exponential generating functions. Namely, S is the coefficient of x 1 y 1 in ( 1)! 2 (e x + e y 1) k 1, and D is the coefficient of x 1 y 1 in ( 1)! 2 (e x + e y 1) k 2 e x+y. This formulation provides an easy proof that S < D, since every coefficient of e x+y e x e y + 1 = (e x 1)(e y 1) is positive. However, this formulation does not appear to provide a more efficient procedure for calculating S, D. 3 Independent sets Let G = (V, E) be a hypergraph and let I(G) be the set of independent sets in G. That is, if X V then X I(G) if and only if e X for all e E. Let λ be a positive parameter and define the probability measure π on I(G) by π(x) = λ X /Z, 9

10 where Z = X I(G) λ X. The normalising factor Z is called the partition function of G. When λ = 1, evaluating Z is equivalent to calculating I(G). In [6], Luby and Vigoda described a Markov chain for independent sets in graphs which can be used to approximately count independent sets of graphs with maximum degree at most four. The problem of approximately counting independent sets of graphs with maximum degree is known to be #P -complete when 4, as follows from [9]. We prove in Section 3.2 that the problem of counting independent sets in 3-regular graphs is #P -complete. A Markov chain for independent sets in hypergraphs was described in [3]. Like the Luby-Vigoda chain, this chain can be used for approximately counting independent sets in graphs with maximum degree at most four. It can also be used for approximately counting independent sets in hypergraphs with maximum degree at most two, and hypergraphs with maximum degree at most three and maximum edge size at most three. The former problem is equivalent to the problem of counting edge coverings in graphs, and so is #P -complete (see [1]). It follows from the counting problem for graphs with maximum degree at most three that the counting problem for hypergraphs with maximum degree at most three and maximum edge size at most three is #P -complete. To disprove the conjecture that the difficulty lies in the possible presence of edges of size two, we prove in Section 3.3 that the counting problem remains #P -complete when restricted to hypergraphs with maximum degree at most three where every edge has size three. 3.1 Correspondence with SAT instances The set of independent sets in a given hypergraph corresponds in a natural way to the set of satisfying assignments of a certain SAT instance (for background on SAT see, for example, [7, Section 4.2]). This correspondence is used in Theorem 3.2 below, and the results we obtain can all be restated in terms of counting problems of SAT instances. We now give the details of this correspondence. A SAT instance is said to be monotone if no variable appears negated. If v is a variable, denote its negation by v. Using notation borrowed from Roth [8], denote by lµ-kmon the class of all monotone SAT instances where each variable appears in at most l clauses and each clause contains at most k literals. Let G be a hypergraph where each edge has at most m vertices and each vertex appears in at most edges. Let each vertex correspond to a variable (denoted by the same symbol as the vertex) and for each e E form a clause C e as follows. If e = {v 1,..., v d } then let C e = d v i. i=1 Then e E C e 10

11 is a SAT instance with I(G) satisfying assignments. Replace the variable v i by w i for each v i V. This gives an instance of µ-mmon. The above construction can be reversed, showing that the problem of finding the number of independent sets in hypergraphs with maximum degree at most and maximum edge size at most m is equivalent to the counting problem # µ-mmon. 3.2 Three-regular graphs First let us describe the device Q r which we use in the next theorem. The device Q r, defined for r 0, has 4(r + 1) vertices of degree three and one vertex, u 2r of degree two. The device is depicted in Figure 4. Let M r = I(Q r ), and let M r (0) be defined by u u 0 1 u 2 u 2r- 1 u 2r Figure 4: The graph Q r M r (0) = {X I(Q r ) : u 2r X}. Then M 0 = 9, M 0 (0) = 6 and, for r 0, M r+1 = 4M r + 2M r (0), M r+1 (0) = 3M r + M r (0). (9) We now prove that the problem of counting independent sets in 3-regular graphs is #P -complete. This proof has two steps, and the first step follows the method of [2, Theorem 6.2]. The interpolation is slightly more complicated than in the colourings situation, since we must distinguish between chains with both endpoints included in the independent set, and chains with neither endpoint included. Theorem 3.1 Let #REGULAR-IND-SETS(3) denote the following counting problem. An instance is a 3-regular graph and the problem is to calculate the number of independent sets in that graph. Then #REGULAR-IND-SETS(3) is #P -complete. Proof. Let #IND-SETS( ) denote the counting problem which takes a graph G of maximum degree at most, and returns the number of independent sets in G. The problem #IND-SETS(4) is #P -complete, as follows from [9]. We give a polynomialtime reduction from this problem to #REGULAR-IND-SETS(3). This shows that the latter problem is #P-hard. Since the problem is clearly also in #P, we can conclude that #REGULAR-IND-SETS(3) is #P-complete, as stated. 11

12 We give the required polynomial-time reduction in two steps, with the intermediate problem #IND-SETS(3). REDUCTION 1 (#IND-SETS(4) #IND-SETS(3)) Let G be a graph with maximum degree at most 4. We construct a graph H = (V, E) with maximum degree at most three and edge bipartion E = E E as follows. Replace each vertex v of degree four by two vertices v 1, v 2 of degree three. The edge {v 1, v 2 } is placed in E, while two neighbours of v in G are joined to v 1 using an edge in E, and the other two neighbours of v are joined to v 2 using an edge in E. All other edges in G become edges in E. Let m = E. For 0 t m, 0 i t define sets S t,i by S t,i = { X V : e E e X, { e E : e X = } = i, { e E : e X } = t i. }. (10) Say that an edge e E is well behaved in X if e X = or e X. If X S t,i then t edges in E are well behaved. Let n t,i = S t,i for 1 t m, 1 i t. Then I(G) = n m,i. (11) i=0 This follows since the set I(G) is in one-one correspondence with the set of subsets X V such that all edges in E are well behaved. Let f r denote the rth Fibonacci number, defined inductively by f 1 = 1, f 2 = 1 and f r+2 = f r+1 + f r for r 1. We extend the definition, defining f 0 = 0 and f 1 = 1. Let C r be the chain graph with r + 1 vertices u 1,..., u r+1 and r edges {u i, u i+1 } for 1 i r. (Note that C 0 consists of a single vertex.) It follows easily that I(C r ) = f r+3 for r 0. Hence {X I(C r ) : {u 1, u r+1 } X = } = f r+1, {X I(C r ) : u 1 X and u r+1 X} = f r, {X I(C r ) : {u 1, u r+1 } X = {u 1, u r+1 }} = f r 1. For r 0, let H r denote the r-stretch of H with respect to E. That is, let H r be the graph obtained from H by replacing each edge {v, w} E by a copy of the chain C r, making the identifications v = u 1, w = u r+1. Note that H 0 = G. Then, for r 0, I(H r ) = t=0 i=0 = f r+1 m = f r+1 m t n t,i f i r+1 f t i m t r 1 f r t t=0 i=0 t=0 i=0 ( ) t i ( ) m t fr 1 fr n t,i f r+1 f r+1 t n t,i (1 x r ) t i m t x r (12) 12

13 where x r = f r /f r+1. This can be rewritten as f r+1 m I(H r ) = c s x s r = g(x r ), (13) s=0 for some c 0,..., c m. The quotients x r are distinct for r 1, as proved in [10, Lemma A.1] (the result also follows from Lemma 1.1). Hence the equations (13), 1 r m + 1, can be expressed using an invertible Vandermonde matrix. If we knew the values I(H 1 ),..., I(H m+1 ), then the coefficients c 0,..., c m can be found in polynomial time by inverting this matrix. We can then evaluate g(x) for any x. In particular, we can evaluate g(0). But g(0) = g(x 0 ) = I(H 0 ) = I(G), the quantity we wish to compute. This completes the first reduction. REDUCTION 2 (#IND-SETS(3) #REGULAR-IND-SETS(3)). Let G = (V G, E G ) be a graph with maximum degree at most three, and let U d = {v V G : d(v) = d} for 0 d 3, where d(v) denote the degree of v. Let µ d = U d for 0 d 3. Obtain the graph H from G by deleting all vertices of degree zero. Then I(H) = 2 µ 0 I(G), so it suffices to calculate I(H). Let R = 2µ 1 + µ 2. For 0 r R, construct a 3-regular graph H r from H, as follows. Attach 3 d copies of the graph Q r to each vertex v of degree d < 3, using edges of the form {v, u 2r }. Clearly H r is a 3-regular graph, for 0 r R, and we can form these graphs in polynomial time. For 0 i µ 1, 0 j µ 2, define n i,j by Then Now µ 1 µ 2 n i,j = {X I(H) : X U 1 = i, X U 2 = j}. µ 1 µ 2 n i,j = I(H). (14) i=0 j=0 (0) I(H r ) = n i,j M 2i+j r M R (2i+j) R r = M r i=0 j=0 µ 1 i=0 µ 2 j=0 n i,j x r 2i+j = M r R g(x r ), where x r = M r (0) /M r. It follows from (9) and from Lemma 1.1 that the quotients x r are distinct for 0 r R. Suppose that the values I(H r ) were known, for 0 r R. By inverting a Vandermonde matrix, we can interpolate the polynomial g given in (15), and evaluate it at x r = 1 (in polynomial time). By (14), this value is I(H). This completes the polynomial-time reduction from the problem #IND-SETS(3) to the problem #REGULAR-IND-SETS(3), proving that the latter is #P -complete. (15) 13

14 3.3 Hypergraphs with maximum degree at most three where every edge has size three In Theorem 3.1 we proved that it is #P -complete to count independent sets in graphs with maximum degree at most three. This proof is adapted below to show that it is #P -complete to count independent sets in hypergraphs with maximum degree at most three, where every edge has size three. We will use an analogue of the chain graph C r, which has 2r + 1 vertices and r edges. If r = 0 then C r consists of a single vertex. For r 1, C r has r 1 vertices of degree two and r + 2 vertices of degree one: in particular, every edge contains at least one vertex of degree one, and every edge has size three. The chain hypergraph C r is depicted in Figure 5. Let N r = I(C r ) for r 0. Then N 0 = 2, u 1 w 1 u 2 w 2 u 3 w 3 u 4 u r- 1 w r- 1 u r w r u r+1 N 1 = 7 and Figure 5: The chain hypergraph C r N r+2 = 3N r+1 + 2N r (16) for r 0. Extend this sequence of numbers backwards, defining N 1, N 2 and N 3 by N 1 = 1/2, N 2 = 1/4, N 3 = 1/8. (17) Then these numbers also satisfy the relation (16). Let A r (0) A r (1) A r (2) Then it is not difficult to show that = {X I(C r ) : {u 1, u r+1 } X = }, = {X I(C r ) : u 1 X and u r+1 X}, = {X I(C r ) : {u 1, u r+1 } X = {u 1, u r+1 }}. A r (0) = 4N r 2, A r (1) = 2N r 2 + 4N r 3, A r (2) = 3N r 2 2N r 3 (18) for r 0. We now prove that the problem of counting independent sets in hypergraphs with maximum degree at most three, where every edge has size three, is #P -complete. For this proof we make explicit use of the correspondence between independent sets in hypergraphs and certain SAT instances, as described in Section 3.1. This allows us to take as our starting point the #P -complete counting problem #3SAT. Theorem 3.2 Let #IND-SETS(3, 3) denote the following counting problem. An instance is a hypergraph with maximum degree at most three where every edge has size three. The problem is to calculate the number of independent sets in that hypergraph. Then #IND-SETS(3, 3) is #P -complete. 14

15 Proof. Let us extend the notation used for restricted SAT problems to distinguish instances where each clause contains the same number of variables. Define k SAT to be the subset of ksat containing all instances where each clause contains exactly k variables. Define k MON and lµ-k MON similarly. The counting problem #3SAT is #P -complete (see [7, p.442]). We give the following series of polynomial-time reductions #3SAT #3 SAT #3 MON #3µ 3 MON, with some modification due to the fact that the edges have size three. The existence of the given series of polynomial-time reductions implies that all the counting problems listed above are #P -hard. Since they are all also members of the class #P, we will be able to conclude that all the listed problems are #P-complete. REDUCTION 1 (#3SAT #3 SAT). Given a 3SAT instance, delete any clauses which contain only one variable and adjust all other clauses containing that literal (deleting those which become true, and deleting the literal from any clause where that literal takes the value false). Next, replace each clause v w of size two with the conjuction of two clauses (v w x) (v w x) of size three, where x is a new variable. If r new variables are introduced then this gives a 3SAT instance where every clause has three variables, and with exactly 2 r times as many satisfying assignments as the original. This reduction can be performed in polynomial time. REDUCTION 2 ( #3 SAT #3 MON). Given a 3 SAT instance f, form a hypergraph G as follows. Let the variables of f be u 1,..., u m. (The usual convention is to have m clauses and n variables; we reverse this convention so that subsequent notation is in keeping with that used in Theorem 3.1). For each variable u j let there be two vertices, one labelled v j and one labelled v j. Here v j corresponds to the literal u j and v j corresponds to the literal ū j. For each clause in f form an edge, as follows. Suppose that C = a 1 a 2 a 3 where the a i are literals and a i {u ji, ū ji } for 1 i 3. The edge corresponding to C is {b 1, b 2, b 3 } where { v ji if a i = u ji, b i = v ji if a i = ū ji.. Then every edge in G has size three. For 0 t m, 0 i t, define k t,i to be the number of independent sets X I(G) satisfying the following conditions: (i) {j : {v j, v j } X = } = i, (ii) {j : {v j, v j } X} = t i. Let X be an independent set in G, and suppose that, for all variables v j of f, we have {v j, v j } X = 1. Give u j the truth value TRUE if and only if v j X, for 1 j m. This is a satisfying assignment of f. This construction can be reversed, to give a one-one correspondence. Hence k 0,0 is the number of satisfying assignments of f. 15

16 For each (r, p) with 1 r pm + 1, 1 p m + 1, we form a hypergraph H (r,p), as follows. Recall the chain hypergraph C r with r edges, depicted in Figure 5. Add p copies of the chain C r between each pair of vertices {v j, v j } corresponding to a variable v j of f, making the identifications v j = u 1 and v j = u r+1 in each copy of the chain. Then t I(H (r,p) ) = k t,i A (0) r pi A (2) r p(t i) A (1) r p(m t). (19) t=0 i=0 Let x r = N r 3 / A r (1) for 1 r mp + 1. Dividing (19) by A r (1) mp, we obtain I(H (r,p) ) A r (1) mp = t=0 t k t,i 2 p(i t) (2 8x r ) pi (3 16x r ) p(t i) (20) i=0 for 1 r mp + 1. Using Lemma 1.1, we see that the quotients x r are distinct for 1 r mp + 1. Suppose that we knew the values I(H (r,p) ) for 1 r pm + 1. Then we could obtain the value of the right hand side of (20) at x r = 3/16, in polynomial time, by inverting a Vandermonde matrix. This value is equal to k t,t 2 pt. t=0 If we can do this for 1 p m + 1 then we obtain another Vandermonde matrix, as the coefficients 2 p are distinct. Thus the values k t,t can be found in polynomial time by inverting this final matrix. In particular we have k 0,0, the number of satisfying assignments of the original 3 SAT instance f. This completes the second reduction. REDUCTION 3 (#3 MON #3µ 3 MON). This reduction is based on Reduction 1 of Theorem 3.1, with some modification due to the fact that all edges have size three. Let G = (V G, E G ) be a hypergraph with maximum degree at most, where every edge has size three and 3. Form a hypergraph H = (V, E) from G as follows. Consider each vertex v V G with degree d > 3 in turn. Replace v by a copy of the chain hypergraph C d 3, attaching each edge containing v to a unique vertex u i of the chain. This can be done in such a way that each vertex u i has degree three and each vertex w i has degree one. Let each edge in the chain hypergraph be placed in the set E, while all other edges become members of E. The hypergraph H can be constructed from G in polynomial time. Let m = E. For 0 t m, 0 i t let n t,i = S t,i, where S t,i is defined in (10). Then I(G) = n m,i, (21) i=0 since all edges are well-behaved. For r 0, let H r denote the r-stretch of H with respect to E. That is, obtain H r from H by replacing each edge {v 1, w, v 2 } E by a copy of the chain C r, making the identifications v 1 = u 1, v 2 = u r+1, ensuring that w has degree 16

17 one. Note that H 0 = G. For r 0, using (18) we obtain I(H r ) = t=0 i=0 t n t,i A (0) r i A (2) r t i A (1) r m t = (4N r 2 ) m m t=0 i=0 t n t,i 4 i m (3 2x r ) t i (2 + 4x r ) m t, (22) where x r = N r 3 /N r 2 (using the values defined in (17) where necessary). The quotients x r are distinct for r 1, for example by appealing to Lemma 1.1. Suppose that the values I(H r ) were known, for 1 r m + 1. Then the value of the right hand side of (22) could be interpolated at x r = 1/2, in polynomial time, by inverting a Vandermonde matrix. Now x r = 1/2 corresponds to r = 0, using the values N 2 and N 3 as defined in (17). Thus we obtain the value I(H 0 ) = I(G) = n m,i. i=0 This completes the third reduction, and this series of reductions proves that #IND- SETS(3, 3) is #P -complete. 4 Acknowledgements I would like to thank Martin Dyer for many helpful discussions about this work, and Mark Jerrum for his assistance in adapting the methods from colourings to independent sets. I am grateful to both referees for their helpful comments. References [1] R. Bubley and M. Dyer, Graph orientations with no sink and an approximation for a hard case of #SAT, in 8th Annual Symposium on Discrete Algorithms, ACM SIAM, New York Philadelphia, 1996 pp [2] R. Bubley, M. Dyer, C. Greenhill, and M. Jerrum, On approximately counting colourings of small degree graphs, SIAM Journal on Computing, 29 (1999), pp [3] M. Dyer and C. Greenhill, A more rapidly mixing Markov chain for graph colourings, Random Structures and Algorithms, 13 (1998), pp [4] K. Edwards, The complexity of colouring problems on dense graphs, Theoretical Computer Science, 43 (1986), pp [5] F. Jaeger, D. L. Vertigan, and D. Welsh, On the computational complexity of the Jones and Tutte polynomials, Mathematical Proceedings of the Cambridge Philosophical Society, 108 (1990), pp [6] M. Luby and E. Vigoda, Approximately counting up to four, in Twenty-Ninth Annual Symposium on Theory of Computing, ACM, New York, 1997 pp [7] C. H. Papadimitriou, Computational Complexity, Addison Wesley, Reading, MA, (1994). [8] D. Roth, On the hardness of approximate reasoning, Artificial Intelligence, 82 (1996), pp [9] S. Vadhan, The complexity of counting, (1995), Undergraduate thesis, Harvard University. 17

18 [10] S. P. Vadhan, The complexity of counting in sparse, regular, and planar graphs, Preprint (Available from salil/), (May 1997). [11] L. G. Valiant, The complexity of enumeration and reliability problems, SIAM Journal on Computing, 8 (1979), pp [12] J. H. van Lint and R. M. Wilson, A course in combinatorics, Cambridge University Press, Cambridge, (1992). 18

I. GROUPS: BASIC DEFINITIONS AND EXAMPLES

I. GROUPS: BASIC DEFINITIONS AND EXAMPLES I GROUPS: BASIC DEFINITIONS AND EXAMPLES Definition 1: An operation on a set G is a function : G G G Definition 2: A group is a set G which is equipped with an operation and a special element e G, called

More information

Triangle deletion. Ernie Croot. February 3, 2010

Triangle deletion. Ernie Croot. February 3, 2010 Triangle deletion Ernie Croot February 3, 2010 1 Introduction The purpose of this note is to give an intuitive outline of the triangle deletion theorem of Ruzsa and Szemerédi, which says that if G = (V,

More information

1. Nondeterministically guess a solution (called a certificate) 2. Check whether the solution solves the problem (called verification)

1. Nondeterministically guess a solution (called a certificate) 2. Check whether the solution solves the problem (called verification) Some N P problems Computer scientists have studied many N P problems, that is, problems that can be solved nondeterministically in polynomial time. Traditionally complexity question are studied as languages:

More information

Quotient Rings and Field Extensions

Quotient Rings and Field Extensions Chapter 5 Quotient Rings and Field Extensions In this chapter we describe a method for producing field extension of a given field. If F is a field, then a field extension is a field K that contains F.

More information

Discuss the size of the instance for the minimum spanning tree problem.

Discuss the size of the instance for the minimum spanning tree problem. 3.1 Algorithm complexity The algorithms A, B are given. The former has complexity O(n 2 ), the latter O(2 n ), where n is the size of the instance. Let n A 0 be the size of the largest instance that can

More information

CS 103X: Discrete Structures Homework Assignment 3 Solutions

CS 103X: Discrete Structures Homework Assignment 3 Solutions CS 103X: Discrete Structures Homework Assignment 3 s Exercise 1 (20 points). On well-ordering and induction: (a) Prove the induction principle from the well-ordering principle. (b) Prove the well-ordering

More information

arxiv:1203.1525v1 [math.co] 7 Mar 2012

arxiv:1203.1525v1 [math.co] 7 Mar 2012 Constructing subset partition graphs with strong adjacency and end-point count properties Nicolai Hähnle haehnle@math.tu-berlin.de arxiv:1203.1525v1 [math.co] 7 Mar 2012 March 8, 2012 Abstract Kim defined

More information

COMBINATORIAL PROPERTIES OF THE HIGMAN-SIMS GRAPH. 1. Introduction

COMBINATORIAL PROPERTIES OF THE HIGMAN-SIMS GRAPH. 1. Introduction COMBINATORIAL PROPERTIES OF THE HIGMAN-SIMS GRAPH ZACHARY ABEL 1. Introduction In this survey we discuss properties of the Higman-Sims graph, which has 100 vertices, 1100 edges, and is 22 regular. In fact

More information

The positive minimum degree game on sparse graphs

The positive minimum degree game on sparse graphs The positive minimum degree game on sparse graphs József Balogh Department of Mathematical Sciences University of Illinois, USA jobal@math.uiuc.edu András Pluhár Department of Computer Science University

More information

Cartesian Products and Relations

Cartesian Products and Relations Cartesian Products and Relations Definition (Cartesian product) If A and B are sets, the Cartesian product of A and B is the set A B = {(a, b) :(a A) and (b B)}. The following points are worth special

More information

Graphs without proper subgraphs of minimum degree 3 and short cycles

Graphs without proper subgraphs of minimum degree 3 and short cycles Graphs without proper subgraphs of minimum degree 3 and short cycles Lothar Narins, Alexey Pokrovskiy, Tibor Szabó Department of Mathematics, Freie Universität, Berlin, Germany. August 22, 2014 Abstract

More information

CS 598CSC: Combinatorial Optimization Lecture date: 2/4/2010

CS 598CSC: Combinatorial Optimization Lecture date: 2/4/2010 CS 598CSC: Combinatorial Optimization Lecture date: /4/010 Instructor: Chandra Chekuri Scribe: David Morrison Gomory-Hu Trees (The work in this section closely follows [3]) Let G = (V, E) be an undirected

More information

Every tree contains a large induced subgraph with all degrees odd

Every tree contains a large induced subgraph with all degrees odd Every tree contains a large induced subgraph with all degrees odd A.J. Radcliffe Carnegie Mellon University, Pittsburgh, PA A.D. Scott Department of Pure Mathematics and Mathematical Statistics University

More information

8 Divisibility and prime numbers

8 Divisibility and prime numbers 8 Divisibility and prime numbers 8.1 Divisibility In this short section we extend the concept of a multiple from the natural numbers to the integers. We also summarize several other terms that express

More information

CSC 373: Algorithm Design and Analysis Lecture 16

CSC 373: Algorithm Design and Analysis Lecture 16 CSC 373: Algorithm Design and Analysis Lecture 16 Allan Borodin February 25, 2013 Some materials are from Stephen Cook s IIT talk and Keven Wayne s slides. 1 / 17 Announcements and Outline Announcements

More information

Class One: Degree Sequences

Class One: Degree Sequences Class One: Degree Sequences For our purposes a graph is a just a bunch of points, called vertices, together with lines or curves, called edges, joining certain pairs of vertices. Three small examples of

More information

Markov random fields and Gibbs measures

Markov random fields and Gibbs measures Chapter Markov random fields and Gibbs measures 1. Conditional independence Suppose X i is a random element of (X i, B i ), for i = 1, 2, 3, with all X i defined on the same probability space (.F, P).

More information

1 if 1 x 0 1 if 0 x 1

1 if 1 x 0 1 if 0 x 1 Chapter 3 Continuity In this chapter we begin by defining the fundamental notion of continuity for real valued functions of a single real variable. When trying to decide whether a given function is or

More information

Definition 11.1. Given a graph G on n vertices, we define the following quantities:

Definition 11.1. Given a graph G on n vertices, we define the following quantities: Lecture 11 The Lovász ϑ Function 11.1 Perfect graphs We begin with some background on perfect graphs. graphs. First, we define some quantities on Definition 11.1. Given a graph G on n vertices, we define

More information

Exponential time algorithms for graph coloring

Exponential time algorithms for graph coloring Exponential time algorithms for graph coloring Uriel Feige Lecture notes, March 14, 2011 1 Introduction Let [n] denote the set {1,..., k}. A k-labeling of vertices of a graph G(V, E) is a function V [k].

More information

Large induced subgraphs with all degrees odd

Large induced subgraphs with all degrees odd Large induced subgraphs with all degrees odd A.D. Scott Department of Pure Mathematics and Mathematical Statistics, University of Cambridge, England Abstract: We prove that every connected graph of order

More information

CHAPTER 3. Methods of Proofs. 1. Logical Arguments and Formal Proofs

CHAPTER 3. Methods of Proofs. 1. Logical Arguments and Formal Proofs CHAPTER 3 Methods of Proofs 1. Logical Arguments and Formal Proofs 1.1. Basic Terminology. An axiom is a statement that is given to be true. A rule of inference is a logical rule that is used to deduce

More information

Mathematical Induction

Mathematical Induction Mathematical Induction (Handout March 8, 01) The Principle of Mathematical Induction provides a means to prove infinitely many statements all at once The principle is logical rather than strictly mathematical,

More information

On the k-path cover problem for cacti

On the k-path cover problem for cacti On the k-path cover problem for cacti Zemin Jin and Xueliang Li Center for Combinatorics and LPMC Nankai University Tianjin 300071, P.R. China zeminjin@eyou.com, x.li@eyou.com Abstract In this paper we

More information

Lecture 7: NP-Complete Problems

Lecture 7: NP-Complete Problems IAS/PCMI Summer Session 2000 Clay Mathematics Undergraduate Program Basic Course on Computational Complexity Lecture 7: NP-Complete Problems David Mix Barrington and Alexis Maciel July 25, 2000 1. Circuit

More information

Section 4.2: The Division Algorithm and Greatest Common Divisors

Section 4.2: The Division Algorithm and Greatest Common Divisors Section 4.2: The Division Algorithm and Greatest Common Divisors The Division Algorithm The Division Algorithm is merely long division restated as an equation. For example, the division 29 r. 20 32 948

More information

Chapter 3. Cartesian Products and Relations. 3.1 Cartesian Products

Chapter 3. Cartesian Products and Relations. 3.1 Cartesian Products Chapter 3 Cartesian Products and Relations The material in this chapter is the first real encounter with abstraction. Relations are very general thing they are a special type of subset. After introducing

More information

CHAPTER 5. Number Theory. 1. Integers and Division. Discussion

CHAPTER 5. Number Theory. 1. Integers and Division. Discussion CHAPTER 5 Number Theory 1. Integers and Division 1.1. Divisibility. Definition 1.1.1. Given two integers a and b we say a divides b if there is an integer c such that b = ac. If a divides b, we write a

More information

Math 55: Discrete Mathematics

Math 55: Discrete Mathematics Math 55: Discrete Mathematics UC Berkeley, Spring 2012 Homework # 9, due Wednesday, April 11 8.1.5 How many ways are there to pay a bill of 17 pesos using a currency with coins of values of 1 peso, 2 pesos,

More information

The last three chapters introduced three major proof techniques: direct,

The last three chapters introduced three major proof techniques: direct, CHAPTER 7 Proving Non-Conditional Statements The last three chapters introduced three major proof techniques: direct, contrapositive and contradiction. These three techniques are used to prove statements

More information

MATH10040 Chapter 2: Prime and relatively prime numbers

MATH10040 Chapter 2: Prime and relatively prime numbers MATH10040 Chapter 2: Prime and relatively prime numbers Recall the basic definition: 1. Prime numbers Definition 1.1. Recall that a positive integer is said to be prime if it has precisely two positive

More information

. 0 1 10 2 100 11 1000 3 20 1 2 3 4 5 6 7 8 9

. 0 1 10 2 100 11 1000 3 20 1 2 3 4 5 6 7 8 9 Introduction The purpose of this note is to find and study a method for determining and counting all the positive integer divisors of a positive integer Let N be a given positive integer We say d is a

More information

Lecture 1: Course overview, circuits, and formulas

Lecture 1: Course overview, circuits, and formulas Lecture 1: Course overview, circuits, and formulas Topics in Complexity Theory and Pseudorandomness (Spring 2013) Rutgers University Swastik Kopparty Scribes: John Kim, Ben Lund 1 Course Information Swastik

More information

Single machine parallel batch scheduling with unbounded capacity

Single machine parallel batch scheduling with unbounded capacity Workshop on Combinatorics and Graph Theory 21th, April, 2006 Nankai University Single machine parallel batch scheduling with unbounded capacity Yuan Jinjiang Department of mathematics, Zhengzhou University

More information

6.3 Conditional Probability and Independence

6.3 Conditional Probability and Independence 222 CHAPTER 6. PROBABILITY 6.3 Conditional Probability and Independence Conditional Probability Two cubical dice each have a triangle painted on one side, a circle painted on two sides and a square painted

More information

Finding and counting given length cycles

Finding and counting given length cycles Finding and counting given length cycles Noga Alon Raphael Yuster Uri Zwick Abstract We present an assortment of methods for finding and counting simple cycles of a given length in directed and undirected

More information

SECTION 10-2 Mathematical Induction

SECTION 10-2 Mathematical Induction 73 0 Sequences and Series 6. Approximate e 0. using the first five terms of the series. Compare this approximation with your calculator evaluation of e 0.. 6. Approximate e 0.5 using the first five terms

More information

OHJ-2306 Introduction to Theoretical Computer Science, Fall 2012 8.11.2012

OHJ-2306 Introduction to Theoretical Computer Science, Fall 2012 8.11.2012 276 The P vs. NP problem is a major unsolved problem in computer science It is one of the seven Millennium Prize Problems selected by the Clay Mathematics Institute to carry a $ 1,000,000 prize for the

More information

Lecture 13 - Basic Number Theory.

Lecture 13 - Basic Number Theory. Lecture 13 - Basic Number Theory. Boaz Barak March 22, 2010 Divisibility and primes Unless mentioned otherwise throughout this lecture all numbers are non-negative integers. We say that A divides B, denoted

More information

Lecture 22: November 10

Lecture 22: November 10 CS271 Randomness & Computation Fall 2011 Lecture 22: November 10 Lecturer: Alistair Sinclair Based on scribe notes by Rafael Frongillo Disclaimer: These notes have not been subjected to the usual scrutiny

More information

Catalan Numbers. Thomas A. Dowling, Department of Mathematics, Ohio State Uni- versity.

Catalan Numbers. Thomas A. Dowling, Department of Mathematics, Ohio State Uni- versity. 7 Catalan Numbers Thomas A. Dowling, Department of Mathematics, Ohio State Uni- Author: versity. Prerequisites: The prerequisites for this chapter are recursive definitions, basic counting principles,

More information

Generating models of a matched formula with a polynomial delay

Generating models of a matched formula with a polynomial delay Generating models of a matched formula with a polynomial delay Petr Savicky Institute of Computer Science, Academy of Sciences of Czech Republic, Pod Vodárenskou Věží 2, 182 07 Praha 8, Czech Republic

More information

FACTORING POLYNOMIALS IN THE RING OF FORMAL POWER SERIES OVER Z

FACTORING POLYNOMIALS IN THE RING OF FORMAL POWER SERIES OVER Z FACTORING POLYNOMIALS IN THE RING OF FORMAL POWER SERIES OVER Z DANIEL BIRMAJER, JUAN B GIL, AND MICHAEL WEINER Abstract We consider polynomials with integer coefficients and discuss their factorization

More information

Settling a Question about Pythagorean Triples

Settling a Question about Pythagorean Triples Settling a Question about Pythagorean Triples TOM VERHOEFF Department of Mathematics and Computing Science Eindhoven University of Technology P.O. Box 513, 5600 MB Eindhoven, The Netherlands E-Mail address:

More information

COUNTING INDEPENDENT SETS IN SOME CLASSES OF (ALMOST) REGULAR GRAPHS

COUNTING INDEPENDENT SETS IN SOME CLASSES OF (ALMOST) REGULAR GRAPHS COUNTING INDEPENDENT SETS IN SOME CLASSES OF (ALMOST) REGULAR GRAPHS Alexander Burstein Department of Mathematics Howard University Washington, DC 259, USA aburstein@howard.edu Sergey Kitaev Mathematics

More information

Real Roots of Univariate Polynomials with Real Coefficients

Real Roots of Univariate Polynomials with Real Coefficients Real Roots of Univariate Polynomials with Real Coefficients mostly written by Christina Hewitt March 22, 2012 1 Introduction Polynomial equations are used throughout mathematics. When solving polynomials

More information

The chromatic spectrum of mixed hypergraphs

The chromatic spectrum of mixed hypergraphs The chromatic spectrum of mixed hypergraphs Tao Jiang, Dhruv Mubayi, Zsolt Tuza, Vitaly Voloshin, Douglas B. West March 30, 2003 Abstract A mixed hypergraph is a triple H = (X, C, D), where X is the vertex

More information

Discrete Mathematics and Probability Theory Fall 2009 Satish Rao, David Tse Note 2

Discrete Mathematics and Probability Theory Fall 2009 Satish Rao, David Tse Note 2 CS 70 Discrete Mathematics and Probability Theory Fall 2009 Satish Rao, David Tse Note 2 Proofs Intuitively, the concept of proof should already be familiar We all like to assert things, and few of us

More information

Notes on Determinant

Notes on Determinant ENGG2012B Advanced Engineering Mathematics Notes on Determinant Lecturer: Kenneth Shum Lecture 9-18/02/2013 The determinant of a system of linear equations determines whether the solution is unique, without

More information

Handout #Ch7 San Skulrattanakulchai Gustavus Adolphus College Dec 6, 2010. Chapter 7: Digraphs

Handout #Ch7 San Skulrattanakulchai Gustavus Adolphus College Dec 6, 2010. Chapter 7: Digraphs MCS-236: Graph Theory Handout #Ch7 San Skulrattanakulchai Gustavus Adolphus College Dec 6, 2010 Chapter 7: Digraphs Strong Digraphs Definitions. A digraph is an ordered pair (V, E), where V is the set

More information

Mean Ramsey-Turán numbers

Mean Ramsey-Turán numbers Mean Ramsey-Turán numbers Raphael Yuster Department of Mathematics University of Haifa at Oranim Tivon 36006, Israel Abstract A ρ-mean coloring of a graph is a coloring of the edges such that the average

More information

CORRELATED TO THE SOUTH CAROLINA COLLEGE AND CAREER-READY FOUNDATIONS IN ALGEBRA

CORRELATED TO THE SOUTH CAROLINA COLLEGE AND CAREER-READY FOUNDATIONS IN ALGEBRA We Can Early Learning Curriculum PreK Grades 8 12 INSIDE ALGEBRA, GRADES 8 12 CORRELATED TO THE SOUTH CAROLINA COLLEGE AND CAREER-READY FOUNDATIONS IN ALGEBRA April 2016 www.voyagersopris.com Mathematical

More information

4.5 Linear Dependence and Linear Independence

4.5 Linear Dependence and Linear Independence 4.5 Linear Dependence and Linear Independence 267 32. {v 1, v 2 }, where v 1, v 2 are collinear vectors in R 3. 33. Prove that if S and S are subsets of a vector space V such that S is a subset of S, then

More information

Chapter 4, Arithmetic in F [x] Polynomial arithmetic and the division algorithm.

Chapter 4, Arithmetic in F [x] Polynomial arithmetic and the division algorithm. Chapter 4, Arithmetic in F [x] Polynomial arithmetic and the division algorithm. We begin by defining the ring of polynomials with coefficients in a ring R. After some preliminary results, we specialize

More information

How To Know If A Domain Is Unique In An Octempo (Euclidean) Or Not (Ecl)

How To Know If A Domain Is Unique In An Octempo (Euclidean) Or Not (Ecl) Subsets of Euclidean domains possessing a unique division algorithm Andrew D. Lewis 2009/03/16 Abstract Subsets of a Euclidean domain are characterised with the following objectives: (1) ensuring uniqueness

More information

Lecture 16 : Relations and Functions DRAFT

Lecture 16 : Relations and Functions DRAFT CS/Math 240: Introduction to Discrete Mathematics 3/29/2011 Lecture 16 : Relations and Functions Instructor: Dieter van Melkebeek Scribe: Dalibor Zelený DRAFT In Lecture 3, we described a correspondence

More information

3. Mathematical Induction

3. Mathematical Induction 3. MATHEMATICAL INDUCTION 83 3. Mathematical Induction 3.1. First Principle of Mathematical Induction. Let P (n) be a predicate with domain of discourse (over) the natural numbers N = {0, 1,,...}. If (1)

More information

Full and Complete Binary Trees

Full and Complete Binary Trees Full and Complete Binary Trees Binary Tree Theorems 1 Here are two important types of binary trees. Note that the definitions, while similar, are logically independent. Definition: a binary tree T is full

More information

each college c i C has a capacity q i - the maximum number of students it will admit

each college c i C has a capacity q i - the maximum number of students it will admit n colleges in a set C, m applicants in a set A, where m is much larger than n. each college c i C has a capacity q i - the maximum number of students it will admit each college c i has a strict order i

More information

Approximation Algorithms

Approximation Algorithms Approximation Algorithms or: How I Learned to Stop Worrying and Deal with NP-Completeness Ong Jit Sheng, Jonathan (A0073924B) March, 2012 Overview Key Results (I) General techniques: Greedy algorithms

More information

God created the integers and the rest is the work of man. (Leopold Kronecker, in an after-dinner speech at a conference, Berlin, 1886)

God created the integers and the rest is the work of man. (Leopold Kronecker, in an after-dinner speech at a conference, Berlin, 1886) Chapter 2 Numbers God created the integers and the rest is the work of man. (Leopold Kronecker, in an after-dinner speech at a conference, Berlin, 1886) God created the integers and the rest is the work

More information

INDISTINGUISHABILITY OF ABSOLUTELY CONTINUOUS AND SINGULAR DISTRIBUTIONS

INDISTINGUISHABILITY OF ABSOLUTELY CONTINUOUS AND SINGULAR DISTRIBUTIONS INDISTINGUISHABILITY OF ABSOLUTELY CONTINUOUS AND SINGULAR DISTRIBUTIONS STEVEN P. LALLEY AND ANDREW NOBEL Abstract. It is shown that there are no consistent decision rules for the hypothesis testing problem

More information

Continued Fractions and the Euclidean Algorithm

Continued Fractions and the Euclidean Algorithm Continued Fractions and the Euclidean Algorithm Lecture notes prepared for MATH 326, Spring 997 Department of Mathematics and Statistics University at Albany William F Hammond Table of Contents Introduction

More information

Reading 13 : Finite State Automata and Regular Expressions

Reading 13 : Finite State Automata and Regular Expressions CS/Math 24: Introduction to Discrete Mathematics Fall 25 Reading 3 : Finite State Automata and Regular Expressions Instructors: Beck Hasti, Gautam Prakriya In this reading we study a mathematical model

More information

Mathematics for Computer Science/Software Engineering. Notes for the course MSM1F3 Dr. R. A. Wilson

Mathematics for Computer Science/Software Engineering. Notes for the course MSM1F3 Dr. R. A. Wilson Mathematics for Computer Science/Software Engineering Notes for the course MSM1F3 Dr. R. A. Wilson October 1996 Chapter 1 Logic Lecture no. 1. We introduce the concept of a proposition, which is a statement

More information

1 Solving LPs: The Simplex Algorithm of George Dantzig

1 Solving LPs: The Simplex Algorithm of George Dantzig Solving LPs: The Simplex Algorithm of George Dantzig. Simplex Pivoting: Dictionary Format We illustrate a general solution procedure, called the simplex algorithm, by implementing it on a very simple example.

More information

136 CHAPTER 4. INDUCTION, GRAPHS AND TREES

136 CHAPTER 4. INDUCTION, GRAPHS AND TREES 136 TER 4. INDUCTION, GRHS ND TREES 4.3 Graphs In this chapter we introduce a fundamental structural idea of discrete mathematics, that of a graph. Many situations in the applications of discrete mathematics

More information

Just the Factors, Ma am

Just the Factors, Ma am 1 Introduction Just the Factors, Ma am The purpose of this note is to find and study a method for determining and counting all the positive integer divisors of a positive integer Let N be a given positive

More information

Mathematical Induction

Mathematical Induction Mathematical Induction In logic, we often want to prove that every member of an infinite set has some feature. E.g., we would like to show: N 1 : is a number 1 : has the feature Φ ( x)(n 1 x! 1 x) How

More information

Determination of the normalization level of database schemas through equivalence classes of attributes

Determination of the normalization level of database schemas through equivalence classes of attributes Computer Science Journal of Moldova, vol.17, no.2(50), 2009 Determination of the normalization level of database schemas through equivalence classes of attributes Cotelea Vitalie Abstract In this paper,

More information

NOTES ON LINEAR TRANSFORMATIONS

NOTES ON LINEAR TRANSFORMATIONS NOTES ON LINEAR TRANSFORMATIONS Definition 1. Let V and W be vector spaces. A function T : V W is a linear transformation from V to W if the following two properties hold. i T v + v = T v + T v for all

More information

Collinear Points in Permutations

Collinear Points in Permutations Collinear Points in Permutations Joshua N. Cooper Courant Institute of Mathematics New York University, New York, NY József Solymosi Department of Mathematics University of British Columbia, Vancouver,

More information

DIFFERENTIABILITY OF COMPLEX FUNCTIONS. Contents

DIFFERENTIABILITY OF COMPLEX FUNCTIONS. Contents DIFFERENTIABILITY OF COMPLEX FUNCTIONS Contents 1. Limit definition of a derivative 1 2. Holomorphic functions, the Cauchy-Riemann equations 3 3. Differentiability of real functions 5 4. A sufficient condition

More information

INCIDENCE-BETWEENNESS GEOMETRY

INCIDENCE-BETWEENNESS GEOMETRY INCIDENCE-BETWEENNESS GEOMETRY MATH 410, CSUSM. SPRING 2008. PROFESSOR AITKEN This document covers the geometry that can be developed with just the axioms related to incidence and betweenness. The full

More information

1 Homework 1. [p 0 q i+j +... + p i 1 q j+1 ] + [p i q j ] + [p i+1 q j 1 +... + p i+j q 0 ]

1 Homework 1. [p 0 q i+j +... + p i 1 q j+1 ] + [p i q j ] + [p i+1 q j 1 +... + p i+j q 0 ] 1 Homework 1 (1) Prove the ideal (3,x) is a maximal ideal in Z[x]. SOLUTION: Suppose we expand this ideal by including another generator polynomial, P / (3, x). Write P = n + x Q with n an integer not

More information

Mathematics Course 111: Algebra I Part IV: Vector Spaces

Mathematics Course 111: Algebra I Part IV: Vector Spaces Mathematics Course 111: Algebra I Part IV: Vector Spaces D. R. Wilkins Academic Year 1996-7 9 Vector Spaces A vector space over some field K is an algebraic structure consisting of a set V on which are

More information

Review of Fundamental Mathematics

Review of Fundamental Mathematics Review of Fundamental Mathematics As explained in the Preface and in Chapter 1 of your textbook, managerial economics applies microeconomic theory to business decision making. The decision-making tools

More information

Online Adwords Allocation

Online Adwords Allocation Online Adwords Allocation Shoshana Neuburger May 6, 2009 1 Overview Many search engines auction the advertising space alongside search results. When Google interviewed Amin Saberi in 2004, their advertisement

More information

Smooth functions statistics

Smooth functions statistics Smooth functions statistics V. I. rnold To describe the topological structure of a real smooth function one associates to it the graph, formed by the topological variety, whose points are the connected

More information

Testing Hereditary Properties of Non-Expanding Bounded-Degree Graphs

Testing Hereditary Properties of Non-Expanding Bounded-Degree Graphs Testing Hereditary Properties of Non-Expanding Bounded-Degree Graphs Artur Czumaj Asaf Shapira Christian Sohler Abstract We study graph properties which are testable for bounded degree graphs in time independent

More information

An example of a computable

An example of a computable An example of a computable absolutely normal number Verónica Becher Santiago Figueira Abstract The first example of an absolutely normal number was given by Sierpinski in 96, twenty years before the concept

More information

Formal Languages and Automata Theory - Regular Expressions and Finite Automata -

Formal Languages and Automata Theory - Regular Expressions and Finite Automata - Formal Languages and Automata Theory - Regular Expressions and Finite Automata - Samarjit Chakraborty Computer Engineering and Networks Laboratory Swiss Federal Institute of Technology (ETH) Zürich March

More information

Regular Languages and Finite Automata

Regular Languages and Finite Automata Regular Languages and Finite Automata 1 Introduction Hing Leung Department of Computer Science New Mexico State University Sep 16, 2010 In 1943, McCulloch and Pitts [4] published a pioneering work on a

More information

An inequality for the group chromatic number of a graph

An inequality for the group chromatic number of a graph An inequality for the group chromatic number of a graph Hong-Jian Lai 1, Xiangwen Li 2 and Gexin Yu 3 1 Department of Mathematics, West Virginia University Morgantown, WV 26505 USA 2 Department of Mathematics

More information

SCORE SETS IN ORIENTED GRAPHS

SCORE SETS IN ORIENTED GRAPHS Applicable Analysis and Discrete Mathematics, 2 (2008), 107 113. Available electronically at http://pefmath.etf.bg.ac.yu SCORE SETS IN ORIENTED GRAPHS S. Pirzada, T. A. Naikoo The score of a vertex v in

More information

a 11 x 1 + a 12 x 2 + + a 1n x n = b 1 a 21 x 1 + a 22 x 2 + + a 2n x n = b 2.

a 11 x 1 + a 12 x 2 + + a 1n x n = b 1 a 21 x 1 + a 22 x 2 + + a 2n x n = b 2. Chapter 1 LINEAR EQUATIONS 1.1 Introduction to linear equations A linear equation in n unknowns x 1, x,, x n is an equation of the form a 1 x 1 + a x + + a n x n = b, where a 1, a,..., a n, b are given

More information

Lecture 17 : Equivalence and Order Relations DRAFT

Lecture 17 : Equivalence and Order Relations DRAFT CS/Math 240: Introduction to Discrete Mathematics 3/31/2011 Lecture 17 : Equivalence and Order Relations Instructor: Dieter van Melkebeek Scribe: Dalibor Zelený DRAFT Last lecture we introduced the notion

More information

Math Review. for the Quantitative Reasoning Measure of the GRE revised General Test

Math Review. for the Quantitative Reasoning Measure of the GRE revised General Test Math Review for the Quantitative Reasoning Measure of the GRE revised General Test www.ets.org Overview This Math Review will familiarize you with the mathematical skills and concepts that are important

More information

Chapter 4. Polynomial and Rational Functions. 4.1 Polynomial Functions and Their Graphs

Chapter 4. Polynomial and Rational Functions. 4.1 Polynomial Functions and Their Graphs Chapter 4. Polynomial and Rational Functions 4.1 Polynomial Functions and Their Graphs A polynomial function of degree n is a function of the form P = a n n + a n 1 n 1 + + a 2 2 + a 1 + a 0 Where a s

More information

Odd induced subgraphs in graphs of maximum degree three

Odd induced subgraphs in graphs of maximum degree three Odd induced subgraphs in graphs of maximum degree three David M. Berman, Hong Wang, and Larry Wargo Department of Mathematics University of New Orleans New Orleans, Louisiana, USA 70148 Abstract A long-standing

More information

Clique coloring B 1 -EPG graphs

Clique coloring B 1 -EPG graphs Clique coloring B 1 -EPG graphs Flavia Bonomo a,c, María Pía Mazzoleni b,c, and Maya Stein d a Departamento de Computación, FCEN-UBA, Buenos Aires, Argentina. b Departamento de Matemática, FCE-UNLP, La

More information

Fairness in Routing and Load Balancing

Fairness in Routing and Load Balancing Fairness in Routing and Load Balancing Jon Kleinberg Yuval Rabani Éva Tardos Abstract We consider the issue of network routing subject to explicit fairness conditions. The optimization of fairness criteria

More information

11 Ideals. 11.1 Revisiting Z

11 Ideals. 11.1 Revisiting Z 11 Ideals The presentation here is somewhat different than the text. In particular, the sections do not match up. We have seen issues with the failure of unique factorization already, e.g., Z[ 5] = O Q(

More information

SOLUTIONS TO EXERCISES FOR. MATHEMATICS 205A Part 3. Spaces with special properties

SOLUTIONS TO EXERCISES FOR. MATHEMATICS 205A Part 3. Spaces with special properties SOLUTIONS TO EXERCISES FOR MATHEMATICS 205A Part 3 Fall 2008 III. Spaces with special properties III.1 : Compact spaces I Problems from Munkres, 26, pp. 170 172 3. Show that a finite union of compact subspaces

More information

Ramsey numbers for bipartite graphs with small bandwidth

Ramsey numbers for bipartite graphs with small bandwidth Ramsey numbers for bipartite graphs with small bandwidth Guilherme O. Mota 1,, Gábor N. Sárközy 2,, Mathias Schacht 3,, and Anusch Taraz 4, 1 Instituto de Matemática e Estatística, Universidade de São

More information

SHARP BOUNDS FOR THE SUM OF THE SQUARES OF THE DEGREES OF A GRAPH

SHARP BOUNDS FOR THE SUM OF THE SQUARES OF THE DEGREES OF A GRAPH 31 Kragujevac J. Math. 25 (2003) 31 49. SHARP BOUNDS FOR THE SUM OF THE SQUARES OF THE DEGREES OF A GRAPH Kinkar Ch. Das Department of Mathematics, Indian Institute of Technology, Kharagpur 721302, W.B.,

More information

CONTINUED FRACTIONS AND FACTORING. Niels Lauritzen

CONTINUED FRACTIONS AND FACTORING. Niels Lauritzen CONTINUED FRACTIONS AND FACTORING Niels Lauritzen ii NIELS LAURITZEN DEPARTMENT OF MATHEMATICAL SCIENCES UNIVERSITY OF AARHUS, DENMARK EMAIL: niels@imf.au.dk URL: http://home.imf.au.dk/niels/ Contents

More information

Notes 11: List Decoding Folded Reed-Solomon Codes

Notes 11: List Decoding Folded Reed-Solomon Codes Introduction to Coding Theory CMU: Spring 2010 Notes 11: List Decoding Folded Reed-Solomon Codes April 2010 Lecturer: Venkatesan Guruswami Scribe: Venkatesan Guruswami At the end of the previous notes,

More information

1. Prove that the empty set is a subset of every set.

1. Prove that the empty set is a subset of every set. 1. Prove that the empty set is a subset of every set. Basic Topology Written by Men-Gen Tsai email: b89902089@ntu.edu.tw Proof: For any element x of the empty set, x is also an element of every set since

More information

WRITING PROOFS. Christopher Heil Georgia Institute of Technology

WRITING PROOFS. Christopher Heil Georgia Institute of Technology WRITING PROOFS Christopher Heil Georgia Institute of Technology A theorem is just a statement of fact A proof of the theorem is a logical explanation of why the theorem is true Many theorems have this

More information