Search Applications - Games: This Unit Has Two Main Sections Planning Learning Adaptation and Heuristics
Search Applications - Games: This Unit Has Two Main Sections Planning Learning Adaptation and Heuristics
Apply the minimax algorithm to the game tree for Stone(5, 2) player
wins?
13 Search
Planning
Planning might appear to be just another form of problem
solving.
In Symbolic AI, problem solving consists of setting a system to
an initial state, defining a goal state and then defining all of the
possible actions our system can take.
The system will search through the space of possible states
looking for a solution.
41 Symbolic AI in the world
Planning
To take a simple example, consider solving the problem of
buying apples from a shop.
The initial state is being at home with no apples, the goal
state is being back at home with some apples.
Between the two lies a state space that may be something like
the one shown in following figure
42 Symbolic AI in the world
43 Symbolic AI in the world
Planning
This is an oversimplified picture of the problem:
In reality, each level of the tree must have thousands, if not
Planning
The search could then be directed along the shopping
branch.
A further heuristic might then guide the search towards
start either at the initial state or at the goal state and work
towards the other: the search program must examine each
of the initial actions before moving on to the next.
45 Symbolic AI in the world
Planning
By comparison, planning relies on making direct connections
between states and actions.
Computers describe plans which are composed of states, goals and
actions using a system of formal logic. ‘Have some apples’ is an
English language description of a goal;
The logical expression Have(apples) is its equivalent.
Actions are described in the same manner
46 Symbolic AI in the world
Planning
Humans use their knowledge base to solve problems.
Planning
General actions: Buy(x), which results: having x
48 Symbolic AI in the world
Sub-Planning
The planning process allows for the problem to be
broken into independent chunks known as sub-plans
An example of the success and failure of sub-planning
is illustrated in the following sections: Blocks world.
49
Planning
The spare tire problem
Initial state
Goal state
53
Action set