6. A new family of algorithms: iterative approach




starting_game;
while (not_exit_found and not_died)
{
	# do a computation
	decide_direction;
	perform_move;
	assess_move;
	
	if (move_is_good)
	{   PERFECT!	}
	else
	{   DAMN!	}
	
	# next movement
}

Convergence: If after several iterations the quality of the solution does not improve then the program with that INPUT is said to converge in that solution (which is supposed to be the best one)



PREV NEXT
Enrique Blanco Garcia © 2002 eblanco@imim.es