De part en retraite de Pierre

Size: px
Start display at page:

Download "De part en retraite de Pierre"

Transcription

1 Introduction Combinatorics Generating Series Oracle Conclusion De part en retraite de Pierre Villetaneuse, fe vrier / 41 De part en retraite de Pierre

2 Introduction Combinatorics Generating Series Oracle Conclusion My only paper with Pierre Pierre Nicode me,, and Philippe Flajolet Motif statistics Theoretical Computer Science 287 (2002), no. 2, / 41 De part en retraite de Pierre

3 Introduction Combinatorics Generating Series Oracle Conclusion My only paper with Pierre Pierre Nicode me,, and Philippe Flajolet Motif statistics Theoretical Computer Science 287 (2002), no. 2, will be mentioned by Julien this afternoon. 2 / 41 De part en retraite de Pierre

4 Newton Iteration in Computer Algebra and Combinatorics Inria AriC Project, LIP ENS Lyon Joint work with Carine Pivoteau and Michèle Soria, Journal of Combinatorial Theory, Series A 119 (2012), Villetaneuse, Pierre s retirement, Feb / 41

5 I Introduction 4 / 41

6 Motivation: Random Generation Random generation of large objects = simulation in the discrete world. It helps evaluate the order of magnitude of quantities of interest; differentiate exceptional values from statistically expected ones; compare models; test software. 5 / 41

7 Framework: Constructible Species A small set of species 1, Z,, +, Seq, Set, Cyc, cardinality constraints that are finite unions of intervals, used recursively. Examples: Regular languages Unambiguous context-free languages Trees (B = Z + Z B 2, T = Z Set(T )) Mappings,... 6 / 41

8 Framework: Constructible Species A small set of species 1, Z,, +, Seq, Set, Cyc, cardinality constraints that are finite unions of intervals, used recursively (when it makes sense). Examples: Regular languages Unambiguous context-free languages Trees (B = Z + Z B 2, T = Z Set(T )) Mappings,... 6 / 41

9 Framework: Constructible Species A small set of species 1, Z,, +, Seq, Set, Cyc, cardinality constraints that are finite unions of intervals, used recursively (when it makes sense). Examples: Regular languages Unambiguous context-free languages Trees (B = Z + Z B 2, T = Z Set(T )) Mappings,... Two related problems: 1 Enumeration: number of objects of size n for n = 0, 1, 2, Random generation: all objects of size n with the same proba. Two contexts: labelled/unlabelled. 6 / 41

10 Recursive Method B = Z + Z B 2 DrawBinTree(n) = { If n = 1 return Z Else { U := Uniform([0, 1]); k := 0; S := 0; while (S < U){k := k + 1; S := S + b k b n k 1 /b n ; } return Z DrawBinTree(n k 1) DrawBinTree(k)}} [Nijenhuis and Wilf; Flajolet, Zimmermann, Van Cutsem] 7 / 41

11 Recursive Method B = Z + Z B 2 DrawBinTree(n) = { If n = 1 return Z Else { U := Uniform([0, 1]); k := 0; S := 0; while (S < U){k := k + 1; S := S + b k b n k 1 /b n ; } return Z DrawBinTree(n k 1) DrawBinTree(k)}} Generalizes to all constructible species. Requires b 0,..., b n. [Nijenhuis and Wilf; Flajolet, Zimmermann, Van Cutsem] 7 / 41

12 Boltzmann Samplers Principle (Duchon, Flajolet, Louchard, Schaeffer 2004) Generate each t T with probability x t /T (x), where: x > 0 fixed; T (z) := t T z t = generating series of T ; t = size. Same size, same probability Expected size xt (x)/t (x) increases with x. Complexity linear in t when the values T (x) are available. 8 / 41

13 Boltzmann Samplers Principle (Duchon, Flajolet, Louchard, Schaeffer 2004) Generate each t T with probability x t /T (x), where: x > 0 fixed; T (z) := t T z t = generating series of T ; t = size. Singleton Easy. Same size, same probability Expected size xt (x)/t (x) increases with x. Complexity linear in t when the values T (x) are available. 8 / 41

14 Boltzmann Samplers Principle (Duchon, Flajolet, Louchard, Schaeffer 2004) Generate each t T with probability x t /T (x), where: x > 0 fixed; T (z) := t T z t = generating series of T ; t = size. Singleton Easy. Same size, same probability Expected size xt (x)/t (x) increases with x. Cartesian Product C = A B Generate a A; b B; Return (a, b). Proof. C(x) = (a,b) x a + b = A(x)B(x); x a + b C(x) = x a A(x) B(x). Complexity linear in t when the values T (x) are available. x b 8 / 41

15 Boltzmann Samplers Principle (Duchon, Flajolet, Louchard, Schaeffer 2004) Generate each t T with probability x t /T (x), where: x > 0 fixed; T (z) := t T z t = generating series of T ; t = size. Singleton Easy. Same size, same probability Expected size xt (x)/t (x) increases with x. Cartesian Product C = A B Generate a A; b B; Return (a, b). Disjoint Union C = A B Proof. Draw b = Bernoulli(A(x)/C(x)); If b = 1 then generate a A else generate b B. x a C(x) = x a A(x) A(x) C(x). Complexity linear in t when the values T (x) are available. 8 / 41

16 Boltzmann Samplers Principle (Duchon, Flajolet, Louchard, Schaeffer 2004) Generate each t T with probability x t /T (x), where: x > 0 fixed; T (z) := t T z t = generating series of T ; t = size. Singleton Easy. Same size, same probability Expected size xt (x)/t (x) increases with x. Cartesian Product C = A B Generate a A; b B; Return (a, b). Disjoint Union C = A B Draw b = Bernoulli(A(x)/C(x)); If b = 1 then generate a A else generate b B. Use recursively (e.g., binary trees B = Z Z B B) Also: sets, cycles,... ; Complexity linear in t when the values T (x) are available. 8 / 41

17 Boltzmann Samplers Principle (Duchon, Flajolet, Louchard, Schaeffer 2004) Generate each t T with probability x t /T (x)/ t!, where: x > 0 fixed; T (z) := t T z t / t! = generating series of T ; t = size. Singleton Easy. Same size, same probability Expected size xt (x)/t (x) increases with x. Cartesian Product C = A B Generate a A; b B; Return (a, b). Disjoint Union C = A B Draw b = Bernoulli(A(x)/C(x)); If b = 1 then generate a A else generate b B. Use recursively (e.g., binary trees B = Z Z B B) Also: sets, cycles,... ; labelled case Complexity linear in t when the values T (x) are available. 8 / 41

18 Oracle: Large Systems that are Interesting to Solve The generating series are given by systems of equations. We need: only one solution; the right one; only numerically. In the worst case, these requirements would make no difference. But these systems inherit structure from combinatorics. 9 / 41

19 Results (1/2): Fast Enumeration Theorem (Enumeration in Quasi-Optimal Complexity) First N coefficients of gfs of constructible species in 1 arithmetic complexity: O(N log N) (both ogf and egf); 2 binary complexity: O(N 2 log 2 N log log N) (ogf); O(N 2 log 3 N log log N) (egf). 10 / 41

20 Results (2/2): Oracle 1 The egfs and the ogfs of constructible species are convergent in the neighborhood of 0; 2 A numerical iteration converging to Y(α) in the labelled case (inside the disk); 3 A numerical iteration converging to the sequence Y(α), Y(α 2 ), Y(α 3 ),... for in the unlabelled case (inside the disk). 11 / 41

21 Examples (I): Polynomial Systems [Darrasse 2008] Random generation following given XML grammars Grammar nb eqs max deg nb sols oracle (s.) FGb (s.) rss PNML xslt relaxng xhtml-basic mathml xhtml xhtml-strict xmlschema SVG >1.5Go docbook >1.5Go OpenDoc / 41

22 Introduction Combinatorics Generating Series Oracle Conclusion Example (II): A Non-Polynomial System Unlabelled rooted trees: 1 1 f (x) = x exp(f (x) + f (x 2 ) + f (x 3 ) + ) / 41

23 II Combinatorics 14 / 41

24 Mini-Introduction to Species Species F: Examples: 0, Z, 1; Set; Seq, Cyc. 15 / 41

25 Mini-Introduction to Species Species F: Examples: 0, Z, 1; Set; Seq, Cyc. Composition F G: 15 / 41

