How bruju/solveurdefutoshiki works
SolveurDeFutoshiki is a command-line Futoshiki constraint-satisfaction solver. The main workflow selects an algorithm and heuristic, loads a puzzle into a CSP, searches for a solution, then displays the grid and performance. The C implementation offers backtracking, forward checking, and deductive forward checking; a separate Java implementation uses Choco. The graph focuses on runtime components and documented capabilities. Some implementation details are unsampled, so uncertain connections are omitted rather than inferred.
Main entry points: principal.c CLI orchestration · gestHeuristique.c Heuristic state management · lecture.c Puzzle file reader · heuristique.c Variable heuristics
Components 14
Command-line workflow
- CLI orchestration
principal.c
CSP model and input
- Puzzle file reader
lecture.c - CSP representation
definitions.h - CSP allocation
definitions.c
Search and heuristics
- Heuristic selection
gestHeuristique.c - Variable heuristics
heuristique.c - Heuristic state management
gestHeuristique.c - Backtracking search
resolution.c - Forward checking
resolution.c - Deductive forward checking
resolutionDeductive.c
Results and alternate solver
- Grid display
affichage.c - Choco Java solver
Futoshiki.java
Other components
- Solver user
- Choco library
Connections 16
- Solver user → CLI orchestration: runs solver
README.md - CLI orchestration → Puzzle file reader: loads puzzle
principal.c - Puzzle file reader → CSP representation: builds model
- CLI orchestration → Heuristic selection: selects heuristic
principal.c - Heuristic selection → Variable heuristics: registers heuristics
gestHeuristique.c - Backtracking search → Heuristic state management: manages variables
resolution.c - Forward checking → Heuristic state management: manages variables
resolution.c - Deductive forward checking → Heuristic state management: manages variables
resolutionDeductive.c - Variable heuristics → Heuristic state management: uses variable state
heuristique.c - CLI orchestration → Backtracking search: dispatches
principal.c - CLI orchestration → Forward checking: dispatches
principal.c - CLI orchestration → Deductive forward checking: dispatches
principal.c - CLI orchestration → Grid display: prints grid
principal.c - CLI orchestration → CSP allocation: frees model
principal.c - Solver user → Choco Java solver: runs Java API
README.md - Choco Java solver → Choco library: solves with
README.md