| **Concept** | **Note** |
| ------------------------- | :------------------------- |
| [[Agent]] | ![[Agent#^ab7901]] |
| [[Rational]] | ![[Rational]] |
| [[actuator]] | ![[actuator]] |
| [[sensor]] | ![[sensor]] |
| [[Agent function]] | ![[Agent function]] |
| [[Agent program]] | ![[Agent program]] |
| [[Consequentialism]] | ![[Consequentialism]] |
| [[Rational agent]] | ![[Rational agent]] |
| [[Omniscience]] | ![[Omniscience]] |
| [[Information gathering]] | ![[Information gathering]] |
![[Game theory - environment types]]
![[Agent types]]
**[[Environment-action representation]]**
![[Environment-action representation]]
![[Goal-based agents representation]]
| Concept | note |
| ---------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| [[Tree search]] | Init, serve, taste, goal test, serve |
| [[Graph search]] | Init, serve, taste, goal test, explored, serve if not explored or served |
| [[Repeated state]] | Same state different node |
| [[Loopy path]] | Path from state to itself |
| [[Redundant path]] | More than one way to get from a to b |
| [[Breadth-first search\|BFS]] | Complete, optimal for unicost, O(b^d), O(b^d) |
| [[Depth-first search\|DFS]] | Not complete, not optimal, O(b^m), O(bm) |
| [[Depth-limited search\|DLS]] | DFS till depth limit |
| [[Iterative deepening search\|IDS]] | Complete, Optimal for unicost, -> O(b^d), O(bd) |
| [[Uniform cost search\|UCS]] | f(n) = g(n) |
| [[Greedy best-first search]] | f(n) = h(n)<br><br>Not complete, not optimal, O(b^m), O(b^m) |
| [[Admissible heuristic]] | Never overestimates cost to goal |
| [[Consistent heuristic]] | h ≤ action + new state h |
| [[A* search]] | Complete, Optimal, O(b^(ed)) O(# of nodes)<br><br>a*(n) = path(n) + h(n) |
| [[Hill climb]] | Gradient ascent generalized to discrete env |
| [[Minimax]] | O(bm) |
| [[A-b pruning]]<br><br>O(bm/2), O(b3m/4) | Alpha = best for max<br><br>Beta = best for min |
| [[CSP]] | Vards, domains, constraints |
| [[Node-consistent]] | Domain satisfies unary constraints |
| [[Arc-consistent]] | Domain satisfies binary constraints |
| [[AC3]] | O(cd^3) d = domain size, c = constraints |
| [[Minimum remaining values heuristic]] | Var with fewest legal vals |
| [[Degree heuristic]] | Var with largest number of constraints |
| [[Least-constraining value heuristic]] | Val with least ruled out choices |
| [[Forward checking]] | Assign a value to a var and update domains, repeat |
| [[Local Search]] | complete-state formulation: the initial state assigns a value to each variable, and the search changes the value of one variable at a time |
| [[Min-conflicts heuristic]] | Val with min conflicts with other vars |
| [[Subproblem solving csp]] | O(dc * n/c), n/c subproblems |
| Constraint graph = tree | O(nd2) |
| Cycle cutset | Removing it leaves us with a tree O(dc(n-c)d2) |
| [[Tree width]] | Size of largest node - 1 |
| [[Soundness]] | If derived then entailed |
| [[Completeness]] | If entailed then derived |
| [[Operator precedence]] | $\neg, \land, \lor, \implies, \iff$ |
| [[Valid]] | True for all models |
| [[satisfiable]] | True for some model |
| [[Reductio ad absurdum]] | KB and not a is invalid |
| [[Modus Ponens]] | Method of affirming |
[[Types of clauses]]:
- **Definite clause:** a disjunction of literals of which exactly one is positive, e.g. (¬L1,1∨¬Breeze∨B1,1)(¬L1,1∨¬Breeze∨B1,1)
- **Horn clause:** a disjunction of literals of which at most one is positive
- **Goal clause:** a disjunction with no positive literals
- **k-CNF:** a CNF sentence where each clause has at most k literals
Propositional logic: declarative, allows partial/disjunctive/negated, compositional, context-independent, limited expressive power
- **atomic sentences:** a single propositional symbol that can be either True or False, e.g.
True,False,P,Q,R,W1,3,FacingEast
- **complex sentences:** constructed from simpler sentences, using parentheses and logical connectives
- **connectives:** negation ¬, conjunction ∧, disjunction ∨, implication ⟹, biconditional ⟺
- **literals:** an atomic sentence (positive literal) or a negated atomic sentence (negative literal), e.g.
P,¬PP,¬P
| Concept | Note |
| ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [[PL-resolution]] | Prove (KB and not a) is unsat by looping thru each pair of clauses |
| Pure symbol | Always with same sign |
| [[DPLL]] | Depth first recursive, takes cnf, determines SAT |
| [[Unit clause heuristic]] | Assign all unit clauses first |
| [[Component analysis]] | ![[Component analysis]] |
| Variable and value ordering | Non-arbitrary way of choosing variables and values to be assigned next. The degree heuristic chooses the variable that appears most frequently over all remaining clauses |
| [[Intelligent backtracking]] | ![[Intelligent backtracking]] |
| [[Random restarts]] | If no visible progress is observed, start over from the top of the search tree, with different random choices made after that |
| [[Clever indexing]] | The indexing structures must be updated dynamically as the computation proceeds |
| [[SAT problems]] | Can get solved by hill-climbing, sim-annealing or other local search strats |
| [[Fluent]] | State variable |
| [[Atemporal variable]] | Not fluent |
| [[Effect axiom]] | States preconditions and changes |
| [[Frame axiom]] | States what doesn’t change |
| [[Successor-state axiom]] | Had arrow and not shot at t - 1 -> have arrow |
| [[Precondition axiom]] | Shoot at t implies have arrow at t |
![[First order logic]]
| Concept | Note |
| -------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
| [[DB Semantics]] | Unique names, not known assumed false, no more domain elements |
| [[Diagnostic rule]] | infer cause from effect |
| [[Causal rule]] | Infer effect from cause |
| [[Skolem constant]] | In prop logic, some constant that exists out there |
| [[Semidecidable]] | Algos can infer if yes but cant if no |
| [[First order definite clause]] | Disjunctions of literals where only 1 is positive<br><br>Existential not allowed, Universal is implied |
| [[Fixed point]] | No more inferences to do |
| [[PDDL for planning]] | No negations, fluents, functions |
| [[State abstraction]] | Limit cargo to only 5 airports (note: refers to a specific problem that was discussed during class as an example) |
| [[Total-order planner]] | Maintains ordering of plan steps |
| [[Slack]] | LS - ES |
| [[Downward refinement property]] | At least one implementation achieves goal |