Skip to content

Commit 715ae78

Browse files
GiggleLiuclaude
andauthored
Fix #47: Add HamiltonianCycle model (#57)
* Add plan for #47: [Model] HamiltonianCycle Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * feat: add HamiltonianCycle model (#47) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * docs: add HamiltonianCycle definition to paper (#47) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * refactor: rename HamiltonianCycle to TravelingSalesman (#47) Resolve PR review comments: weighted HamiltonianCycle is equivalent to the Traveling Salesman Problem, so rename accordingly. Also fix problem definition to properly define the edge set C. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent d8eec69 commit 715ae78

8 files changed

Lines changed: 1293 additions & 5 deletions

File tree

docs/paper/reductions.typ

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"KColoring": [$k$-Coloring],
3232
"MinimumDominatingSet": [Minimum Dominating Set],
3333
"MaximumMatching": [Maximum Matching],
34+
"TravelingSalesman": [Traveling Salesman],
3435
"MaximumClique": [Maximum Clique],
3536
"MaximumSetPacking": [Maximum Set Packing],
3637
"MinimumSetCovering": [Minimum Set Covering],
@@ -324,6 +325,10 @@ In all graph problems below, $G = (V, E)$ denotes an undirected graph with $|V|
324325
Given $G = (V, E)$ with weights $w: E -> RR$, find $M subset.eq E$ maximizing $sum_(e in M) w(e)$ s.t. $forall e_1, e_2 in M: e_1 inter e_2 = emptyset$.
325326
]
326327

328+
#problem-def("TravelingSalesman")[
329+
Given an undirected graph $G=(V,E)$ with edge weights $w: E -> RR$, find an edge set $C subset.eq E$ that forms a cycle visiting every vertex exactly once and minimizes $sum_(e in C) w(e)$.
330+
]
331+
327332
#problem-def("MaximumClique")[
328333
Given $G = (V, E)$, find $K subset.eq V$ maximizing $|K|$ such that all pairs in $K$ are adjacent: $forall u, v in K: (u, v) in E$. Equivalent to MIS on the complement graph $overline(G)$.
329334
]

0 commit comments

Comments
 (0)