Next Article in Journal
ECG-CBA: An End-to-End Deep Learning Model for ECG Anomaly Detection Using CNN, Bi-LSTM, and Attention Mechanism
Previous Article in Journal
Q-Learning-Based Multi-Strategy Topology Particle Swarm Optimization Algorithm
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Algorithms for Two Types of Topological Indices

1
School of Mathematics and Statistics, Qinghai Minzu University, Xining 810007, China
2
Qinghai Institute of Applied Mathematics, Xining 810007, China
*
Author to whom correspondence should be addressed.
These authors contributed equally to this work.
Algorithms 2025, 18(11), 673; https://doi.org/10.3390/a18110673
Submission received: 11 September 2025 / Revised: 12 October 2025 / Accepted: 20 October 2025 / Published: 22 October 2025

Abstract

Topological indices are closely related to the stability and physical properties (such as the boiling point) of chemical molecules. The permanental sum and Hosoya index are two topological indices that are strongly associated with molecular structure. In this paper, we present algorithms for the permanental sum and Hosoya index. As an application, we employ these two algorithms to calculate the permanental sum and Hosoya index of (3,6)-fullerene with n ( 4 n 44 ) vertices. These results provide a mathematical reference for the synthesis of small (3,6)-fullerenes.

1. Introduction

Every chemical molecule can be abstracted as a molecular graph, in which atoms correspond to the vertices and chemical bonds correspond to the edges of the graph [1]. For example, a fullerene can be regarded as a 3-regular planar connected molecular graph composed of pentagonal and hexagonal faces [2]. Topological indices are measures that use the structural parameters of molecular graphs to study the physicochemical properties of molecules, and constitute an important direction in mathematical chemistry. Experimental studies have further shown that the stability of fullerenes is closely related to their Kekulé structure number (i.e., the number of perfect matchings in graph theory) [3,4,5] and to invariants such as the permanental polynomial [6,7].
In 2004, after Xie et al. [8] captured the fullerene C 50 ( D 5 h ) , Tong et al. [9] calculated, from a mathematical perspective, the coefficients of the permanental polynomial of all 271 isomers of C 50 , and found that the sum of the absolute values of the coefficients of the permanental polynomial of C 50 ( D 5 h ) was the smallest among all 271 C 50 isomers. They also pointed out that the coefficients of the permanental polynomial are related to the stability of fullerenes. To study this phenomenon from the viewpoint of graph theory, Wu and Lai [10] proposed the permanental sum as a topological index, defining it as the sum of the absolute values of all coefficients of the permanental polynomial. Since its introduction, has attracted significant attention from researchers. For example, Li et al. [11] studied the properties of the permanental sum of octagonal chains; Wu et al. [12] provided upper and lower bounds for the permanental sum of helical hexagonal chains; and Wei Li et al. [13] determined the permanental sum of planar quadrilateral linear chains and cylindrical quadrilateral linear rings. For more results on the permanental sum, see [14,15].
Since the computation of the permanental sum is inherently difficult, Wu and So [16] showed that calculating the permanental sum is equivalent to computing a matrix permanent. To evaluate the permanent, several classical algorithms have been developed, including Ryser’s algorithm [17], the R–NW algorithm [18], and Kallman’s algorithm [19]. Ryser’s algorithm converts the permanent computation into a weighted sum over all subsets of columns and has a time complexity of O ( n 2 · 2 n ) . Based on this method, Nijenhuis and Wilf proposed the R–NW algorithm, which optimizes the computation range and subset traversal, reducing the complexity to O ( n · 2 n 1 ) . Kallman’s algorithm, on the other hand, decomposes, reduces, and simplifies the matrix rows recursively, transforming the original problem into smaller subproblems that can be solved using a closed-form formula, with a complexity of O ( 2 n / 2 ) . These classical exact algorithms lay the theoretical foundation for the exponential complexity of permanent computation. Over the past two decades, research on permanent algorithms has evolved in more diverse directions. In the domain of approximation algorithms, Jerrum et al. [20] proposed a fully polynomial time-randomized approximation scheme based on Markov chain Monte Carlo methods for computing the permanent of nonnegative matrices. In addition, Anari et al. [21] developed a deterministic approximation algorithm for the permanent of positive semidefinite (PSD) matrices. In the study of parameterized complexity, Curticapean et al. [22] conducted a systematic analysis of the permanent problem, exploring the complexity boundaries within the fixed-parameter tractable (FPT) framework based on various structural parameters, including graph genus, excluded minors, and modular evaluation. Recent research on permanent algorithms has thus formed a diversified framework encompassing exact computation, approximation methods, and parameterized analysis. Although permanent computation remains #P-complete in general, efficiently solvable subclasses for specific matrix structures or graph families, as well as effective approximation algorithms, continue to emerge. Against this background, designing structure-aware exact algorithms for chemical molecular graphs—particularly the sparse and highly symmetric (3,6)-fullerenes—has significant theoretical and practical value.
On the other hand, the Hosoya index is an important topological descriptor for studying molecular matching properties. According to the relationship between the permanental sum and the Hosoya index derived by Wu and Jiu [23], the Hosoya index can be regarded as a component of the permanental sum. However, the computational methods for the Hosoya index remain scarce. Manuel et al. [24] proposed a recursive algorithm that first sorts the edge set and constructs an edge adjacency matrix, then recursively accumulates the sizes of independent edge sets to obtain the Hosoya index. Jerrum [25] proved that computing the Hosoya index is a #NP-complete problem. Given its high computational complexity, developing efficient algorithms for the Hosoya index is also of significant interest.
In summary, research on the computational algorithms for the permanental sum and the Hosoya index remains insufficient. From an algorithmic perspective, this paper proposes two unified computational methods and applies them to the topological structure analysis and synthesis prediction of small-molecule (3,6)-fullerenes.
Although various algorithms for computing the permanental sum and the Hosoya index have been developed, the existing studies still exhibit the following three limitations when applied to chemical molecular graphs:
(1) Most algorithms are designed for general matrices or tree-like graphs and lack structural optimization tailored to sparse and highly symmetric molecular graphs (such as (3,6)-fullerenes); (2) classical algorithms (e.g., Ryser and R–NW algorithms) can compute the permanent exactly but their time complexity grows exponentially, making them impractical for medium-scale molecular systems; and (3) existing recursive algorithms for the Hosoya index incur significant computational and memory costs when the number of edges increases and are highly sensitive to edge ordering.
To overcome these limitations, this study proposes two types of structure-aware algorithms:
  • Permanental sum algorithm: based on Kallman’s closed-form formula and GPU array computation, the algorithm combines binary encoding of matrix rows with structural pruning, reducing the computational complexity from the traditional O ( n 2 · 2 n ) to approximately O ( n 2 n 3 ) ;
  • Hosoya index algorithm: incorporates bitmask representation and memoized dynamic programming to effectively control the state space while maintaining exactness.
