AI Unit IV
AI Unit IV
SOFTWARE AGENTS
Physical composition:
• The idea that one object can be part of another familiar one.
• One’s nose is part of one’s head, Romania is part of Europe, and this chapter is part of this book.
• Objects can be grouped into part of hierarchies.
• PartOf (Bucharest, Romania)
• PartOf (Romania,EasternEurope)
Categories and Objects
• A PartPartition relation analogous to the Partition relation for categories.
• An object is composed of the parts in its PartPartition and can be viewed as deriving some
properties from those parts.
• For example, the mass of a composite object is the sum of the masses of the parts.
• It is also useful to define composite objects with definite parts but no particular structure. For
example, we might want to say “The apples in this bag weigh two pounds.”
• The temptation would be to ascribe this weight to the set of apples in the bag, but this would be a
mistake because the set is an abstract mathematical concept that has elements but does not have
weight. Instead, we need a new concept, which we will call a bunch.
Categories and Objects
Measurements:
• The values that we assign for properties are called measures.
• Ordinary quantitative measures are quite easy to represent. We imagine that the universe includes
abstract “measure objects,” such as the length that is the length of this line segment.
• We can call this length 1.5 inches or 3.81 centimeters.
• Thus, the same length has different names in our language. We represent the length with a units
function that takes a number as argument.
Categories and Objects
Objects: Things and stuff:
• The real world can be seen as consisting of primitive objects (e.g., atomic particles) and composite
objects built from them.
• At the level of large objects such as apples and cars, we can overcome the complexity involved in
dealing with vast numbers of primitive objects individually.
• There is, however, a significant portion of reality that seems to defy any obvious individuation -
division into distinct objects. We give this portion the generic name stuff.
• For example, suppose I have some butter and a bread packet in front of me. I can say there is one
bread, but there is no obvious number of “butter-objects,” because any part of a butter-object is
also a butter-object, at least until we get to very small parts indeed.
• This is the major distinction between stuff and things.
• Count noun and mass noun.
• Intrinsic and extrinsic properties.
Events
• Situation calculus - based on situation
• Event calculus – based on time
• The fluent At(Shankar , Berkeley) is an object that refers to the fact of Shankar being in Berkeley,
but does not by itself say anything about whether it is true.
• To assert that a fluent is actually true at some point in time we use the predicate T, as in
T(At(Shankar , Berkeley), t).
• Events are described as instances of event categories.
• The event E1 of Shankar flying from San Francisco to Washington, D.C. is described as :
E1 ∈ Flyings ∧ Flyer (E1, Shankar ) ∧ Origin(E1, SF) ∧ Destination(E1, DC )
E1 ∈ Flyings (Shankar , SF, DC)
Events
• We then use Happens(E1, i) to say that the event E1 took place over the time interval i, and we say
the same thing in functional form with Extent(E1) = i.
• We represent time intervals by a (start, end) pair of times; that is, i = (t1, t2) is the time interval
that starts at t1 and ends at t2.
• The complete set of predicates for one version of the event calculus is T(f, t) Fluent f is true at
time t.