0% found this document useful (0 votes)
24 views8 pages

Cat1 Assignment (1) - Merged

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views8 pages

Cat1 Assignment (1) - Merged

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

CAT-| ARTIfCIAL NTELeIbeAICE Assto}NMENI

KONIDALA MANAST
3122So02052
IT- A
0NacumMn cleaner Aqent
Poblem formutation
can b in heY ot tw0 celo cn wwcn each
Slate:The ageut ae 2x2x1:g
dint o not trefore tre
cel Can heie vacum h atete.
nxn
clates T we howne n Clls, the
Titial SHats nitialttote for eroupe;
specfi ed as
Any state can b cells aee dity
Aqent tiH fint ceu and two

roviio) Stete toYward mOre


ceel of any.ttHh,
Buek cuang the BQentd
wally in cwch ase he action has no
it meet a the agent (n the opoite
Cfect MOves and turntet otate by 9o'.
ackward woes
d'ection whiht tunight
Goalstete: clean.
Tu00 ceb
cels ate-de

Action lOsl
ach acien io anit cost

A0+
TYEARs clasSmAte
OF EXCELENCE
mobem:
() 8 puzzle paobew:
Puoblem towulaton;
:- Astate olercnpien spectfies the locatiens of
ffat
each 4-ile.
DnitialsHate :- Any cenfiguration of ties.
Actiens:- Mone bank spate
oet, Right, Up, Down.
RatHton Mocel
state ond action to a teutng state ; t
Maps a skate,the blank.
apply et to the tart
exauple, we on d s' i u be at nght.
Space uilll be at the (eft
Gol rate - nunbeschoder.
specried slate wtth the
2

3 H
6

AcHion cost;
Actiens ae nit coAt.
)Dnial slate
Mentey't tocaton : (o)o)/ pocitioned at the fl ox lerel)
’ Menteys huignt: 3fett (Haudng htigut).
Crate B ave nitiolly plu ce d at
Gate tocatiens : CYate Aand
(O:0) avd (0,0) tn te ttoon Yopechvel
’ Bauana lo coatten:(x8) ohere xtA aYoudom poiRn
along
Dwtal ate cau be nepsented as(nkey (ocahon ,Nonkey igut,
hateA t Coten, cateBlocaton, bananato cohion

bonana en it /ocahion
’Th wMonkey rucceofully gets the and
iA Some ao the bananis locahon meneey helati & eet
yewihontuncton: -

’Punble oLch ot onkeY

2) Cunb (rate p
3) Non Catt A

s)Jump (it aleady standip n ate)


)Do notif achon we ne ed to chok vaw'dity sue aloo nee dto
ar each heigut aceordu y.
update tw monkeyt ocaton and
CObt Cunhien: ac ho Cont has
can be uifom uohwre each
Te cost fnchn ar conide red equally costly
ches art
a uwtom ost I. AU a
and goal

A0+
YEARS
OF EXCELENCE classmate
H) TnittolSlale:
slalt i(0,010) xpBseut iny the aweunt o} wotr in ech jg
(r2 gollon j9, qallonijug)gallnyug)ópechvely
îorget voume: 19elen.
Gtoal 940t;

oih mordWUm Capacity


SEmpya jug onto the geund : Thls acim allowy to eapky
any of the jugs competcly

"TM achios can be seesented(3ugA Juey-B) where


wattr on JugA ’ÎugB untu DugA is eupy
itsourets
wate cannot be poured hom onu to ouoiurug
woteY onto qmsnd itJreejug neupty.
aunot pour