Under a unified framework, these two algorithms achieve efficient topological computation for chemical molecular graphs, providing theoretical support for the synthesis prediction of small-molecule (3,6)-fullerenes and offering new insights for the further development of topological index algorithms.
The remainder of this paper is organized as follows. Section 2 introduces the fundamental graph-theoretic definitions and topological indices as preliminary knowledge. Section 3 and Section 4 present the algorithms for calculating the permanental sum and Hosoya index, respectively. Section 5 combines both algorithms to calculate the permanental sum and Hosoya index of small (3,6)-fullerenes for synthesis prediction. Section 6 provides conclusions, and Section 7 discusses the limitations of this study.

2. Preliminaries

This section systematically introduces the graph-theoretical concepts and topological indices that will be used in the subsequent algorithmic and theoretical developments.

2.1. Matchings and the Hosoya Index

A matching M of a graph G is a subset of edges such that no two edges in M are adjacent in G. A k-matching is a set consisting of k independent edges, and the number of k-matchings in G is denoted by m ( G , k ) . The Hosoya index Z ( G ) is defined as the total number of matchings in G:
Z ( G ) = k = 0 n / 2 m ( G , k ) ,
where n = | V ( G ) | and m ( G , 0 ) = 1 .
In 1971, Hosoya first introduced Z ( G ) as a structural descriptor to describe the thermodynamic properties of saturated hydrocarbons and showed that Z ( G ) is closely related to the boiling point of a molecule [26]. Jerrum [25] proved that the computation of the Hosoya index is a #NP-complete problem. Further developments concerning the Hosoya index can be found in [27].

2.2. Permanent and Permanental Polynomial

Let X = ( x i j ) n × n denote an n × n real matrix, where i , j { 1 , 2 , , n } . The permanent of the matrix X is defined as
per ( X ) = σ i = 1 n x i σ ( i ) ,
where the summation is taken over all permutations σ of { 1 , 2 , , n } . Valiant [28] proved that computing the permanent is a #P-complete problem.
Let G = ( V ( G ) , E ( G ) ) be a simple graph with n vertices and m edges. Denote by A ( G ) the adjacency matrix of G, and by I the identity matrix. The permanental polynomial of G is defined as
π ( G , x ) = per ( x I A ( G ) ) = k = 0 n b k ( G ) x n k ,
where b k ( G ) represents the k-th coefficient, and  b 0 ( G ) = 1 . The permanental polynomial of graphs were first introduced in mathematics  [29] and chemistry  [30]. If each component of a subgraph H of G is either an edge or a cycle, then H is called a Sachs subgraph of G. Let S k ( G ) denote the set of all k-order Sachs subgraphs of G, and let c ( H ) denote the number of cycles in H. Merris et al. [29] presented the Sachs-type expression for the coefficients of the permanental polynomial:
b k ( G ) = ( 1 ) k H S k ( G ) 2 c ( H ) , 0 k n .

2.3. Permanental Sum

The permanental sum of a graph G, denoted by P S ( G ) , is defined as the sum of the absolute values of all coefficients of its permanental polynomial:
P S ( G ) = k = 0 n | b k ( G ) | = 1 + k = 1 n H S k ( G ) 2 c ( H ) .
In particular, if G is an empty graph, then P S ( G ) = 1 .
From Equation (1), Wu and So [16] obtained the following relation:
( 1 ) n P S ( G ) = ( 1 ) n + ( 1 ) n k = 1 n H S k ( G ) 2 c ( H ) = ( 1 ) n + k = 1 n b k ( G ) ( 1 ) n k = π ( G , 1 ) = per I A ( G ) = ( 1 ) n per I + A ( G ) .
Hence, they derived the matrix form of the permanental sum:
P S ( G ) = per I + A ( G ) .
According to Valiant [28], the computation of the permanental sum is also a #P-complete problem.

2.4. Relationship Between Permanental Sum and Hosoya Index

