This is a Week13 | Review page, written Sun Apr 20 14:12:25 PDT 2008.
@relation weather.symbolic
@attribute outlook {sunny, overcast, rainy}
@attribute temperature {hot, mild, cool}
@attribute humidity {high, normal}
@attribute windy {TRUE, FALSE}
@attribute play {yes, no}
@data
sunny,hot,high,FALSE,no
sunny,hot,high,TRUE,no
overcast,hot,high,FALSE,yes
rainy,mild,high,FALSE,yes
rainy,cool,normal,FALSE,yes
rainy,cool,normal,TRUE,no
overcast,cool,normal,TRUE,yes
sunny,mild,high,FALSE,no
sunny,cool,normal,FALSE,yes
rainy,mild,normal,FALSE,yes
sunny,mild,normal,TRUE,yes
overcast,mild,high,TRUE,yes
overcast,hot,normal,FALSE,yes
rainy,mild,high,TRUE,no
This is a Review | Week12 page, written Sun Apr 20 13:35:54 PDT 2008.
M1= A B C D E F G
A . 1 . . . . .
B . . 1 . . . .
C . . . 1 1 . .
D . . . . . . .
E . . . . . 1 .
F . . . . . . 1
G . . . . . . .
M2= A B C D E F G
A . . . . 1 . .
B . . . . . 1 .
C . . . . . . .
D . . . . . . .
E 1 . . . . . .
F . 9 . . . . .
G . . 3 . . . .
This is a Review | Week11 page, written Sun Apr 20 13:17:01 PDT 2008.
This is a Week10 | Review page, written Sat Mar 15 15:21:25 PDT 2008.
B3: if the step is pack-large-items and there is a large item to be packed and there is a large bottle to be packed and there is a bag with < 6 large items then put the bottle into the bag B4: if the step is pack-large-items and there is a large item to be packed and there is a bag with < 6 large items then put the large item into the bag B5: if the step is pack-large-items then the step is pack-medium-items
rule ID1 if condition THEN EXCEPT rule ID2 THEN conclusion because EXAMpleExplain the use of this rule using the following example:
This is a Week9 | Review page, written Thu Mar 6 09:25:48 PST 2008.
Graph-based abduction
if x then not_j if not_j then d if y then not_d if not_d then j if j then e if d then c if e then c if c then a if e then k if k then b
This is a Review | Week6 page, written Sun Feb 17 13:27:37 PST 2008.
A B A and B A or B not A -- -- ----------- -------- ------- 0 0 0 0 1 0 1 0 1 1 1 0 0 1 0 1 1 1 1 0Reproduce this table using the Zadeh operators for (A B) = (0.3 0.7).
(defun crisp (x a b crisp)
"Return a point in a sigmoid function centered at (a - b)/2"
(labels ((as100 (x min max)
(+ -50 (* 100 (/ (- x min) (- max min))))))
(/ 1 (+ 1 (exp (* -1 (as100 x a b) crisp))))))
Mark on the x-axis the key points of the function.
(defun fuzzy-fun1 (x a b c) (max 0 (min (/ (- x a) (- b a)) (/ (- c x) (- c b)))))Mark on the x-axis the key points of the function.
(defun fuzzy-fun2 (x a b c d) (max 0 (min (/ (- x a) (- b a)) 1 (/ (- d x) (- d c)))))Mark on the x-axis the key points of the function.
(defun dist (d what)
(case what
(range '(close medium far))
(close (fuzzy-triangle d -30 0 30))
(medium (fuzzy-trapezoid d 10 30 50 70))
(far (fuzzy-grade d 0.3 50 100))
(t (warn "~a not known to dist" what))))
Mark on the x-axis the key points of these functions.
This is a Review | Week5 page, written Sun Feb 17 13:26:22 PST 2008.
This is a Review | Week4 page, written Sun Feb 10 06:08:28 PST 2008.
For each of the following search methods: depth-first, breadth-first, best, beam:
This is a Review | Week3 page, written Fri Feb 1 12:01:17 PST 2008.
(defun tree-search (states goal-p successors combiner) (labels ((next () (funcall successors (first states))) (more-states () (funcall combiner (next) (rest states)) (cond ((null states) nil) ; failure. boo! ((funcall goal-p (first states)) (first states)) ; success! (t (tree-search ; more to do (more-states) goal-p successors combiner))))
This is a Week2 | Review page, written Thu Jan 24 11:28:40 PST 2008.
(Note to CS472 students. While the quiz will be drawn from questions like the following, the precise details of the exam questions may be somewhat different to the following. So don't rote learn these- rather, strive to understand the principles behind these questions. )
(defun mappend (fn list) (apply #'append (mapcar fn list)))
(defun numbers-and-negations (input)
(mappend #'number-and-negation input))
(defun number-and-negation (x)
"If x is a number, return a list of x and -x."
(if (numberp x)
(list x (- x))
nil))
(defparameter *education* '((graduate -> preschool high-school undergrad) (high-school -> grade-school high-years) (high-years -> hiyear1 hiyear2 hiyear3 hiyear4) ...)
This is a Week1 | Review page, written Thu Jan 17 11:07:27 PST 2008.
AI and advanced AI techniques. Spring 2008. LCSEE, WVU