1
0
Fork 0
mirror of https://github.com/dancojocaru2000/ai-project-idastar.git synced 2025-02-22 16:39:35 +02:00
ai-project-idastar/IDAstar.cs
2021-12-01 20:16:53 +02:00

16 lines
378 B
Smalltalk

/*
IDA*( state s, int g, threshold t ) {
h = Eval( s );
if( h == 0 ) return( true );
f = g + h;
if( f > threshold ) return( false );
for( i = 1; i <= numchildren; i++ ) {
done = IDA*( s.child[ i ], g + cost( child[ i ] ), t );
if( done == true ) return( true );
}
return( false );
}
*/