Professional Documents
Culture Documents
Abduction
Abduction
Analogical Inference
An analogy is a comparison between two objects, or systems of objects that
highlights respects in which they are thought to be similar. Analogical reasoning is
any type of thinking that relies upon an analogy. An analogical argument is an
explicit representation of a form of analogical reasoning that cites accepted
similarities between two systems to support the conclusion that some further
similarity exists. In general (but not always), such arguments belong in the category
of inductive reasoning, since their conclusions do not follow with certainty but are
only supported with varying degrees of strength. Here, inductive reasoning is used
in a broad sense that includes all inferential processes that expand knowledge in the
face of uncertainty (Holland et al. 1986: 1), including abductive inference.
Uninformed Search[edit]
Uninformed search (blind search) has no information about the number of steps or the path
costs from the current state to the goal. They can only distinguish a goal state from a nongoal state. There is no bias to go towards the desired goal.
For search algorithms, open list usually means the set of nodes yet to be explored
and closed list the set of nodes that have already been explored.
1. Breadth-First-Search
Starts with the rootnode and explores all neighboring nodes and repeats this
for every one of those (expanding the "depth" of the search tree by one in each
iteration). This is realized in a FIFO queue. Thus, it does an exhaustive search
until it finds a goal.
BFS is complete (i.e. it finds the goal if one exists and the branching factor is
finite).
It is optimal (i.e. if it finds the node, it will be the shallowest in the search
tree).
Space:
Time:
2. Depth-First-Search
Explores one path to the deepest level and then backtracks until it finds a
goal state. This is realized in a LIFO queue (i.e. stack).
It is not optimal (it stops at the first goal state it finds, no matter if there is
another goal state that is shallower than that).
Space:
Time:
To avoid that, the search depth for DFS can be either limited to a constant
value, or increased iteratively over time, gradually increasing the maximum
depth to which it is applied. This is repeated until finding a goal. Combines
advantages of DFS and BFS.
ID is complete.
It is optimal (the shallowest goal state will be found first, since the level is
increased by one every iteration).
Space:
Time:
4. Bi-Directional Search
Searches the tree both forward from the initial state and backward from the
goal and stops when they meet somewhere in the middle.
Space:
Time:
Informed Search[edit]
.
.
In informed search, a heuristic is used as a guide that leads to better overall performance in
getting to the goal state. Instead of exploring the search tree blindly, one node at a time, the
nodes that we could go to are ordered according to some evaluation function
that
determines which node is probably the "best" to go to next. This node is then expanded and
the process is repeated (i.e. Best First Search). A* Search is a form of BestFS. In order to
direct the search towards the goal, the evaluation function must include some estimate of the
cost to reach the closest goal state from a given state. This can be based on knowledge
about the problem domain, the description of the current node, the search cost up to the
current node BestFS optimizes DFS by expanding the most promising node first. Efficient
selection of the current best candidate is realized by a priority queue.
1. Greedy Search:
Minimizes the estimated cost to reach the goal. The node that is closest to
the goal according to
It is not optimal.
Space:
Same for time, but can be reduced by choosing a good heuristic function.
2. A* Search:
Combines uniform cost search (i.e. expand node on path with lowest cost so
far) and greedy search. Evaluation function is
(or
estimated cost of the cheapest solution through node n). It can be proven that A*
is complete and optimal if
cost to reach the goal. This is optimistic, since they think the cost of solving the
problem is less than it actually is.
Examples for :
If a heuristic function
, then
dominates
A* maintains an open list (priority queue) and a closed list (visited nodes). If a
node is expanded that's already in the closed list, stored with a lower cost, the
new node is ignored. If it was stored with a higher cost, it is deleted from the
closed list and the new node is processed.
is the parent of
and
. Suppose
and
and
. Hence,
, then
is at least 7. Now
.
First off, the difference in the heuristics (that is, 2) overestimates the
actual cost between those nodes (which is 1).
f-value.
is consistent, if the h-value for a given node is less or equal than the actual
cost from this node to the next node plus the h-value from this next node
(triangular inequality).
If
Conclusion
Uninformed Search TechniqueBrute force or blind,
uses no knowledge about problem,
hence not so efficient.
Informed Search TechniqueHeuristic or intelligent,
uses prior knowledge about problem,
hence very efficient
Now there are lots of ways to do this: train, car, bus, on foot, private jet or roller blades
but I subject myself to the following cost constraints:
To begin this process I consider the available means against my constraints and decide on
taking the train via Victoria to Brighton. To do this I need to leave my office and travel to
the main station at Victoria which is a new goal.
To get to Victoria I can walk, take a taxi, bus or go by underground. Because of time
constraints and cost I decide to take the underground to Victoria this becomes a new
sub goal. The nearest tube station being less than one mile away I walk
On arrival at the station I find the line is down due to a breakdown (goal failure). I can
return on foot to get my car to drive to Brighton but this moves me away from my goal on
cost and distance. I decide to take the bus to Victoria which becomes a new goal and as
the distance is less than one mile I walk to the bus station.
I take the bus to Victoria alight and walk to the station office and purchase a ticket to
Brighton. At Brighton I have to get to Agathas house I can use the Bus, Taxi or Walk. As
the distance is less than one mile I walk and arrive at Aunt Agathas house the end goal.
Just then my cell phone rings with a message and its Aunt Agatha, I hope you dont mind
but I forgot I have to be in London today perhaps we can make it next week
Arghhhhhhhh!!!
Some problems for you to solve
Vicars and Tarts
There are 3 Vicars and 3 Tarts and a boat on one side of a river and the church on the
other. How can the 6 of them get across the river for morning prayers in the boat subject
to the following constraints?
1. There must be at least one person in the boat
2. There cannot be more than two people in the boat at any time
3. There cannot be more Tarts than Vicars on either bank otherwise the tarts will take
advantage the vicars and commit original sin.
Three coins
Three coins lie on a table in the order tails, heads, and tails. In precisely three moves
make them face either all heads or all tails.
Conceptual Graphs !
A conceptual graph (CG) is a graph representation for logic based on the semantic networks of
artificial intelligence.
A conceptual graph consists of concept nodes and relation nodes.
The conceptual graph in Figure represents a typed or sorted version of logic. Each of the four
concepts has a type label, which represents the type of entity the concept refers to: Person, Go,
Boston, or Bus. Two of the concepts have names, which identify the referent: John or Boston.
Each of the three conceptual relations has a type label that represents the type of relation: agent
(Agnt), destination (Dest), or instrument (Inst). The CG as a whole indicates that the person John
is the agent of some instance of going, the city Boston is the destination, and a bus is the
instrument. Figure 1 can be translated to the following formula:
As this translation shows, the only logical operators used in Figure are conjunction and the
existential quantifier. Those two operators are the most common in translations from natural
languages, and many of the early semantic networks could not represent any others.