Re: Uniquely identifying Sudoku grids
- From: "Oliver Wong" <owong@xxxxxxxxxxxxxx>
- Date: Mon, 03 Apr 2006 14:16:53 GMT
"Gerard Schildberger" <Gerard46@xxxxxxx> wrote in message news:J76dnUyPX4_AWLPZRVn-uw@xxxxxxxxxxxx
| Oliver Wong wrote:
|> Another way to look at it: Your encoding system should be able to
|> uniquely specify every possible sudoku. So just take the number of sudokus
|> in existence, and take its logarithm base 2, and that's how many bits
|> you'd need to uniquely identify each one. Alternatively, take its
|> logarithm base 10, and that's how many digits you'd need to uniquely
|> identify each one.
|From wikipedia: http://en.wikipedia.org/wiki/Sudoku
|<quote>
|the number of valid Sudoku solution grids for the standard 9×9 grid was
|calculated by Bertram Felgenhauer in 2005 to be
|6,670,903,752,021,072,936,960
|</quote>
|
|So you'd need 22 digits to uniquely specify a sudoku puzzle.
Ok, so what would the 6,670,000,000,000,000,000,960th puzzle
look like?
..71.....4
...3..2.8.
89..7..56
...9237.68
...5...4..
38.4159..
14..9..25
..6.7..8..
5.....61.
, obviously. ;)
An easier way to look at this question is, given a standard
deck of 52 cards +2 jokers, how many poker hands (5 cards) are
possible? 54 x 53 x 52 x 51 x 50
(which equals 379,501,200), so it would take 9 digits to specify
any particular poker hand.... so hand # 379,000,001 is ... ?
It would, of course, be just easier to specify something like
6d,Ah,Js,2c,2h ... or some such encoding that can be easily
transcribed to those cards. That way, no table is needed to
translate the 379,000,001st hand to a particular poker hand.
That's an "easier to encode/decode" encoding, but it's not nescessarily the shortest encoding, where I'm defining shortest encoding as the length of the string you get by concatenating all legal strings within that encoding. But it's all moot, as I later realized that this wasn't what the OP was asking for anyway.
Similarly, the same for a sudoku puzzle, one only needs to
specify the minimum number of cells (assuming the sudoku
puzzle has a unique solution --- if not, then more cells would
need to be specified). ________________________________Gerard S.
Yes, that's closer to what the OP was asking for than the answer I provided.
- Oliver
.
- References:
- Re: Uniquely identifying Sudoku grids
- From: Nick Atty
- Re: Uniquely identifying Sudoku grids
- From: Gerard Schildberger
- Re: Uniquely identifying Sudoku grids
- Prev by Date: Re: for sudoku friends only...
- Next by Date: Re: The difficult escalade
- Previous by thread: Re: Uniquely identifying Sudoku grids
- Next by thread: Re: Clock problem
- Index(es):
Relevant Pages
|
Loading