26 Mini-Introduction to Species Species F: Examples: 0, Z, 1; Set; Seq, Cyc. Composition F G: Y = H(Z, Y) 15 / 41

27 Derivative Introduction Combinatorics Generating Series Oracle Conclusion H : 16 / 41

28 Derivative Introduction Combinatorics Generating Series Oracle Conclusion H : (F G) : 16 / 41

29 Derivative Introduction Combinatorics Generating Series Oracle Conclusion H : (F G) : Huet s zipper 16 / 41

30 Derivative Introduction Combinatorics Generating Series Oracle Conclusion H : (F G) : species derivative A + B A + B A B A B + A B Seq(B) Seq(B) B Seq(B) Cyc(B) Seq(B) B Set(B) Set(B) B 16 / 41

31 Derivative Introduction Combinatorics Generating Series Oracle Conclusion H : (F G) : species derivative A + B A + B A B A B + A B Seq(B) Seq(B) B Seq(B) Cyc(B) Seq(B) B Set(B) Set(B) B Example: H(G, S, P) := (S + P, Seq >0 (Z + P), Set >1 (Z + S)). 1 1 H Y = Seq(Z + P) 1 Seq(Z + P) Set >0 (Z + S) 1 16 / 41

32 Joyal s Implicit Species Theorem Theorem If H(0, 0) = 0 and H/ Y(0, 0) is nilpotent, then Y = H(Z, Y) has a unique solution, limit of Y [0] = 0, Y [n+1] = H(Z, Y [n] ) (n 0). Def. A = k B if they coincide up to size k (contact k). Key Lemma If Y [n+1] = k Y [n], then Y [n+p+1] = k+1 Y [n+p], (p = dimension). 17 / 41

33 Joyal s Implicit Species Theorem Theorem If H(0, 0) = 0 and H/ Y(0, 0) is nilpotent, then Y = H(Z, Y) has a unique solution, limit of Y [0] = 0, Y [n+1] = H(Z, Y [n] ) (n 0). Def. A = k B if they coincide up to size k (contact k). Key Lemma If Y [n+1] = k Y [n], then Y [n+p+1] = k+1 Y [n+p], (p = dimension). We prove an iff when no 0 coordinate. 17 / 41

34 Newton Iteration for Binary Trees Y = 1 Z Y 2 18 / 41

35 Newton Iteration for Binary Trees Y = 1 Z Y 2 Y 0 = Y 1 = 2 Y 2 = Y 3 = Y [Décoste, Labelle, Leroux 1982] 18 / 41

36 Newton Iteration for Binary Trees Y = 1 Z Y 2 Y n+1 = Y n Seq(Z Y n Z Y n ) (1 Z Yn 2 \ Y n ). Y 0 = Y 1 = 2 Y 2 = Y 3 = Y [Décoste, Labelle, Leroux 1982] 18 / 41

37 Combinatorial Newton Iteration Theorem (essentially Labelle) For any well-founded system Y = H(Z, Y), if A has contact k with the solution and A H(Z, A), then A + i 0 has contact 2k + 1 with it. ( ) H i (Z, A) (H(Z, A) A) Y A+ 19 / 41

38 Combinatorial Newton Iteration Theorem (essentially Labelle) For any well-founded system Y = H(Z, Y), if A has contact k with the solution and A H(Z, A), then A + i 0 has contact 2k + 1 with it. ( ) H i (Z, A) (H(Z, A) A) Y A+ Generation by increasing Strahler numbers. 19 / 41

39 Newton Iteration for Series-Parallel Graphs 0 0 ( ) ( ) S [n+1] S [n] P [n+1] = P [n] + ( ) 0 Seq 2 (Z + P [n] k ( ) ) 1 Set k 0 >0 (Z + S [n] Seq >1 (Z + P [n] ) S [n] ) 0 Set >0 (Z + S [n] ) P [n]. 20 / 41

40 Linear Species and Ordered Structures The underlying sets are ordered F: min 21 / 41

41 Linear Species and Ordered Structures The underlying sets are ordered Examples F: increasing trees: Y = Z + F(Y); min 21 / 41

42 Linear Species and Ordered Structures The underlying sets are ordered Examples F: increasing trees: Y = Z + F(Y); min alternating permutations (odd/even): A e = A e A o, A o = Z + A 2 o; 21 / 41

43 Linear Species and Ordered Structures The underlying sets are ordered Examples F: increasing trees: Y = Z + F(Y); min alternating permutations (odd/even): A e = A e A o, A o = Z + A 2 o; cycles: Cyc(A) = Seq(A)A ; 21 / 41

44 Linear Species and Ordered Structures The underlying sets are ordered Examples F: increasing trees: Y = Z + F(Y); min alternating permutations (odd/even): A e = A e A o, A o = Z + A 2 o; cycles: Cyc(A) = Seq(A)A ; sets: Set(A) = 1 + Set(A)A. 21 / 41

45 Linear Species and Ordered Structures F: min Examples increasing trees: Y = Z + F(Y); alternating permutations (odd/even): A e = A e A o, A o = Z + A 2 o; cycles: Cyc(A) = Seq(A)A ; sets: Set(A) = 1 + Set(A)A. Theorem (Enumeration in Quasi-Optimal Complexity) First N coefficients of the solution of Y(Z) = H(Z, Y(Z)) + Z 0 G(T, Y(T )) dt with H and G constructible, in O(N log N) operations. 21 / 41

46 III Newton Iteration for Power Series 22 / 41

47 Newton Did It in 1671! 23 / 41

48 Generating Series: a Simple Dictionary ogf := t T z t, egf := t T z t t!. Language and Gen. Fcns (labelled) A B A B A(z) + B(z) A(z) B(z) 1 Seq(C) 1 C(z) A A (z) 1 Cyc(C) log 1 C(z) Set(C) exp(c(z)) Consequence: Combinatorial Newton iteration Newton iteration for GFs 24 / 41

49 Generating Series: a Simple Dictionary ogf := t T z t, egf := t T z t t!. Language and Gen. Fcns (labelled) (unlabelled) A B A(z) + B(z) A(z) + B(z) A B A(z) B(z) A(z) B(z) Seq(C) 1 1 C(z) 1 1 C(z) A A (z) 1 φ(k) 1 Cyc(C) log 1 C(z) k 1 k log 1 C(z k ) Set(C) exp(c(z)) exp( C(z i )/i) Consequence: Combinatorial Newton iteration Newton iteration for GFs 24 / 41

50 Newton Iteration for Power Series has Good Complexity To solve φ(y) = 0, iterate y [n+1] = y [n] u [n+1], φ (y [n] )u [n+1] = φ(y [n] ). Quadratic convergence Divide-and-Conquer 25 / 41

51 Newton Iteration for Power Series has Good Complexity To solve φ(y) = 0, iterate y [n+1] = y [n] u [n+1], φ (y [n] )u [n+1] = φ(y [n] ). Quadratic convergence Divide-and-Conquer To solve at precision N 1 Solve at precision N/2; 2 Compute φ and φ there; 3 Solve for u [n+1]. Cost(y [n] ) = constant Cost(last step). 25 / 41

52 Newton Iteration for Power Series has Good Complexity To solve φ(y) = 0, iterate y [n+1] = y [n] u [n+1], φ (y [n] )u [n+1] = φ(y [n] ). Quadratic convergence Divide-and-Conquer To solve at precision N 1 Solve at precision N/2; 2 Compute φ and φ there; 3 Solve for u [n+1]. Cost(y [n] ) = constant Cost(last step). Useful in conjunction with fast multiplication (quasi-linear): power series at order N: O(N log N) ops on the coefficients; N-bit integers: O(N log N log log N) bit ops. 25 / 41

53 Example: Series-Parallel Graphs G = S + P, S = Seq >0 (Z + P), P = Set >1 (Z + S). 1 1 H Y = Seq 2 (Z + P) Set >0 (Z + S) 26 / 41

54 Example: Series-Parallel Graphs (labelled case) G = S + P, S = Seq >0 (Z + P), P = Set >1 (Z + S). 1 1 H Y = Seq 2 (Z + P) Set >0 (Z + S) translates into G = S + P, S = (1 z P) 1 1, P = e z+s 1 z S H Y = 0 0 (1 z P) 2 0 e z+s / 41

