Giter Site home page Giter Site logo

Comments (9)

T0nyX1ang avatar T0nyX1ang commented on September 26, 2024

The new methods can be somewhat faster, but there are edge cases for the original solvers and new solvers.
I added two examples to demonstrate the issue.

from noqx.

T0nyX1ang avatar T0nyX1ang commented on September 26, 2024

After trying out some approaches, we decide to introduce a "fast mode" where the solutions will be restricted on a certain range.

  • The numbers are taken from (1-5 + the given clues on board) to limit to solution space.

The method can work well on all cases, and the worst case takes about 2.5x time than the original solver.
The development of fillomino is postponed now.

from noqx.

T0nyX1ang avatar T0nyX1ang commented on September 26, 2024

Here is another edge case: https://github.com/tomvbussel/fillomino/blob/master/problems/p76.fillomino
We may assume that the solver will degrade when there are many long "snakes" in it.

from noqx.

T0nyX1ang avatar T0nyX1ang commented on September 26, 2024

The same problem exists for heteromino puzzles.

Some changes are made to resolve heteromino issues.

from noqx.

T0nyX1ang avatar T0nyX1ang commented on September 26, 2024

For a full analysis, solver is slow on large problems of:

  • fillomino
  • haisu
  • kurotto
  • shikaku

from noqx.

T0nyX1ang avatar T0nyX1ang commented on September 26, 2024

shikaku problems have been greatly optimized by latest commit af7bd76
haisu problems have been greatly optimized (but have some edge cases) by recent commit 3849683

from noqx.

zhuyaoyu avatar zhuyaoyu commented on September 26, 2024

The edge case for haisu is solved by recent commit 2e05066, by adding
rule += ":- clue_area(A), grid(R, C), haisu_count(R, C, A, N1), haisu_count(R, C, A, N2), N1 < N2.\n".

The only remaining slow puzzle is fillomino.

from noqx.

T0nyX1ang avatar T0nyX1ang commented on September 26, 2024

The edge case for fillomino becomes faster by recent commit 48ddc1b, by using grid_src_color_connected instead of grid_branch_color_connected in initial points.

from noqx.

T0nyX1ang avatar T0nyX1ang commented on September 26, 2024

After some approaches, we decided to set the problem aside for a while.

from noqx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.