1. Introduction
The problem of Hamiltonicity is identified as an hard problem and the first super polynomial development was an improvement from to and for bipartite graphs. Counting the number of hamiltonian cycles is an associated problem which proceeds a step further. Earlier results give an upper-bound with the condition of bounded degree of the vertices. Apart from that, there exists algorithm using dynamic programming and automorphism group of the graph for bipartite graph. We will use a method motivated from the approach in [1] of labeled cycle cover sum.
2. The Idea
We will use a slight modification of the approach in [1] to check hamiltonicity using labeled cycle covers to count the number of Hamiltonian cycles. We will modify the labeled sum on a graph with odd number of vertices. In order to define the special vertex as mentioned in [1], we are considering a graph where there is at least one vertex which is not a part of any odd length cycle except the hamiltonian cycle. We will then cancel the cycle covers, keeping only the hamitonian covers. Later we represent the sum as a polynomial which sums over all hamiltonian covers and evaluate the polynomial at the point where all the variables are equal to 1, giving us the number of hamiltonian cycles.
3. Preliminaries
We have the identity for Labeled cycle cover sum as
Here
is the graph,
L is a labeled set,
g is the labeling function (we consider it to be surjective) and
. We will be defining the sum as
3.1. Cancellation of Non Hamiltonian Cycle Covers
In [1] the author defines the function
f, fixing a certain vertex
s, in such a way that
where
. We will modify the function to form
, fixing the vertex
s as one through which no odd length cycle passes except the Hamiltonian. (There exists such a vertex by our assumptions) and define the sum
, such that
where,
where
We claim that, the sum will contain only the Hamiltonian covers and the non Hamiltonian covers get canceled. (As a side note, the choice of required vertex will be by going through all the vertices and checking for the non zero result of the algorithm. This does not impact the complexity by a great margin)
We note that even cycles don’t contribute opposite signs on flipping the orientation of one cycle. For graphs with odd number of vertices, for each cycle cover, there must exist at least one odd cycle.
Consider the following set of cycles as a cycle cover
Here
is the cycle which passes through
s. By our assumption, this is not an odd length cycle.
Without loss of generality, assuming
is an odd cycle, the cycle cover where the orientation of
is opposite, contributes opposite sign to the sum, hence, they together get canceled. Here we note that, since none of the odd length cycles pass through
s, we need not worry about the case when the only odd length cycle passes through
s. Therefore we have the sum as
3.2. Relation between Determinant and Cycle Cover Sum
For solving the labeled sum, Bjorklund had given a method which based on the representation of permanent. Determinant coincided with the permanent in that case as the field had characteristic 2. For this case where
, the representation of determinant we will be using is (for an
matrix)
We will now define the matrix
Next we define the polynomial
Lemma 1:
, as the coefficient of in .
Proof. Expanding using the definition of determinant we get,
For the
qs which do not cover the entire
L, we will find the same product for all the subsets
. As there will be same number of subsets with even and odd cardinalities, the net sum becomes 0 and we are left with the sum,
which further leads to
The coefficient of
is thus
where
which happens when fo all
,
. On inverting the function
q, we get
, as the coefficient of
.
Lemma 1. The Labeled cycle cover sum, with function f, over the domain , takes computations with k such that , n as the number of vertices and ω being the constant of matrix multiplication.
Proof. Considering the degree of the polynomial in r has the maximum degree , we will have to choose many points to evaluate at and through interpolation, we will be able to recover the coefficient of . Considering different points, we can evaluate the polynomial at . Thus we can use interpolation. The algorithm, for a fixed r, tabulates using Yates’ fast Zeta transform which uses field operations. The evaluation of can be done with operations using Bunch and Hopcroft’s determinant algorithms, taking (Coppersmith-Winograd square matrix multiplication). Summing over all the required operations for the values of r, we get the time . Further considering the time for Lagrange’s interpolation, we will further add . □
4. Reduction to Bipartite Graphs
We will proceed in a way, very similar to the approach of Bjorklund’s paper. For a graph , for a fixed vertex s, Bjorklund had defined variables satisfying where . In this case we will define , with
We further have for a certain k.
For every vertex pair , the neighborhood set is defined as . Apart from this, we will have , where F contains arcs in both direction for every pair of vertices in . We will keep the definition of intact, which is , with . Therefore, we will have .
Lemma 2.
Proof. By definition, we have
By the property of
, using Lemma 1, we will have
Further due to the non zero result of
only when
X is singleton, we will have
Plugging in the definition of
,
Here for every
,
. Further we note that
q is one-to-one. Therefore every vertex in
is mapped to by exactly one arc from
. Therefore, we will have
Finally, to count the number of hamiltonian cycles, we will plug 1 into each variable and divide by 2.
We note that the cardinality of the label set and the number of vertices in the graph where we are doing the computations is . Therefore from Lemma 1, the time taken for computing the sum becomes .
5. Conclusion
The result in particular might not cover the entire section of computing a complete problem, but this might motivate to consider the importance of cycle covers in the problem in particular. Our method covers a very specific type of bipartite graph where we have a vertex which is not a part of any cycle whose length is of the form for some , considering the size of the graph is . It can be ensured that if the algorithm outputs a non-negative result, it is indeed correct as the only problem occurs when the specific type of cycle as mentioned passes through every vertex.
References
- Bjorklund, Andreas. "Determinant sums for undirected hamiltonicity." SIAM Journal on Computing 43, no. 1 (2014): 280-299.
- Björklund, Andreas. "Exact covers via determinants." arXiv preprint arXiv:0910.0460 (2009).
- Yates, F., 1938. The design and analysis of factorial experiments.
- Coppersmith, Don, and Shmuel Winograd. "Matrix multiplication via arithmetic progressions." In Proceedings of the nineteenth annual ACM symposium on Theory of computing, pp. 1-6. 1987.
|
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).