You are on page 1of 9

Question no 1:-

SCREENSHOT CODE:-

m
er as
co
eH w
o.
rs e
ou urc
o
aC s
vi y re
ed d
ar stu
is
Th
sh

This study source was downloaded by 100000785291054 from CourseHero.com on 11-29-2021 10:33:31 GMT -06:00

https://www.coursehero.com/file/101637374/AI-FINAL-EXAM-38019-2021docx/
m
er as
co
eH w
o.
rs e
ou urc
o
aC s
vi y re
ed d
ar stu
is
Th
sh

This study source was downloaded by 100000785291054 from CourseHero.com on 11-29-2021 10:33:31 GMT -06:00

https://www.coursehero.com/file/101637374/AI-FINAL-EXAM-38019-2021docx/
Question no 2:-
Model the given tree by using the formulation of the adversarial search and print the values of all
the nodes.
SCREENSHOT OF CODE:-

m
er as
co
eH w
o.
rs e
ou urc
o
aC s
vi y re
ed d
ar stu
is
Th
sh

This study source was downloaded by 100000785291054 from CourseHero.com on 11-29-2021 10:33:31 GMT -06:00

https://www.coursehero.com/file/101637374/AI-FINAL-EXAM-38019-2021docx/
m
er as
co
eH w
o.
rs e
ou urc
o
aC s
vi y re
ed d
ar stu
is
Th
sh

This study source was downloaded by 100000785291054 from CourseHero.com on 11-29-2021 10:33:31 GMT -06:00

https://www.coursehero.com/file/101637374/AI-FINAL-EXAM-38019-2021docx/
Also extend the simple minimax program to implement the alpha beta pruning algorithm and provide
the best move(s).

m
er as
co
eH w
o.
rs e
ou urc
o
aC s
vi y re
ed d
ar stu
is
Th
sh

This study source was downloaded by 100000785291054 from CourseHero.com on 11-29-2021 10:33:31 GMT -06:00

https://www.coursehero.com/file/101637374/AI-FINAL-EXAM-38019-2021docx/
OUTPUT OF CODE:-

m
er as
co
eH w
BEST MOVE WILL BE NO 15

o.
rs e
ou urc
o
aC s
vi y re
ed d
ar stu
is
Th
sh

This study source was downloaded by 100000785291054 from CourseHero.com on 11-29-2021 10:33:31 GMT -06:00

https://www.coursehero.com/file/101637374/AI-FINAL-EXAM-38019-2021docx/
Question no 3:-
What is the probability that a person will develop a blood clot as a result of both medication and
trauma, and then have no medical implications?
Answer:-

This is the final result:-


P(N,BC,M,T) = P(N∣BC) P(BC∣M,T) P(M) P(T) = (0.25)(0.95) (0.2) (0.05) = 0.2375%
The probability that a person will develop a blood clot as a result of both medication and trauma,
and then have no medical implications is 0.2375%.

m
er as
Implement the above Bayesian network using python.

co
eH w
SCREENSHOT OF CODE:-

o.
rs e
ou urc
o
aC s
vi y re
ed d
ar stu
is
Th
sh

This study source was downloaded by 100000785291054 from CourseHero.com on 11-29-2021 10:33:31 GMT -06:00

https://www.coursehero.com/file/101637374/AI-FINAL-EXAM-38019-2021docx/
m
er as
co
eH w
o.
rs e
ou urc
o
aC s
vi y re
ed d
ar stu
is
Th
sh

This study source was downloaded by 100000785291054 from CourseHero.com on 11-29-2021 10:33:31 GMT -06:00

https://www.coursehero.com/file/101637374/AI-FINAL-EXAM-38019-2021docx/
m
er as
co
eH w
o.
rs e
ou urc
o
aC s
vi y re
ed d
ar stu
is
Th
sh

This study source was downloaded by 100000785291054 from CourseHero.com on 11-29-2021 10:33:31 GMT -06:00

https://www.coursehero.com/file/101637374/AI-FINAL-EXAM-38019-2021docx/
Powered by TCPDF (www.tcpdf.org)

You might also like