55 Example: Series-Parallel Graphs (labelled case) translates into G = S + P, S = (1 z P) 1 1, P = e z+s 1 z S. Newton iteration: Y [n] := ( G [n] H Y = 0 0 (1 z P) 2 0 e z+s 1 0 S [n] P [n] ), ( Y [n+1] = Y [n] + Id H ) 1 ( Y (Y[n] ) H(Y [n] ) Y [n]). 26 / 41

56 Example: Series-Parallel Graphs (labelled case) translates into G = S + P, S = (1 z P) 1 1, P = e z+s 1 z S. Newton iteration: Y [n] := ( G [n] H Y = 0 0 (1 z P) 2 0 e z+s 1 0 S [n] P [n] ), ( Y [n+1] = Y [n] + Id H ) 1 ( Y (Y[n] ) H(Y [n] ) Y [n]) mod z 2n / 41

57 Example: Series-Parallel Graphs (labelled case) translates into G = S + P, S = (1 z P) 1 1, P = e z+s 1 z S. Newton iteration: Y [n] := ( G [n] H Y = 0 0 (1 z P) 2 0 e z+s 1 0 S [n] P [n] ), ( Y [n+1] = Y [n] + Id H ) 1 ( Y (Y[n] ) H(Y [n] ) Y [n]) mod z 2n+1. Wanted: efficient matrix inverse, efficient exp. 26 / 41

58 Example: Unlabelled Rooted Trees 1 Combinatorial equation: Y = Z Set(Y) =: H(Z, Y); 27 / 41

59 Example: Unlabelled Rooted Trees 1 Combinatorial equation: Y = Z Set(Y) =: H(Z, Y); 2 Combinatorial Newton iteration: Y [n+1] = Y [n] + Seq(H(Y [n] )) (H(Y [n] ) \ Y [n] ) 27 / 41

60 Example: Unlabelled Rooted Trees 1 Combinatorial equation: Y = Z Set(Y) =: H(Z, Y); 2 Combinatorial Newton iteration: Y [n+1] = Y [n] + Seq(H(Y [n] )) (H(Y [n] ) \ Y [n] ) 3 OGF equation: Ỹ (z) = H(z, Ỹ (z)) Ỹ (z) = z exp(ỹ (z) + 1 2Ỹ (z2 ) + 1 3Ỹ (z3 ) + ) 27 / 41

61 Example: Unlabelled Rooted Trees 1 Combinatorial equation: Y = Z Set(Y) =: H(Z, Y); 2 Combinatorial Newton iteration: Y [n+1] = Y [n] + Seq(H(Y [n] )) (H(Y [n] ) \ Y [n] ) 3 OGF equation: Ỹ (z) = H(z, Ỹ (z)) Ỹ (z) = z exp(ỹ (z) + 1 2Ỹ (z2 ) + 1 3Ỹ (z3 ) + ) 4 Newton for OGF: Ỹ [n+1] = Ỹ [n] + H(z, Ỹ [n] ) Ỹ [n] 1 H(z, Ỹ [n] ) 0, z + z 2 + z 3 + z 4 +, z + z 2 + 2z 3 + 4z 4 + 9z z / 41

62 Newton Iteration for Inverses φ(y) = a 1/y 1/φ (y) = y 2 y [n+1] = y [n] y [n] (ay [n] 1). Works for: 1 Numerical inversion; 2 Reciprocal of power series; 3 Inversion of matrices. Cost: a small number of multiplications Applications: Seq (I H Y ) 1 [Schulz 1933; Cook 1966; Sieveking 1972; Kung 1974] 28 / 41

63 Inverses for Series-Parallel Graphs G = S + P, S = (1 z P) 1 1, P = e z+s 1 z S H Y = 0 0 (1 z P) 2 0 e z+s 1 0 Newton iteration: ( ) U [n+1] = U [n] + U [n] H Y (Y[n] ) U [n] + Id U [n] mod z 2n, ( Y [n+1] = Y [n] + U [n+1] H(Y [n] ) Y [n]) mod z 2n+1. Can be lifted combinatorially. Also a numerical iteration! 29 / 41

64 Inverses for Series-Parallel Graphs G = S + P, S = (1 z P) 1 1, P = e z+s 1 z S H Y = 0 0 (1 z P) 2 0 e z+s 1 0 Newton iteration: ( ) U [n+1] = U [n] + U [n] H Y (Y[n] ) U [n] + Id U [n] mod z 2n, ( Y [n+1] = Y [n] + U [n+1] H(Y [n] ) Y [n]) mod z 2n+1. Can be lifted combinatorially. Also a numerical iteration! Wanted: efficient exp. 29 / 41

