Richard Fateman CS 282 Lecture 14b1 Gröbner Basis Reduction Lecture 14b.

Slides:



Advertisements
Similar presentations
5.1 Real Vector Spaces.
Advertisements

Cryptography and Network Security, Finite Fields From Third Edition by William Stallings Lecture slides by Mustafa Sakalli so much modified..
Cryptography and Network Security
Lecture 17 Introduction to Eigenvalue Problems
Cryptography and Network Security Chapter 4
Cryptography and Network Security Chapter 4 Fourth Edition by William Stallings.
Narapong Srivisal, Swarthmore College Class of 2007 Division Algorithm Fix a monomial order > in k[x 1, …, x n ]. Let F = (f 1, …, f s ) be an ordered.
Introduction to Gröbner Bases for Geometric Modeling Geometric & Solid Modeling 1989 Christoph M. Hoffmann.
CSE 421 Algorithms Richard Anderson Lecture 4. What does it mean for an algorithm to be efficient?
Richard Fateman CS 282 Lecture 131 Algebraic Simplification, Yet more Lecture 13.
Chapter 1 Systems of Linear Equations
Richard Fateman CS 282 Lecture 61 Evaluation/Interpolation (I) Lecture 6.
10.1 Gaussian Elimination Method
Gröbner Bases Bernd Sturmfels Mathematics and Computer Science University of California at Berkeley.
Solving Equations with the Variable on Both Sides
Center for Machine Perception Department of Cybernetics, Faculty of Electrical Engineering Czech Technical University in Prague Methods for Solving Systems.
Polynomial Factorization Olga Sergeeva Ferien-Akademie 2004, September 19 – October 1.
5.1 Linear Equations A linear equation in one variable can be written in the form: Ax + B = 0 Linear equations are solved by getting “x” by itself on.
Systems of Linear Equations: Substitution and Elimination
1 1.1 © 2012 Pearson Education, Inc. Linear Equations in Linear Algebra SYSTEMS OF LINEAR EQUATIONS.
Solving Systems of Equations: Elimination Method.
Chapter 3 Greek Number Theory The Role of Number Theory Polygonal, Prime and Perfect Numbers The Euclidean Algorithm Pell’s Equation The Chord and Tangent.
Products and Factors of Polynomials
Properties of Real Numbers
ECON 1150 Matrix Operations Special Matrices
Outline Main result Quantum computation and quantum circuits Feynman’s sum over paths Polynomials QuPol program “Quantum Polynomials” Quantum polynomials.
CPSC 3730 Cryptography and Network Security
1 Cryptography and Network Security Third Edition by William Stallings Lecture slides by Lawrie Brown Chapter 4 – Finite Fields.
Information Security and Management 4. Finite Fields 8
Cryptography and Network Security Introduction to Finite Fields.
Basic Concepts of Algebra
Polynomials and Polynomial Functions
2.1 Sums and Differences of Polynomials
Section 5.1 Polynomials Addition And Subtraction.
Math 002 College Algebra Final Exam Review.
Mathematics for Business and Economics - I
Great Theoretical Ideas in Computer Science.
Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Chapter 11 Systems of Equations.
Advanced Counting Techniques CSC-2259 Discrete Structures Konstantin Busch - LSU1.
Chapter 8 With Question/Answer Animations 1. Chapter Summary Applications of Recurrence Relations Solving Linear Recurrence Relations Homogeneous Recurrence.
The Multiplication Principle of Equality 2.3a 1.Solve linear equations using the multiplication principle. 2.Solve linear equations using both the addition.
Section 2-8 First Applications of Groebner Bases by Pablo Spivakovsky-Gonzalez We started this chapter with 4 problems: 1.Ideal Description Problem: Does.
Chapter 4 – Finite Fields
Data Security and Encryption (CSE348) 1. Lecture # 12 2.
Great Theoretical Ideas in Computer Science.
Advanced Counting Techniques CSC-2259 Discrete Structures Konstantin Busch - LSU1.
Zeros of Polynomials 2.5.
Date: 2.4 Real Zeros of Polynomial Functions
Notes – 2/13 Addition Method of solving a System of Equations Also called the Elimination Method.
Cryptography and Network Security Chapter 4. Introduction  will now introduce finite fields  of increasing importance in cryptography AES, Elliptic.
POLYNOMIALS. WHAT IS A POLYNOMIAL? An algebraic expression that contains more than two terms Polynomial literally means poly – (meaning many) and nomial.
Chapter 1 Systems of Linear Equations Linear Algebra.
Chapter P Prerequisites: Fundamental Concepts of Algebra 1 Copyright © 2014, 2010, 2007 Pearson Education, Inc. 1 P.7 Equations.
Differential Equations MTH 242 Lecture # 09 Dr. Manshoor Ahmed.
Real Zeros of Polynomial Functions
Chapter 4 With Question/Answer Animations 1. Chapter Summary Divisibility and Modular Arithmetic - Sec 4.1 – Lecture 16 Integer Representations and Algorithms.
Cryptography and Network Security Third Edition by William Stallings Lecture slides by Lawrie Brown.
Advanced Algorithms Analysis and Design By Dr. Nazir Ahmad Zafar Dr Nazir A. Zafar Advanced Algorithms Analysis and Design.
1.2 Linear Equations and Rational Equations. Terms Involving Equations 3x - 1 = 2 An equation consists of two algebraic expressions joined by an equal.
Polynomials and Polynomial Functions
Polynomials and Polynomial Functions
Chapter 7 Rational Expressions
Gröbner Bases Bernd Sturmfels Mathematics and Computer Science
Adding and Subtracting Polynomials
4.1 Introduction to Polynomials Objectives:
4.1 Introduction to Polynomials Objectives:
Solve Linear Equations by Elimination
Polynomials and Special Products
Presentation transcript:

Richard Fateman CS 282 Lecture 14b1 Gröbner Basis Reduction Lecture 14b

Richard Fateman CS 282 Lecture 14b2 Solving systems of polynomial equations Two (or more) polynomials p, q in one variable X, find the common solutions: Compute g=GCD(p,q). Find the roots of g. They are the common roots of p and q. Two (or more) LINEAR equations in some set of variables: Compute the solution via Gaussian elimination or similar method. Both are special cases of Gröbner/Grobner/Groebner basis calcs. [named by Bruno Buchberger for his thesis advisor, (1965); who first “discovered” it is in dispute, but Buchberger clearly popularized it.]

Richard Fateman CS 282 Lecture 14b3 Typical problem. (From von zur Gathen, p 565) Set up a robot arm and joint: governed by simple equations. Where can it reach? 1 2 x,y z,w x 2 + y = 0 and (x-z) 2 +(y-w) 2 -1 = 0 determines a POLYNOMIAL IDEAL

Richard Fateman CS 282 Lecture 14b4 Typical problem. (From von zur Gathen, p 565) Set up a robot arm and joint: governed by simple equations. Where can it reach? 1 2 x,y z,w Question: can the robot reach a point on the line u= v + 

Richard Fateman CS 282 Lecture 14b5 The ideal (polynomial) The ideal generated by a family of generators consists of the set of linear combinations of these generators, with constant coefficients. P,Q are equivalent wrt an ideal if their difference belongs to the ideal.

Richard Fateman CS 282 Lecture 14b6 Trivial observations There are many systems of generators for each ideal. We can add any linear combination of them to the description. We want to find the “simplest.” To find the simplest, for each polynomial, find its most complex monomial, and try to get rid of it, by simplification using other identities in the idea.

Richard Fateman CS 282 Lecture 14b7 Simplest may not be smallest (s 20 -1,s 2 +c 3 -1}  { - 10c c c c c c c c c 27 + c 30, -1 + c 3 + s 2 } Simpler if any polynomial in c is simpler than any polynomial in s. If you are counting number of characters, it can grow exponentially. (Grobner basis program in Mathematica did this)

Richard Fateman CS 282 Lecture 14b8 Ordering Monomials Lexicographic: a<b<c…<d a 2 < ab < ac.. Same lex, then go by degree a 2 <a 3 <a 4 In general x< y then xc < yc Alternative: total degree then lex. E.g. b 3 <a 4 Alternative: total degree then reverse lex.

Richard Fateman CS 282 Lecture 14b9 Every non-zero poly P can be written this way Principal monomial plus lower order terms:  i  a i X i with X i being a product of powers. If we let X 0 be the “largest” then a 0 X 0 is the principal monomial Then P = a 0 X 0 +  i  a i X i and M P =a 0 X 0. A polynomial P is reduced with respect to G, a finite set of polys and > a fixed order if no principal monomial of an element of G divides the principal monomial of P.

Richard Fateman CS 282 Lecture 14b10 Can a polynomial P be reduced? P = a 0 X 0 +  i  a i X i A polynomial P is COMPLETELY reduced with respect to G, a finite set of polys and > a fixed order if no principal monomial of an element of G divides the any principal monomial of P. If P is NOT completely reduced, we can subtract from it a multiple of an element of G and eliminate this monomial, get a new polynomial less than the previous one. That is, for some h, P-hg i is in the same ideal but simpler. (maybe c*P-h*g i )

Richard Fateman CS 282 Lecture 14b11 Does that tell us what to do? If P is NOT completely reduced, we can subtract from it a multiple of an element of G and eliminate this monomial, get a new polynomial less than the previous one. That is, for some h, P-hg i is in the same ideal but simpler. Which element matters for efficiency. Also, there are variations by analogy with the GCD / PRS discussions.

Richard Fateman CS 282 Lecture 14b12 Def. of Standard or Grobner Basis A system of generators (or basis) G of an ideal I is called a standard basis or Grobner basis (with respect to a given order <) if every reduction of a polynomial P of I to a reduced polynomial (wrt G) always gives 0. Dividing P wrt a system of polynomials.. Keep dividing as long as you can (see vzg sec. 21)

Richard Fateman CS 282 Lecture 14b13 The idea behind Buchberger’s method An arbitrary ideal basis does not, in general constitute a Grobner basis. Buchberger proposed to “complete” the basis by adding a finite number of new polynomials to it. This requires only consideration of a finite number of “S polynomials” of pairs of polynomials from the initial ideal. Spoly(p,q)=lcm(M p,M q )(p/M p -q/M q ) where M q is the principal monomial for polynomial q.

Richard Fateman CS 282 Lecture 14b14 Buchberger’s algorithm Start with a collection of polynomials G representing an ideal. Pick 2 different polynomials p,q from G. Suppose Spoly(p,q) reduces (in G) to r. If r=0, then pick another pair until there aren’t any more distinct pairs. If r is not 0, add it to G, and repeat. If you want a unique / reduced GB, reduce each P with respect to G-{P}.

Richard Fateman CS 282 Lecture 14b15 Buchberger’s algorithm, improvements If you want a unique / reduced GB, reduce each P with respect to G-{P}. If you want to improve efficiency, you can check various cases (“criterion 1,2”) which vastly reduce the time, though it is still exponential. Total degree ordering is usually much faster. Parallel computation has been explored several times.

Richard Fateman CS 282 Lecture 14b16 Applications of “ideal theory” Computing modulo side-relations (e.g. our running example of sin 2 (x)+cos 2 (x)=1). Geometry theorem proving (Wu, Chou, Kapur, Kutzler and Stifter). Large stream of publications on variations. --additional material--