

















































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


















































Artificial Intelligence Pondicherry University 56 pag.
Document shared on www.docsity.com
A.Rakesh Babu (^) M.C.A., M.Tech.
Asst.Prof
69
Before we can explain non-monotonic reasoning, we can consider the following example.
Ex:
Suppose we take, there are 3 persons to be suspects in a murder case. Let Abbott, Babbitt, Cabot be suspects in a murder case. Abbott was an alibi in the register of respected hotel in Albany. Babbitt also has alibi for his brother-in-law testified that Babbitt was visiting him in Brooklyn at the time. Cabot pleads alibi too, claiming to have been watching a ski meet in Catskills.
Based on the above statements, we believe
The explanation of the statements can be considered “Who might commit the crime?” we cannot identify that who has committed the crime. Because of that knowledge base is not enough.
There are two systems to explain the statements and avoid the uncertainty is
Nonmonotonic Reasoning Statistical Reasoning
make it possible to reason with incomplete information.
numerical measure. It consider either true or false but not both.
There are three principles in Nonmonotonic reasoning. They are as follows
Document shared on www.docsity.com
A.Rakesh Babu (^) M.C.A., M.Tech.
Asst.Prof
71
Default reasoning is another form of non-monotonic reasoning .it eliminates the need to explicitly store all the facts regarding a situation. Default logic introduces a new inferences rule.
A:B C
This states that if A is provable and it is consistent to assume B then conclude C. This is similar to Nonmonotonic logic. In the place of ‘M’ in NML, we substitute ‘ :’ in Default Logic.
Based on the above example, we can provide the 2 rules as
1. A:B C 2. ¬ A:B C
Similarly, we can write these statements as
If A is a republican: if we assume that B is not pacifist B is not Pacifist If A is a Quaker: if we assume that B is not pacifist B is Pacifist
Two kinds of Nonmonotonic reasoning that can define in these logics are:
**1. Abduction
It is opposite process of deduction.
We present the abductive inference rule as
Assertion Q
Implication PC Q
Conclusion P
The arrow mark () represent the possible casual relationship.abductive inference in based on the issue of known casual knowledge to explain a conclusion or to justify a conclusion.
(x): measles (x) spots (x)
Document shared on www.docsity.com
A.Rakesh Babu (^) M.C.A., M.Tech.
Asst.Prof
72
Inheritance is a basis for inheriting attribute values from a prototype description of a class to individual entities that belong to the class. Inheritance says that “An object inherits attribute values from all the classes which it is member unless doing so leads to contradiction, in which case a value from a more restricted class has precedence over a value from a broader class”.
Ex : Base Ball Game
In this we can combine more than one statement in the following way.
1. Adult Male (x) : height (x, 5’10”) Height (x, 5’10”) 2. Baseball player (x) : height(x, 6 ’ 1 ” ) Height(x, 6’ 1”)
If it is considered to assume that, x is not a baseball player then x height is 5’ 10”.
x: Adult Male (x) : ¬Baseball player (x) ^ Height (x, 5’10”) Height (x, 5’10”)
Minimalist reasoning follows the idea that “there are many fewer true statements than false ones. If something is true and relevant it makes sense to assume that is has been entered into our knowledgebase. Therefore, assume that the only true statements are those that necessarily must be true in order to maintain the consistency of knowledge base”.
Two kinds of minimalist reasoning are: (1) Closed world assumption (CWA). (2) Circumscription.
knowledge, is more global in nature than single defaults. This type of assumption is useful in application where most of the facts are and it is, therefore, reasonable to assume that if a proposition cannot be proven, it is false. This is known as the closed world assumption with failure as negation. This means that in a kb if the ground literal p(a) is not provable, then ~p(a) is assumed to hold true. CWA is another form of non-monotonic reasoning. CWA is essentially the formalism under which prolog operates and prolog has been shown to be effective in numerous application.
Disadvantages:
Document shared on www.docsity.com
A.Rakesh Babu (^) M.C.A., M.Tech.
Asst.Prof
74
Augmenting problem solver:
It deals with how we can write a program that solves problems using these facts. We will now discuss how to write programs for logical formulas. We knew that the problem solving can be done using either forward or backward reasoning. Problem can be solved by using uncertain knowledge can also be done by using these two methods.
Reason forward from what is known. Treat monotonically derivable conclusions the same way monotonically derivable ones are handled. Nonmonotonic reasoning systems that support this kind of reasoning allow standard forward chaining rules to be augmented with unless clauses, which introduce a basis for reasoning by default. Control is handled in the same way that all other control decisions in the systems are made. Reason backward to determine whether some expression P is true. Nonmonotonic reasoning systems that support this type of reasoning may do either one or both of the following two things. Allow default clauses in backward reasoning rules. Support a kind old discussion in which an attempt is made to construct argument both in favor of p and opposed to that.
DFS and BFS:
In this first search, the search proceeds along with a branch of tree. This method can be implemented in three ways as follows.
The effective depth first search tree may be reduced by doing one search from in an abstract to get rough solution and then doing another search formalism in the actual space to refine the solution.
Backtracking in ordinary depth-first search is called chronological backtracking because decisions are retracted and changed according to the order in which they were made, with the most recent decision being changed first. In some domains this is appropriate, since there is a time dependency between actions. In chess, for example, moves must be made in order. Other domains, however, do not have this restriction.
Document shared on www.docsity.com
A.Rakesh Babu (^) M.C.A., M.Tech.
Asst.Prof
75
Example:
The dependency directed backtracking can use in finding the route such as search for a path between two locations first on a map that includes only major cities and inter state highways, then refine paths to get to the inter state highways
The idea of truth maintenance system or TMS arose as a way of providing the ability to do dependency directed backtracking and to support Nonmonotonic reasoning.
The main job of the TMS is to maintain consistency of the knowledge being used by the problem solves and not to perform any inference functions. The TMS also gives the inference component the latitude to perform Nonmonotonic inferences. When new discovers are made, this more recent information can displace previous conclusions that are no longer valid .in this way the set of beliefs available to the problem solver will continue to be current and consistent.
Diagram:
Tell
Ask
Fig: Architecture of the problem solver with a TMS
The role played by the TMS a part of the problem solver. the inference engine solves domain problems based on its current belief set, while the TMS maintains the currently active belief set .the updating process is incremented .after each inference ,information is exchanged between the 2 components .the IE tells the TMS what the deductions has made. The TMS in turn, asks questions about current beliefs and reasons for failures. It maintains a consistent set of beliefs for the I.e. to work with even if now knowledge is added & removed. The TMS maintains complete records of reasons of justifications for beliefs. Each proposition having at least 1 valid justification is made a part of current belief set. Statements lacking acceptable justifications are excluded from this set. When a contradiction is discovered the statements responsible for the contradiction are identified & an appropriate one is retracted. This in turn may result in other retractions & additions. The procedure used to perform this process is called dependency back tracking. The TMS maintains records to reflect retractions and additions & that will always know its current belief set. The records are maintained in the form of dependency network. The node in the network represents KB entries such as premises, conclusions, inference rules and the like. Attached
Document shared on www.docsity.com
A.Rakesh Babu (^) M.C.A., M.Tech.
Asst.Prof
77
Ex : Consistency criterions:
The following two cases show how consistency is maintained while changing Abbott’s state.
Case (i).Abbott is beneficiary. We have no further justification for this fact. We simply accept it. The following figure shows a consistent labeling for the network with premise justification.
Suspect Abbott [IN]
Beneficiary Alibi Abbott [Out] Abbott [IN] Empty IN and OUT lists Fig: Labeled nodes with premise Justification.
Case (ii): If Abbott’s alibi is obtained, and then some more justifications are added. Then consistency is maintained in the following ways, by making the following inclusions.
Abbott was registered is a hotel Premise justification So IN Hotel is far away Premise justification. SO IN Register might be forged Lacks any justification. SO OUT Above 3, shows that “Suspect about” no longer has a justification SO OUT
Suspect Abbott [OUT]
Beneficiary Alibi Abbott [IN]
Abbott [IN]
Registered Abbott [in] Far away [in] Register forged[OUT]
Fig: Changed labeling
Document shared on www.docsity.com
A.Rakesh Babu (^) M.C.A., M.Tech.
Asst.Prof
78
Well-Founded ness criterion: (1) It is defined as the proper grounding of a chain of justifications on a set of nodes that do not themselves depend on the nodes they support. (2) For example: Cabot justification for his alibi that he was at a ski show is hardly valid.
The only support for the alibi of attending the ski show is that Cabot is telling the truth. ------ (1) The only support for his telling the truth would be if we knew he was at the ski show. --------(2)
Above (1) and (2) statements show a chain of IN- List links to support the “Alibi Cabot “ Node. So, in such cases the node should be labeled OUT for well-founded ness.
Suspect Cabot [IN]
Beneficiary Cabot [IN] Alibi Cabot [OUT] +
Cabot Justification --- Well Founded ness. Resolving Contradictions Criterion:
(1) A contradiction in TMS is a state of the database explicitly declared to be undesirable. (2) Example: In our example, a contradiction occurs if we do not have at least one murder suspect or if there are suspects other than Abbott, Babbitt, and Cabot.
Contradiction [out]
Suspect Abbott Suspect Babbit Suspect Cabot Other suspect
Document shared on www.docsity.com
A.Rakesh Babu (^) M.C.A., M.Tech.
Asst.Prof
80
A Weak Slot and Filler Structures are data structures to identify different objects in a statement and also provide the relationship between the objects using of “isa” and “instance” classes. Weak Slot and Filler Structures can be divided into two types.
In a semantic net, information is represented as a set of nodes connected to each other by a set of labeled arcs, which represent relationship among the nodes. Network representations provide a means of structuring and exhibiting the structure in knowledge. In a network, pieces of knowledge are clustered together into coherent semantic groups. Networks also provide a more natural way to map to and from natural language than do other representation schemes. Network representation gives a pictorial presentation of objects, their attributes and the relationships that exist between them and other entities. These are also known as associative networks. Associative networks are directed graph with label nodes and arcs or arrows. A semantic network or semantic net is a structure for representing knowledge as a pattern of interconnected nodes and arcs. It is also defined as a graphical representation of knowledge.
The example of semantic net as follows.
isa
has-part
Uniform instance Color team
Fig: A semantic Network
This network contains examples of both the isa and instance relations. The domain specific relations like team and uniform-color. We would use inheritance to derive the additional relation.
has-part (Pee-Wee-Reese, Eyes)
Mammal
Persons Eyes
Blue Pee-Wee-Reese Brooklyn-Dodgers
Document shared on www.docsity.com
A.Rakesh Babu (^) M.C.A., M.Tech.
Asst.Prof
81
A semantic Net can be further classified into different techniques as follows.
Semantic nets were used to find relation ship among objects by spreading activation out from each of two nodes seeing where the activation meets.
Semantic nets are a natural way to represent nonbinary predicates. It would be similar to isa and instance. Some of the arcs in the below example are as follows.
isa Visiting team score
home-team
fig: A semantic Net for an n-place Predicate
isa (G23, Game) home-team (G23, Dodgers) visiting team (G23, Cubs) Score (G23, 5-3)
In this example, we can represent an arc more than 2 objects is Score (Cubs, Dodgers, 5-3) The above statement is binary predicate. Suppose we take a unary predicate Man (Marcus), it can be converted into a binary predicate as Instance (Marcus, Man)
Game
Cubs^ G23^ 5-
Dodgers
Document shared on www.docsity.com
A.Rakesh Babu (^) M.C.A., M.Tech.
Asst.Prof
83
The nodes dog, bite and mail carrier represent the class of dog, biting and mail carriers respectively, while the nodes d, b and m represent a particular biting and a particular mail carrier. This fact can be easily be represented by a single net with no partitioning.
But now suppose that we want to represent the fact
Every dog has bitten a mail carrier.
To represent this fact, it is necessary to encode the scope of the universally quantified x. The node g stands for the assertion given above. Node g is an instance of the special class GS of general statement about the world. Every element of GS has as least two attributes. A form, which states
the relation that is being asserted, and one or more connections, one for each of the universally quantified variables. There is only one such variable d., which and stand for any element of the class dogs. The other two variables in the form, b and m are under stood to be existentially quantified. In other words, for every dog d, there exists a betting event b, and mail Carrie n, such that d is the assailant of b and m is the victim.
Every dog in town has bitten the constable
Isa isa isa Assailant victim
Dog (^) Bite Mail-carrier
d b m
form
Isa isa isa SI
Assailant victim
d b m
Dogs Bite Mail carrier
g
isa
Document shared on www.docsity.com
A.Rakesh Babu (^) M.C.A., M.Tech.
Asst.Prof
84
In this net, the node c representing the victim lies out side the form of the general statement. Thus it is not viewed as an existentially quantified variable whose value may depend on the value of d, instead it is interpreted as standing for a specific entity. (In this case, a particular constant), just as do other nodes in a standard, non partitioned.
Every dog has bitten every mail carrier
In this case, g has two links, one pointing to d, which represents any dog, and one pointing to m, representing any mail carrier.
SA
isa isa isa SI
assailant victim
Dogs Bite Mail-carrier
d b m
GS g
Gs Dogs Bite Constables
Town-Dogs
g d b c
isa
isa isa
assailant victim
isa
form
isa
Document shared on www.docsity.com
A.Rakesh Babu (^) M.C.A., M.Tech.
Asst.Prof
86
Ba ts: rig ht Ba tting -a vg :. Te a m : Bro o klyn-Do d g e rs Unifo rm -C o lo r: Blue
ML-Ba se Ba ll-Te a m
Isa : te a m C a rd ina lity: 26 *te a m -size : 24 *m a na g e r:
Bro o klyn-Do d g e rs
Insta nc e : ML-Ba se Ba ll-Te a m Te a m -size : 24 Ma na g e r: Le o -Duro c he r Pla ye rs: { Pe e -We e -Re e se ,… }
Sup p o se we wa nt to re p re se nt the c la sse s o f a ll te a m s a s a Me ta c la sse s. We ha ve two c la sse s, whic h d o e s no t ha ve a ny c a rd ina lity.
Cla ss Insta nc e : c la ss Isa : c la ss *c a rd ina lity:
Te a m Insta nc e : c la ss Isa : c la ss C a rd ina lity: {the num b e r o f te a m s tha t e xist} *te a m -size : {e a c h te a m ha s a size }
ML-Ba se Ba ll-Te a m
Insta nc e : c la ss Isa : c la ss C a rd ina lity: {the num b e r o f te a m s tha t e xist} *te a m -size : {e a c h te a m ha s a size } *m a na g e r:
Bro o klyn-Do d g e rs
Insta nc e : c la ss Isa : c la ss te a m -size : 24 m a na g e r: Le o -Duro c he r unifo rm -c o lo r: b lue
Document shared on www.docsity.com
A.Rakesh Babu (^) M.C.A., M.Tech.
Asst.Prof
87
Pe e -We e -Re e se
Insta nc e : Bro o klyn-Do d g e rs Insta nc e : Fie ld e r Ba tting -a vg :. Unifo rm -C o lo r: Blue
Sup p o se we ha ve to re p re se nt the re la tio nship a m o ng the c la sse s a s fo llo ws.
Isa isa isa isa isa
Insta nc e insta nc e
ML-Baseball-Player Is-covered-by: {pitcher. Catcher, Fielder}, {American-Leaguer, National-Leaguer}
Pitcher Isa: ML-baseball-Player Mutually-disjoint-with: {Catcher, Fielder}
Catcher: Isa: ML-Baseball-Player Mutually-disjoint-with: {pitcher, Fielder}
Fielder: Isa: ML-Baseball-Player Mutually-disjoint-with: {pitcher, Fielder}
American-Leaguer Isa: ML-Baseball-Player Mutually-disjoint-with: {National-Leaguer}
ML-Baseball-Player
American- Leaguer
National Leaguer
Three-Finger-Brown
Pitcher Catcher Fielder
Document shared on www.docsity.com