Commit 04fa465
fixed some class definitions and typos (aimacode#1131)
* changed queue to set in AC3
Changed queue to set in AC3 (as in the pseudocode of the original algorithm) to reduce the number of consistency-check due to the redundancy of the same arcs in queue. For example, on the harder1 configuration of the Sudoku CSP the number consistency-check has been reduced from 40464 to 12562!
* re-added test commented by mistake
* added the mentioned AC4 algorithm for constraint propagation
AC3 algorithm has non-optimal worst case time-complexity O(cd^3 ), while AC4 algorithm runs in O(cd^2) worst case time
* added doctest in Sudoku for AC4 and and the possibility of choosing the constant propagation algorithm in mac inference
* removed useless doctest for AC4 in Sudoku because AC4's tests are already present in test_csp.py
* added map coloring SAT problems
* fixed typo errors and removed unnecessary brackets
* reformulated the map coloring problem
* Revert "reformulated the map coloring problem"
This reverts commit 20ab0e5.
* Revert "fixed typo errors and removed unnecessary brackets"
This reverts commit f743146.
* Revert "added map coloring SAT problems"
This reverts commit 9e0fa55.
* Revert "removed useless doctest for AC4 in Sudoku because AC4's tests are already present in test_csp.py"
This reverts commit b3cd24c.
* Revert "added doctest in Sudoku for AC4 and and the possibility of choosing the constant propagation algorithm in mac inference"
This reverts commit 6986247.
* Revert "added the mentioned AC4 algorithm for constraint propagation"
This reverts commit 03551fb.
* added map coloring SAT problem
* fixed build error
* Revert "added map coloring SAT problem"
This reverts commit 93af259.
* Revert "fixed build error"
This reverts commit 6641c2c.
* added map coloring SAT problem
* removed redundant parentheses
* added Viterbi algorithm
* added monkey & bananas planning problem
* simplified condition in search.py
* added tests for monkey & bananas planning problem
* removed monkey & bananas planning problem
* Revert "removed monkey & bananas planning problem"
This reverts commit 9d37ae0.
* Revert "added tests for monkey & bananas planning problem"
This reverts commit 24041e9.
* Revert "simplified condition in search.py"
This reverts commit 6d229ce.
* Revert "added monkey & bananas planning problem"
This reverts commit c74933a.
* defined the PlanningProblem as a specialization of a search.Problem & fixed typo errors
* fixed doctest in logic.py
* fixed doctest for cascade_distribution
* added ForwardPlanner and tests
* added __lt__ implementation for Expr
* added more tests
* renamed forward planner
* Revert "renamed forward planner"
This reverts commit c4139e5.
* renamed forward planner class & added doc
* added backward planner and tests
* fixed mdp4e.py doctests
* removed ignore_delete_lists_heuristic flag
* fixed heuristic for forward and backward planners
* added SATPlan and tests
* fixed ignore delete lists heuristic in forward and backward planners
* fixed backward planner and added tests
* updated doc
* added nary csp definition and examples
* added CSPlan and tests
* fixed CSPlan
* added book's cryptarithmetic puzzle example
* fixed typo errors in test_csp
* fixed aimacode#1111
* added sortedcontainers to yml and doc to CSPlan
* added tests for n-ary csp
* fixed utils.extend
* updated test_probability.py
* converted static methods to functions
* added AC3b and AC4 with heuristic and tests
* added conflict-driven clause learning sat solver
* added tests for cdcl and heuristics
* fixed probability.py
* fixed import
* fixed kakuro
* added Martelli and Montanari rule-based unification algorithm
* removed duplicate standardize_variables
* renamed variables known as built-in functions
* fixed typos in learning.py
* renamed some files and fixed typos
* fixed typos
* fixed typos
* fixed tests
* removed unify_mm
* remove unnecessary brackets
* fixed tests
* moved utility functions to utils.py
* fixed typos
* moved utils function to utils.py, separated probability learning classes from learning.py, fixed typos and fixed imports in .ipynb files
* added missing learners
* fixed Travis build
* fixed typos
* fixed typos
* fixed typos
* fixed typos
* fixed typos in agents files
* fixed imports in agent files
* fixed deep learning .ipynb imports
* fixed typos
* added .ipynb and fixed typos
* adapted code for .ipynb
* fixed typos
* updated .ipynb
* updated .ipynb
* updated logic.py
* updated .ipynb
* updated .ipynb
* updated planning.py
* updated inf definition
* fixed typos
* fixed typos
* fixed typos
* fixed typos
* Revert "fixed typos"
This reverts commit 658309d.
* Revert "fixed typos"
This reverts commit 08ad660.
* fixed typos
* fixed typos
* fixed typos
* fixed typos
* fixed typos and utils imports in *4e.py files
* fixed typos1 parent 5d3a95c commit 04fa465
File tree
14 files changed
+178
-188
lines changed- tests
14 files changed
+178
-188
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
2 | 6 | | |
| 7 | + | |
| 8 | + | |
3 | 9 | | |
4 | 10 | | |
5 | 11 | | |
6 | 12 | | |
7 | | - | |
8 | 13 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
| 14 | + | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
| |||
54 | 53 | | |
55 | 54 | | |
56 | 55 | | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | 62 | | |
64 | 63 | | |
65 | 64 | | |
| |||
80 | 79 | | |
81 | 80 | | |
82 | 81 | | |
83 | | - | |
84 | | - | |
| 82 | + | |
85 | 83 | | |
86 | 84 | | |
87 | 85 | | |
| |||
552 | 550 | | |
553 | 551 | | |
554 | 552 | | |
555 | | - | |
| 553 | + | |
556 | 554 | | |
557 | 555 | | |
558 | 556 | | |
| |||
585 | 583 | | |
586 | 584 | | |
587 | 585 | | |
588 | | - | |
| 586 | + | |
589 | 587 | | |
590 | 588 | | |
591 | 589 | | |
| |||
676 | 674 | | |
677 | 675 | | |
678 | 676 | | |
679 | | - | |
680 | | - | |
681 | | - | |
682 | | - | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
683 | 681 | | |
684 | 682 | | |
685 | 683 | | |
| |||
776 | 774 | | |
777 | 775 | | |
778 | 776 | | |
779 | | - | |
| 777 | + | |
780 | 778 | | |
781 | 779 | | |
782 | 780 | | |
| |||
831 | 829 | | |
832 | 830 | | |
833 | 831 | | |
834 | | - | |
| 832 | + | |
835 | 833 | | |
836 | 834 | | |
837 | 835 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
303 | | - | |
| 303 | + | |
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | 49 | | |
53 | 50 | | |
54 | 51 | | |
55 | | - | |
| 52 | + | |
56 | 53 | | |
57 | 54 | | |
58 | 55 | | |
| |||
173 | 170 | | |
174 | 171 | | |
175 | 172 | | |
176 | | - | |
| 173 | + | |
177 | 174 | | |
178 | 175 | | |
179 | 176 | | |
| |||
602 | 599 | | |
603 | 600 | | |
604 | 601 | | |
605 | | - | |
| 602 | + | |
606 | 603 | | |
607 | 604 | | |
608 | 605 | | |
| |||
707 | 704 | | |
708 | 705 | | |
709 | 706 | | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
710 | 711 | | |
711 | 712 | | |
712 | 713 | | |
| |||
1114 | 1115 | | |
1115 | 1116 | | |
1116 | 1117 | | |
1117 | | - | |
| 1118 | + | |
1118 | 1119 | | |
1119 | 1120 | | |
1120 | 1121 | | |
| |||
1803 | 1804 | | |
1804 | 1805 | | |
1805 | 1806 | | |
1806 | | - | |
| 1807 | + | |
1807 | 1808 | | |
1808 | 1809 | | |
1809 | 1810 | | |
| |||
2055 | 2056 | | |
2056 | 2057 | | |
2057 | 2058 | | |
2058 | | - | |
| 2059 | + | |
2059 | 2060 | | |
2060 | 2061 | | |
2061 | 2062 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
| 1 | + | |
| 2 | + | |
6 | 3 | | |
7 | 4 | | |
8 | | - | |
| 5 | + | |
| 6 | + | |
9 | 7 | | |
10 | 8 | | |
11 | 9 | | |
| |||
108 | 106 | | |
109 | 107 | | |
110 | 108 | | |
| 109 | + | |
111 | 110 | | |
112 | 111 | | |
113 | 112 | | |
| |||
131 | 130 | | |
132 | 131 | | |
133 | 132 | | |
134 | | - | |
| 133 | + | |
135 | 134 | | |
136 | 135 | | |
137 | 136 | | |
| |||
149 | 148 | | |
150 | 149 | | |
151 | 150 | | |
152 | | - | |
153 | | - | |
154 | | - | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
155 | 154 | | |
156 | 155 | | |
157 | 156 | | |
| |||
167 | 166 | | |
168 | 167 | | |
169 | 168 | | |
170 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1047 | 1047 | | |
1048 | 1048 | | |
1049 | 1049 | | |
1050 | | - | |
1051 | | - | |
| 1050 | + | |
| 1051 | + | |
1052 | 1052 | | |
1053 | 1053 | | |
1054 | 1054 | | |
| |||
1635 | 1635 | | |
1636 | 1636 | | |
1637 | 1637 | | |
1638 | | - | |
| 1638 | + | |
1639 | 1639 | | |
1640 | 1640 | | |
1641 | 1641 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | 5 | | |
11 | 6 | | |
12 | 7 | | |
13 | | - | |
14 | 8 | | |
| 9 | + | |
15 | 10 | | |
16 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
17 | 15 | | |
18 | 16 | | |
19 | 17 | | |
| |||
106 | 104 | | |
107 | 105 | | |
108 | 106 | | |
109 | | - | |
| 107 | + | |
110 | 108 | | |
111 | 109 | | |
112 | 110 | | |
| |||
307 | 305 | | |
308 | 306 | | |
309 | 307 | | |
310 | | - | |
| 308 | + | |
311 | 309 | | |
312 | 310 | | |
313 | 311 | | |
| |||
541 | 539 | | |
542 | 540 | | |
543 | 541 | | |
544 | | - | |
545 | | - | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
546 | 546 | | |
547 | 547 | | |
548 | 548 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | 3 | | |
6 | 4 | | |
7 | 5 | | |
8 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
110 | | - | |
| 111 | + | |
111 | 112 | | |
112 | 113 | | |
113 | 114 | | |
| |||
628 | 629 | | |
629 | 630 | | |
630 | 631 | | |
| 632 | + | |
631 | 633 | | |
632 | | - | |
| 634 | + | |
633 | 635 | | |
634 | 636 | | |
635 | 637 | | |
| |||
656 | 658 | | |
657 | 659 | | |
658 | 660 | | |
| 661 | + | |
659 | 662 | | |
660 | | - | |
| 663 | + | |
661 | 664 | | |
662 | 665 | | |
663 | 666 | | |
| |||
0 commit comments