C

Heurística consistente

CH

Uma heurística consistente garante que o custo estimado para alcançar um objetivo nunca exceda o custo real de qualquer ponto.

A heurística consistente, also known as a monotonic heuristic, is a specific type of heuristic used in inteligência artificial, particularly in algoritmos de busca such as A*. A heuristic is a rule or method that helps in making decisions or solving problems more efficiently than traditional methods.

In the context of search algorithms, a consistent heuristic has the property that the estimated cost of reaching the goal from a given state is always less than or equal to the cost of getting to a neighboring state plus the estimated cost from that neighbor to the goal. In mathematical terms, this is expressed as:

h(n) ≤ c(n, n’) + h(n’)

where h(n) is the heuristic estimate from the current node n to the goal, c(n, n’) is the actual cost to move from node n to a neighbor node n’, and h(n’) é a estimativa heurística do vizinho até o objetivo.

One of the main benefits of using a consistent heuristic is that it guarantees the optimality of the search algorithm. This means that if an algorithm like A* uses a consistent heuristic, it will find the shortest path to the goal if one exists. Additionally, consistent heuristics can help reduce the number of nodes that need to be evaluated, leading to more efficient search processes.

Exemplos de heurísticas consistentes incluem a distância em linha reta (distância Euclidiana) entre dois pontos em uma busca espacial ou a Distância de Manhattan in grid-based pathfinding scenarios. These heuristics provide reliable estimates that adhere to the properties required for consistency.

SEOFAI » Feed + /