Anti-knight sudoku

For fans of Killer Sudoku, Samurai Sudoku and other variants

Postby evert » Tue Feb 12, 2008 1:29 am

Another AN-puzzle:
Code: Select all
750080000
000000000
003000600
000012009
000073000
000000000
000500100
900000000
000004000
evert
 
Posts: 187
Joined: 26 August 2005

Postby Pyrrhon » Thu Feb 21, 2008 11:27 am

List updated.

Pyrrhon
Pyrrhon
 
Posts: 240
Joined: 26 April 2006

Re: Anti-knight sudoku

Postby JFA » Tue Apr 09, 2019 7:23 pm

Hello, how many Anti-knight sudoku are there ? How I can calculate this number ?
JFA
 
Posts: 4
Joined: 08 April 2019

Re: Anti-knight sudoku

Postby Mathimagics » Wed Apr 10, 2019 8:31 pm

A good question! :cool:

I think the current situation is, nobody knows.

I doubt that the number can be calculated, some sort of enumeration is required.

A brute-force approach is out of the question - one would need to test all the ED grids (5,472,730,538), but also the 3,359,232 variants for every case, since these transformations don't preserve the AK property. We can only reduce this by a factor of 4, for rotation/reflection symmetries, but still the number of grids to test is enormous.

But these AK grids are likely to be very rare, since up to 8 extra eliminations can be associated with each cell (the central square has the full 8). Rarity seems to be confirmed by a random grid generator that tested over 1.5 billion grids before finding one anti-knight case … not very scientific, but it does suggest that an exact count is probably easily obtained ...
Last edited by Mathimagics on Wed Apr 10, 2019 11:01 pm, edited 1 time in total.
User avatar
Mathimagics
2017 Supporter
 
Posts: 1926
Joined: 27 May 2015
Location: Canberra

Re: Anti-knight sudoku

Postby JFA » Wed Apr 10, 2019 9:33 pm

Yes I think adapt a fast Sudoku solver to solve in this mode is a good solution, but I don't have one. I hope you will succeed
JFA
 
Posts: 4
Joined: 08 April 2019

Anti-knight sudoku

Postby Mathimagics » Wed Apr 10, 2019 10:58 pm

Ok, that was fairly simple, really …

I decided not to bother with template generation, the grid count should be small enough to warrant an "all in one go" approach. So I just set the appropriate table for my solver, and gave it row 1 = "123456789" as the puzzle to be solved, asked for all solutions, and it came back 75s later with the answer 8,490,104.

My learned friend blue, or indeed anybody with a reasonably fast solver that can easily enforce the AK rules, should be able to confirm this figure.

ED grid count would probably be around 2.1 million?
User avatar
Mathimagics
2017 Supporter
 
Posts: 1926
Joined: 27 May 2015
Location: Canberra

Re: Anti-knight sudoku

Postby JFA » Thu Apr 11, 2019 5:02 pm

Ok :) good job and very speed ..............., thank's
Beautiful method of resolution
JFA
 
Posts: 4
Joined: 08 April 2019

Re: Anti-knight sudoku

Postby Michal56 » Tue Jul 18, 2023 8:58 pm

Mathimagics wrote:the answer 8,490,104.

I have got very similar but not the same result: 8,490,164 and I would like to know if:
- my solver is wrong
- there is a typo in Mathimagics' post

Can someone check it out?
Michal56
 
Posts: 3
Joined: 17 July 2023

Re: Anti-knight sudoku

Postby mith » Fri Aug 04, 2023 3:11 pm

I'm aware of an independent count (again generating all solutions with r1 fixed) which agrees with the 8,490,104 reported by Mathimagics.
mith
 
Posts: 950
Joined: 14 July 2020

Re: Anti-knight sudoku

Postby Michal56 » Tue Sep 19, 2023 12:43 pm

Mathimagics' solution is correct - I have found an error in my computations.
Moreover:
Anti knight 6x6 - 16 x 6! = 11,520 solutions
Anti knight 8x8 - 209,213 x 8! = 8,435,468,180 solutions

Anti knight & Anti king 6x6 - no solutions
Anti knight & Anti king 8x8 - 1 x 8! = 40,320 solutions
Anti knight & Anti king 9x9 - 4 x 9! = 1,451,520 solutions
Michal56
 
Posts: 3
Joined: 17 July 2023

Previous

Return to Sudoku variants