Preprint
Article

Number of Hamiltonian Cycles in Certain Bipartite Graphs of Size 4k+2

Altmetrics

Downloads

76

Views

18

Comments

0

This version is not peer-reviewed

Submitted:

05 July 2024

Posted:

09 July 2024

You are already at the latest version

Alerts
Abstract
We will try to use the approach of labeled cycle cover sum to count the number of hamiltonian cycles in a special type of bipartite graphs, with 4k + 2 vertices which can also be considered as an alternative method to check hamiltonicity in such bipartite graphs. This graph is such that, there exists at least 1 vertex which is not a part of any cycle of size 4m + 2 where m < k, in O∗(1.414n) time. The algorithm is inspired by Bjorklund’s approach where instead of working on the field of GF(2k), we will be working on C.
Keywords: 
Subject: Computer Science and Mathematics  -   Data Structures, Algorithms and Complexity

1. Introduction

The problem of Hamiltonicity is identified as an N P hard problem and the first super polynomial development was an improvement from O ( n 2 2 n ) to O * ( 1 . 657 n ) and O * ( 1 . 414 n ) 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
Λ ( G , L , f ) = C c c ( G ) g : L C a C f ( a , g 1 ( a ) )
Here G = ( V , E ) is the graph, L is a labeled set, g is the labeling function (we consider it to be surjective) and f : E × 2 L { ϕ } R . We will be defining the sum as
Λ ( G , L , f ) = C c c ( G ) s i g n ( C ) g : L C a C f ( a , g 1 ( a ) )

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 f ( u v , Z ) = f ( v u , Z ) where u , v s . We will modify the function to form f , 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
Λ ( G , L , f ) = C c c ( G ) s i g n ( C ) g : L C a C f ( a , g 1 ( a ) )
where,
f ( u v , Z ) = f ( v u , Z )
where u , v s
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)
  • Proof:
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
{ C 1 , C 2 , C n 1 , C n * }
Here C n * is the cycle which passes through s. By our assumption, this is not an odd length cycle.
Without loss of generality, assuming C 1 is an odd cycle, the cycle cover where the orientation of C 1 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
Λ ( G , L , f ) = H h c ( G ) s i g n ( C ) g : L C a H f ( a , g 1 ( a ) )

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 R = C , the representation of determinant we will be using is (for an n × n matrix)
A i j = w i j : i j E 0 : otherwise d e t ( A ) = c c c ( G ) s i g n ( C ) i = 1 n w i j
We will now define the matrix
M f ( Z ) i j = f ( i j , Z ) : i j E , Z ϕ 0 : otherwise
Next we define the polynomial
p ( f , r ) = Y L ( 1 ) | Y | det Z Y r | Z | M f ( Z )
Lemma 1:
Λ ( G , L , f ) , as the coefficient of r | L | in p ( f , r ) .
Proof. 
Expanding using the definition of determinant we get,
p ( f , r ) = Y L ( 1 ) | Y | C c c ( G ) s i g n ( C ) q : C 2 Y { ϕ } a C r | q ( a ) | f ( a , q ( a ) ) = C c c ( G ) s i g n ( C ) q : C 2 L { ϕ } a C q ( a ) Y , Y L ( 1 ) | Y | a C r | q ( a ) | f ( a , q ( a ) )
For the qs which do not cover the entire L, we will find the same product for all the subsets Y L a C q ( a ) . 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,
p ( f , r ) = C c c ( G ) s i g n ( C ) q : C 2 L { ϕ } , a C q ( a ) = L a C r | q ( a ) | f ( a , q ( a ) )
which further leads to
p ( f , r ) = C c c ( G ) s i g n ( C ) q : C 2 L { ϕ } , a C q ( a ) = L r a C | q ( a ) | a C f ( a , q ( a ) )
The coefficient of r | L | is thus
C c c ( G ) s i g n ( C ) q : C 2 L { ϕ } , a C q ( a ) = L a C f ( a , q ( a ) )
where a C | q ( a ) | = | L | which happens when fo all a b , q ( a ) q ( b ) = ϕ . On inverting the function q, we get Λ ( G , L , f ) , as the coefficient of r | L | .
Lemma 1. 
The Labeled cycle cover sum, with function f, over the domain G F ( 2 k ) , takes O ( | L | 2 n + | L | n 1 + ω 2 | L | + | L | 2 n 2 ) computations with k such that 2 k > | L | n , n as the number of vertices and ω being the constant of matrix multiplication.
Proof. 
Considering the degree of the polynomial p ( f , r ) in r has the maximum degree | L | n , we will have to choose | L | n many points to evaluate at and through interpolation, we will be able to recover the coefficient of r | L | . Considering | L | n different points, we can evaluate the polynomial at a 0 , a 1 , a 2 , a | L | n 1 . Thus we can use interpolation. The algorithm, for a fixed r, tabulates T ( Y ) = Z Y r | Z | M f ( Z ) using Yates’ fast Zeta transform which uses O ( | L | 2 | L | ) field operations. The evaluation of p ( f , r ) = Y Z d e t ( T ( Y ) ) can be done with O ( n ω 2 | L | ) operations using Bunch and Hopcroft’s determinant algorithms, taking ω = 2.376 (Coppersmith-Winograd square matrix multiplication). Summing over all the required operations for the | L | n values of r, we get the time O ( | L | 2 n + | L | n 1 + ω 2 | L | ) . Further considering the time for Lagrange’s interpolation, we will further add | L | 2 n 2 . □