Recently, Wu and Jiu [23] characterized the relationship between the Hosoya index and the permanental sum, and obtained the following result:
Theorem 1.
Let G be a graph with n vertices and m edges. Let H denote a set of disjoint cycles in G, and let C denote the collection of all such H . Then,
P S ( G ) = Z ( G ) + H C 2 c ( H ) Z ( G H ) .
This relationship shows that the Hosoya index is a component of the permanental sum, and both indices are closely connected in describing molecular topological structures.

3. Permanental Sum Algorithm

This section mainly introduces an algorithm for computing the permanental sum. Before that, we first present some related lemmas.
Lemma 1 
([31]). If a matrix has two rows S , T , then
per M ( S , T ) = per M ( S T , S T ) + per M ( S \ T , T \ S ) .
Lemma 2 
([31]). Let M = ( R 1 , , R m ) , where R m is a singleton row, and for any i < m , have R m R i = or R m R i . Then,
per ( M ) = # R m · per R 1 \ R m , , R m 1 \ R m .
Lemma 3 
([31]). If some row R m is a universal row (equal to the union of all rows), then
per ( M ) = # R m m + 1 · per ( R 1 , , R m 1 ) ,
where # R m denotes the number of 1s in R m .
Based on the above lemmas, using Kallman’s closed formulas [31] together with above Formula (2), and combined with GPU array computation, we design an algorithm for computing the permanental sum of (0,1)-matrices. The Algorithm 1 steps are as follows:
Algorithm 1: Permanental Sum Algorithm
Algorithms 18 00673 i001
Parameter Description: row threshold r t : only rows with a number of nonzero elements greater than this threshold are retained; column threshold c t : only columns with a number of nonzero elements greater than this threshold are retained; Typically, r t = c t = 2 , which significantly reduces the computational dimension while maintaining structural completeness. Lemmas 2 and 3 are applied to identify structurally redundant row vectors, enabling effective pruning. For matrices with n 4 , the permanent is computed directly using the explicit closed-form expression.
The GPU-accelerated component of the permanental sum algorithm was implemented using the MATLAB R2023a GPU Computing Toolbox, and all computations were performed on a local computer, an ASUS laptop (ASUSTeK Computer Inc., Taipei, Taiwan) equipped with an Intel Core i5-7200U processor (2.71 GHz) and an NVIDIA GeForce 940MX GPU (2 GB GDDR5 memory). The input adjacency matrix A was transferred to GPU memory via the gpuArray structure, and matrix operations such as sum(A_gpu, 2) and sum(A_gpu, 1) were executed directly on the GPU. These operations are automatically parallelized within the CUDA kernel, enabling implicit multithreaded computation without the need for explicit kernel programming. After the threshold filtering process, the processed submatrix was transferred back to the CPU, where a custom function was invoked to compute the permanental sum.
The proposed algorithm for the permanental sum employs binary encoding and sorting of matrix rows during preprocessing and structural ordering, with complexity of approximately O ( n · log n ) . For pruning, Lemma 2 and Lemma 3 are utilized for structural pruning with a complexity of O ( n ) . During GPU-accelerated submatrix screening, row and column sums are used to filter out submatrices with negligible contributions, further reducing computation. In the inclusion–exclusion aggregation step, the permanental sum of submatrices are weighted and combined to ensure accuracy without redundancy. The overall computational complexity is approximately O ( n 2 n 3 ) , which is significantly more efficient than the traditional Ryser algorithm.

4. Hosoya Index Algorithm

This section presents algorithms for computing the Hosoya index and begins with a review of existing research.
The Hosoya index is a classical topological index in chemical graph theory, defined as the total number of independent edge sets (matchings) in a graph [26]. For trees, it can be computed via dynamic programming on vertex subsets, a method that has been described in detail in the literature [32]. In addition, [33,34] computed the Hosoya index for pristine coronoid systems and condensed hexagonal systems, respectively.
Existing algorithms can be broadly divided into two categories: (i) vertex–subset dynamic programming methods [32], which are suitable for trees and some sparse graph structures and can effectively reduce computational complexity and memory usage; and (ii) edge–set recursion methods [24], which involve extensive operations on edge sets during computation. The latter approach leads to significantly increase the complexity when the graph is large or dense, tends to incur high memory usage, and is sensitive to the ordering of edges.
To address the limitations of the algorithm by Manuel et al., we optimize the computation of the Hosoya index. Within a dynamic programming framework, we represent vertex subsets by binary bitmasks and employ memoization to reduce both time and space complexity. The Algorithm 2 proceeds as follows:
Algorithm 2: Hosoya Index Algorithm
    Input: 
Adjacency matrix A { 0 , 1 } n × n of a simple undirected graph without loops or multiple edges
    Output: 
Hosoya index Z ( G ) and the running time of the program
1 
Step 1: Adjacency preprocessing;
2 
For each vertex v, record its neighbor set N ( v ) ;
3 
Convert each neighbor set into a bitmask (the i-th bit equals 1 iff vertex i is a neighbor) and store them for fast matching checks;
4 
Step 2: Dynamic programming;
5 
Define a function dp ( state ) , where state is an n-bit integer indicating the set of currently available vertices (1 means that the vertex has not been matched; 0 means that the vertex has already been matched);
6 
Base case: if state = 0 , return 1;
7 
Transition: choose the smallest-index available vertex v; the count equals the sum of the following two cases:;
8 
   (a) Exclude v: compute dp ( state \ { v } ) ;
9 
   (b) Include v: iterate over all vertices u adjacent to v that are available in state , compute dp ( state \ { v , u } ) , and sum the results;
