Find Subtrees of Specified Weight and Cycles of Specified Length in Linear Time.

2019 
We introduce a variant of DFS which finds subtrees of specified weight in linear time, by which, as observed by Mohr, cycles of specified length in planar hamiltonian graphs can be found. We show, for example, that every planar hamiltonian graph $G$ with minimum degree $\delta \geq 4$ has a cycle of length $k$ for every $k \in \{\lfloor \frac{|V(G)|}{2} \rfloor, \dots, \lceil \frac{|V(G)|}{2} \rceil + 3\}$ with $3 \leq k \leq |V(G)|$, that every planar hamiltonian graph $G$ with $\delta \geq 5$ has a cycle of length $k$ for every $k \in \{\lfloor \frac14{|V(G)|} \rfloor, \dots, \lceil \frac34{|V(G)|} \rceil + 3\}$ with $3 \leq k \leq |V(G)|$, and that if $|V(G)| \geq 8$ is even, every $3$-connected planar hamiltonian graph $G$ with $\delta \geq 4$ has a cycle of length $\frac{|V(G)|}{2} - 1$ or $\frac{|V(G)|}{2} - 2$. Each of these cycles can be found in linear time if a Hamilton cycle of the graph is given. Another interesting consequence follows from our tool is that, given an instance of the number partitioning problem, i.e. a multiset of positive integers $\{a_1, \dots, a_N\}$, if $\sum_{i = 1}^{N} a_i \leq 2N - 2$, then a partition always exists and can be found in linear time.
    • Correction
    • Source
    • Cite
    • Save
    • Machine Reading By IdeaReader
    24
    References
    0
    Citations
    NaN
    KQI
    []