Currently browsing

July 2013


Missionaries and Cannibals problem in AI

Introduction Missionaries      and   Cannibals    problem     is very  famous      in  Artificial  Intelligence    because    it was     the   subject     of   the    first  paper     that  approached       problem   formulation   from   an analytical   viewpoint.     The   problem   can   be   stated   as   follow.   Three   missionaries   and   three cannibals are on one side of a river, along with a …



void assert (int expression); Evaluate assertion If the argument expression of this macro with functional form compares equal to zero (i.e., the expression is false), a message is written to the standard error device and abort is called, terminating the program execution. The specifics of the message shown depend on the specific implementation in …