has a
The coOot tun ction ean be unform, ohere ach acttoneaual ost
uitom cOst ot l: Tin wean all achon ane
shorteot Mouence of achs to meaux
qnd to tud the
exocy gallen
A0+
TYEARS
OF EXCELL ENCE classmate
Dniti als4ate:
-’flavt wtth -the fist ecorduhthe fu:
Gtocl tst:
iWgod tnput vecovd
qoalis to ideutity the V
Succemon Functio:
Read Qud moces the next eord ùthefe.
5Dth cunent cord is vaid, moe orm to the rut ord.
the Cunent cord n uegol , Qutput ileg al put
seUYd nand terminate.
Cost Fncticn
SThe coAt tunttion to noteuvont heN nhce wae minply
Headny ond roceniig tords one by one wntl sthe
ivegal tcovd is taund
● Transform analysis identifies the primary functional components (modules) 1.Scenario-based elements
and the input and output data for these components. ● The first step in The system is described from the user’s point of view using a scenario-based
transform analysis is to divide the DFD into three types of parts: ○ Input approach. For example, basic use cases (Section 5.4) and their corresponding use-
case diagrams (Figure 5.2) evolve into more elaborate template-based use cases.
(afferent branch) ○ Processing (central transform) ○ Output (efferent branch) ●
for eliciting requirements and representing them using use cases. Three levels of
In the next step of transform analysis, the structure chart is derived by drawing elaboration are shown, culminating in a scenario-based representation.
one functional component each for the central transform, the afferent and 2.Class-based elements. Each usage scenario implies a set of objects that are
efferent branches. ● These are drawn below a root module, which would manipulated as an actor interacts with the system. These objects are categorized
invoke these modules. into
classes—a collection of things that have similar attributes andcommonbehaviors.
Transaction analysis is an alternative to transform analysis and is useful while 3.Behavioral elements. The behavior of a computer-based system can have a
designing transaction processing programs. ● A transaction allows the user to profound effect on the design that is chosen and the implementation approach that
perform some specific type of work by using the software. ● For example, isapplied. Therefore, the requirements model must provide modeling elements
‘issue book’, ‘return book’, ‘query book’, etc., are transactions. ● As in that depict behavior.
transform analysis, first all data entering into the DFD need to be identified. ● 4. Flow-oriented elements. Information is transformed as it flows through a
In a transaction-driven system, different data items may pass through different computer-based system. The system accepts input in a variety of forms, applies
functions to transform it, and produces output in a variety of forms
computation paths through the DFD. ● This is in contrast to a transform
centered system where each data item entering the DFD goes through the
same processing steps. ● Each different way in which input data is processed is
a transaction. For each identified transaction, trace the input data to the
output. ● All the traversed bubbles belong to the transaction. ● These bubbles
should be mapped to the same module on the structure chart. ● In the
structure chart, draw a root module and below this module draw each
identified transaction as a module.
V semester
Information Technology
UIT2504 and ARTIFICIAL INTELLIGENCE
Assignment 2
CO1: Understand the basic concepts of intelligent agents
Develop general-purpose problem-solving agents, logical reasoning agents, and agents that
CO2:
reason under uncertainty
CO3: Employ AI techniques to solve some of today’s real-world problems

KL CO

1. Assume the Bayes Net from class is a prefect representation of the world, you K3 CO2
know that you do not have a stomach bug, if you were to vomit, would that
information change the probability that you had a fever?

2. K3 CO2

Identify the causal and diagnostic relationship in the above Bayesian Network
3 Write down the joint probability table for the following Bayesian K3 CO2
network:
4 toothache ~toothache K3 CO2
catch ~catch catch ~catch
cavity 0.108 0.012 0.072 0.008
~cavity 0.016 0.064 0.144 0.576

Given the full joint distribution calculate P(toothache | cavity)

5 Given the network below, calculate marginal and conditional K3 CO2


probabilities: Pr(¬p3), Pr(p2|¬p3), Pr(p1|p2, ¬p3) and Pr(p1|¬p3, p4).
Apply the method of inference by enumeration.

6 Consider the Bayesian belief Network. The Probability are given as K3 CO2

E M

B
S

P(E) = 0.4 P(M) = 0.1 P(S|E,M)=1.0 P(~S|E,M)=0.0 P(S|E,~M)=0.8


P(~S|E,~M)= 0.2 P(S|~E,M)= 0.3 P(~S|~E,M)=0.7 P(S|~E,~M)=0.1
P(~S|~E,~M)=0.9 P(B|M)=1.0 P(~B|M)=0.0 P(B|~M)=0.1 P(~B|~M)=0.9
Calculate P(B) and P(M|B).
7 After peak summer, all inhabitants of a hamlet are sick. 60% of them K3 CO2
have chicken pox, while 40% have flu. There are no other causes of
illness among this population. While 95% of those suffering from
chicken pox develop rashes, 8% of those with flu have rashes. When a
doctor examines a sick man, he observes rashes. What is the probability
that this man has chicken pox?

You might also like