Frog game on tree graphs is in NP but not in P (NP-complete)?
Imported on
The forum classified this question as unanswered when collected. This does not certify an open research problem; check the answers and revision history at the source.
Read the question with its definitions and background below. The source provides the full formulation and further discussion; the glossary and Wikipedia links offer additional reading aids.
Problem statement
Problem
We can restrict ourselves to tree graphs. What is the complexity of the following problem?
Let be simple connected graph with vertices in , edges in , and a vertex weighted function (counting frogs on vertices). Given and a vertex , is the frog game solvable in ?
Frog game rules
To play the frog game, start by placing one frog on each vertex: .
Given and after moves have been made, a new move consists of:
Selecting two nonempty (contain at least one frog, i.e. ) vertices that are connected by a path of distinct edges.
Moving all frogs from to : and .
That is, all frogs on a vertex must jump over exactly distinct edges and onto a nonempty vertex. (Imagine the vertex being a lily pad and sinking after frogs jump off of it.).
We say that the frog game is solvable in some vertex if there exists a sequence of moves such that all frogs end up in the vertex : Meaning where for and for .
Here is a short presentation with examples.
I suspect this problem is in NP but not in P (NP-complete?), can we prove this?
Algorithmic approach
We can solve this problem recursively.
For example, given a path graph "" and the goal ;
We compute the multiset of path distances from the goal to other vertices: .
We consider all partitions of that can be made with elements of :
Now we check each partition by assigning the respective vertices as new sub-goals (in all possible ways) and applying this procedure recursively. (Set for unusable vertices within the sub-goal.)
For example, when looking at the first partition, we have two possible selections of sub-goals. We can either consider or , as both could be "" in "".
If we take , then the other sub-goal is graph "" in , but cannot be partitioned using elements of , therefore this selection of sub-goals is impossible.
If we take , then the other sub-goal is graph "" in , with and one possible partition "". Going one step deeper, we get a trivial sub-sub-goal of "" in with trivial and partition "". Therefore, this partition and selection of sub-goals gives a solution of the problem in . Therefore, the graph is solvable in .
For example, when looking at the second partition, the jumps at distance are trivial and only possible selection for sub-goals, and the other sub-goal is to have frogs at vertex using the remaining usable vertices ; that is, it is again a trivial sub-goal with and partition "". Therefore, the graph is solvable in .
In general, this procedure is exponential at worst. When the vertex is not solvable, we will need to check all partitions and all selections of sub-goals.
Can we do better? (Is it possible that this problem is in P?)
Note that it is not hard to prove that path graphs specifically, i.e. "", are solvable in every vertex for every . That is, certain classes of graphs can be solved in terms of theorems, by explicitly constructing sequences of jumps that solve vertices or showing certain vertices are never solvable.
But I doubt that can be done for all tree graphs.
Note that I posted a similar question a long time ago on Computer Science, asking about a better approach than the exponential partition analysis (here I ask about complexity class), but there I got nothing new after two bounties. (Not sure if this counts as a cross-post, but I'll link it here just in case).
Statement and context adapted from MathOverflow · Vepir
CC BY-SA 4.0 · Formatting adapted; mathematical formulas preserved · Source history
A few useful definitions
- Graph
- A set of vertices connected by edges. A vertex’s degree counts the incident edges; the statement specifies whether directions or multiple edges are allowed.
Sources and original status
- MathOverflow Status in source : unanswered at collection
Last activity on the question :
Coverage, sources and method
This count measures imported entries, including distinct variants. It is not a count of all open mathematical questions worldwide. One entry may belong to several fields and sources.
This directory is neither exhaustive nor updated in real time. “Reported open” describes the source classification observed at import; imported entries have not each undergone independent mathematical verification. The 32 explained entries were reviewed separately.
Formal Conjectures: only “research open” statements with no reported formal proof are retained; their tag is checked in a pinned repository revision. Variants remain distinct. A “sorry” placeholder is not sufficient to establish open status.
Erdős: solved or independent problems and entries with a Lean solution are excluded, including “open (Lean)”. Exact matches to the main Formal Conjectures statements are merged.
Open Problem Garden: the open index is checked against the solved index; spam, identified clones and some outdated statuses are excluded. Statements and definition context are attributed to their original pages; formulas are preserved and the content remains under the GFDL. Recognized duplicates across sources are merged; this does not resolve every mathematical equivalence.
OEIS: direct extraction of conjectural comments and formulas, one entry per sequence, excluding mentioned resolutions. MathOverflow and Math Stack Exchange: questions classified as unanswered by their API, excluding closed posts and non-research categories. They remain distinct from problems reported open. This is a partial, dated collection; every entry credits its authors and license.
Documented exclusions account for recent announcements and conflicting statuses. A stronger variant or a special case can remain open after a different statement is settled.
Attribution: The Formal Conjectures Authors; teorth/erdosproblems and contributors; Open Problem Garden and contributors. Each source retains its license.
- Formal Conjectures · 1,924 · Apache-2.0 / CC-BY-4.0
- Erdős Problems (teorth) · 622 · Apache-2.0
- Open Problem Garden · 404 · GFDL (source content); only title/category/link metadata imported
- OEIS · 18,857 · CC BY-SA 4.0
- MathOverflow · 19,035 · CC BY-SA (version on each entry)
- Mathematics Stack Exchange · 35 · CC BY-SA (version on each entry)