next up previous contents
Next: Solutions and Comments Chapter 12 Up: Solutions and Comments Chapter 11 Previous: Solutions and Comments Chapter 11

Exercise Chapter 11.1

  1. Here is the answer in Prolog Form:
     
    :(rule31,
    

    if(then(and(=(of(colour,wine),white),

    and(or(=(of(body,wine),light), =(of(body,wine),medium)),

    or(=(of(sweetness,wine),sweet), =(of(sweetness,wine),medium)))),

    then confidence_factor(=(wine,riesling),1000))))

    The tree is up to you!



Paul Brna
Mon May 24 20:14:48 BST 1999