4. Reduction to Bipartite Graphs

We will proceed in a way, very similar to the approach of Bjorklund’s paper. For a graph G = ( V 1 , V 2 , E ) , for a fixed vertex s, Bjorklund had defined variables satisfying x u v = x v u where u , v s . In this case we will define x u v = i x v u , with u , v s
We further have | V 1 | = | V 2 | = 2 k + 1 for a certain k.
For every vertex pair u , v V 1 , the neighborhood set is defined as N ( u , v ) = { w : u w E , w v E } . Apart from this, we will have D = ( V 1 , F ) , where F contains arcs in both direction for every pair of vertices in V 1 . We will keep the definition of f intact, which is f ( u v , { w } ) = x u w x w v , with w N ( u , v ) . Therefore, we will have f ( u v , { w } ) = f ( v u , { w } ) .
Lemma 2. 
Λ ( D , V 2 , f ) = H h c ( G ) u v H x u v
Proof. 
By definition, we have
Λ ( D , V 2 , f ) = C c c ( G ) s i g n ( C ) g : V 2 C a C f ( a , g 1 ( a ) )
By the property of f , using Lemma 1, we will have
Λ ( D , V 2 , f ) = H h c ( D ) s i g n ( H ) g : V 2 C a H f ( a , g 1 ( a ) )
Further due to the non zero result of f ( a , Z ) only when X is singleton, we will have
Λ ( D , V 2 , f ) = H h c ( D ) s i g n ( H ) q : H V 2 a H f ( a , q ( a ) )
Plugging in the definition of f ,
Λ ( D , V 2 , f ) = H h c ( D ) s i g n ( H ) g : V 2 C a H x u q ( u v ) x q ( u v ) v
Here for every u v V 2 , q ( u v ) N ( u , v ) . Further we note that q is one-to-one. Therefore every vertex in V 2 is mapped to by exactly one arc from V 1 . Therefore, we will have
Λ ( D , V 2 , f ) = H h c ( G ) s i g n ( H ) u v H x u v
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 n / 2 . Therefore from Lemma 1, the time taken for computing the sum becomes O * ( 2 n / 2 ) .

5. Conclusion

The result in particular might not cover the entire section of computing a # P 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 4 m + 2 for some m < k , considering the size of the graph is 4 k + 2 . 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

  1. Bjorklund, Andreas. "Determinant sums for undirected hamiltonicity." SIAM Journal on Computing 43, no. 1 (2014): 280-299.
  2. Björklund, Andreas. "Exact covers via determinants." arXiv preprint arXiv:0910.0460 (2009).
  3. Yates, F., 1938. The design and analysis of factorial experiments.
  4. 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.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.
Prerpints.org logo

Preprints.org is a free preprint server supported by MDPI in Basel, Switzerland.

Subscribe

© 2024 MDPI (Basel, Switzerland) unless otherwise stated