Article View: sci.electronics.design
Article #1408Re: Puzzles
From: Don Y
Date: Sat, 21 Nov 2026 01:30
Date: Sat, 21 Nov 2026 01:30
154 lines
8291 bytes
8291 bytes
On 11/20/2026 12:05 PM, Waldek Hebisch wrote: > I made a mistake in my reasoning, so my movements were not > fully justified. I created a propagation program and it > get to the point but can not move beyond what you get. > This is probably not most powerful propagation program, > but I doubt that better normal propagation rules would > help. I just look for patterns -- tracking which digits are "possible" (vs. impossible) in each cell and looking at the sets of cells (row, column, 3x3 mtarix) to identify where a particular digit MUST exist. Having made that identification, I revisit the NEW (further constrained) possibilities in each cell in that row, column and 3x3 matrix. Eventually, I get to a solved puzzle *or*, a puzzle where none of the remaining undefined cells have "must" contents. I.e., now a choice is required. Identifying where the BEST choice lies becomes the driving strategy. > OTOH one can claim that single binary decision is rally not > guessing. Several so called "advanced strategies" look for > promising places subject to binary decision and egzamine > consequences of both alternatives. More precisely, for > each square of the grid one notes possible numbers in this > square. When trying one alternative you propagete info > getting tightened possibilites. Then you try the second > alternative and propagate info. Then you form logical > sum of the two alternatives. If it is more restrictive > then the starting state you made a progress. Different > advanced strategies differ in their choice of decision > and on amout of propagation that is performed. In a > sense ultimate advanced strategy would try any > possible binary decision and fully propagate consquences. But, then you have to address backing out when you hit a contradiction. That's too much for the effort I want to put into such puzzles (I do them "at stoplights" while driving; while walking the neighborhood; etc. -- something to occupy my mind when my body must be in some particular situation). I use engineering projects as "difficult puzzles"; these (Sudoku, crosswords, etc.) are just small "diversions"... things that I can "write off" in a matter of half an hour or less. > The case when sudoku is solved by propagatin after a > single decision is just a simple case of advanced strategy. > In general, after making progress you need to continue > with solution process. Note that whan using advanced > strategies you temporarily have two candidates for > partial solution, but never more than two. IIUC There can be cells with multiple "potential candidates". But, making a choice in one of those means you have a greater chance of having to back out and try again. If, instead, you pick a cell that ONLY has two permissible values, then one *may* lead to a solution (though note that the (6,8) choices in the aforementioned puzzle don't give you any "certain" information (and do not lead to a solution) > published hard sudokus are usually not solvable just > using normal propagation, you are supposed to use > some advanced strategy, possibly multiple times. > I think that there exist sudokus that are not solvable > by any advanced strategy like above (that depending > only on binary choice). But, that returns to the original issue: deciding how to CREATE puzzles with a specific "degree of difficulty" > So gessing (or recursive search) is really needed when > you need to deal simultaneousy with larger number of > possibilities. > <snip> >>> As I wrote, you can judge difficulty based on rules >>> needed to solve it and beyond that by number of decision >> >> I suspect the criteria actually implemented aren't that sophisticated; >> more probably, "reveal X cells" where X decreases with difficulty >> (providing less deductible constraint for the player) > > You can look at: > > https://www.sudokuwiki.org/Sudoku_Creation_and_Grading.pdf > > It claims approach that I suggested. Also older systems > like 'serate' claim to use method of this sort. That tells me nothing about a particular *generated* Sudoku (unless I was looking at those generated there) >> It seems the best approach is to generate a solution and >> then decide how much of it to *reveal* to the player, >> based on his level of difficulty. After all, you have >> to be able to generate *a* solution for the puzzle. > > Maybe. The paper above claim approach of this sort. > But usual convention seem to be to pubish minimal sudokus, > that is when you remove any of the clues then solution > is no longer unique. It seems that when you try to > build easily solvable sudoku you may get stuck with > nonminimal sudoku that can not be turned into easily > solvable one with smaller number of cues. So you > probaly need either recursive search for easily > solvable ones or generate randomly and filter on > difficulty. That's /ex post factum/. I'd want to know how to deliberately create a puzzle of a particular level of complexity instead of "discovering" the complexity of a randomly created puzzle. The "game" that I play has decided on different levels of complexity. But, offers no clues as to what criteria it uses to make those distinctions. It generates a puzzle in constant time so I doubt it is using a hit-or-miss approach. If I could dump the ROM, I might reverse engineer the algorithm. But, it would be easier to have it available for inspection. >>> AFAICS this is play with probabilities. I the past humans >>> would provide marked data, now there are data mining >>> techniques and LLM-s. Doing this needs a lot of raw >>> data and a lot of compute power, so an app almost >>> surely uses precomputed tables. >> >> Humans are needed to create ORIGINAL puzzles -- themes >> that may not have been tried, word combinations, etc. >> (when I was a kid, crosswords were prohibited from having >> anything more than single word answers) >> >> And, to create "cleverer" clues that rely on puns, etc. >> instead of simple dictionary definitions. > > I suspect that now relativly small LLMs can do this. After > all that is really core functionality of LLMs, they produce > text that is likely in context of earlier text. So if > you provide a few examples and a word, then LLM should be able > to produce new clue fitting to the word and to the style > and theme of earlier example clues. But *anything* that an LLM creates is effectively without a defining algorithm. Impossible to examine its strategy in a way that would let you can that strategy. > Now, if you do _not_ want accidental puns and want strict > adherence to scientific knowledge, then it get more > tricky. Also, censorship to avoid racist/sexist content > looks tricky.
Technical Details
Message-ID:
<11dqs7c$3n36q$1@dont-email.me>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<11ctgil$1ll56$1@dont-email.me> <11d4l69$nmdf$1@paganini.bofh.team> <11d5h3q$clc0$1@dont-email.me> <11dbb79$1j1jt$1@paganini.bofh.team> <11dbhfm$2hd3d$1@dont-email.me> <11dcen5$1ku24$1@paganini.bofh.team> <11dirs3$tunv$1@dont-email.me> <11dq5ld$37h31$1@paganini.bofh.team>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Don Y <blockedofcourse@foo.invalid> Newsgroups: sci.electronics.design Subject: Re: Puzzles Date: Fri, 20 Nov 2026 18:30:15 -0700 Organization: A noiseless patient Spider Lines: 154 Message-ID: <11dqs7c$3n36q$1@dont-email.me> References: <11ctgil$1ll56$1@dont-email.me> <11d4l69$nmdf$1@paganini.bofh.team> <11d5h3q$clc0$1@dont-email.me> <11dbb79$1j1jt$1@paganini.bofh.team> <11dbhfm$2hd3d$1@dont-email.me> <11dcen5$1ku24$1@paganini.bofh.team> <11dirs3$tunv$1@dont-email.me> <11dq5ld$37h31$1@paganini.bofh.team> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sat, 21 Nov 2026 01:30:22 +0000 (UTC) Injection-Info: dont-email.me; logging-data="3902682"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1//jfvQDXMr+0KEwhVfSVy9"; posting-host="16339c8d20306edb49b8b020f9adfc97" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:TpU1bpsEp7Z6FvEDv6Beg/JjcH8= sha256:iG0NS0ooXwrbQMURGD4ESutAIUIalF9B4nA9Td5LsNw= sha1:Wg3su2+BW81h8FOjfUbyFrUKT1M= sha256:MkkgCImkl/YpJnhXkQkRu+eZc3WsV2Ao7JMw2fGALj8= In-Reply-To: <11dq5ld$37h31$1@paganini.bofh.team> Content-Language: en-US