Professional Documents
Culture Documents
6
6
Alpha-Beta Pruning Describe about Local search algorithms and optimistic problems? Define Propositional logic? Describe about Theory of first order
o Alpha-beta pruning is a modified version of the minimax algorithm. It LocalSearchAlgorithmsandOptimization Problem logic?
The informed and uninformed search expands the nodes systematically in two First-Order logic:
is an optimization technique for the minimax algorithm.
o As we have seen in the minimax search algorithm that the number of
ways:
o First-order logic is another way of knowledge representation in artificial intelligence.
game states it has to examine are exponential in depth of the tree. keeping different paths in the memory and It is an extension to propositional logic.
Since we cannot eliminate the exponent, but we can cut it to half. selecting the best suitable path, o FOL is sufficiently expressive to represent the natural language statements in a
Hence there is a technique by which without checking each node of concise way.
Which leads to a solution state required to reach the goal node. But beyond
the game tree we can compute the correct minimax decision, and this these “classical search algorithms," we have some “local search algorithms” o First-order logic is also known as Predicate logic or First-order predicate logic.
technique is called pruning. This involves two threshold parameter where the path cost does not matters, and only focus on solution-state First-order logic is a powerful language that develops information about the objects
Alpha and beta for future expansion, so it is called alpha-beta needed to reach the goal node. in a more easy way and can also express the relationship between those objects.
pruning. It is also called as Alpha-Beta Algorithm. A local search algorithm completes its task by traversing on a single current node o First-order logic (like natural language) does not only assume that the world contains
o Alpha-beta pruning can be applied at any depth of a tree, and rather than multiple paths and following the neighbors of that node generally. facts like propositional logic but also assumes the following things in the world:
sometimes it not only prune the tree leaves but also entire sub-tree. Although local search algorithms are not systematic, still they have the o Objects: A, B, people, numbers, colors, wars, theories, squares, pits,
a. Alpha: The best (highest-value) choice we have found so Local search algorithms use a very little or constant amount of o Relations: It can be unary relation such as: red, round, is
far at any point along the path of Maximizer. The initial memory as they operate only on a single path. adjacent, or n-any relation such as: the sister of, brother of, has
color, comes between
value of alpha is -∞.
Most often, they find a reasonable solution in large or infinite state
o Function: Father of, best friend, third inning of, end of, ......
b. Beta: The best (lowest-value) choice we have found so far
spaces where the classical or systematic algorithms do not work.
at any point along the path of Minimizer. The initial value
Working ofaLocalsearchalgorithm o As a natural language, first-order logic also has two main parts:
of beta is +∞.
o The Alpha-beta pruning to a standard minimax algorithm returns the
Let's understand the working of a local search algorithm with the help of an
example:
a. Syntax
same move as the standard algorithm does, but it removes all the Consider the below state-space landscape having both: b. Semantics
nodes which are not really affecting the final decision but making
algorithm slow. Hence by pruning these nodes, it makes the algorithm
Location: It is defined by the state. Propositional logic in Artificial intelligence
Propositional logic (PL) is the simplest form of logic where all the statements are
fast. Elevation: It is defined by the value of the objective function or made by propositions. A proposition is a declarative statement which is either true
Rules to find good ordering: heuristic cost function. or false. It is a technique of knowledge representation in logical and mathematical
Following are some rules to find good ordering in alpha-beta pruning: form.
o Occur the best move from the shallowest node. The local search algorithm explores the above landscape by finding the following Example:
o Order the nodes in the tree such that the best nodes are checked first. 1. a) It is Sunday.
2. b) The Sun rises from West (False proposition)
o Use domain knowledge while finding the best move. Ex: for Chess, try 3. c) 3+3= 7(False proposition)
order: captures first, then threats, then forward moves, backward 4. d) 5 is a prime number.
moves. Following are some basic facts about propositional logic:
o We can bookkeep the states, as there is a possibility that states may o Propositional logic is also called Boolean logic as it works on 0 and 1.
repeat. o In propositional logic, we use symbolic variables to represent the logic,
and we can use any symbol for a representing a proposition, such A,
B, C, P, Q, R, etc.
Difference between Supervised and Unsupervised Learning
two points: o Propositions can be either true or false, but it cannot be both.
task is to find the lowest valley, which is known as Global Minimum. and logical connectives.
then it finds the highest peak which is called as Global Maxima. It is o The propositions and connectives are the basic elements of the
the highest point in the valley. propositional logic.
We will understand the working of these points better in Hill-climbing search. o Connectives can be said as a logical operator which connects two
Below are some different types of local searches: sentences.
Hill-climbing Search o A proposition formula which is always true is called tautology, and it
Simulated Annealing is also called a valid sentence.
the hidden Markov If we have variables x1, x2, x3,....., xn, then the probabilities of a different combination of o In backward chaining, the goal is broken into sub-goal or sub-goals to
model x1, x2, x3.. xn, are known as Joint probability distribution. prove the facts true.
representation P[x1, x2, x3,....., xn], it can be written as the following way in terms of the joint
shown below: probability distribution.
o It is called a goal-driven approach, as a list of goals decides which rules
are selected and used.
o Backward -chaining algorithm is used in game theory, automated theorem
proving tools, inference engines, proof assistants, and various AI
applications.
o The backward-chaining method mostly used a depth-first search strategy
for proof.