10 
Memoization: cache results of already computed states to avoid recomputation;
11 
Step 3: Computing the Hosoya index;
12 
Initialize with all vertices available and call dp ( initial state ) ;
13 
The result is the Hosoya index Z ( G ) ;
14 
return Z ( G ) and the running time
Notes on parameters: Bitmask of neighbor sets: represent vertex adjacencies in binary to speed up matching checks. Memoization cache: store the computed values of dp ( state ) to reduce redundant computation.
The Hosoya index computation algorithm proposed in this paper, during the adjacency preprocessing phase, traverses each vertex in the graph along with its adjacency relations, and stores them in a compressed form using bitmasks. The complexity of this phase is approximately O ( n 2 ) , where n is the number of vertices. In the recursive search and memoization phase, bitwise operations are used to quickly extract the lowest-numbered vertex and its neighbor set in the current state, and two types of computations are performed separately: “Excluding the vertex” and “Including the vertex”. For each vertex, the complexity of vertex selection and neighbor iteration is O ( deg ( v ) ) , where deg ( v ) is the degree of the current vertex. Since memoization is employed, each vertex is computed only once, avoiding the exponential accumulation of repeated subproblems. Therefore, the overall computational complexity of the algorithm is O ( 3 n 2 ) .

5. Synthesis Prediction of Small-Molecule (3,6)-Fullerenes

The permanental sum and Hosoya index, as important topological indices for studying chemical molecules. In this section, we used the above two algorithms to identify the molecular graphs with the minimum permanental sum and Hosoya index, providing guidance for the synthesis of small-molecule (3,6)-fullerenes.
For a positive integer k 3 , a (k,6)-fullerene graph is defined as a 3-regular (each vertex of degree 3) planar graph whose faces consist of only k-gons and hexagons. According to Euler’s formula n m + f = 2 , such (k,6)-fullerene graphs exist only for k = 3 , 4 , 5 . Among them, (5,6)-fullerene graphs correspond to classical fullerene molecules (e.g., C 60 ), while (4,6)-fullerene graphs correspond to boron–nitrogen fullerene molecules (e.g., C 58 B N ). In the approximately forty years since the discovery of C 60 fullerene in 1985, researchers have successfully synthesized large carbon-cage fullerenes (with more than 70 carbon atoms), such as C 70 , C 76 , C 78 , C 82 , C 84 , and C 90 [35,36,37,38,39,40]. Troshin [41] and Qian [42] synthesized non-classical fullerene derivatives C 58 and C 62 (containing non-pentagonal or non-hexagonal faces). In addition, Chen et al. [43] systematically studied 31 isomers of the boron–nitrogen fullerene C 58 B N and identified its most stable structure. Compared to the extensive research on (5,6)-fullerenes and (4,6)-fullerenes, (3,6)-fullerenes have not yet been synthesized experimentally, and theoretical studies are also limited. Due to their unique geometric configurations, (3,6)-fullerenes may exhibit physicochemical properties distinct from those of (5,6)-fullerenes and (4,6)-fullerenes. However, the existing research on the structural prediction, stability analysis, and synthesis pathways of (3,6)-fullerenes is extremely limited, restricting their potential applications in nanomaterials, catalysts, and energy storage. Inspired by the studies on (5,6)-fullerenes and (4,6)-fullerenes, this paper investigates the synthesis prediction of small molecule (3,6)-fullerenes from a mathematical perspective, which is of considerable value and can provide theoretical guidance for their synthesis.
Although (3,6)-fullerenes have not yet been synthesized experimentally, their structural characteristics have been extensively studied by both mathematicians and chemists. For instance, Motzkin et al. [44] deduced that the number of vertices in a (3,6)-fullerene must be a multiple of 4. Shabbir et al. [45] further established the relations among the number of vertices n, the number of edges m, the radius r, and the Step S as n = 4 r S , m = 6 r S . Combined with Euler’s formula n m + f = 2 , it follows that a (3,6)-fullerene graph with n vertices contains exactly 4 triangular faces and n 2 2 hexagonal faces [46]. Therefore, the connectivity of such graphs is either 2 or 3.
Yang and Zhang [47] characterized the structure of (3,6)-fullerenes with connectivity 2.
Lemma 4 
([47]). A (3,6)-fullerene graph G has connectivity 2 if and only if G T n . Where n( n 1 ) is an integer, and T n is constructed from n concentric layers of hexagons capped at both ends with a pair of triangles (see Figure 1).
The structure of (3,6)-fullerene with connectivity 3 is determined by three parameters: r, S, and t. Here, r 1 denotes the radius, which is the number of circles. S represents the Step, defined as the number of spokes in each layer s = 2 S , where s 4 and is even. Finally, t is the torsion or twist, satisfying 0 < t s and t r ( mod 2 ) . Based on these parameters, the specific topological structure of (3,6)-fullerene can be constructed. For example, Figure 2 shows the topological structure of a 3-connected (3,6)-fullerene with parameters r = 2 , S = 3 , t = 2 .
Based on the above structural properties, it can be seen that the minimum number of vertices of (3,6)-fullerene is 4, at this point, the corresponding graph is a regular tetrahedron. By graph theoretical analysis, we obtained the number of isomers of (3,6)-fullerenes with 4 n 44 vertices, as shown in Table 1.
Let G n denote a (3,6)-fullerene graph with n vertices. Based on the above structural properties of (3,6)-fullerenes, and by applying the algorithms presented earlier (See Algorithm 1), we calculated the minimum permanental sum values of (3,6)-fullerene isomers with n vertices ( 4 n 44 ) (see Table 2), and determined that their corresponding graph structures are G 4 , G 12 , , G 44 , as illustrated in Figure 3.
The structure shown in Figure 3 corresponds to the permanental sum and minimal (3,6)-fullerene molecule G n calculated in Table 2. Its local topological features are the primary factors leading to the minimal permanental sum. Based on the findings of Xie et al. [8], these (3,6)-fullerene structures can be regarded as candidate molecular structure models with potential synthetic feasibility in theory. However, the minimality of the permanental sum does not imply that the structure has been successfully synthesized, and its actual feasibility still requires further validation through quantum chemical calculations and experimental studies by chemists.
Furthermore, by analyzing the graph structures of (3,6)-fullerenes with minimum permanental sum, we summarized the following relationships among the structural parameters r, S, and t for any (3,6)-fullerene with n 4 vertices when its permanental sum reaches the minimum value:
  • When the step S 5 , the torsion t = S ;
  • When the step S 5 , the torsion t = 5 .
