I am curious on how you would algorithmically find the optimal solution for this kind of problem for much bigger grids.
I wanted to do some seed finding in Factorio for the same exact problem using the generated map images, but never found a good solution that was fast enough.
Scaevolus|1 month ago
Note that traditional SAT and SMT solvers are quite inefficient at computing flood-fills.
The ASP specifications it uses to compute optimal solutions are surprisingly short and readable, and look like:
freakynit|1 month ago
Therefore, like a good little llm bitch that I have become recently, I straight away went to chatgpt/sonnet/gemini and asked them to compile me a list of more such "whatever this is known as". And holy cow!! This is a whole new world.
My ask to HN community: any good book recommendations related to "such stuff"? Not those research kinds as I don't have enough brain cells for it. But, a little easier and practical ones?
Thanks..
stabbles|1 month ago
[1] https://github.com/spack/spack/blob/develop/lib/spack/spack/...
sunrunner|1 month ago
Great, now I've been double nerd-sniped - once for the thing itself and another for 'What would an optimiser for this look like? Graph cuts? SAT/SMT? [AC]SP?'
qsort|1 month ago
The Leetcode version of this is "find articulation points", which is just a DFS, but it's less general than what is presented here.
johanvts|1 month ago
emil-lp|1 month ago
Edit: apex-4-regular
Zobody|1 month ago
dyigitpolat|1 month ago
try at: https://dyigitpolat.github.io/enclose-horse-solver/
Macuyiko|1 month ago
See
https://gist.github.com/Macuyiko/86299dc120478fdff529cab386f...
emil-lp|1 month ago
https://cs.stackexchange.com/questions/176005/how-to-remove-...
unknown|1 month ago
[deleted]
qwertyforce|1 month ago
emil-lp|1 month ago
unknown|1 month ago
[deleted]