can prefer the \textit{AILog} method when speed is of an essence. When
precision is necessary manual calculation is preferred.
+\newpage
\section{Burglary problem with extended information}
-$\frac{1}{1000}+\frac{9999}{10000}\frac{1}{10000}+\frac{9999}{10000}\frac{9998}{9999}\frac{1}{19998}$
+$P(burglary)\cdot\left(
+ P(\text{first house is holmes'})+
+ P(\text{second house is holmes'})+
+ P(\text{third house is holmes'})\right)=\\
+0.5102040816326531\cdot\left(
+ \frac{1}{10000}+
+ \frac{9999}{10000}\cdot\frac{1}{9999}+
+ \frac{9999}{10000}\cdot\frac{9998}{9999}\cdot\frac{1}{9998}\right)=
+\frac{3}{19600}\approx0.000153$
\date{\today}
\title{Knowledge representation and reasoning\\ Assignment 2}
+\everymath{\displaystyle}
+
\begin{document}
\tableofcontents
\input{ass2-1.tex}
prob jack: 5/7.
prob averall: 5/7.
-joeWorks <- joe.
-jackWorks <- jack & joe.
-williamWorks <- william.
-averallWorks <- averall & jack & william.
-
-burglary <- joeWorks & jackWorks.
-burglary <- joeWorks & williamWorks.
-burglary <- joeWorks & averallWorks.
-burglary <- jackWorks & williamWorks.
-burglary <- jackWorks & averallWorks.
-burglary <- williamWorks & averallWorks.
+burglary <- joe & jack.
+burglary <- joe & william.
+burglary <- joe & william & jack.
+burglary <- joe & william & jack & averall.
% Salami : cheese, tomatosauce, salami.
% Funghi : cheese, tomatosauce, mushrooms, ham(50%).
% Pepperoni : cheese, tomatosauce, salami, jalapeƱos.
+
+prob salamicircle: 1/2.
+prob mozarellacircle: 1/2.
+prob chililines: 4/5.
+prob taugelines: 1/5.
+prob blocksham: 1/2.
+prob blockspineapple: 1/2.
+
+circles
+doublecircles
+lines
+squares
+blob