The Hosoya index, as a special chemical topological index, is closely related to the permanental sum. Using the algorithms provided earlier (See Algorithm 2), we computed the minimum Hosoya index values of (3,6)-fullerene isomers with n vertices ( 4 n 44 ) (see Table 3), and further determined their corresponding molecular graph structures. Specifically, for n = 4 , 12 , 16 , 20 , 24 , 28 , 36 , 44 , the (3,6)-fullerene molecular structures with minimum permanental sum are identical to those with minimum Hosoya index; however, for n = 32 and n = 40 , the (3,6)-fullerene molecular structures corresponding to the minimum permanental sum and minimum Hosoya index differ, as shown in Figure 4. To distinguish them, we denote the (3,6)-fullerene structures corresponding to the minimum Hosoya indices as H n .
Through the preceding analysis, we found that the (3,6)-fullerene molecular structures corresponding to the minimum values of the Hosoya index and the permanental sum are highly consistent. This result theoretically strengthens the rationale for prioritizing the (3,6)-fullerene structures that share the same minimal values of these two indices in studies of structural stability and synthetic feasibility. However, their actual synthesizability still requires further verification through quantitative calculations and experimental investigations. In particular, when n = 4 , 12 , 16 , 20 , 24 , 28 , 36 , and 44, the (3,6)-fullerene molecular structures corresponding to the minimal values of the permanent sum and the Hosoya index are completely identical, suggesting that these structures may possess higher synthetic potential.

6. Conclusions

This paper has presented algorithms for characterizing the permanental sum and the Hosoya index (see Section 2 and Section 3) and explored their computational complexity. The permanental sum algorithm is based on the adjacency matrix representation and can be applied to compute the permanental sum of general graphs. Since the permanental sum is essentially a special permanent, the proposed algorithm can innovatively be extended to general permanent algorithm. Similarly, the Hosoya index, as a sub-branch of the permanental sum, is computed from the adjacency matrix, and we have developed an algorithm applicable to general graphs.
Using the algorithms presented in Section 2 and Section 3, we computed the minimum permanental sum and Hosoya index for small (3,6)-fullerenes with vertex numbers n ( 4 n 44 ) and identified their corresponding topological structures. These structures can serve as candidate molecules with higher theoretical synthesis priority. However, the practical feasibility of their synthesis still requires verification by experimental chemists. Based on the results of Xie and Tong, fullerenes with minimum permanental sum appear more likely to be synthesized. Therefore, we hope that the conclusions of this paper can attract the attention of chemists and further promote their exploration in the synthesis of (3,6)-fullerenes.

7. Limitations

Although the algorithms proposed in this study provide an effective computational framework for evaluating the permanental sum and Hosoya index of molecular graphs, several limitations remain that need to be addressed in future research.
First, the computational complexity of both algorithms is inherently exponential. The computation of the permanental sum belongs to the class of #P-complete problems, and the Hosoya index is known to be #NP-complete. Despite the incorporation of recursive decomposition, pruning strategies, and GPU acceleration, the time and memory requirements still increase exponentially with the number of vertices. Therefore, the proposed algorithms are mainly practical for small- and medium-sized molecular systems, and further optimization or approximation techniques are required for large-scale graphs.
Second, the chemoinformatic predictions derived from the minimal permanental sum and Hosoya index are theoretical and speculative. The correlations between these topological indices and molecular stability are based purely on mathematical structures. Hence, the predicted synthesizability of small (3,6)-fullerenes should be regarded as a theoretical hypothesis rather than an experimentally verified conclusion. Future work should integrate the presented computational framework with quantum chemical simulations or experimental studies to validate these theoretical predictions.
Overall, these limitations define the theoretical scope of the present work and provide directions for extending the applicability of the proposed algorithms and models.

Author Contributions

Theoretical Research: F.D. and T.W.; Writing—original draft: F.D.; Writing—review and editing: T.W.; Visualization: F.D.; Supervision: T.W. All authors have read and agreed to the published version of the manuscript.

Funding

Supported by the National Natural Science Foundation of China (No. 12261071) and Natural Science Foundation of Qinghai Province (No. 2025-ZJ-902T).

Data Availability Statement

The data presented in this study are available in this paper.

Conflicts of Interest

The paper is our research and is not related to any organization or individual. It is part of a series of studies on permanent sum and Hosoya index.

