Algorithms for Two Types of Topological Indices
Abstract
1. Introduction
- 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 to approximately ;
- Hosoya index algorithm: incorporates bitmask representation and memoized dynamic programming to effectively control the state space while maintaining exactness.
2. Preliminaries
2.1. Matchings and the Hosoya Index
2.2. Permanent and Permanental Polynomial
2.3. Permanental Sum
2.4. Relationship Between Permanental Sum and Hosoya Index
3. Permanental Sum Algorithm
| Algorithm 1: Permanental Sum Algorithm |
![]() |
4. Hosoya Index Algorithm
| Algorithm 2: Hosoya Index Algorithm |
|
5. Synthesis Prediction of Small-Molecule (3,6)-Fullerenes
- When the step , the torsion ;
- When the step , the torsion .
6. Conclusions
7. Limitations
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Trinajstić, N. Chemical Graph Theory, 2nd ed.; CRC Press: Boca Raton, FL, USA, 2018. [Google Scholar]
- 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] [Scilit]
- 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] [Scilit]
- 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] [Scilit]
- 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] [Scilit]
- Gutman, I. Permanents of Adjacency Matrices and Their Dependence on Molecular Structure. Polycycl. Aromat. Compd. 1998, 12, 281–287. [Google Scholar] [CrossRef] [Scilit]
- 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] [Scilit]
- 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] [Scilit]
- Tong, H. Parallel Algorithms for Computing Permanents and Permanental Polynomials of Sparse Matrices. Ph.D. Dissertation, Tsinghua University, Beijing, China, 2006. [Google Scholar]
- Wu, T.; Lai, H.-J. On the Permanental Sum of Graphs. Appl. Math. Comput. 2018, 331, 334–340. [Google Scholar] [CrossRef] [Scilit]
- 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] [Scilit]
- 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] [Scilit]
- Li, W.; Qin, Z.; Wang, Y. Enumeration of Permanental Sums of Lattice Graphs. Appl. Math. Comput. 2020, 370, 124914. [Google Scholar] [CrossRef] [Scilit]
- Wu, T.; Lü, H. The Extremal Permanental Sum for a Quasi-Tree Graph. Complexity 2019, 2019, 4387650. [Google Scholar] [CrossRef] [Scilit]
- Wu, T.; So, W. Permanental Sums of Graphs of Extreme Sizes. Discret. Math. 2021, 344, 112353. [Google Scholar] [CrossRef] [Scilit]
- Wu, T.; So, W. Unicyclic Graphs with Second Largest and Second Smallest Permanental Sums. Appl. Math. Comput. 2019, 351, 168–175. [Google Scholar] [CrossRef] [Scilit]
- Ryser, H.J. Combinatorial Mathematics; Carus Mathematical Monographs; Mathematical Association of America: Washington, DC, USA, 1963; Volume 14. [Google Scholar]
- Nijenhuis, A.; Wilf, H.S. Combinatorial Algorithms for Computers and Calculators; Academic Press: New York, NY, USA, 1978. [Google Scholar]
- 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] [Scilit]
- 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] [Scilit]
- 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] [Scilit]
- 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] [Scilit]
- Wu, T.; Jiu, X. Solution to a Conjecture on the Permanental Sum. Axioms 2024, 13, 166. [Google Scholar] [CrossRef] [Scilit]
- Manuel, P.D. An Efficient Hosoya Index Algorithm and Its Application. Int. J. Comput. Appl. Eng. Technol. 2019, 11, 196. [Google Scholar] [CrossRef] [Scilit]
- Jerrum, M. Two-Dimensional Monomer-Dimer Systems Are Computationally Intractable. J. Stat. Phys. 1987, 48, 121–134. [Google Scholar] [CrossRef] [Scilit]
- 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] [Scilit]
- 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] [Scilit]
- Valiant, L.G. The Complexity of Computing the Permanent. Theor. Comput. Sci. 1979, 8, 189–201. [Google Scholar] [CrossRef] [Scilit]
- Merris, R.; Rebman, K.R.; Watkins, W. Permanental Polynomials of Graphs. Linear Algebra Appl. 1981, 38, 273–288. [Google Scholar] [CrossRef] [Scilit]
- Kasum, D.; Trinajstić, N.; Gutman, I. Chemical Graph Theory. III. On the Permanental Polynomial. Croat. Chem. Acta 1981, 54, 321–328. [Google Scholar]
- Kallman, R. A Method for Finding Permanents of 0, 1 Matrices. Math. Comp. 1982, 38, 167–170. [Google Scholar] [CrossRef] [Scilit]
- Vesel, A. Linear Algorithms for the Hosoya Index and Hosoya Matrix of a Tree. Mathematics 2021, 9, 142. [Google Scholar] [CrossRef] [Scilit]
- 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] [Scilit]
- 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]
- 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] [Scilit]
- 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] [Scilit]
- 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] [Scilit]
- 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] [Scilit]
- 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] [Scilit]
- 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] [Scilit] [PubMed]
- 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] [Scilit] [PubMed]
- 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] [Scilit] [PubMed]
- 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] [Scilit]
- 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] [Scilit]
- 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] [Scilit]
- 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] [Scilit]
- Yang, R.; Zhang, H. Hexagonal Resonance of (3,6)-Fullerenes. J. Math. Chem. 2012, 50, 261–273. [Google Scholar] [CrossRef] [Scilit]




| Number of Vertices in (3,6)-Fullerenes n | Number of Isomers |
|---|---|
| n = 4 | 1 |
| n = 12 | 2 |
| n = 16 | 3 |
| n = 20 | 2 |
| n = 24 | 3 |
| n = 28 | 3 |
| n = 32 | 5 |
| n = 36 | 3 |
| n = 40 | 4 |
| n = 44 | 3 |
| Number of Vertices in (3,6)-Fullerenes n | Minimum Permanental Sum | Structure of (3,6)-Fullerene |
|---|---|---|
| n = 4 | 24 | |
| n = 12 | 3416 | |
| n = 16 | 37,344 | |
| n = 20 | 436,376 | |
| n = 24 | 4,746,368 | |
| n = 28 | 52,526,520 | |
| n = 32 | 583,832,656 | |
| n = 36 | 6,424,938,752 | |
| n = 40 | 71,779,550,640 | |
| n = 44 | 796,990,000,000 |
| Number of Vertices in (3,6)-Fullerenes n | Minimum Hosoya Index | Structure of (3,6)-Fullerene |
|---|---|---|
| n = 4 | 10 | |
| n = 12 | 1010 | |
| n = 16 | 10,320 | |
| n = 20 | 105,870 | |
| n = 24 | 1,083,496 | |
| n = 28 | 11,102,310 | |
| n = 32 | 113,727,720 | |
| n = 36 | 1,165,172,224 | |
| n = 40 | 11,937,447,824 | |
| n = 44 | 122,308,475,826 |
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. |
© 2025 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 (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Deng, F.; Wu, T. Algorithms for Two Types of Topological Indices. Algorithms 2025, 18, 673. https://doi.org/10.3390/a18110673
Deng F, Wu T. Algorithms for Two Types of Topological Indices. Algorithms. 2025; 18(11):673. https://doi.org/10.3390/a18110673
Chicago/Turabian StyleDeng, Fengqin, and Tingzeng Wu. 2025. "Algorithms for Two Types of Topological Indices" Algorithms 18, no. 11: 673. https://doi.org/10.3390/a18110673
APA StyleDeng, F., & Wu, T. (2025). Algorithms for Two Types of Topological Indices. Algorithms, 18(11), 673. https://doi.org/10.3390/a18110673


