Skip to content

Commit bfe3f2f

Browse files
committed
Record verified Manhattan puzzle value selection
Zdev-Change-Id: Z689ff9f06d20fe7b5f7f5068434756cd36e2bc5ab31f2f5a01f85d07df84c2f6
1 parent c6cd4a9 commit bfe3f2f

3 files changed

Lines changed: 18 additions & 8 deletions

File tree

‎.zdev/open-search/TASKS.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
# Tasks: open-search
44

55
- Total: 45
6-
- Ready: 1
6+
- Ready: 0
77
- Blocked: 0
8-
- Done: 44
8+
- Done: 45
99

1010
| ID | Task | State | Blocked by |
1111
| --- | --- | --- | --- |
@@ -53,4 +53,4 @@
5353
| [open-search-042](tasks/042-simplify-goal-handling-in-the-parent-15-puzzle-example.md) | Simplify goal handling in the parent 15-puzzle example | done | — |
5454
| [open-search-043](tasks/043-use-a-fixed-buffer-for-puzzle-neighbors.md) | Use IntArgs for puzzle neighbors | done | — |
5555
| [open-search-044](tasks/044-split-puzzle-goal-implications-with-a-shared-boolvar.md) | Split puzzle goal implications with a shared BoolVar | done | — |
56-
| [open-search-045](tasks/045-offer-manhattan-value-selection-for-the-puzzle.md) | Offer Manhattan value selection for the puzzle | ready | — |
56+
| [open-search-045](tasks/045-offer-manhattan-value-selection-for-the-puzzle.md) | Offer Manhattan value selection for the puzzle | done | — |

‎.zdev/open-search/area.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ objective = "Add A* and complete anytime beam search to Gecode for ordinary and
55
branch = "feature/open-search"
66
lifecycle = "open"
77
parent = "open-cp"
8-
base_commit = "413db902a487c75910640f531cdc06fa51767c81"
8+
base_commit = "0d80c51e0b72ddda7241866e2535fbefc7ea9a78"

‎.zdev/open-search/tasks/045-offer-manhattan-value-selection-for-the-puzzle.md‎

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ schema_version = 1
33
id = "open-search-045"
44
key = "puzzle-manhattan-values"
55
area = "open-search"
6-
status = "open"
6+
status = "done"
77
complexity = "standard"
88
afk = true
99
blocked_by = []
@@ -25,12 +25,22 @@ The user asks what the fixed-model branch filter does and whether Manhattan valu
2525

2626
## Done when
2727

28-
- [ ] Both open and fixed models expose -branching min and -branching manhattan; the latter chooses a legal next blank position minimizing resulting board Manhattan distance, with deterministic ties.
29-
- [ ] Explain the fixed-model filter and compare node/failure/propagation statistics for both orders on identical bounded cases; all reported incumbents replay to the goal and final optima agree.
30-
- [ ] Normal parent and child builds and focused checks pass; parent source commit is incorporated into the child and user edits are preserved.
28+
- [x] Both open and fixed models expose -branching min and -branching manhattan; the latter chooses a legal next blank position minimizing resulting board Manhattan distance, with deterministic ties.
29+
- [x] Explain the fixed-model filter and compare node/failure/propagation statistics for both orders on identical bounded cases; all reported incumbents replay to the goal and final optima agree.
30+
- [x] Normal parent and child builds and focused checks pass; parent source commit is incorporated into the child and user edits are preserved.
3131

3232
## Validation
3333

3434
- Build the parent and child fifteen-puzzle targets normally. Use bounded BFS/path-replay checks for both branching options and open/fixed models, including BAB and child A*/CABS.
3535
- Measure deterministic statistics on a small fixed set with single-thread execution; bound total measurement solver time to 120 seconds, do not infer runtime gains from node counts.
3636
- Review domain iteration, board assignment prerequisites, cloning/recomputation, default behavior, whitespace, and stack ancestry.
37+
38+
## Result
39+
40+
Added optional Manhattan value selection to both puzzle models through ordinary INT_VAL callbacks, with numerical minimum unchanged as default. Parent commit 0d80c51e0b is incorporated into the search branch.
41+
42+
Validation:
43+
44+
- Both normal builds and 96 BFS/path replay checks passed; independent verification passed at W5519716bf265e4d8. Parent user edits are preserved; whitespace and selected clang-tidy checks passed.
45+
- On scramble 12, seed 1, limit 12, one thread: nodes min to Manhattan are BAB 5426 to 11, A* 33 to 29, CABS 33 to 19 in both models. Open BAB failures 2712 to 2 and propagations 606170 to 3127.
46+
- The 24-run comparison used 18.891 seconds of solver time. On scramble 18, seed 3, limit 18, CABS nodes increased 43176 to 50669 and A* changed 7985 to 7981; four BAB runs stopped without solutions at 3500ms. All 20 completed runs agreed on final optima, and every incumbent replayed to the goal. No permanent tests or local sanitizer work.

0 commit comments

Comments
 (0)