References

  1. Trinajstić, N. Chemical Graph Theory, 2nd ed.; CRC Press: Boca Raton, FL, USA, 2018. [Google Scholar]
  2. Schmalz, T.G.; Seitz, W.A.; Klein, D.J.; Hite, G.E. Elemental Carbon Cages. J. Am. Chem. Soc. 1988, 110, 1113–1127. [Google Scholar] [CrossRef]
  3. Balasubramanian, K. Exhaustive Generation and Analytical Expressions of Matching Polynomials of Fullerenes C20–C50. J. Chem. Inf. Comput. Sci. 1994, 34, 421–427. [Google Scholar] [CrossRef]
  4. Balasubramanian, K. A Topological Analysis of the C60 Buckminsterfullerene and C70 Based on Distance Matrices. Chem. Phys. Lett. 1995, 239, 117–123. [Google Scholar] [CrossRef]
  5. Kroto, H.W. The Stability of the Fullerenes Cn, with n = 24, 28, 32, 36, 50, 60 and 70. Nature 1987, 329, 529–531. [Google Scholar] [CrossRef]
  6. Gutman, I. Permanents of Adjacency Matrices and Their Dependence on Molecular Structure. Polycycl. Aromat. Compd. 1998, 12, 281–287. [Google Scholar] [CrossRef]
  7. Balaban, A.T.; Liu, X.; Klein, D.J.; Babic, D.; Schmalz, T.G.; Seitz, W.A.; Randi, M. Graph Invariants for Fullerenes. J. Chem. Inf. Comput. Sci. 1995, 35, 396–404. [Google Scholar] [CrossRef]
  8. Xie, S.-Y.; Gao, F.; Lu, X.; Huang, R.-B.; Wang, C.-R.; Zhang, X.; Liu, M.-L.; Deng, S.-L.; Zheng, L.-S. Capturing the Labile Fullerene[50] as C50Cl10. Science 2004, 304, 699. [Google Scholar] [CrossRef]
  9. Tong, H. Parallel Algorithms for Computing Permanents and Permanental Polynomials of Sparse Matrices. Ph.D. Dissertation, Tsinghua University, Beijing, China, 2006. [Google Scholar]
  10. Wu, T.; Lai, H.-J. On the Permanental Sum of Graphs. Appl. Math. Comput. 2018, 331, 334–340. [Google Scholar] [CrossRef]
  11. Li, S.; Wei, W. Extremal Octagonal Chains with Respect to the Coefficients Sum of the Permanental Polynomial. Appl. Math. Comput. 2018, 328, 45–57. [Google Scholar] [CrossRef]
  12. Wu, T.; Ren, S.; Das, K.C. Some Extremal Graphs with Respect to Permanental Sum. Bull. Malays. Math. Sci. Soc. 2019, 42, 2947–2961. [Google Scholar] [CrossRef]
  13. Li, W.; Qin, Z.; Wang, Y. Enumeration of Permanental Sums of Lattice Graphs. Appl. Math. Comput. 2020, 370, 124914. [Google Scholar] [CrossRef]
  14. Wu, T.; Lü, H. The Extremal Permanental Sum for a Quasi-Tree Graph. Complexity 2019, 2019, 4387650. [Google Scholar] [CrossRef]
  15. Wu, T.; So, W. Permanental Sums of Graphs of Extreme Sizes. Discret. Math. 2021, 344, 112353. [Google Scholar] [CrossRef]
  16. Wu, T.; So, W. Unicyclic Graphs with Second Largest and Second Smallest Permanental Sums. Appl. Math. Comput. 2019, 351, 168–175. [Google Scholar] [CrossRef]
  17. Ryser, H.J. Combinatorial Mathematics; Carus Mathematical Monographs; Mathematical Association of America: Washington, DC, USA, 1963; Volume 14. [Google Scholar]
  18. Nijenhuis, A.; Wilf, H.S. Combinatorial Algorithms for Computers and Calculators; Academic Press: New York, NY, USA, 1978. [Google Scholar]
  19. Delic, G.; Cash, G.G. The Permanent of 0,1 Matrices and Kallman’s Algorithm. Comput. Phys. Commun. 2000, 124, 315–329. [Google Scholar] [CrossRef]
  20. Jerrum, M.; Sinclair, A.; Vigoda, E. A Polynomial-Time Approximation Algorithm for the Permanent of a Matrix with Nonnegative Entries. J. ACM 2004, 51, 671–697. [Google Scholar] [CrossRef]
  21. Anari, N.; Gurvits, L.; Gharan, S.O.; Saberi, A. Simply Exponential Approximation of the Permanent of Positive Semidefinite Matrices. In Proceedings of the 2017 IEEE 58th Annual Symposium on Foundations of Computer Science (FOCS), Berkeley, CA, USA, 15–17 October 2017; IEEE: Berkeley, CA, USA, 2017; pp. 914–925. [Google Scholar] [CrossRef]
  22. Curticapean, R.; Xia, M. Parameterizing the Permanent: Genus, Apices, Minors, Evaluation Mod 2k. In Proceedings of the 2015 IEEE 56th Annual Symposium on Foundations of Computer Science (FOCS), Berkeley, CA, USA, 17–20 October 2015; IEEE: Berkeley, CA, USA, 2015; pp. 994–1009. [Google Scholar] [CrossRef]
  23. Wu, T.; Jiu, X. Solution to a Conjecture on the Permanental Sum. Axioms 2024, 13, 166. [Google Scholar] [CrossRef]
  24. Manuel, P.D. An Efficient Hosoya Index Algorithm and Its Application. Int. J. Comput. Appl. Eng. Technol. 2019, 11, 196. [Google Scholar] [CrossRef]
  25. Jerrum, M. Two-Dimensional Monomer-Dimer Systems Are Computationally Intractable. J. Stat. Phys. 1987, 48, 121–134. [Google Scholar] [CrossRef]
  26. Hosoya, H. Topological Index. A Newly Proposed Quantity Characterizing the Topological Nature of Structural Isomers of Saturated Hydrocarbons. Bull. Chem. Soc. Jpn. 1971, 44, 2332–2339. [Google Scholar] [CrossRef]
  27. Wagner, S.; Gutman, I. Maxima and Minima of the Hosoya Index and the Merrifield-Simmons Index: A Survey of Results and Techniques. Acta Appl. Math. 2010, 112, 323–346. [Google Scholar] [CrossRef]
  28. Valiant, L.G. The Complexity of Computing the Permanent. Theor. Comput. Sci. 1979, 8, 189–201. [Google Scholar] [CrossRef]
  29. Merris, R.; Rebman, K.R.; Watkins, W. Permanental Polynomials of Graphs. Linear Algebra Appl. 1981, 38, 273–288. [Google Scholar] [CrossRef]
  30. Kasum, D.; Trinajstić, N.; Gutman, I. Chemical Graph Theory. III. On the Permanental Polynomial. Croat. Chem. Acta 1981, 54, 321–328. [Google Scholar]
  31. Kallman, R. A Method for Finding Permanents of 0, 1 Matrices. Math. Comp. 1982, 38, 167–170. [Google Scholar] [CrossRef]
  32. Vesel, A. Linear Algorithms for the Hosoya Index and Hosoya Matrix of a Tree. Mathematics 2021, 9, 142. [Google Scholar] [CrossRef]
  33. Oz, M.S.; Cruz, R.; Rada, J. Computation Method of the Hosoya Index of Primitive Coronoid Systems. Math. Biosci. Eng. 2022, 19, 9842–9852. [Google Scholar] [CrossRef]
  34. Cruz, R.; Marín, C.A.; Rada, J. Computing the Hosoya Index of Catacondensed Hexagonal Systems. MATCH Commun. Math. Comput. Chem. 2017, 77, 749–764. [Google Scholar]
  35. Taylor, R.; Hare, J.P.; Abdul-Sada, A.K.; Kroto, H.W. Isolation, Separation and Characterisation of the Fullerenes C60 and C70: The Third Form of Carbon. J. Chem. Soc. Chem. Commun. 1990, 20, 1423. [Google Scholar] [CrossRef]
  36. Ettl, R.; Chao, I.; Diederich, F.; Whetten, R.L. Isolation of C76, a Chiral (D2) Allotrope of Carbon. Nature 1991, 353, 149–153. [Google Scholar] [CrossRef]
  37. Diederich, F.; Whetten, R.L.; Thilgen, C.; Ettl, R.; Chao, I.; Alvarez, M.M. Fullerene Isomerism: Isolation of C2v-C78 and D3-C78. Science 1991, 254, 1768–1770. [Google Scholar] [CrossRef]
  38. Kikuchi, K.; Nakahara, N.; Wakabayashi, T.; Suzuki, S.; Shiromaru, H.; Miyake, Y.; Saito, K.; Ikemoto, I.; Kainosho, M.; Achiba, Y. NMR Characterization of Isomers of C78, C82 and C84 Fullerenes. Nature 1992, 357, 142–145. [Google Scholar] [CrossRef]
  39. Manolopoulos, D.E.; Fowler, P.W.; Taylor, R.; Kroto, H.W.; Walton, D.R.M. An End to the Search for the Ground State of C84? Faraday Trans. 1992, 88, 3117. [Google Scholar] [CrossRef]
  40. Yang, H.; Beavers, C.M.; Wang, Z.; Jiang, A.; Liu, Z.; Jin, H.; Mercado, B.Q.; Olmstead, M.M.; Balch, A.L. Isolation of a Small Carbon Nanotube: The Surprising Appearance of D5h(1)-C90. Angew. Chem. Int. Ed. 2010, 49, 886–890. [Google Scholar] [CrossRef] [PubMed]
  41. Troshin, P.A.; Avent, A.G.; Darwish, A.D.; Martsinovich, N.; Abdul-Sada, A.K.; Street, J.M.; Taylor, R. Isolation of Two Seven-Membered Ring C58 Fullerene Derivatives: C58F17CF3 and C58F18. Science 2005, 309, 278–281. [Google Scholar] [CrossRef] [PubMed]
  42. Qian, W.; Chuang, S.-C.; Amador, R.B.; Jarrosson, T.; Sander, M.; Pieniazek, S.; Khan, S.I.; Rubin, Y. Synthesis of Stable Derivatives of C62: The First Nonclassical Fullerene Incorporating a Four-Membered Ring. J. Am. Chem. Soc. 2003, 125, 2066–2067. [Google Scholar] [CrossRef] [PubMed]
  43. Chen, Z.; Ma, K.; Zhao, H.; Pan, Y.; Zhao, X.; Tang, A.; Feng, J. Semi-Empirical Calculations on the BN Substituted Fullerenes C60−2x(BN)x (x = 1–3)—Isoelectronic Equivalents of C60. J. Mol. Struct. THEOCHEM 1999, 466, 127–135. [Google Scholar] [CrossRef]
  44. Grünbaum, B.; Motzkin, T.S. The Number of Hexagons and the Simplicity of Geodesics on Certain Polyhedra. Can. J. Math. 1963, 15, 744–751. [Google Scholar] [CrossRef]
  45. Shabbir, A.; Nadeem, M.F.; Ovais, A.; Ashraf, F.; Nasir, S. Total Irregularity Strengths of an Arbitrary Disjoint Union of (3,6)-Fullerenes. Curr. Org. Chem. 2022, 25, 500–509. [Google Scholar] [CrossRef]
  46. Ashrafi, A.R.; Mehranian, Z. Topological Study of (3,6)- and (4,6)-Fullerenes. In Topological Modelling of Nanostructures and Extended Systems; Ashrafi, A.R., Cataldo, F., Iranmanesh, A., Ori, O., Eds.; Carbon Materials: Chemistry and Physics; Springer: Dordrecht, The Netherlands, 2013; Volume 7, pp. 487–510. [Google Scholar] [CrossRef]
  47. Yang, R.; Zhang, H. Hexagonal Resonance of (3,6)-Fullerenes. J. Math. Chem. 2012, 50, 261–273. [Google Scholar] [CrossRef]
