CSCI 4511/6511
\(R_{HK} \Rightarrow \neg R_{SI}\)
\(G_{HK} \Rightarrow \neg G_{SI}\)
\(B_{HK} \Rightarrow \neg B_{SI}\)
\(R_{HK} \lor G_{HK} \lor B_{HK}\)
Goal: find assignment of variables that satisfies conditions
Yes.
😌
It is a nice day.
It is warm outside.
The temperature is at least 78°F outside.
The temperature is exactly 78°F outside.
!
, not
, etc.)&&
, and
, etc.)
Falsehood:
It is possible to not know things:1
Deliberate typographical error!
Commonly abbreviated “SAT”
\((X_0 \land X_1) \lor X_2\)
\(X_0 \land \neg X_0 \land X_1\)
This is the entire point of the course.
Theory and practice are the same, in theory, but in practice they differ.
pycosat
No cat is a vegetarian
First cat is a vegetarian
Second cat is a vegetarian
Third cat is a vegetarian
…First-Order Logic:
Loops 🙂 :
Goal: find assignment of variables that satisifies conditions
\[P(x) = \lim_{n \to \infty} \frac{n_x}{n}\]
…if you thought this course was going to be about LLMs
Possible combinations:
\[\binom{n}{k} = \frac{n!}{k!(n-k)!}\]
Of a variable: \[E[X] = \sum_{i=0}^n x_i \cdot p(x_i)\]
Of a function of a variable:
\[E[g(x)] = \sum_{i=0}^n g(x_i) \cdot p(x_i) \neq g(E[X])\]
\[\text{Var}(X) = E[(X - E[X])^2]\]
\[\begin{align}\text{Var}(X) & = E[(E[X]-\mu)^2]\\ & = \sum_x (x-\mu)^2 p(x) \\ & = \sum_x (x^2 - 2 x \mu + \mu^2) p(x) \\ & = \sum_x x^2 p(x) - 2 \mu \sum_x x p(x) + \mu^2 \sum_x p(x) \\ & = E[X^2] - 2 \mu \mu + \mu^2 \\ & = E[X^2] - E[X]^2 \end{align}\]
Stuart J. Russell and Peter Norvig. Artificial Intelligence: A Modern Approach. 4th Edition, 2020.
Mykal Kochenderfer, Tim Wheeler, and Kyle Wray. Algorithms for Decision Making. 1st Edition, 2022.
Stanford CS231
Stanford CS228
UC Berkeley CS188