route odd orders N >= 9 through the N-1 direct solver
preserve predecessor coordinates on the enlarged board and tile the new border
separate search and construction timing and document the order-9 comparison
validate exact coordinates, full coverage, route boundaries, and search counters
Review
The row-major stride translation hazard was found during review and corrected before commit. Final review found no outstanding issues.
Testing
Release CTest: 8/8 passed
Debug CTest: 8/8 passed
AddressSanitizer CTest: 8/8 passed
UndefinedBehaviorSanitizer CTest: 8/8 passed
git diff --check
Benchmark
Order 9 counter-free median: 1.778 s predecessor search plus 0.458 us construction, compared with the recorded 158.69 s direct search (about 89x faster). Counted order-9 search nodes exactly match order 8 at 60,485,176.
## Summary
- route odd orders `N >= 9` through the `N-1` direct solver
- preserve predecessor coordinates on the enlarged board and tile the new border
- separate search and construction timing and document the order-9 comparison
- validate exact coordinates, full coverage, route boundaries, and search counters
## Review
The row-major stride translation hazard was found during review and corrected before commit. Final review found no outstanding issues.
## Testing
- Release CTest: 8/8 passed
- Debug CTest: 8/8 passed
- AddressSanitizer CTest: 8/8 passed
- UndefinedBehaviorSanitizer CTest: 8/8 passed
- `git diff --check`
## Benchmark
Order 9 counter-free median: 1.778 s predecessor search plus 0.458 us construction, compared with the recorded 158.69 s direct search (about 89x faster). Counted order-9 search nodes exactly match order 8 at 60,485,176.
Closes #6
Avoid repeating the exponential search for odd orders at least nine. Search the even predecessor, translate its row-major placements to the enlarged board, and tile the new border.
Keep direct search and construction explicit so benchmarks can report their costs separately. Verify the routed order-9 result independently and require its search counters to match order 8.
Tests: Release, Debug, ASan and UBSan CTest (8 passed each)
Refs: #6
mcp
merged commit 3e667d6de0 into main2026-07-30 17:26:37 +01:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
N >= 9through theN-1direct solverReview
The row-major stride translation hazard was found during review and corrected before commit. Final review found no outstanding issues.
Testing
git diff --checkBenchmark
Order 9 counter-free median: 1.778 s predecessor search plus 0.458 us construction, compared with the recorded 158.69 s direct search (about 89x faster). Counted order-9 search nodes exactly match order 8 at 60,485,176.
Closes #6