Proof. Run line 7 by calculating gifor an increasing
i≥1until either (1) gi= 1 or (2) inv[gi]=⊥. Because
gi=gi−1·gfor all i, line 7 takes O(h)time. Similarly,
line 8 also takes O(h)time. Clearly, lines 9–13 and 14–
16 take O(1) and O(h)time, respectively.
Lemma 17. Each execution of lines 7–16 of All Inverses
turn Ω(h)entries of inv[·]from ⊥to non-⊥.
Proof. By the minimality of hin line 7, inv[gj] = ⊥
for 1≤j≤h−1(when line 7 is executed). But after
lines 9–16, inv[gj]=⊥for all j∈ {1,2, . . . , h−1}. So
lines 7–16 turn at least h−1entries of inv[·]from ⊥to
non-⊥. Unless h≤1,h−1 = Ω(h). When h≤1, the
lemma still holds because lines 9–13 turn inv[g]from ⊥
to non-⊥.
Lemma 18. All Inverses take O(|G|)time.
Proof. Clearly, once an entry of ans[·]is non-⊥, it re-
mains non-⊥forever. So by Lemmas 16–17, the run-
ning time is at most proportional to the total number of
entries of ans[·], which is |G|.
Lemmas 15 and 18 yield the following.
Theorem 19. Finding g−1for all g∈Gtakes O(|G|)
time.
References
[1] N. Suvorov and N. Kryuchkov, “Examples of some
quasigroups and loops admitting only discrete topol-
ogization,” Siberian Mathematical Journal, vol. 17,
no. 2, pp. 367–369, 1976.
[2] H. Amiri and S. Jafarian Amiri, “Sum of element
orders of maximal subgroups of the symmetric
group,” Communications in Algebra, vol. 40, no. 2,
pp. 770–778, 2012.
[3] H. Amiri and S. Jafarian Amiri, “Sum of element
orders on finite groups of the same order,” Jour-
nal of Algebra and its Applications, vol. 10, no. 02,
pp. 187–190, 2011.
[4] Y. Marefat, A. Iranmanesh, and A. Tehranian, “On
the sum of element orders of finite simple groups,”
Journal of Algebra and its Applications, vol. 12,
no. 07, p. 1 350 026, 2013.
[5] M. Tărnăuceanu and D. G. Fodor, “On the sum
of element orders of finite abelian groups,” arXiv
preprint arXiv:1805.11693, 2018.
[6] M. Jahani, Y. Marefat, H. Refaghat, and B. Vak-
ili Fasaghandisi, “The minimum sum of element
orders of finite groups,” International Journal of
Group Theory, vol. 10, no. 2, pp. 55–60, 2021.
[7] T.Kavitha, “Linear time algorithms for Abelian
group isomorphism and related problems,” Jour-
nal of Computer and System Sciences, vol. 73,
no. 6, pp. 986–996, 2007.
[8] C. D. Savage, An O(n2)algorithm for abelian
group isomorphism. Computer Studies [Program],
North Carolina State University, 1980.
[9] N. Vikas, “An o(n) algorithm for abelianp-group
isomorphism and an o(nlogn) algorithm for abelian
group isomorphism,” journal of computer and sys-
tem sciences, vol. 53, no. 1, pp. 1–9, 1996.
[10] V. Edemsky and W. CHENHUANG, “On the lin-
ear complexity of binary sequences derived from
generalized cyclotomic classes modulo (2n)(pm),”
WSEAS Transactions on Mathematics, vol. 18,
pp. 197–202, 2019.
[11] D. S. Dummit and R. M. Foote, Abstract alge-
bra. Prentice Hall Englewood Cliffs, NJ, 1991,
vol. 1999.
[12] M. Hall, The theory of groups. Courier Dover Pub-
lications, 2018.
[13] I. N. Herstein, Topics in algebra. John Wiley &
Sons, 2006.
Contribution of individual authors to
the creation of a scientific article
(ghostwriting policy)
Author Contributions:
Ching-Lueh Chang carried out the conceptualization and
is the supervisor.
Hui-Ting Chen did the data curation and has writing and
editing.
Sources of funding for research
presented in a scientific article or
scientific article itself
This work was Supported in part by the Ministry of
Science and Technology of Taiwan under grant 111-
2221-E-155-035-MY2.
Creative Commons Attribution License
4.0 (Attribution 4.0 International , CC
BY 4.0)
This article is published under the terms of the Creative
Commons Attribution License 4.0
WSEAS TRANSACTIONS on MATHEMATICS
DOI: 10.37394/23206.2023.22.21
Hui-Ting Chen, Ching-Lueh Chang
Conflict of Interest
The authors have no conflicts of interest to declare
that are relevant to the content of this article.