Figure 1. The topological structure T n of a (3,6)-fullerene ( T n represents a 2-connected (3,6)-fullerene structure with n vertices).
Figure 1. The topological structure T n of a (3,6)-fullerene ( T n represents a 2-connected (3,6)-fullerene structure with n vertices).
Algorithms 18 00673 g001
Figure 2. The topological structure of a 3-connected (3,6)-fullerene ( r = 2 , S = 3 , t = 2 ), where r denotes the ring, S denotes the step, and t denotes torsion.
Figure 2. The topological structure of a 3-connected (3,6)-fullerene ( r = 2 , S = 3 , t = 2 ), where r denotes the ring, S denotes the step, and t denotes torsion.
Algorithms 18 00673 g002
Figure 3. Topological structures of (3,6)-fullerenes with the minimum permanental sum, denoted as G n , where G n is the (3,6)-fullerene molecular graph with n vertices attaining the smallest permanental sum value. Note: pairs of identical half-edges labeled with the same letter (a–g) represent the same edge that is connected when the planar graph is wrapped into the complete (3,6)-fullerene structure.
Figure 3. Topological structures of (3,6)-fullerenes with the minimum permanental sum, denoted as G n , where G n is the (3,6)-fullerene molecular graph with n vertices attaining the smallest permanental sum value. Note: pairs of identical half-edges labeled with the same letter (a–g) represent the same edge that is connected when the planar graph is wrapped into the complete (3,6)-fullerene structure.
Algorithms 18 00673 g003
Figure 4. Topological structures of (3,6)-fullerenes with the minimum Hosoya index, denoted as H n ( n = 32 , 40 ). H n represents the molecular structure achieving the smallest Hosoya index for a given number of vertices n. Note: pairs of identical half-edges labeled with the same letter (a–f) represent the same edge that is connected when the planar graph is wrapped into the complete (3,6)-fullerene structure.
Figure 4. Topological structures of (3,6)-fullerenes with the minimum Hosoya index, denoted as H n ( n = 32 , 40 ). H n represents the molecular structure achieving the smallest Hosoya index for a given number of vertices n. Note: pairs of identical half-edges labeled with the same letter (a–f) represent the same edge that is connected when the planar graph is wrapped into the complete (3,6)-fullerene structure.
Algorithms 18 00673 g004
Table 1. The number of isomers of (3,6)-fullerenes.
Table 1. The number of isomers of (3,6)-fullerenes.
Number of Vertices in (3,6)-Fullerenes nNumber of Isomers
n = 41
n = 122
n = 163
n = 202
n = 243
n = 283
n = 325
n = 363
n = 404
n = 443
Table 2. Minimum permanental sum of (3,6)-fullerenes and their corresponding graph structures.
Table 2. Minimum permanental sum of (3,6)-fullerenes and their corresponding graph structures.
Number of Vertices in (3,6)-Fullerenes nMinimum Permanental SumStructure of (3,6)-Fullerene
n = 424 G 4
n = 123416 G 12
n = 1637,344 G 16
n = 20436,376 G 20
n = 244,746,368 G 24
n = 2852,526,520 G 28
n = 32583,832,656 G 32
n = 366,424,938,752 G 36
n = 4071,779,550,640 G 40
n = 44796,990,000,000 G 44
Table 3. Minimum Hosoya index of (3,6)-fullerenes and their corresponding graph structures.
Table 3. Minimum Hosoya index of (3,6)-fullerenes and their corresponding graph structures.
Number of Vertices in (3,6)-Fullerenes nMinimum Hosoya IndexStructure of (3,6)-Fullerene
n = 410 G 4
n = 121010 G 12
n = 1610,320 G 16
n = 20105,870 G 20
n = 241,083,496 G 24
n = 2811,102,310 G 28
n = 32113,727,720 H 32
n = 361,165,172,224 G 36
n = 4011,937,447,824 H 40
n = 44122,308,475,826 G 44
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.

Share and Cite

MDPI and ACS Style

Deng, F.; Wu, T. Algorithms for Two Types of Topological Indices. Algorithms 2025, 18, 673. https://doi.org/10.3390/a18110673

AMA Style

Deng F, Wu T. Algorithms for Two Types of Topological Indices. Algorithms. 2025; 18(11):673. https://doi.org/10.3390/a18110673

Chicago/Turabian Style

Deng, Fengqin, and Tingzeng Wu. 2025. "Algorithms for Two Types of Topological Indices" Algorithms 18, no. 11: 673. https://doi.org/10.3390/a18110673

APA Style

Deng, F., & Wu, T. (2025). Algorithms for Two Types of Topological Indices. Algorithms, 18(11), 673. https://doi.org/10.3390/a18110673

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop