Professional Documents
Culture Documents
Kpotenttalkfinalwebsite
Kpotenttalkfinalwebsite
1 / 27
2 / 27
2 / 27
Buchbergers Algorithm
The algorithm that computes Grbner bases is known as Buchbergers algorithm.
3 / 27
Buchbergers Algorithm
The algorithm that computes Grbner bases is known as Buchbergers algorithm. You are already familiar with two common examples of Grbner bases that utilize Buchbergers algorithm.
3 / 27
Buchbergers Algorithm
The algorithm that computes Grbner bases is known as Buchbergers algorithm. You are already familiar with two common examples of Grbner bases that utilize Buchbergers algorithm. Two examples: Gauss-Jordan Elimination Greatest Common Divisor
3 / 27
Gauss-Jordan Elimination
Let f1 = 0, . . . fs = 0 be a system of linear polynomials. Using Gauss-Jordan Elimination we can reduce the polynomials and transform our original system, f1 = 0, . . . fs = 0, to a new system g1 = 0, . . . gt = 0.
4 / 27
Gauss-Jordan Elimination
Let f1 = 0, . . . fs = 0 be a system of linear polynomials. Using Gauss-Jordan Elimination we can reduce the polynomials and transform our original system, f1 = 0, . . . fs = 0, to a new system g1 = 0, . . . gt = 0. The new system of polynomials in echelon form has the same solution set as the original system. This new system is also easier to solve and gives additional information about the number of solutions - one, innitely many, or no solutions.
4 / 27
Gauss-Jordan Elimination
Let f1 = 0, . . . fs = 0 be a system of linear polynomials. Using Gauss-Jordan Elimination we can reduce the polynomials and transform our original system, f1 = 0, . . . fs = 0, to a new system g1 = 0, . . . gt = 0. The new system of polynomials in echelon form has the same solution set as the original system. This new system is also easier to solve and gives additional information about the number of solutions - one, innitely many, or no solutions. The resulting set of polynomials, {g1 , . . . gt }, is a Grbner basis for the original ideal, I := f1 , . . . , fs .
4 / 27
5 / 27
5 / 27
5 / 27
5 / 27
6 / 27
6 / 27
Both of these issues can very quickly overload the computers memory, slow down and even stop the computation altogether.
6 / 27
7 / 27
7 / 27
8 / 27
a e i m
b f j n
c g k o
d h l p
8 / 27
Rules of Shidoku
The numbers 1-4 must occur once in each row,
1 3 2 4 2 4 1 3 3 1 4 2 4 2 3 1
9 / 27
Rules of Shidoku
The numbers 1-4 must occur once in each row,
1 3 2 4 2 4 1 3 3 1 4 2 4 2 3 1
each column,
1 3 2 4 2 4 1 3 3 1 4 2 4 2 3 1
9 / 27
Rules of Shidoku
The numbers 1-4 must occur once in each row,
1 3 2 4 2 4 1 3 3 1 4 2 4 2 3 1
each column,
1 3 2 4 2 4 1 3 3 1 4 2 4 2 3 1
2 4 1 3
3 1 4 2
4 2 3 1
9 / 27
Spider Diagram
This spider diagram allows us to better visualize which pairs of variables cant be equal to each other because they lie in the same row, column, or block. (Diagram by Laura Taalman)
Lacey Johnson (JMU) K-Potent Grbner bases and Sudoku July 25th, 2013 10 / 27
Spider Polynomials
Each leg of the spider needs a polynomial which we will call a spider polynomial.
11 / 27
Spider Polynomials
Each leg of the spider needs a polynomial which we will call a spider polynomial. Consider any two variables, a and b, that lie in the same row, column, or block.
11 / 27
Spider Polynomials
Each leg of the spider needs a polynomial which we will call a spider polynomial. Consider any two variables, a and b, that lie in the same row, column, or block. We already know that, (a 1)(a 2)(a 3)(a 4) = 0 and (b 1)(b 2)(b 3)(b 4) = 0
11 / 27
Spider Polynomials
Each leg of the spider needs a polynomial which we will call a spider polynomial. Consider any two variables, a and b, that lie in the same row, column, or block. We already know that, (a 1)(a 2)(a 3)(a 4) = 0 and (b 1)(b 2)(b 3)(b 4) = 0 Expanding gives us, a4 10a3 + 35a2 50a + 24 = 0 and b4 10b3 + 35b2 50b + 24 = 0
11 / 27
Spider Polynomials
Each leg of the spider needs a polynomial which we will call a spider polynomial. Consider any two variables, a and b, that lie in the same row, column, or block. We already know that, (a 1)(a 2)(a 3)(a 4) = 0 and (b 1)(b 2)(b 3)(b 4) = 0 Expanding gives us, a4 10a3 + 35a2 50a + 24 = 0 and b4 10b3 + 35b2 50b + 24 = 0 Therefore, a4 b4 10a3 + 10b3 + 35a2 35b2 50a + 50b = 0
11 / 27
Spider Polynomial
Factoring out (a b) gives us, (a b)(a3 + a2 b + ab2 + b3 10a2 10ab 10b2 + 35a + 35b 50) = 0
12 / 27
Spider Polynomial
Factoring out (a b) gives us, (a b)(a3 + a2 b + ab2 + b3 10a2 10ab 10b2 + 35a + 35b 50) = 0 We want to force a and b to take on different values. If a b = 0, we must have that a3 + a2 b + ab2 + b3 10a2 10ab 10b2 + 35a + 35b 50 = 0
12 / 27
Spider Polynomial
Factoring out (a b) gives us, (a b)(a3 + a2 b + ab2 + b3 10a2 10ab 10b2 + 35a + 35b 50) = 0 We want to force a and b to take on different values. If a b = 0, we must have that a3 + a2 b + ab2 + b3 10a2 10ab 10b2 + 35a + 35b 50 = 0 This is our spider polynomial for a and b that we put into our ideal.
12 / 27
Spider Polynomial
Factoring out (a b) gives us, (a b)(a3 + a2 b + ab2 + b3 10a2 10ab 10b2 + 35a + 35b 50) = 0 We want to force a and b to take on different values. If a b = 0, we must have that a3 + a2 b + ab2 + b3 10a2 10ab 10b2 + 35a + 35b 50 = 0 This is our spider polynomial for a and b that we put into our ideal. Spider polynomials ensure that any two variables in the same row, column, or block are not equal in value. Having a spider polynomial for each pair gives us 56 spider polynomials. Combining the 56 spider polynomials with the previous 16 regular variable polynomials gives us a total of 72 polynomials to represent the constraints on a Shidoku board.
Lacey Johnson (JMU) K-Potent Grbner bases and Sudoku July 25th, 2013 12 / 27
Shidoku Ideal
We let the Shidoku polynomials be the generators for an ideal, I . Then we can use Buchbergers algorithm to compute a Grbner basis for I to get a new system of polynomials which gives us more information about the ideal.
13 / 27
Shidoku Ideal
We let the Shidoku polynomials be the generators for an ideal, I . Then we can use Buchbergers algorithm to compute a Grbner basis for I to get a new system of polynomials which gives us more information about the ideal. If we add to the ideal polynomials which represent initial clues such as d -4, e-4, g -2, j -3, l -1, and m-1, the Grbner basis is this system of 16 linear polynomials that are the solutions to the Shidoku puzzle, i.e. a-3, b-2, c -1, d -4, e-4, f -1, g -2, h-3, i -2, j -3, k -4, l -1, m-1, n-4, o-3, p-2.
a e i m b f j n c g k o d h l p 4 4 3 1 2 1 3 4 2 1 2 1 3 4 1 2 4 3 4 3 1 2
14 / 27
14 / 27
15 / 27
15 / 27
15 / 27
16 / 27
16 / 27
16 / 27
Using this idempotent variable restricts the degree growth. However, the Boolean Shidoku system is actually slower than the sum-product Shidoku system. This is because the complexity of Buchbergers algorithm is double exponential in the number of variables.
Lacey Johnson (JMU) K-Potent Grbner bases and Sudoku July 25th, 2013 16 / 27
K-Potent System
The k-potent variable system was developed by Arnold and Lucas to restrict degree growth and at the same time use only one variable for each cell. ak = a.
17 / 27
K-Potent System
The k-potent variable system was developed by Arnold and Lucas to restrict degree growth and at the same time use only one variable for each cell. ak = a. ak a = 0.
17 / 27
K-Potent System
The k-potent variable system was developed by Arnold and Lucas to restrict degree growth and at the same time use only one variable for each cell. ak = a. ak a = 0. For our purposes, the k-potent variable polynomials for a Shidoku system would be of the form a4 a = 0
17 / 27
K-Potent System
The k-potent variable system was developed by Arnold and Lucas to restrict degree growth and at the same time use only one variable for each cell. ak = a. ak a = 0. For our purposes, the k-potent variable polynomials for a Shidoku system would be of the form a4 a = 0 a (a 3 1) = 0 a = 0 or a3 1 = 0
2 , W 3 , where W is a Notice, a can take on four values, a=0, W3 , W3 3 3 primitive third root of unity.
Lacey Johnson (JMU) K-Potent Grbner bases and Sudoku July 25th, 2013 17 / 27
18 / 27
( 1 2,
3 2 )
+ ( 1 2,
3 2 )
+ (1, 0)
19 / 27
We would like this to be a constraint for a Shidoku region. However, this cant be the only condition because it would allow all four variables in the region to take on the value 0, i.e. w = x = y = z = 0 0+0+0+0=0
19 / 27
We would like this to be a constraint for a Shidoku region. However, this cant be the only condition because it would allow all four variables in the region to take on the value 0, i.e. w = x = y = z = 0 0+0+0+0=0 So if we let one of our regional polynomials be w +x +y +z =0 we must have another condition for this region to ensure that w , x , y , and z are distinct values.
Lacey Johnson (JMU) K-Potent Grbner bases and Sudoku July 25th, 2013 19 / 27
20 / 27
Thus, our second condition only needs to ensure that two variables in our regions are not equal.
20 / 27
Thus, our second condition only needs to ensure that two variables in our regions are not equal. Notice, a spider polynomial would accomplish this goal. In fact, for every pair that needs to have different values we will use spider polynomials.
20 / 27
21 / 27
21 / 27
21 / 27
22 / 27
22 / 27
22 / 27
23 / 27
23 / 27
23 / 27
24 / 27
24 / 27
This leaves us with 8 k-potent spider polynomials. Altogether, this k-potent region Shidoku system contains 36 polynomials.
Lacey Johnson (JMU) K-Potent Grbner bases and Sudoku July 25th, 2013 24 / 27
Results
Here are the computation times of the different variable and polynomial types. This was computed using Maple 16 on a 2.53 GHz Windows laptop with 4 GB RAM. Regular Var 66.35 sec 36.44 sec Boolean Var 46.11 sec K-Potent Var 33.60 sec 2.82 sec
25 / 27
Conclusion
The system of polynomials with regular variables and spider polynomials has too many polynomials of high degree.
26 / 27
Conclusion
The system of polynomials with regular variables and spider polynomials has too many polynomials of high degree. The sum-product Shidoku system with regular variables and region polynomials could compute a Grbner basis for Shidoku, but not for Sudoku.
26 / 27
Conclusion
The system of polynomials with regular variables and spider polynomials has too many polynomials of high degree. The sum-product Shidoku system with regular variables and region polynomials could compute a Grbner basis for Shidoku, but not for Sudoku. The Boolean Shidoku system with idempotent variables and region polynomials restrict degree growth, but has too many variables.
26 / 27
Conclusion
The system of polynomials with regular variables and spider polynomials has too many polynomials of high degree. The sum-product Shidoku system with regular variables and region polynomials could compute a Grbner basis for Shidoku, but not for Sudoku. The Boolean Shidoku system with idempotent variables and region polynomials restrict degree growth, but has too many variables. The k-potent Shidoku system with k-potent variables and region polynomials restricts degree growth and uses one variable per cell.
26 / 27
Future Research
Develop k-potent system of regional polynomials for Sudoku. Write code to modify Buchbergers algorithm so it automatically reduces degree.
27 / 27
Future Research
Develop k-potent system of regional polynomials for Sudoku. Write code to modify Buchbergers algorithm so it automatically reduces degree. I would like to thank my advisor Elizabeth Arnold at JMU.
27 / 27
Future Research
Develop k-potent system of regional polynomials for Sudoku. Write code to modify Buchbergers algorithm so it automatically reduces degree. I would like to thank my advisor Elizabeth Arnold at JMU.
Thank you!
27 / 27