UNIT 4 Reasoning Complete
UNIT 4 Reasoning Complete
1. Deductive reasoning
2. Inductive Reasoning:
3. Abductive reasoning
4. Common Sense Reasoning
5. Monotonic Reasoning
6. Non-monotonic Reasoning
Analogical reasoning
Analogy
• Models and Maps: Mental and physical models are created for the express
purpose of illustrating analogies. Maps and models depend on their
similarities to and differences from whatever it is they are supposed to
represent. A map of Europe would not be practical if it was the size of the
continent itself; instead, a good map has consistent and accurate
spatial relationships between points of interest.
• Scientific Method: Scientists use inductive reasoning, which involves
recognizing analogies between things that are known and things that
are hypothesized but not yet known. If the unknown thing is similar in
important respects to a known thing, they make inferences about the
unknown thing based on its similarities to the known thing. The Italian
scientist Galileo used simple Archimedean machines like pendulums and
inclined planes as analogies for more complex phenomena like freefall.
While developing his laws of planetary motion, Johannes Kepler was
inspired by analogies from musical theory, like harmony, octave, and pitch.
• Legal Precedent: When courts rule on a case, they set precedent. The ever-
growing body of legal precedent is used as a reference when courts are
presented with legal disputes. Present cases are compared to past cases,
and if a case is analogous to precedent, courts tend to rule as they ruled in
the past.
Analogical Reasoning
Although the student can know with certainty that both premises are true, analogical
arguments do not guarantee the truth of their conclusions. A slightly modified version of
the example demonstrates how this is the case:
The above is a valid analogical argument, and its premises are true. But chances are,
the high school will have lockers instead of cubbies.
The relata of an analogical argument are called the source domain and the target
domain. In the example, the elementary school is the source domain and high school is
the target domain; known properties of the source domain are inferred about the target
domain based on known similarities.
Type of Reasoning
Solution
Structural Similarities
Recognition Process
Constraint Satisfaction
Overview
• Constraint satisfaction problems (CSPs) need solutions that satisfy all
the associated constraints. Look into the definition and examples of
constraint satisfaction problems and understand the process of
converting problems to CSPs, using examples.
• Consider a Sudoku game with some numbers filled initially in some
squares. You are expected to fill the empty squares with numbers
ranging from 1 to 9 in such a way that no row, column or a block has a
number repeating itself. This is a very basic constraint satisfaction
problem. You are supposed to solve a problem keeping in mind some
constraints. The remaining squares that are to be filled are known as
variables, and the range of numbers (1-9) that can fill them is known as
a domain. Variables take on values from the domain. The conditions
governing how a variable will choose its domain are known as
constraints.
Overview
A constraint satisfaction problem (CSP) is a problem that requires its solution
within some limitations or conditions also known as constraints. It consists of the
following:
•A finite set of variables which stores the solution (V = {V1, V2, V3,....., Vn})
•A set of discrete values known as domain from which the solution is picked (D =
{D1, D2, D3,.....,Dn})
•A finite set of constraints (C = {C1, C2, C3,......, Cn})
Please note, that the elements in the domain can be both continuous and discrete
but in AI, we generally only deal with discrete values.
Also, note that all these sets should be finite except for the domain set. Each
variable in the variable set can have different domains. For example, consider the
Sudoku problem again. Suppose that a row, column and block already have 3, 5
and 7 filled in. Then the domain for all the variables in that row, column and block
will be {1, 2, 4, 6, 8, 9}.
Popular Problems with CSP
Generate-and-test, with no
redundancies → “only” 88 combinations
8**8 is 16,777,216
Motivating example: 8-Queens
T2 T4
T3
D A
B
C
Map coloring
• Variables: A, B, C, D, E all of domain RGB
• Domains: RGB = {red, green, blue}
• Constraints: AB, AC,A E, A D, B C, C
D, D E
• A solution: A=red, B=green, C=blue, D=green,
E=blue
E E
D A => D A
B B
C C
Brute Force methods
• Finding a solution by a brute force solve(A,B,C,D,E) :-
color(A),
search is easy color(B),
– Generate and test is a weak method color(C),
color(D),
– Just generate potential combinations and color(E),
test each not(A=B),
not(A=B),
• Potentially very inefficient not(B=C),
not(A=C),
–With n variables where each can have one not(C=D),
of 3 values, there are 3n possible solutions not(A=E),
not(C=D).
to check
• There are ~190 countries in the world, color(red).
color(green).
which we can color using four colors color(blue).
SA NSW
SA NSW
V
T
• For example, a sensored alarm might sound at the Ground Level when an
algorithm at the Object Level determines from sensor input that an intruder
was present (e.g., this algorithm may sound an alarm when two or more
motion events are detected within a 10-s window).
Fig.1 Classic decision‒action loop diagram of metareasoning, where
reasoning happens at the object level to select the actions that will happen
at the ground level, and metareasoning happens at the meta-level to control
what occurs at the object level
• Metareasoning then occurs when information from the Object Level is
observed and altered at the Meta-Level.
• This is almost certainly in part because ToM is more closely tied to human
cognition, which places strong restrictions on plausible ToM models and
biases research toward human applications.
• Additionally, ToM itself is still somewhat controversial (e.g., Who has it?
When is it acquired? Under what conditions is it exercised?) but it holds
promise for creating more-transparent (if not authentically human) systems,
especially systems reasoning with multiple sources of information and with
differing provenance and certainty.