Interesting Article Ref: Sudoku and Linear Algebraic aspects

In summary, the conversation is about the linear-algebraic aspects of Sudoku puzzles and whether a Sudoku matrix can be orthogonal. The discussion also touches upon the use of inner product and linear programming to solve Sudoku puzzles. Some potential issues with the theorems and the idea of using machine learning to classify Sudoku puzzles are also mentioned.
  • #1
WWGD
Science Advisor
Gold Member
7,339
11,298
Hi,
This looked interesting. Determinant and Linear-Algebraic aspects of Sudoku puzzles:
http://www.student.montefiore.ulg.ac.be/~merciadri/docs/papers/sudoku.pdf
 
Physics news on Phys.org
  • #2
I didn't understand the field being used here.

In particular part 9 "Orthgonality Discussion", which says “ The answer to this question is not known yet" -- i.e. whether a sudoku matrix can be orthgonal.

If we have an inner product, then it is very easy to show that the squared frobenius norm of any Sudoku matrix is far to large for it to be orthgonal. (Why? its minimum entry value is 1 and there is a 1 in every column -- all columns also have some number bigger than 1...).

If we don't have an inner product or anything "close" then I really cringe when people use a term like "orthogonal".
 
  • #3
StoneTemplePython said:
I didn't understand the field being used here.

In particular part 9 "Orthgonality Discussion", which says “ The answer to this question is not known yet" -- i.e. whether a sudoku matrix can be orthgonal.

If we have an inner product, then it is very easy to show that the squared frobenius norm of any Sudoku matrix is far to large for it to be orthgonal. (Why? its minimum entry value is 1 and there is a 1 in every column -- all columns also have some number bigger than 1...).

If we don't have an inner product or anything "close" then I really cringe when people use a term like "orthogonal".
I think he may be working within ##l(\mathbb Z) ## or ## l(\mathbb Z^{*} )## (working mod45 , IIRC, since ##45= \frac {n(n+1)}{2} ## ), though, I am not even sure Sudoku matrices are a subspace; origin not likely included. I was kind of lazy to just drop this here without checking the details before :(. Altho, given the fact that all entries are positive, there are no orthogonal elements in whichever subspace he chooses, by most defs. of inner product I can think of.
 
  • #4
Yea, as it happens my preferred way to solve sudokus is to use linear programming.

An observation I've had but kind of forgotten about, is everything that is sufficiently constrained to have one answer (i.e. the puzzles that make it to the general public), can be solved with the relaxation of using reals in your LP, as opposed to the integer domain it seems to require. I was poking around for something about totally unimodular submatrices or whatever.

- - - -

btw Theorem 12 has an issue --- in some forms of super sudoku there are constraints along the diagonal (and anti-diagonal) which would necessarily make the trace constant.
 
  • Like
Likes WWGD
  • #5
StoneTemplePython said:
Yea, as it happens my preferred way to solve sudokus is to use linear programming.

An observation I've had but kind of forgotten about, is everything that is sufficiently constrained to have one answer (i.e. the puzzles that make it to the general public), can be solved with the relaxation of using reals in your LP, as opposed to the integer domain it seems to require. I was poking around for something about totally unimodular submatrices or whatever.

- - - -

btw Theorem 12 has an issue --- in some forms of super sudoku there are constraints along the diagonal (and anti-diagonal) which would necessarily make the trace constant.
Just curious: I have found I can solve ( "paper and pencil", no strategy or explicit method) certain Sudokus well, but not so others. Do you think a classifier method may help me understand some traits in each group; the solvable and the non-solvable?
 
  • #6
To be clear, do you mean "solvable" by you, or actually valid problems with feasible solutions? If the former, I guess it could be kinda fun to pass it to a classifier. Typically the way I think about problems and "machines think" about problems ends up being a bit different though. (I think it would be kinda fun to overfit some massive deep net on a few sample puzzles and publish a bunch of nonsense about it afterward though.)

I guess it comes to how much Sudoku you do, and whether computational insights will take too much of the mystery out of it.
 
  • #7
StoneTemplePython said:
To be clear, do you mean "solvable" by you, or actually valid problems with feasible solutions? If the former, I guess it could be kinda fun to pass it to a classifier. Typically the way I think about problems and "machines think" about problems ends up being a bit different though. (I think it would be kinda fun to overfit some massive deep net on a few sample puzzles and publish a bunch of nonsense about it afterward though.)

I guess it comes to how much Sudoku you do, and whether computational insights will take too much of the mystery out of it.
No, I mean solvable by me. And, while classifying may take away some of the fun/mistery away, I am interested more in learning ML methodology. I guess I would enter them as a 2D array.
 
  • #8
Kind of weird: Sudoku puzzles seen as matrices have a determinant that is a multiple of 405. This means the inverse of a Sudoku/Matrix , with a determinant of 1/405, does not represent a Sudoku. EDIT: Nonsense on my part: Only Integer matrices that are invertible are those with determinant
## \pm 1 ##
 

FAQ: Interesting Article Ref: Sudoku and Linear Algebraic aspects

1. What is Sudoku?

Sudoku is a logic-based puzzle that involves filling a 9x9 grid with numbers from 1 to 9, with each row, column, and 3x3 square containing all the numbers without any repeats.

2. What is Linear Algebra?

Linear Algebra is a branch of mathematics that deals with linear equations, matrices, vectors, and their operations. It is used to solve systems of linear equations and has various applications in fields such as engineering, physics, and computer science.

3. How are Sudoku and Linear Algebra related?

Sudoku puzzles can be solved using techniques from Linear Algebra, specifically with the use of matrices and their operations. By representing the puzzle as a matrix and applying certain operations, the solution can be found.

4. Can Linear Algebra be used to create Sudoku puzzles?

Yes, Linear Algebra can be used to generate Sudoku puzzles. By utilizing matrices and their operations, unique Sudoku puzzles can be created with varying levels of difficulty.

5. What are some other applications of Linear Algebra outside of Sudoku?

Linear Algebra has various applications in fields such as computer graphics, data science, and cryptography. It is also used in machine learning algorithms and in the development of artificial intelligence systems.

Back
Top