Commit f235fee
committed
Stop claiming bfs is cost-optimal, and rewrite the contributing guide
The optimality sentence was wrong in a way that matters. `bfs` and
`iddfs` minimise plan *length*; that is only cost-optimality when every
action costs the same. On a four-action `:action-costs` domain with one
expensive shortcut, A* and Dijkstra return the three-step plan costing
3 and both of those return the one-step plan costing 10. `iddfs` is in
`OPTIMAL_PLANNERS` and the README did not even list it, so the two
disagreed in both directions. The source knew -- `uninformed.py` has
`optimal = True # for unit-cost / plan-length` -- the README dropped
the qualifier. `awastar` needed its admissibility precondition back, and
`bnb`'s default 200 000-expansion ceiling is worth saying out loud,
since a run that hits it is no longer a proof of anything.
`docs/CONTRIBUTING.md` was an unadapted 2018 template. It told
contributors their work would be "licensed under its MIT License" -- the
project is Apache-2.0, as the same file says twenty lines earlier --
pointed "report bugs using Github's issues" at a stranger's unrelated
repository, offered an empty link for opening one, asked people to
branch from `master`, and spent a paragraph in the first person about
someone else's StackOverflow question about R. It now defers to the
org-wide guide and covers only what is specific here: the submodule, the
real floor, the commands CI runs, and the fact that this repo's
guarantee words are wired to an attribute the workbench publishes.
Also: the install line said Python 3.9 in the release whose changelog
announced the move to 3.10; `demos/` was described as six instances and
holds thirteen; `generate` was said to reproduce most of them, where it
reproduces two byte-for-byte; and the architecture tree omitted `learn/`
and `api.py` -- a headline feature and the module every library example
imports from.1 parent e0522cc commit f235fee
3 files changed
Lines changed: 78 additions & 48 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
12 | 15 | | |
13 | 16 | | |
14 | 17 | | |
| |||
72 | 75 | | |
73 | 76 | | |
74 | 77 | | |
75 | | - | |
| 78 | + | |
76 | 79 | | |
77 | 80 | | |
78 | 81 | | |
| |||
423 | 426 | | |
424 | 427 | | |
425 | 428 | | |
426 | | - | |
| 429 | + | |
427 | 430 | | |
428 | 431 | | |
429 | 432 | | |
| |||
442 | 445 | | |
443 | 446 | | |
444 | 447 | | |
445 | | - | |
446 | | - | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
447 | 454 | | |
448 | 455 | | |
449 | 456 | | |
| |||
459 | 466 | | |
460 | 467 | | |
461 | 468 | | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
466 | 478 | | |
467 | 479 | | |
468 | 480 | | |
| |||
534 | 546 | | |
535 | 547 | | |
536 | 548 | | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
537 | 552 | | |
538 | 553 | | |
539 | | - | |
| 554 | + | |
| 555 | + | |
540 | 556 | | |
541 | 557 | | |
542 | 558 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
| 3 | + | |
9 | 4 | | |
10 | | - | |
11 | | - | |
| 5 | + | |
| 6 | + | |
12 | 7 | | |
13 | | - | |
14 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
15 | 11 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
| 12 | + | |
22 | 13 | | |
23 | | - | |
24 | | - | |
| 14 | + | |
| 15 | + | |
25 | 16 | | |
26 | | - | |
27 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
28 | 20 | | |
29 | | - | |
30 | | - | |
| 21 | + | |
31 | 22 | | |
32 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
33 | 27 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
| 28 | + | |
41 | 29 | | |
42 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
43 | 35 | | |
44 | | - | |
45 | | - | |
| 36 | + | |
| 37 | + | |
46 | 38 | | |
47 | | - | |
48 | | - | |
| 39 | + | |
49 | 40 | | |
50 | | - | |
51 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
0 commit comments