Quiz 2

🎨 Designing Heuristic Functions

165 words
1 min read
Python Week 1: the first filter for runtime behavior
Visual companion
Python
Type and operator map

Python Week 1: the first filter for runtime behavior

View
Revision summary

What this note is really saying

Short form

# 🎨 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.

🎨 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

Document outline

Keep your place and jump directly to a heading.

Table of Contents
System Normal // Awaiting Context

Intelligence Hub

Navigate the knowledge graph to generate context. The Hub adapts dynamically to surface backlinks, related notes, and metadata insights.