isra sweileh

isra sweileh

  • NA
  • 35
  • 21.9k

implementation algorithm

Jul 5 2013 11:00 AM
please help me to implementation this algorithm 


int min-MaxSearch(node state)
{
temp=max(node state);
return the move that produces Successors of current state;
}
int max(state)
{
for(s is terminal state)
return Utility(state);
E=expand(state);
result=-9999
for(every state in E )
{
val=min(x);
if(val>result)result=val;
}
return result;
}

int minstate)
{
for(s is terminal state)
return Utility(state);
E=expand(state);
result=9999
for(every state in E )
{
val=max(x);
if(val<result)result=val;
}
return result;
}

Answers (1)