Registry Synced

๐ŸŽจ Designing Heuristic Functions

165 words
1 min read

Reading compass

Now ยท 1. ๐ŸŽฏ Learning Objectives

๐ŸŽจ Designing Heuristic Functions

1. ๐ŸŽฏ Learning Objectives

  • Design heuristics by problem relaxation
  • Use pattern databases for 8-puzzle/15-puzzle
  • Explain admissible vs informed trade-off

2. ๐Ÿ“– Core Content

3.1 Relaxation

Remove constraints from problem โ†’ easier problem โ†’ optimal cost is admissible heuristic. 8-puzzle relaxations:
  • Relax "slide tile" to "move tile to any adjacent square" โ†’ Manhattan
  • Relax "tile cannot occupy same square" โ†’ Hamming
  • Relax both โ†’ 0 (trivial, useless)

3.2 Pattern Databases

Store optimal cost-to-goal for a subset of tiles (pattern). Use as heuristic for full problem. Example: 15-puzzle with 7-tile pattern database: precompute distances for all 7-tile configurations (~16M entries = ~64 MB).

3.3 Heuristic Quality

  • More informed โ‰  better if computation cost outweighs pruning savings
  • Dominance: hโ‚ dominates hโ‚‚ if hโ‚(N) โ‰ฅ hโ‚‚(N) for all N
  • Effective branching factor: b* = N^{1/d} where N = nodes expanded, d = solution depth Join Discord PreviousBest First SearchNextHeuristic Functions
Document outline

Keep your place and jump directly to a heading.

Table of contents

No note selected

Open a chapter to see its outline, backlinks, and sources here.