Planning & Search in Rust
Esc

Loading…

↑↓ move ↵ open Esc close
Colour theme
All algorithms

LRTA*

Also known as Learning Real-Time A*

search heuristic-search

LRTA* (Learning Real-Time A*) moves an agent toward a goal while it plans only one step ahead. In each state it looks at every successor s′, sets the state's value to the smallest c(s, s′) + h(s′), and moves to that successor. The values live in a table that persists across trials (runs from the start to a goal). If the table starts admissible (it never overestimates), it stays admissible. With positive edge costs and a reachable goal, every trial reaches the goal, and repeated trials converge to a cheapest path. Use it when the agent must act before a full plan is possible.

Pseudocode

algorithm LRTA*(s₀, goal, H)input: start state s₀, goal test goal, learned table H (starts as a heuristic h)output: the path travelled to a goal, or failure; H keeps what it learneds ← s₀while not goal(s) doE ← {(s′, c + H[s′]) : (s′, c) in successors(s), H[s′] < ∞}if E = ∅ then                              ▷ every successor is a dead endH[s] ← ∞return failure(s-best, f₁) ← entry of E with the smallest value   ▷ the first on tiesH[s] ← f₁                                  ▷ Korf's update: no max with the old values ← s-best                                 ▷ move one step and record itreturn the path travelled

In the crates

Lineage

Comes from

Nothing on this site.

Led to

LSS-LRTA* builds on it

Papers

  1. Real-time heuristic search Richard E. Korf · 1990· Artificial Intelligence introduces doi 10.1016/0004-3702(90)90054-4