65 From the Inverse to the Exponential 1 Logarithm of power series: log f = (f /f ) (recall Cyc(A) = A Seq(A)) 2 exponential of power series: φ(y) = a log y. e [n+1] = e [n] a log e[n] + 1/e [n] mod z 2n+1, ) = e [n] + e (a [n] e [n] /e [n] mod z 2n+1. And 1/e [n] is computed by Newton iteration too! [Brent 1975; Hanrot-Zimmermann 2002] 30 / 41

66 Application: Power Sums F = t N + a N 1 t N a 0 S i = F (α)=0 α i, i = 0,..., N. 31 / 41

67 Application: Power Sums F = t N + a N 1 t N a 0 S i = F (α)=0 α i, i = 0,..., N. Fast conversion using the generating series: rev(f ) rev(f ) = ( S i+1 t i rev(f ) = exp ) S i i ti. i 0 31 / 41

68 Application: Power Sums F = t N + a N 1 t N a 0 S i = F (α)=0 α i, i = 0,..., N. Fast conversion using the generating series: rev(f ) rev(f ) = ( S i+1 t i rev(f ) = exp ) S i i ti. i 0 Application: composed product and sums (F, G) (t αβ) or F (α)=0,g(β)=0 F (α)=0,g(β)=0 (t (α + β)). 31 / 41

69 Application: Power Sums F = t N + a N 1 t N a 0 S i = F (α)=0 α i, i = 0,..., N. Fast conversion using the generating series: rev(f ) rev(f ) = ( S i+1 t i rev(f ) = exp ) S i i ti. i 0 Application: composed product and sums (F, G) (t αβ) or F (α)=0,g(β)=0 F (α)=0,g(β)=0 (t (α + β)). Easy in Newton representation: α s β s = (αβ) s and (α + β) s ( ) ( α t s s ) β = t s s t s. s! s! s! [Schönhage 1982; Bostan, Flajolet, Salvy, Schost 2006] 31 / 41

70 Timings Introduction Combinatorics Generating Series Oracle Conclusion Applications (crypto): over finite fields, degree > expected Bivariate resultant computation 60 Our algorithm Timings in seconds vs. output degree N, over F p, 26 bits prime p 32 / 41

71 Conclusion for Series-Parallel Graphs G = S + P, S = Seq >0 (Z + P), P = Set >1 (Z + S) compiles into the Newton iteration: i [n+1] = i [n] i [n] (e [n] i [n] 1), v [n+1] = v [n] v [n] ((1 z P [n] )v [n] 1), U [n+1] = U [n] + U [n] 0 0 v [n+1]2 U [n] + Id U [n], e [n+1] = e [n] e [n] ( 1 + d dz S [n] ( d dz e[n] )i [n]), G [n+1] S [n+1] P [n+1] = G [n] S [n] P [n] 0 e [n+1] 1 0 S [n] + P [n] G [n] + U [n+1] v [n+1] S [n] mod z 2n+1. e [n+1] P [n] Computation reduced to products and linear ops. 33 / 41

72 Linear Differential Equations of Arbitrary Order Given a linear differential equation with power series coefficients, a r (t)y (r) (t) + + a 0 (t)y(t) = 0, compute the first N terms of a basis of power series solutions. 34 / 41

73 Linear Differential Equations of Arbitrary Order Given a linear differential equation with power series coefficients, a r (t)y (r) (t) + + a 0 (t)y(t) = 0, compute the first N terms of a basis of power series solutions. Algorithm 1 Convert into a system Φ : Y Y A(t)Y (DΦ = Φ); 2 DΦ Y (U) = Φ(Y ) rewrites U AU = Y AY ; 3 Variation of constants: U = Y Y 1 (Y AY ); 4 Y 1 by Newton iteration too. Special case: recover good exponential. [Bostan, Chyzak, Ollivier, Salvy, Schost, Sedoglavic 2007] 34 / 41

74 Linear Differential Equations of Arbitrary Order Given a linear differential equation with power series coefficients, a r (t)y (r) (t) + + a 0 (t)y(t) = 0, compute the first N terms of a basis of power series solutions. Algorithm 1 Convert into a system Φ : Y Y A(t)Y (DΦ = Φ); 2 DΦ Y (U) = Φ(Y ) rewrites U AU = Y AY ; 3 Variation of constants: U = Y Y 1 (Y AY ); 4 Y 1 by Newton iteration too. Special case: recover good exponential. Lifts to integral equations for linear species. [Bostan, Chyzak, Ollivier, Salvy, Schost, Sedoglavic 2007] 34 / 41

75 Timings Introduction Combinatorics Generating Series Oracle Conclusion "MatMul.dat" "Newton.dat" time (in seconds) time (in seconds) precision order precision order 9 10 Polynomial matrix multiplication vs. solving Y = AY. 35 / 41

76 Non-Linear Differential Equations Example from cryptography: φ : y (x 3 + Ax + B)y 2 (y 3 + Ãy + B). 36 / 41

77 Non-Linear Differential Equations Example from cryptography: φ : y (x 3 + Ax + B)y 2 (y 3 + Ãy + B). Differential: Dφ y : u 2(x 3 + Ax + B)y u (3y 2 + Ã)u. Solve the linear differential equation at each iteration. Dφ y u = φ(y) Again, quasi-linear complexity. [Bostan, Morain, Salvy, Schost 2008] 36 / 41

78 IV Oracle 37 / 41

79 Exponential Generating Series Combinatorial Specification Combinatorial Newton iteration for Y Newton iteration for the gf Y (z) ((y 0,..., y N ) fast) Numerical Newton iteration starting from 0 converges to the value of Y (x). 38 / 41

80 Exponential Generating Series Combinatorial Specification Combinatorial Newton iteration for Y Newton iteration for the gf Y (z) ((y 0,..., y N ) fast) Numerical Newton iteration starting from 0 converges to the value of Y (x). 38 / 41

81 Ordinary Generating Function on an Example 1 Combinatorial Equation: Y = Z Set(Y) =: H(Z, Y); 39 / 41

82 Ordinary Generating Function on an Example 1 Combinatorial Equation: Y = Z Set(Y) =: H(Z, Y); 2 Combinatorial Newton iteration: Y [n+1] = Y [n] + Seq(H(Y [n] )) (H(Y [n] ) \ Y [n] ) 39 / 41

83 Ordinary Generating Function on an Example 1 Combinatorial Equation: Y = Z Set(Y) =: H(Z, Y); 2 Combinatorial Newton iteration: Y [n+1] = Y [n] + Seq(H(Y [n] )) (H(Y [n] ) \ Y [n] ) 3 OGF equation: Ỹ (z) = H(z, Ỹ (z)) = z exp(ỹ (z) + 1 2Ỹ (z2 ) + 1 3Ỹ (z3 ) + ) 39 / 41

84 Ordinary Generating Function on an Example 1 Combinatorial Equation: Y = Z Set(Y) =: H(Z, Y); 2 Combinatorial Newton iteration: Y [n+1] = Y [n] + Seq(H(Y [n] )) (H(Y [n] ) \ Y [n] ) 3 OGF equation: Ỹ (z) = H(z, Ỹ (z)) = z exp(ỹ (z) + 1 2Ỹ (z2 ) + 1 3Ỹ (z3 ) + ) 4 Newton for OGF: Ỹ [n+1] = Ỹ [n] + H(z,Ỹ [n] ) Ỹ [n] 1 H(z,Ỹ [n] ) 39 / 41

85 Ordinary Generating Function on an Example 1 Combinatorial Equation: Y = Z Set(Y) =: H(Z, Y); 2 Combinatorial Newton iteration: Y [n+1] = Y [n] + Seq(H(Y [n] )) (H(Y [n] ) \ Y [n] ) 3 OGF equation: Ỹ (z) = H(z, Ỹ (z)) = z exp(ỹ (z) + 1 2Ỹ (z2 ) + 1 3Ỹ (z3 ) + ) 4 Newton for OGF: Ỹ [n+1] = Ỹ [n] + H(z,Ỹ [n] ) Ỹ [n] 1 H(z,Ỹ [n] ) 5 Numerical iteration: n Ỹ [n] (0.3) Ỹ [n] (0.3 2 ) Ỹ [n] (0.3 3 ) e e e e e e e e e e-1 39 / 41

86 V Conclusion 40 / 41

87 Conclusion Introduction Combinatorics Generating Series Oracle Conclusion Summary: Newton iteration has good complexity; Oracle: numerical Newton iteration that gives the values of... power series that are the gfs of... combinatorial iterates. 41 / 41

88 Conclusion Introduction Combinatorics Generating Series Oracle Conclusion Summary: Newton iteration has good complexity; Oracle: numerical Newton iteration that gives the values of... power series that are the gfs of... combinatorial iterates. Read the paper for: Well-defined systems (with 1); Majorant species; PowerSet (it is not a species). 41 / 41

89 Conclusion Introduction Combinatorics Generating Series Oracle Conclusion Summary: Newton iteration has good complexity; Oracle: numerical Newton iteration that gives the values of... power series that are the gfs of... combinatorial iterates. Read the paper for: Well-defined systems (with 1); Majorant species; PowerSet (it is not a species). THE END 41 / 41

Algorithms for Combinatorial Systems: Between Analytic Combinatorics and Species Theory.

Algorithms for Combinatorial Systems: Between Analytic Combinatorics and Species Theory. Algorithms for Combinatorial Systems: Between Analytic Combinatorics and Species Theory. Carine Pivoteau - LIGM - december 2011 joint work with Bruno Salvy and Michèle Soria Algorithms for Combinatorial

More information

On (Effective) Analytic Combinatorics

On (Effective) Analytic Combinatorics On (Effective) Analytic Combinatorics Bruno Salvy Inria & ENS de Lyon Séminaire Algorithmes Dec. 2017 Combinatorics, Randomness and Analysis From simple local rules, a global structure arises. A quest

More information

Fast Computation of Power Series Solutions of Systems of Differential Equations

Fast Computation of Power Series Solutions of Systems of Differential Equations Fast Computation of Power Series Solutions of Systems of Differential Equations Bruno.Salvy@inria.fr Algorithms Project, Inria Joint work with A. Bostan, F. Chyzak, F. Ollivier, É. Schost, A. Sedoglavic

More information

Notes by Zvi Rosen. Thanks to Alyssa Palfreyman for supplements.

Notes by Zvi Rosen. Thanks to Alyssa Palfreyman for supplements. Lecture: Hélène Barcelo Analytic Combinatorics ECCO 202, Bogotá Notes by Zvi Rosen. Thanks to Alyssa Palfreyman for supplements.. Tuesday, June 2, 202 Combinatorics is the study of finite structures that

More information

Boltzmann Sampling and Random Generation of Combinatorial Structures

Boltzmann Sampling and Random Generation of Combinatorial Structures Boltzmann Sampling and Random Generation of Combinatorial Structures Philippe Flajolet Based on joint work with Philippe Duchon, Éric Fusy, Guy Louchard, Carine Pivoteau, Gilles Schaeffer GASCOM 06, Dijon,

More information

Boltzmann Sampling and Simulation

Boltzmann Sampling and Simulation Boltzmann Sampling and Simulation Michèle Soria LIP6 UPMC CONFERENCE IN MEMORY OF PHILIPPE FLAJOLET Paris Jussieu, December 15, 2011 1 / 18 Michèle Soria Boltzmann Sampling and Simulation 1/18 Random Sampling

More information

Boltzmann sampling of ordered structures

Boltzmann sampling of ordered structures Boltzmann sampling of ordered structures Olivier Roussel, Michèle Soria To cite this version: Olivier Roussel, Michèle Soria. Boltzmann sampling of ordered structures. LAGOS 29-5th Latin-American Algorithms,

More information

Combinatorial Enumeration. Jason Z. Gao Carleton University, Ottawa, Canada

Combinatorial Enumeration. Jason Z. Gao Carleton University, Ottawa, Canada Combinatorial Enumeration Jason Z. Gao Carleton University, Ottawa, Canada Counting Combinatorial Structures We are interested in counting combinatorial (discrete) structures of a given size. For example,

More information

5. Analytic Combinatorics

5. Analytic Combinatorics ANALYTIC COMBINATORICS P A R T O N E 5. Analytic Combinatorics http://aofa.cs.princeton.edu Analytic combinatorics is a calculus for the quantitative study of large combinatorial structures. Features:

More information

Diagonals and Walks. Alin Bostan 1 Louis Dumont 1 Bruno Salvy 2. November 4, Introduction Diagonals Walks. 1 INRIA, SpecFun.

Diagonals and Walks. Alin Bostan 1 Louis Dumont 1 Bruno Salvy 2. November 4, Introduction Diagonals Walks. 1 INRIA, SpecFun. and Alin Bostan 1 Louis Dumont 1 Bruno Salvy 2 1 INRIA, SpecFun 2 INRIA, AriC November 4, 2014 1/16 Louis Dumont and 2/16 Louis Dumont and Motivations In combinatorics: Lattice walks w i,j : number of

More information

A new dichotomic algorithm for the uniform random generation of words in regular languages

A new dichotomic algorithm for the uniform random generation of words in regular languages A new dichotomic algorithm for the uniform random generation of words in regular languages Johan Oudinet 1,2, Alain Denise 1,2,3, and Marie-Claude Gaudel 1,2 1 Univ Paris-Sud, Laboratoire LRI, UMR8623,

More information

Pointed versus Singular Boltzmann Samplers

Pointed versus Singular Boltzmann Samplers Pointed versus Singular Boltzmann Samplers Olivier Bodini, Antoine Genitrini and Nicolas Rolin { Olivier Bodini; Nicolas Rolin}@ lipn univ-paris13 fr and Antoine Genitrini@ lip6 fr May 21, 2014 For the

More information

DISCRETE AND ALGEBRAIC STRUCTURES

DISCRETE AND ALGEBRAIC STRUCTURES DISCRETE AND ALGEBRAIC STRUCTURES Master Study Mathematics MAT40 Winter Semester 015/16 (Due to organisational reasons register for the course at TU and KFU) Edited by Mihyun Kang TU Graz Contents I Lectures

More information

Unlabelled Structures: Restricted Constructions

Unlabelled Structures: Restricted Constructions Gao & Šana, Combinatorial Enumeration Notes 5 Unlabelled Structures: Restricted Constructions Let SEQ k (B denote the set of sequences of exactly k elements from B, and SEQ k (B denote the set of sequences

More information

Boltzmann Samplers for the Random Generation of Combinatorial Structures

Boltzmann Samplers for the Random Generation of Combinatorial Structures Combinatorics, Probability and Computing (2004) 13, 577 625. c 2004 Cambridge University Press DOI: 10.1017/S0963548304006315 Printed in the United Kingdom Boltzmann Samplers for the Random Generation

More information

LECTURE Questions 1

LECTURE Questions 1 Contents 1 Questions 1 2 Reality 1 2.1 Implementing a distribution generator.............................. 1 2.2 Evaluating the generating function from the series expression................ 2 2.3 Finding

More information

Philippe Duchon. LaBRI, INRIA/Université de Bordeaux 351, cours de la Libération Talence cedex, FRANCE

Philippe Duchon. LaBRI, INRIA/Université de Bordeaux 351, cours de la Libération Talence cedex, FRANCE Proceedings of the 2011 Winter Simulation Conference S. Jain, R. R. Creasey, J. Himmelspach, K. P. White, and M. Fu, eds. RANDOM GENERATION OF COMBINATORIAL STRUCTURES: BOLTZMANN SAMPLERS AND BEYOND Philippe

More information

Fast computation of power series solutions of systems of differential equations

Fast computation of power series solutions of systems of differential equations Fast computation of power series solutions of systems of differential equations A. Bostan F. Chyzak F. Ollivier B. Salvy É. Schost A. Sedoglavic Abstract We propose algorithms for the computation of the

More information

Mapping the Discrete Logarithm: Talk 2

Mapping the Discrete Logarithm: Talk 2 Mapping the Discrete Logarithm: Talk 2 Joshua Holden Joint work with Daniel Cloutier, Nathan Lindle (Senior Theses), Max Brugger, Christina Frederick, Andrew Hoffman, and Marcus Mace (RHIT REU) Rose-Hulman

More information

Generating Functions

Generating Functions Semester 1, 2004 Generating functions Another means of organising enumeration. Two examples we have seen already. Example 1. Binomial coefficients. Let X = {1, 2,..., n} c k = # k-element subsets of X

More information

Analytic Combinatorics: A Primer

Analytic Combinatorics: A Primer Analytic Combinatorics: A Primer Conrado Martínez Univ. Politècnica de Catalunya, Spain April 2011 What is this course about? Analytic Combinatorics seeks to develop mathematical techniques that help us

More information

ADDITIONAL NOTES. 3 Surjections 6

ADDITIONAL NOTES. 3 Surjections 6 Contents Labelling Atoms. Well-labelling............................................. The Exponential Generating Function egf............................3 Examples................................................

More information

A LINEAR APPROXIMATE-SIZE RANDOM SAMPLER FOR LABELLED PLANAR GRAPHS

A LINEAR APPROXIMATE-SIZE RANDOM SAMPLER FOR LABELLED PLANAR GRAPHS A LINEAR APPROXIMATE-SIZE RANDOM SAMPLER FOR LABELLED PLANAR GRAPHS ÉRIC FUSY Abstract. This article introduces a new algorithm for the random generation of labelled planar graphs. Its principles rely

More information

COUNTING WITH AB-BA=1

COUNTING WITH AB-BA=1 COUNTING WITH AB-BA=1 PHILIPPE FLAJOLET, ROCQUENCOURT & PAWEL BLASIAK, KRAKÓW COMBINATORIAL MODELS OF ANNIHILATION-CREATION ; IN PREP. (2010) 1 A. = + + B. = 2 Annihilation and Creation A = Annihilate

More information

An Introduction to Combinatorial Species

An Introduction to Combinatorial Species An Introduction to Combinatorial Species Ira M. Gessel Department of Mathematics Brandeis University Summer School on Algebraic Combinatorics Korea Institute for Advanced Study Seoul, Korea June 14, 2016

More information

BOLTZMANN SAMPLING OF UNLABELLED STRUCTURES

BOLTZMANN SAMPLING OF UNLABELLED STRUCTURES Extended abstract submitted to ICALP 06. BOLTZMANN SAMPLING OF UNLABELLED STRUCTURES PHILIPPE FLAJOLET, ÉRIC FUSY, AND CARINE PIVOTEAU Abstract. Boltzmann models from statistical physics combined with

More information

Algorithmic Tools for the Asymptotics of Linear Recurrences

Algorithmic Tools for the Asymptotics of Linear Recurrences Algorithmic Tools for the Asymptotics of Linear Recurrences Bruno Salvy Inria & ENS de Lyon Computer Algebra in Combinatorics, Schrödinger Institute, Vienna, Nov. 2017 Motivation p 0 (n)a n+k + + p k (n)a

More information

Diagonals: Combinatorics, Asymptotics and Computer Algebra

Diagonals: Combinatorics, Asymptotics and Computer Algebra Diagonals: Combinatorics, Asymptotics and Computer Algebra Bruno Salvy Inria & ENS de Lyon Families of Generating Functions (a n ) 7! A(z) := X n 0 a n z n counts the number of objects of size n captures

More information

3. Generating Functions

3. Generating Functions ANALYTIC COMBINATORICS P A R T O N E 3. Generating Functions http://aofa.cs.princeton.edu ANALYTIC COMBINATORICS P A R T O N E 3. Generating Functions OF OGFs Solving recurrences Catalan numbers EGFs Counting

More information

Algorithmic Tools for the Asymptotics of Diagonals

Algorithmic Tools for the Asymptotics of Diagonals Algorithmic Tools for the Asymptotics of Diagonals Bruno Salvy Inria & ENS de Lyon Lattice walks at the Interface of Algebra, Analysis and Combinatorics September 19, 2017 Asymptotics & Univariate Generating

More information

Finite Fields. Mike Reiter

Finite Fields. Mike Reiter 1 Finite Fields Mike Reiter reiter@cs.unc.edu Based on Chapter 4 of: W. Stallings. Cryptography and Network Security, Principles and Practices. 3 rd Edition, 2003. Groups 2 A group G, is a set G of elements

More information

Chapter Generating Functions

Chapter Generating Functions Chapter 8.1.1-8.1.2. Generating Functions Prof. Tesler Math 184A Fall 2017 Prof. Tesler Ch. 8. Generating Functions Math 184A / Fall 2017 1 / 63 Ordinary Generating Functions (OGF) Let a n (n = 0, 1,...)

More information

DISCRETE AND ALGEBRAIC STRUCTURES

DISCRETE AND ALGEBRAIC STRUCTURES DISCRETE AND ALGEBRAIC STRUCTURES Master Study Mathematics MAT.40 Winter Semester 015/016 & 016/17 (Due to organisational reasons register for the course at TU and KFU) Parts I & II Contents I Combinatorics

More information

Uniform random posets

Uniform random posets Uniform random posets Patryk Kozieª Maªgorzata Sulkowska January 6, 2018 Abstract. We propose a simple algorithm generating labelled posets of given size according to the almost uniform distribution. By

More information

correlated to the Washington D.C. Public Schools Learning Standards Algebra II

correlated to the Washington D.C. Public Schools Learning Standards Algebra II correlated to the Washington D.C. Public Schools Learning Standards Algebra II McDougal Littell Algebra 2 2007 correlated to the Washington DC Public Schools Learning Standards Algebra II NUMBER SENSE

More information

Fast Computation of the Nth Term of an Algebraic Series over a Finite Prime Field

Fast Computation of the Nth Term of an Algebraic Series over a Finite Prime Field Fast Computation of the Nth Term of an Algebraic Series over a Finite Prime Field Alin Bostan 1 Gilles Christol 2 Philippe Dumas 1 1 Inria (France) 2 Institut de mathématiques de Jussieu (France) Specfun

More information

Fast algorithms for polynomials and matrices. Alin Bostan. Algorithms Project, INRIA

Fast algorithms for polynomials and matrices. Alin Bostan. Algorithms Project, INRIA Fast algorithms for polynomials and matrices Alin Bostan Algorithms Project, INRIA JNCF 2010 This course Main objects polynomials K[x] rational fractions K(x) power series K[[x]] matrices M r (K) polynomial

More information

1 Locally computable randomized encodings

1 Locally computable randomized encodings CSG399: Gems of Theoretical Computer Science Lectures 3-4 Feb 20-24, 2009 Instructor: Emanuele Viola Scribe: Eric Miles Cryptography in constant depth: II & III Locally computable randomized encodings

More information

Algorithmic Tools for the Asymptotics of Linear Recurrences

Algorithmic Tools for the Asymptotics of Linear Recurrences Algorithmic Tools for the Asymptotics of Linear Recurrences Bruno Salvy Inria & ENS de Lyon aaacuxicbvhlbtraejw1r2beg+aghxhrsgitvjycahkhcc7cskqsibs2vunxez3jpjyznsli+rf4bq7wbfwknz6f8torzenli5wqutvtxvklhcmo+juirl2/cfpwxu3wzt179x8mnx9+cqa2hkbcsgmpm+zacg1tfcjhsllavcbhidt+3+khn8e6yfq+litifvtouqjo0fpz4epelmacmfmvbkzgpnfwes2hw9ekwhw9cujzslxz9ofeb0li7nxz8dxjda8vaossotelowrthlkuxeibjhih/m96gwwtijzhqcixbjtxevdtmnqoksap2qjmhmqmwkxn2cpds0eeymlhrh8a6yr9d6rhyrmlynynyli6da0j/6fnaixep43qvy2geb+oqcvfq7tt0vxy4cixhjbuhbdcecks4+gpgiywnjxyoxtt+yveftkurjby1kzq19wcksgxfx1/m/3sef2o/q5rucybdln2pk1pxjyvctd9lapqmhbugrxfjtf7cdp0g52v0ccyr+d1fuxftt5m4j2f5dvs1wz5qp6r5yqm22shfcc7zeo4+uk+ke/kr/a2yiiyoopbg8h5zcnyqql3bxdu3c8=

More information

Symbolic-Numeric Tools for Multivariate Asymptotics

Symbolic-Numeric Tools for Multivariate Asymptotics Symbolic-Numeric Tools for Multivariate Asymptotics Bruno Salvy Joint work with Stephen Melczer to appear in Proc. ISSAC 2016 FastRelax meeting May 25, 2016 Combinatorics, Randomness and Analysis From

More information

arxiv: v1 [math.co] 12 Oct 2018

arxiv: v1 [math.co] 12 Oct 2018 Uniform random posets Patryk Kozieł Małgorzata Sulkowska arxiv:1810.05446v1 [math.co] 12 Oct 2018 October 15, 2018 Abstract We propose a simple algorithm generating labelled posets of given size according

More information

Calcul formel pour la combinatoire

Calcul formel pour la combinatoire Calcul formel pour la combinatoire Alin Bostan, Bruno Salvy To cite this version: Alin Bostan, Bruno Salvy. Calcul formel pour la combinatoire. Journées ALEA 2012, Mar 2012, Luminy, France.

More information

COMPUTER ARITHMETIC. 13/05/2010 cryptography - math background pp. 1 / 162

COMPUTER ARITHMETIC. 13/05/2010 cryptography - math background pp. 1 / 162 COMPUTER ARITHMETIC 13/05/2010 cryptography - math background pp. 1 / 162 RECALL OF COMPUTER ARITHMETIC computers implement some types of arithmetic for instance, addition, subtratction, multiplication

More information

Lattice paths with catastrophes

Lattice paths with catastrophes Lattice paths with catastrophes Lattice paths with catastrophes SLC 77, Strobl 12.09.2016 Cyril Banderier and Michael Wallner Laboratoire d Informatique de Paris Nord, Université Paris Nord, France Institute

More information

Discrete Math Notes. Contents. William Farmer. April 8, Overview 3

Discrete Math Notes. Contents. William Farmer. April 8, Overview 3 April 8, 2014 Contents 1 Overview 3 2 Principles of Counting 3 2.1 Pigeon-Hole Principle........................ 3 2.2 Permutations and Combinations.................. 3 2.3 Binomial Coefficients.........................

More information

From the Discrete to the Continuous, and Back... Philippe Flajolet INRIA, France

From the Discrete to the Continuous, and Back... Philippe Flajolet INRIA, France From the Discrete to the Continuous, and Back... Philippe Flajolet INRIA, France 1 Discrete structures in... Combinatorial mathematics Computer science: data structures & algorithms Information and communication

More information

Introduction to Arithmetic Geometry Fall 2013 Lecture #24 12/03/2013

Introduction to Arithmetic Geometry Fall 2013 Lecture #24 12/03/2013 18.78 Introduction to Arithmetic Geometry Fall 013 Lecture #4 1/03/013 4.1 Isogenies of elliptic curves Definition 4.1. Let E 1 /k and E /k be elliptic curves with distinguished rational points O 1 and

More information

Mathematical Foundations of Cryptography

Mathematical Foundations of Cryptography Mathematical Foundations of Cryptography Cryptography is based on mathematics In this chapter we study finite fields, the basis of the Advanced Encryption Standard (AES) and elliptical curve cryptography

More information

Proofs. Chapter 2 P P Q Q

Proofs. Chapter 2 P P Q Q Chapter Proofs In this chapter we develop three methods for proving a statement. To start let s suppose the statement is of the form P Q or if P, then Q. Direct: This method typically starts with P. Then,

More information

Philippe Flajolet and Symbolic Computation

Philippe Flajolet and Symbolic Computation Philippe Flajolet and Symbolic Computation Bruno Salvy 1. Combinatorics and Analysis of Algorithms 4 2. Complex Analysis 5 3. Symbolic Computation 7 While Philippe Flajolet did not publish many articles

More information

A Generic Approach for the Unranking of Labeled Combinatorial Classes

A Generic Approach for the Unranking of Labeled Combinatorial Classes A Generic Approach for the Unranking of Labeled Combinatorial Classes Conrado Martínez, Xavier Molinero Departament de Llenguatges i Sistemes Informàtics, Universitat Politècnica de Catalunya, E-08034

More information

Math 61CM - Solutions to homework 2

Math 61CM - Solutions to homework 2 Math 61CM - Solutions to homework 2 Cédric De Groote October 5 th, 2018 Problem 1: Let V be the vector space of polynomials of degree at most 5, with coefficients in a field F Let U be the subspace of

More information

) = nlog b ( m) ( m) log b ( ) ( ) = log a b ( ) Algebra 2 (1) Semester 2. Exponents and Logarithmic Functions

) = nlog b ( m) ( m) log b ( ) ( ) = log a b ( ) Algebra 2 (1) Semester 2. Exponents and Logarithmic Functions Exponents and Logarithmic Functions Algebra 2 (1) Semester 2! a. Graph exponential growth functions!!!!!! [7.1]!! - y = ab x for b > 0!! - y = ab x h + k for b > 0!! - exponential growth models:! y = a(

More information

SCALED REMAINDER TREES

SCALED REMAINDER TREES Draft. Aimed at Math. Comp. SCALED REMAINDER TREES DANIEL J. BERNSTEIN Abstract. It is well known that one can compute U mod p 1, U mod p 2,... in time n(lg n) 2+o(1) where n is the number of bits in U,

More information

Three Ways to Test Irreducibility

Three Ways to Test Irreducibility Three Ways to Test Irreducibility Richard P. Brent Australian National University joint work with Paul Zimmermann INRIA, Nancy France 12 Feb 2009 Outline Polynomials over finite fields Irreducibility criteria

More information

Ma/CS 6b Class 23: Eigenvalues in Regular Graphs

Ma/CS 6b Class 23: Eigenvalues in Regular Graphs Ma/CS 6b Class 3: Eigenvalues in Regular Graphs By Adam Sheffer Recall: The Spectrum of a Graph Consider a graph G = V, E and let A be the adjacency matrix of G. The eigenvalues of G are the eigenvalues

More information

Random Boolean expressions

Random Boolean expressions Random Boolean expressions Danièle Gardy PRiSM, Univ. Versailles-Saint Quentin and CNRS UMR 8144. Daniele.Gardy@prism.uvsq.fr We examine how we can define several probability distributions on the set of

More information

Introduction to Arithmetic Geometry Fall 2013 Lecture #2 09/10/2013

Introduction to Arithmetic Geometry Fall 2013 Lecture #2 09/10/2013 18.78 Introduction to Arithmetic Geometry Fall 013 Lecture # 09/10/013.1 Plane conics A conic is a plane projective curve of degree. Such a curve has the form C/k : ax + by + cz + dxy + exz + fyz with

More information

Generating Functions

Generating Functions 8.30 lecture notes March, 0 Generating Functions Lecturer: Michel Goemans We are going to discuss enumeration problems, and how to solve them using a powerful tool: generating functions. What is an enumeration

More information

A Polynomial Time Deterministic Algorithm for Identity Testing Read-Once Polynomials

A Polynomial Time Deterministic Algorithm for Identity Testing Read-Once Polynomials A Polynomial Time Deterministic Algorithm for Identity Testing Read-Once Polynomials Daniel Minahan Ilya Volkovich August 15, 2016 Abstract The polynomial identity testing problem, or PIT, asks how we

More information

A field F is a set of numbers that includes the two numbers 0 and 1 and satisfies the properties:

A field F is a set of numbers that includes the two numbers 0 and 1 and satisfies the properties: Byte multiplication 1 Field arithmetic A field F is a set of numbers that includes the two numbers 0 and 1 and satisfies the properties: F is an abelian group under addition, meaning - F is closed under

More information

Algorithm Design and Analysis

Algorithm Design and Analysis Algorithm Design and Analysis LECTURE 14 Divide and Conquer Fast Fourier Transform Sofya Raskhodnikova 10/7/2016 S. Raskhodnikova; based on slides by K. Wayne. 5.6 Convolution and FFT Fast Fourier Transform:

More information

q xk y n k. , provided k < n. (This does not hold for k n.) Give a combinatorial proof of this recurrence by means of a bijective transformation.

q xk y n k. , provided k < n. (This does not hold for k n.) Give a combinatorial proof of this recurrence by means of a bijective transformation. Math 880 Alternative Challenge Problems Fall 2016 A1. Given, n 1, show that: m1 m 2 m = ( ) n+ 1 2 1, where the sum ranges over all positive integer solutions (m 1,..., m ) of m 1 + + m = n. Give both

More information

Random Boolean expressions

Random Boolean expressions Computational Logic and Applications, CLA 05 DMTCS proc. AF, 2006, 1 36 Random Boolean expressions Danièle Gardy PRiSM, Univ. Versailles-Saint Quentin and CNRS UMR 8144. Daniele.Gardy@prism.uvsq.fr We

More information

Elliptic Curves I. The first three sections introduce and explain the properties of elliptic curves.

Elliptic Curves I. The first three sections introduce and explain the properties of elliptic curves. Elliptic Curves I 1.0 Introduction The first three sections introduce and explain the properties of elliptic curves. A background understanding of abstract algebra is required, much of which can be found

More information

THE NUMBER OF INDEPENDENT DOMINATING SETS OF LABELED TREES. Changwoo Lee. 1. Introduction

THE NUMBER OF INDEPENDENT DOMINATING SETS OF LABELED TREES. Changwoo Lee. 1. Introduction Commun. Korean Math. Soc. 18 (2003), No. 1, pp. 181 192 THE NUMBER OF INDEPENDENT DOMINATING SETS OF LABELED TREES Changwoo Lee Abstract. We count the numbers of independent dominating sets of rooted labeled

More information

Computability and Complexity Theory: An Introduction

Computability and Complexity Theory: An Introduction Computability and Complexity Theory: An Introduction meena@imsc.res.in http://www.imsc.res.in/ meena IMI-IISc, 20 July 2006 p. 1 Understanding Computation Kinds of questions we seek answers to: Is a given

More information

A strongly polynomial algorithm for linear systems having a binary solution

A strongly polynomial algorithm for linear systems having a binary solution A strongly polynomial algorithm for linear systems having a binary solution Sergei Chubanov Institute of Information Systems at the University of Siegen, Germany e-mail: sergei.chubanov@uni-siegen.de 7th

More information

Algebra I. CORE TOPICS (Key Concepts & Real World Context) UNIT TITLE

Algebra I. CORE TOPICS (Key Concepts & Real World Context) UNIT TITLE CHAPTER 1 Using variables Exponents and Order of Operations Exploring real numbers Adding real numbers Subtracting real numbers Multiplying and dividing real numbers The Distributive Property Properties

More information

Automata and Languages

Automata and Languages Automata and Languages Prof. Mohamed Hamada Software Engineering Lab. The University of Aizu Japan Mathematical Background Mathematical Background Sets Relations Functions Graphs Proof techniques Sets

More information

Efficient Boltzmann Samplers for Weighted Partitions and Selections

Efficient Boltzmann Samplers for Weighted Partitions and Selections Efficient Boltzmann Samplers for Weighted Partitions and Selections Megan Bernstein, Matthew Fahrbach and Dana Randall Georgia Institute of Technology Shanks Workshop: 29th Cumberland Conference on Combinatorics,

More information

An introduction to the algorithmic of p-adic numbers

An introduction to the algorithmic of p-adic numbers An introduction to the algorithmic of p-adic numbers David Lubicz 1 1 Universté de Rennes 1, Campus de Beaulieu, 35042 Rennes Cedex, France Outline Introduction 1 Introduction 2 3 4 5 6 7 8 When do we

More information

Proofs. Chapter 2 P P Q Q

Proofs. Chapter 2 P P Q Q Chapter Proofs In this chapter we develop three methods for proving a statement. To start let s suppose the statement is of the form P Q or if P, then Q. Direct: This method typically starts with P. Then,

More information

Three Ways to Test Irreducibility

Three Ways to Test Irreducibility Outline Three Ways to Test Irreducibility Richard P. Brent Australian National University joint work with Paul Zimmermann INRIA, Nancy France 8 Dec 2008 Polynomials over finite fields Irreducibility criteria

More information

GENERATING FUNCTIONS AND CENTRAL LIMIT THEOREMS

GENERATING FUNCTIONS AND CENTRAL LIMIT THEOREMS GENERATING FUNCTIONS AND CENTRAL LIMIT THEOREMS Michael Drmota Institute of Discrete Mathematics and Geometry Vienna University of Technology A 1040 Wien, Austria michael.drmota@tuwien.ac.at http://www.dmg.tuwien.ac.at/drmota/

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

Algebra and Trigonometry 2006 (Foerster) Correlated to: Washington Mathematics Standards, Algebra 2 (2008)

Algebra and Trigonometry 2006 (Foerster) Correlated to: Washington Mathematics Standards, Algebra 2 (2008) A2.1. Core Content: Solving problems The first core content area highlights the type of problems students will be able to solve by the end of, as they extend their ability to solve problems with additional

More information

A note on parallel and alternating time

A note on parallel and alternating time Journal of Complexity 23 (2007) 594 602 www.elsevier.com/locate/jco A note on parallel and alternating time Felipe Cucker a,,1, Irénée Briquel b a Department of Mathematics, City University of Hong Kong,

More information

Mathematics High School Algebra

Mathematics High School Algebra Mathematics High School Algebra Expressions. An expression is a record of a computation with numbers, symbols that represent numbers, arithmetic operations, exponentiation, and, at more advanced levels,

More information

First and Second Order Differential Equations Lecture 4

First and Second Order Differential Equations Lecture 4 First and Second Order Differential Equations Lecture 4 Dibyajyoti Deb 4.1. Outline of Lecture The Existence and the Uniqueness Theorem Homogeneous Equations with Constant Coefficients 4.2. The Existence

More information

MS 3011 Exercises. December 11, 2013

MS 3011 Exercises. December 11, 2013 MS 3011 Exercises December 11, 2013 The exercises are divided into (A) easy (B) medium and (C) hard. If you are particularly interested I also have some projects at the end which will deepen your understanding

More information

Algebra II. A2.1.1 Recognize and graph various types of functions, including polynomial, rational, and algebraic functions.

Algebra II. A2.1.1 Recognize and graph various types of functions, including polynomial, rational, and algebraic functions. Standard 1: Relations and Functions Students graph relations and functions and find zeros. They use function notation and combine functions by composition. They interpret functions in given situations.

More information

Computability and Complexity

Computability and Complexity Computability and Complexity Lecture 10 More examples of problems in P Closure properties of the class P The class NP given by Jiri Srba Lecture 10 Computability and Complexity 1/12 Example: Relatively

More information

The Graph Structure of Chebyshev Polynomials over Finite Fields and Applications

The Graph Structure of Chebyshev Polynomials over Finite Fields and Applications The Graph Structure of Chebyshev Polynomials over Finite Fields and Applications Claudio Qureshi and Daniel Panario arxiv:803.06539v [cs.dm] 7 Mar 08 Abstract We completely describe the functional graph

More information

GF(2 m ) arithmetic: summary

GF(2 m ) arithmetic: summary GF(2 m ) arithmetic: summary EE 387, Notes 18, Handout #32 Addition/subtraction: bitwise XOR (m gates/ops) Multiplication: bit serial (shift and add) bit parallel (combinational) subfield representation

More information

arxiv: v2 [math.co] 29 Oct 2017

arxiv: v2 [math.co] 29 Oct 2017 POLYNOMIAL TUNING OF MULTIPARAMETRIC COMBINATORIAL SAMPLERS MACIEJ BENDKOWSKI 1, OLIVIER BODINI 2, AND SERGEY DOVGAL 2,3,4 arxiv:1708.01212v2 [math.co] 29 Oct 2017 Abstract. Boltzmann samplers and the

More information

arxiv: v1 [math.co] 3 Nov 2014

arxiv: v1 [math.co] 3 Nov 2014 SPARSE MATRICES DESCRIBING ITERATIONS OF INTEGER-VALUED FUNCTIONS BERND C. KELLNER arxiv:1411.0590v1 [math.co] 3 Nov 014 Abstract. We consider iterations of integer-valued functions φ, which have no fixed

More information

Bon anniversaire Marc!

Bon anniversaire Marc! Bon anniversaire Marc! The full counting function of Gessel walks is algebraic Alin Bostan (INRIA) joint work with Manuel Kauers (INRIA/RISC) Journées GECKO/TERA 2008 Context: restricted lattice walks

More information

APPENDIX B SUMMARIES OF SUBJECT MATTER TOPICS WITH RELATED CALIFORNIA AND NCTM STANDARDS PART 1

APPENDIX B SUMMARIES OF SUBJECT MATTER TOPICS WITH RELATED CALIFORNIA AND NCTM STANDARDS PART 1 APPENDIX B SUMMARIES OF SUBJECT MATTER TOPICS WITH RELATED CALIFORNIA AND NCTM STANDARDS This appendix lists the summaries of the subject matter topics presented in Section 2 of the Statement. After each

More information

Prentice Hall Mathematics, Algebra Correlated to: Achieve American Diploma Project Algebra II End-of-Course Exam Content Standards

Prentice Hall Mathematics, Algebra Correlated to: Achieve American Diploma Project Algebra II End-of-Course Exam Content Standards Core: Operations on Numbers and Expressions Priority: 15% Successful students will be able to perform operations with rational, real, and complex numbers, using both numeric and algebraic expressions,

More information

Design and Analysis of Algorithms

Design and Analysis of Algorithms CSE 101, Winter 2018 Design and Analysis of Algorithms Lecture 4: Divide and Conquer (I) Class URL: http://vlsicad.ucsd.edu/courses/cse101-w18/ Divide and Conquer ( DQ ) First paradigm or framework DQ(S)

More information

BASIC MATHEMATICAL TECHNIQUES

BASIC MATHEMATICAL TECHNIQUES CHAPTER 1 ASIC MATHEMATICAL TECHNIQUES 1.1 Introduction To understand automata theory, one must have a strong foundation about discrete mathematics. Discrete mathematics is a branch of mathematics dealing

More information

Maximal non-commuting subsets of groups

Maximal non-commuting subsets of groups Maximal non-commuting subsets of groups Umut Işık March 29, 2005 Abstract Given a finite group G, we consider the problem of finding the maximal size nc(g) of subsets of G that have the property that no

More information

On linear and non-linear equations.(sect. 2.4).

On linear and non-linear equations.(sect. 2.4). On linear and non-linear equations.sect. 2.4). Review: Linear differential equations. Non-linear differential equations. Properties of solutions to non-linear ODE. The Bernoulli equation. Review: Linear

More information

Philippe Flajolet & Analytic Combinatorics: Inherent Ambiguity of Context-Free Languages

Philippe Flajolet & Analytic Combinatorics: Inherent Ambiguity of Context-Free Languages Philippe Flajolet & Analytic Combinatorics: Inherent Ambiguity of Context-Free Languages Frédérique Bassino and Cyril Nicaud LIGM, Université Paris-Est & CNRS December 16, 2011 I first met Philippe in

More information

Enumeration: logical and algebraic approach

Enumeration: logical and algebraic approach Enumeration: logical and algebraic approach Yann Strozecki Université Paris Sud - Paris 11 Novembre 2011, séminaire ALGO/LIX Introduction to Enumeration Enumeration and logic Enumeration and polynomials

More information

Lecture 3. Frits Beukers. Arithmetic of values of E- and G-function. Lecture 3 E- and G-functions 1 / 20

Lecture 3. Frits Beukers. Arithmetic of values of E- and G-function. Lecture 3 E- and G-functions 1 / 20 Lecture 3 Frits Beukers Arithmetic of values of E- and G-function Lecture 3 E- and G-functions 1 / 20 G-functions, definition Definition An analytic function f (z) given by a powerseries a k z k k=0 with

More information

Evidence that the Diffie-Hellman Problem is as Hard as Computing Discrete Logs

Evidence that the Diffie-Hellman Problem is as Hard as Computing Discrete Logs Evidence that the Diffie-Hellman Problem is as Hard as Computing Discrete Logs Jonah Brown-Cohen 1 Introduction The Diffie-Hellman protocol was one of the first methods discovered for two people, say Alice

More information

Theoretical Cryptography, Lectures 18-20

Theoretical Cryptography, Lectures 18-20 Theoretical Cryptography, Lectures 18-20 Instructor: Manuel Blum Scribes: Ryan Williams and Yinmeng Zhang March 29, 2006 1 Content of the Lectures These lectures will cover how someone can prove in zero-knowledge

More information

4. Complex Analysis, Rational and Meromorphic Asymptotics

4. Complex Analysis, Rational and Meromorphic Asymptotics ANALYTIC COMBINATORICS P A R T T W O 4. Complex Analysis, Rational and Meromorphic Asymptotics http://ac.cs.princeton.edu ANALYTIC COMBINATORICS P A R T T W O Analytic Combinatorics Philippe Flajolet and

More information