by a3_nm · 3y ago · 0 comments
It is not known whether this problem is NP-hard, or whether it can be solved in polynomial time; apparently the question is open since the early 90s.
(The problem is also open for paths of length p mod q for any fixed p and q (fixed means they are constants, and are not given as input), whenever q>2. The problem is known to be in PTIME for 0 mod 2 and 1 mod 2, and to be NP-hard when the graph is directed. Pointers to related work here: https://gitlab.com/a3nm/modpath)
In your right hand, take any collection of trees with 2, 3, ..., n vertices. These have a total of 1+2+...+n-1 edges, ie, n choose 2.
In your left hand, take the complete graph with n vertices. This, of course, has the same number of edges.
Conjecture: it is always possible to pack/embed the trees into the complete graph in such a way that all edges are matched exactly once.
The problem has been open for like fifty years, lacking a counter-example or a proof. One can assume Erdos thought hard about it at some point...
That's the question, isn't it?
This is why I hate the AI hype, because people do legitimately do this and think "wow it's so smart." When I explained the halting problem using Python to a student he asked "did you use ChatGPT?" No. Of course not...