à!Heuristic! search! is! otherwise! called! as! Informed! search.! It! uses! problem-specific!
knowledge!
beyond!the!definition!of!the!problem!itself!and!can!find!solutions!more!efficiently!than!
an!uninformed!strategy.!
A!heuristic!function!takes!a!state!as!input!and!returns!a!numeric!value!(path!cost!from!
a! goal)! as! the! output,! which! is! the! composite! assessment! of! the! state.! It! helps! in!
comparison!between!two!non-goal!state!and!so!that!the!most!promising!state!can!be!
chosen!or!it!can!judge!how!close!the!current!state!is!to!the!goal!state.!!
Choosing! an! appropriate! heuristic! function! is! important,! because! the! next! state! we!
choose!depends!on!the!score!returned!by!heuristic!function,!and!if!we!chose!a!wrong!
next!state,!it!may!mis-lead!us!from!the!goal!state.!
!
!
7. Differentiate! between! Admissible! heuristics! and! Inadmissible! heuristics.! Which! one!
breaks!the!optimality!and!why?!
à! A! heuristic! h(n)! is! admissible! if! for! every! node! n,! the! below! given! condition! is!
satisfied-!
h(n)!≤!h*(n),!where!h*(n)!is!the!true!cost!to!reach!the!goal!state!from!n.!
An!admissible!heuristic!never!overestimates!the!cost!to!reach!the!goal!and!hence!it!is!
optimistic.!!
Whereas,! an! inadmissible! heuristic! does! not! satisfy! the! above! condition! and! always!
overestimates!the!cost!and!hence!is!pessimistic.!
Inadmissible! heuristics! always! breaks! the! optimality! as! they! overestimates! the! cost!
which!is! not!at! par!to! the!real! cost,!hence!misleads!the!path!and!may!not!return!the!
optimal!solution.!
!
!
8. “Consistency! applies! Admissibility”-Justify! the! statement.! Under! which! condition! A*!
algorithm!is!optimal?!
—>!Consistent heuristics are very restricted heuristics, so they never overestimates the cost and
hence every consistent heuristic is an admissible heuristic. Hence, “consistency applies
admissibility” is justified. A* algorithm, if uses a tree search and follows an admissible heuristic,
then it is optimal.
!
9. What!is!a!“Relaxed!Problem”?!Why!is!it!needed!in!case!of!some!problems?!Explain!with!
an!example.!
—>!A!problem!with!fewer!restrictions!on!the!actions!is!called!a!relaxed!problem.!It!is!
needed! in! case! of! those! problems,! where! a! proper! heuristic! function! cannot! be!
designed!due!to!restricted!actions.!For!example-!In!8-puzzle!problem,!a!H(n)=!number!
of!misplaced!tiles,!can!only!be!devised,!because!the!restriction!on!the!actions!has!been!
relaxed!and!freedom!has!been!granted!to!directly!replace!one!tile!at!its!proper!location!
according!to!the!goal!state.!
10.!What!is! Local!search!?! Explain!disadvantages!of! local!search.! Suggest! some! solutions!to!
tackle!with!such!problems.!
à!Local search techniques only search in its immediate neighborhood for the solution. So there is a
chance of getting trapped in local optimum. Some solutions to local optimum are-
– Move in some arbitrary direction
– Back track to an ancestor and try some other alternatives.
!