๐ŸŒฟ TSP Branch & Bound

136 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

# ๐ŸŒฟ TSP Branch & Bound ## 1. ๐ŸŽฏ Learning Objectives - Compute lower bounds using reduced cost matrix - Trace B&B search tree for TSP - Apply permanent exclusion rules ## 2.

๐ŸŒฟ TSP Branch & Bound

1. ๐ŸŽฏ Learning Objectives

  • Compute lower bounds using reduced cost matrix
  • Trace B&B search tree for TSP
  • Apply permanent exclusion rules

2. ๐Ÿ“– Core Content

3.1 Reduced Cost Matrix

Step 1: Subtract row minima from each row Step 2: Subtract column minima from each column Lower bound = sum of all reductions

3.2 Example

Matrix: [โˆž,20,30,10,11][15,โˆž,16,4,2][3,5,โˆž,2,4][19,6,18,โˆž,3][16,4,7,16,โˆž] Row reductions: row0-10, row1-2, row2-2, row3-3, row4-4 โ†’ sum=21 After row reduction + column reduction โ†’ LB โ‰ˆ 30-40.

3.3 B&B Search Tree

Root (LB=30) โ†’ Branch on edges from city 0: (0,1)=20, (0,2)=30, (0,3)=10, (0,4)=11 Choose smallest edge cost (0,3)=10. Recurse with reduced matrix, exclude row0/col3. Continue until complete tour found. Prune branches with LB โ‰ฅ current best. Join Discord PreviousA* SearchNextWeighted A* & IDA*
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.