Means-End Analysis/Algorithm for resolution in predicate logic

MEANS -END ANALYSIS
For means-end analysis we can say its a method for AI to get our Aim or rather choose our path from initial to goal State wisely.

So imagine about two states say state A as initial state and state F as final state .

Now means-end analysis goes the following way;

  1. compare the Difference between the initial state and goal state.
  2. find the difference between them.
  3. for each difference look at which operators can be applied.
  4. select that operator which gets you the closest from current state to goal state.
Algorithm for resolution in predicate logic
Two literals are Contradictory  if one can be unified with the negation of the other.

for example we take 2 literals say A and B so these two literals are contradictory if A unifies with the negation of B.

In predicate logic Unification algorithm is used to locate pairs of literals that cancel out.

It is important that if two instance of same variable occur they must be given identical substitutions.

Now moving towards the algorithm .

  1. we have two sets say f and S ,f is the given statements and S is the statements to be proved.t 
  2. Convert all the statements of f into the clause form.
  3. Negate S and convert them into the clause form Add it to the set of clause of 1.
  4. Repeat until either a contradiction is found or no progress can be made or a predetermined amount of effect has been expended.
  5. select that two clauses call them as parent clauses.
  6. Resolve them together the resolvant is the dis-junction of all the literals of both clause .
  7. If there is pair of literals say T1 and T2 such that one parent clause contains T1 and other contains T2 are unifiable then neither T1 nor T2 should appear as resolvant ,Here T1 and T2 are called as Complementary literals.

Comments

Popular posts from this blog

State space search / blocks world problem by heuristic approach /TIC TAC TOE

Navigation in Vaadin.

Drag and drop items from one Grid to another