Abstract
The HX-groups represent a generalization of the group notion. The Chinese mathematicians Mi Honghai and Li Honxing analyzed this theory. Starting with a group , they constructed another group , where is the set of non-empty subsets of G. The hypercomposition “” is thus defined for any A, B from G, In this article, we consider a particular group, G, to be the dihedral group is a natural number, greater than 3, and we analyze the HX-groups with the dihedral group as a support. The HX-groups were studied algebraically, but the novelty of this article is that it is a computer analysis of the HX-groups by creating a program in . This code aims to improve the calculation time regarding the composition of the HX-groups. In the first part of the paper, we present some results from the hypergroup theory and HX-groups. We create another hyperstructure formed by reuniting all the HX-groups associated with a dihedral group as a support for a natural fixed number n. In the second part, we present the code created in the Microsoft Visual Studio program, and we provide concrete examples of the program’s application. We created this program because the code aims to improve the calculation time regarding the composition of HX-groups.
MSC:
20N20
1. Introduction
Hypergroup theory represents a generalization of classical algebraic structures. F. Marty noticed that the quotient group’s elements are sets, and he introduced the concept of a hypergroup in 1934 [1]. Over time, the theory of hypergroups has developed greatly from a theoretical point of view. It has applications in numerous fields, such as geometry, topology, cryptography, code theory, graphs, hypergraphs, automata theory, fuzzy degree, probability, etc. [2,3,4,5,6,7,8]. Starting with a non-empty set H and the hyperoperation , where represents the collection of all non-empty subsets of H, we obtained a semihypergroup if and only if the hyperoperation satisfies the associativity relation, i.e., , for any a, b, c . Also, is a quasihypergroup if and only if the hyperoperation satisfies the reproducibility relation, i.e., , for any . We say that is a hypergroup if and only if “” satisfies the associativity and reproducibility relation. In hypergroup theory, we can compute two sets in the following way: for any A, B sets from H, In 1985, three Chinese mathematicians, HongXing Li, QinZhi Duan, and PeizHuang, used the term “hypergroup” [9]. Later, Li renamed the concept with the term HX-groups [10]. Zhenliang studied the properties of HX-groups [11], and, recently, the interest in this concept has increased. Corsini studied the hypergroups associated with , the Chinese hypergroupoid of an HX-group, and found conditions such that the Chinese hypergroupoid becomes a hypergroup; see [12,13,14]. Cristea established a link between HX-groups and hypergroups [15]. Sonea determined the HX-groups with dihedral group as a support [16], created a new commutative hyperstructure that considered the union of all the HX-groups [17], and studied the NeutroHX-groups [18]. Also, Mousavi, Jafarpour, and Cristea studied the HX-Polygroups [19]. This article is divided into three sections. The first section refers to the introductory notions from the theory of HX-groups and the theory of hypergroups. Also, a new hyperstructure formed by the union of all the HX-groups associated with the dihedral group for a fixed natural number n is presented [17]. Until now, HX-groups have been analyzed only from an algebraic point of view. In the second part of the article, a computational approach to HX-groups is presented using code in the programming language. This code facilitates the calculation time regarding the composition of HX-groups, and the third section refers to the connection between HX-groups and graph theory.
2. The Construction of the Hyperstructure
In this section, we will present the construction of the hyperstructure . We consider a new hyperstructure formed by the union of all HX-groups with the dihedral group as support for a fixed natural number [17]. In what follows, we recall the basic notions of HX-groups.
Definition 1
([10]). Let be a group and , where is the set of non-empty subsets of . An HX-group is a non-empty subset H of , which is a group with respect to the operation “*” defined by
We say that has group G as support.
The HX-groups with the dihedral group as support denoted by are determined [16].
Theorem 1
([16]). For , the is an HX-group associated with the dihedral group with elements
where .
Proposition 1.
The is a normal subgroup in , where , p, q are natural numbers.
Proof.
In what follows, we will recall the definition of a normal subgroup, which we will apply [20] in the demonstration. Let be a group and H a subgroup of G. For any x in G, H is a normal subgroup in G if and only if . In this case,
Therefore, the elements in H are of the form , . We have to show that for any and For , we obtain
For ,
In conclusion, is a normal subgroup in the dihedral group □
Proposition 2.
The HX-group obtained previously represents the quotien group for
Proof.
We proved before that is a normal subgroup in , so
For , we obtain
where is defined by Theorem 1.
For , , we have
where , is defined by Theorem 1. Therefore, we can conclude that □
After that, we took into consideration the union of all HX-groups associated with a dihedral group as support, and we obtained a new hyperstructure defined in [17].
is the set of all HX-groups. We define the hyperoperation ; thus,
We analyzed the hyperstructure and obtained some results; see [17].
Proposition 3.
The hyperstructure is a commutative structure where
Remark 1.
The elements of the hyperstructure satisfy the following equality
for any , ,, such that
lcm represents the least common multiple of numbers , and gcd represent the greatest common divisors of .
Proposition 4.
The hyperstructure is a semihypergroup, but not a quasihypergroup.
Now, we present the connection between the number of cyclic subgroups and the cardinality of
Remark 2.
The cyclic subgroups of the dihedral group are , and , where d is a divisor of n. So, the number of all cyclic subgroups is , where ,
Proposition 5.
The cardinality of the hyperstructure is equal to the number of normal subgroups of a dihedral group .
Proof.
According to Proposition 1 and Remark 2, we can state that the normal subgroups of the dihedral group are where d is a divisor of n. Also, the construction of the hyperstructure implies that the , where , The conclusion is immediate. □
Example 1.
We determine the composition between the HX-groups and , where
Therefore,
and the sets ,, where , are
In the following, we calculate the elements , , .
Similarly, we obtain
So, we have
Remark 3.
The calculation time for composing two HX-groups can be quite high. This represents the starting point of the idea of creating code in the programming language because we can improve the calculation time and analyze higher-order HX-groups.
3. Materials and Methods
Implementing Code into Microsoft Visual Studio 2022
This section will present the code in the programming language, created in Microsoft Visual Studio 2022. The code describes the HX-groups associated with the dihedral group and their composition. Creating such a program was needed to improve the calculation time for composing the HX-groups. The composition problem can become quite complex, as observed in the works [17,18]. The input data will be n (the order of the dihedral group ), and the divisors so that . In the program, we identify the HX-group with ; the elements of formed a matrix and are noted with , and similarly the elements of are noted through . We identify the elements of the dihedral group with natural numbers. So, we consider the function as follows:
where For a fixed natural number n, we consider the restriction of function so In these conditions, we can state the following:
Proposition 6.
For a fixed natural number n, the function
is a bijective function.
Proof.
The injectivity results immediately because, for any x, such that , it implies . The elements from have the form or . As we can see, for any So, to have the equality means that , , k, or , In both cases, it results that ; this means that To study the surjectivity, we have to prove that, for any element k from , there is such that . For we consider , and, for we consider . In conclusion, f is a bijective function. □
To determine the composition of groups , where , we have four cases. We denote by ⊕ the composition law created in the program mentioned above, and we provide the composition rules in each case.
Case 1. We compute the elements that have the form with , for any k, in the following way
Case 2. We compute the elements that have the form with
Case 3. The composition of the elements that has the form with is
Case 4. The composition of the elements that has the form with is
In the following, we present the code in the programming language.
| #include<iostream> |
| #include<stdio.h> |
| #include<algorithm> |
| using namespace std; |
| int main() |
| { |
| int n, i, j, p1, q1, p2, q2, k, l, s, t, a[100][100], |
| b[100][100],c[200],p,d,e,aux,v[200][200],x, m; |
| cout << "n="; |
| cin >> n; cout << "p1="; |
| cin >> p1;cout << "q1="; |
| cin >> q1; |
| if (n == p1 * q1) |
| { |
| cout << "The HX Group G(" << p1 << ", " << q1 << ")" << endl; |
| for (i = 0; i < 2 * p1; i++) |
| { |
| for (j = 0; j < q1; j++) |
| { |
| if (i < p1) |
| a[i][j] = i + j * p1; |
| else |
| a[i][j] = i + n - p1 + j * p1; |
| cout << a[i][j] << " "; |
| } |
| cout << endl; |
| } |
| } |
| cout << endl; |
| cout << "p2="; cin >> p2; |
| cout << "q2="; cin >> q2; |
| if (n == p2 * q2) |
| { |
| cout << "The HX Group G (" << p2 << ", " << q2 << ")" << endl; |
| d = 2 * p2; |
| for (i = 0; i < 2 * p2; i++) |
| { |
| for (j = 0; j < q2; j++) |
| { |
| if (i < p2) |
| b[i][j] = i + j * p2; |
| else |
| b[i][j] = i + n - p2 + j * p2; |
| cout << b[i][j] << " "; |
| } |
| cout << endl; |
| } |
| cout << endl; |
| } |
| if ((n == p1 * q1)&&(n == p2 * q2)) |
| { |
| cout << "Composition between the HX group G(" << p1<< |
| ", " << q1 << ") and HX group G(" << p2 << ", " << q2 << |
| ") is " << endl; |
| m = p1 * p2; |
| for (p = 0; p < p1 * p2; p++) |
| { |
| for (j = 0; j < q1; j++) |
| { |
| for (t = 0; t < q2; t++) |
| { |
| c[p] = (a[p / p2][j] + b[p % p2][t]) % n; |
| cout << c[p] << " "; |
| } |
| } |
| cout << endl; |
| } |
| cout << endl; |
| cout << endl; |
| for (p = p1 * p2; p < 2 * p1 * p2; p++) |
| { |
| for (j = 0; j < q1; j++) |
| { |
| for (t = 0; t < q2; t++) |
| { |
| c[p] = (a[p / p2][j] + b[p % p2][t]) % n + n; |
| cout << c[p] << " "; |
| } |
| } |
| cout << endl; |
| } |
| cout << endl; |
| for (p = 2 * p1 * p2; p < 3 * p1 * p2; p++) |
| { |
| for (j = 0; j < q1; j++) |
| { |
| for (t = 0; t < q2; t++) |
| { |
| c[p] = ((a[p1 + p % p1][j] - b[p % p2][t]) % n) + n; |
| cout << c[p] << " "; |
| } |
| } |
| cout << endl; |
| } |
| cout << endl; |
| for (p = 3 * p1 * p2; p < 4 * p1 * p2; p++) |
| { |
| for (j = 0; j < q1; j++) |
| { |
| for (t = 0; t < q2; t++) |
| { |
| c[p] = ((a[p1 + p % p1][j] - b[p2 + p % p2][t]) + n) % n; |
| cout << c[p] << " "; |
| } |
| } |
| cout << endl; |
| } |
| cout << endl; |
| cout << " Composition between the HX group G(" << |
| p2 << ", " << q2 <<") and HX group G(" << p1 << ", " |
| << q1 << ") is " << endl; |
| e = 2 * p1; |
| for (p = 0; p < p1 * p2; p++) |
| { |
| for (j = 0; j < q2; j++) |
| { |
| for (t = 0; t < q1; t++) |
| { |
| c[p] = (b[p / p1][j] + a[p % p1][t]) % n; |
| cout << c[p] << " "; |
| } |
| } |
| cout << endl; |
| } |
| cout << endl; |
| for (p = p1 * p2; p < 2 * p1 * p2; p++) |
| { |
| for (j = 0; j < q2; j++) |
| { |
| for (t = 0; t < q1; t++) |
| { |
| c[p] = (b[p / p1][j] + a[p % p1][t]) % n + n; |
| cout << c[p] << " "; |
| } |
| } |
| cout << endl; |
| } |
| cout << endl; |
| for (p = 2 * p1 * p2; p < 3 * p1 * p2; p++) |
| { |
| for (j = 0; j < q2; j++) |
| { |
| for (t = 0; t < q1; t++) |
| { |
| c[p] = (b[p / e][j] - a[p % p1][t]) % n + n; |
| cout << c[p] << " "; |
| } |
| } |
| cout << endl; |
| } |
| cout << endl; |
| for (p = 3 * p1 * p2; p < 4 * p1 * p2; p++) |
| { |
| for (j = 0; j < q2; j++) |
| { |
| for (t = 0; t < q1; t++) |
| { |
| c[p] = ((b[p2 + p % p2][j] - a[p1 + p % p1][t]) + n) % n; |
| cout << c[p] << " "; |
| } |
| } |
| cout << endl; |
| } |
| cout << endl; |
| } |
| } |
4. Results
4.1. The Results Are Provided by the Code Implemented for
The following will present the results obtained using the code realized in Microsoft Visual Studio 2022. To better understand the above program, we will explain how it works. For , we have the hyperstructure
Moreover, we apply the program presented in the previous section in each situation.
First situation: We consider , respectively. In [16], we presented the composition of HX-groups and . In the presented cod, these HX-groups are equivalent to the following HX-groups
We compute the elements from case 1, where
We applied the formulas from case , where
We explain the second rule in this situation:
Similarly, we calculate
We applied the formulas from case , where
where
Analogously, we have
The fourth case refers to computing the elements that are greater than n. We have the relation
because
Therefore,
The composition is analyzed analogously and will be described in Table 1:
Table 1.
The composition between -groups and .
We have . In conclusion,
Second situation: We consider , and so that the composition is illustrated in the following table according to the rules presented above for each case.
We can state that , and, proceeding similarly, we obtain .
Third situation: We have to compute and , where
4.2. A Graph Representation of the HX-Groups with Dihedral Group as Support
Graph theory is applied in many fields, such as computer science, physics, biology [4,21,22], and social and information systems. A graph represents connected points along with their connections. Lines or curves can represent these connections. The points are called nodes or vertices; the lines between points are edges. The sets of nodes are denoted by V, and the sets of edges are denoted by E; therefore, a graph is represented by . In this section, we construct the graph associated with the hyperstructures and . The vertices represent the elements of the set , and we say that formed an edge if and only if
So, let be the graph associated with the hyperstructures , where . In relation (2), we established the connection between the composition of two HX-groups. So, according to them, we can draw the following graphs , and, similarly, we obtained the graph . For graph , the node i is represented by the HX-group , where i is a divisior of 4, and, for the graph , the node j is represented by the HX-group , where j is a divisior of 6. In graph theory, it is important to determine the degree of a vertex. The degree of a vertex v is denoted by and represents the number of edges that are incident to the vertex. In our situation, we can say that for , and , , , and for .
5. Discussion
The main objective of the study was to analyze the HX-groups associated with the dihedral group through the IT theory. A code in the programming language, created in the Microsoft Visual Studio 2022 program, was presented in detail. This code represents a novelty in the field of HX-groups. In the first part of the paper, we discussed the HX-groups associated with the dihedral group from an algebraic point of view. In the second part of the work, the innovative part of the article was revealed. In Proposition 6, we established a connection between the elements of the dihedral group and natural numbers to implement the HX-groups in the code programming language. The compositions between and and and , respectively, are described in Table 1 and Table 2. This code is necessary to improve the calculation time for the composition of two HX-groups. In Figure 1 and Figure 2, we can notice how the program works for . Finally, a connection between the HX-groups , and graph theory was presented in Figure 3.
Table 2.
Composition of HX-groups and .
Figure 1.
The groups , , and .
Figure 2.
The composition .
Figure 3.
Graph and graph .
Author Contributions
Conceptualization, A.P.S. and C.C.; Methodology, A.P.S. and C.C.; Code created in Microsoft Visual Studio 2022 program, A.P.S. and C.C.; Writing—original draft, A.P.S. All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding.
Data Availability Statement
The original contributions presented in the study are included in the article; further inquiries can be directed to the corresponding author.
Acknowledgments
The authors would like to thank the referees for the advice provided as they significantly contributed to the improvement of the article.
Conflicts of Interest
The authors declare no conflicts of interest.
References
- Marty, F. Sur une generalization de la notion de group. In Proceedings of the Congress of Scandinavian Mathematicians, Stockholm, Sweden, 14–18 August 1934; pp. 45–49. [Google Scholar]
- Corsini, P.; Leoreanu, V. Applications of Hyperstructures Theory; Kluwer Academic Publishers: Boston, MA, USA; Dordrecht, The Netherlands; London, UK, 2003. [Google Scholar]
- Davvaz, B.; Cristea, I. Fuzzy Algebraic Hyperstructures—An Introduction; Studies in Fuzziness and Soft Computing; Springer: Cham, Switzerland, 2015; Volume 321. [Google Scholar]
- Kalampakas, A.; Spartalis, S.; Tsigkas, A. The Path Hyperoperation. An. Şt. Univ. Ovidius Constanţa 2014, 22, 141–153. [Google Scholar] [CrossRef]
- Linzi, A.; Cristea, I. Dependence Relations and Grade Fuzzy Set. Symmetry 2023, 15, 311. [Google Scholar] [CrossRef]
- Massourous, C.; Mittas, J. Languages-automata and hypercompositional structure. In Algebraic Hyperstructures and Applications, Proceeding of the 4th International Congress, Xanthi, Greece, 27–30 June 1990; World Scientific: Singapore, 1991; pp. 137–147. [Google Scholar]
- Vougiouklis, T. On some representations of hypergroups. Ann. Sci. L’Univ. Clermont Mathématiques 1990, 95, 21–29. [Google Scholar]
- Tofan, I.; Volf, A.C. On some conections between; hyperstructures and fuzzy sets. Ital. J. Pure Appl. Math. 2000, 7, 63–68. [Google Scholar]
- Li, H.X.; Duan, Q.Z.; Wang, P.Z.; Wang, P.Z. Hypergroup(I). BUSEFAL 1985, 23, 22–29. [Google Scholar]
- Li, H.X. HX-groups. BUSEFAL 1987, 33, 31–37. [Google Scholar]
- Zhenliang, Z. The properties of HX-groups. Italian J. Pure Appl. Math. 1997, 2, 97–106. [Google Scholar]
- Corsini, P. HX-groups and Hypergroups. An. Şt. Univ. Ovidius Constanţa 2016, 24, 101–121. [Google Scholar] [CrossRef]
- Corsini, P. HX-Hypergroups associated with the direct product of some Z/nZ. J. Algebr. Struct. Their Appl. 2016, 3, 1–15. [Google Scholar]
- Corsini, P. Hypergroups associated with HX-groups. An. Şt. Univ. Ovidius Constanţa 2017, 25, 49–64. [Google Scholar] [CrossRef]
- Cristea, I.; Novák, M.; Onasanya, B.O. Links Between HX-Groups and Hypergroups. Algebra Coll. 2021, 28, 441–452. [Google Scholar] [CrossRef]
- Sonea, A. HX-groups associated to the dihedral group Dn. J. Mult. Valued Log. Soft Comput. 2019, 33, 11–26. [Google Scholar]
- Sonea, A. A Way to Construct Commutative Hyperstructures. Comput. Sci. Math. Forum. 2023, 7, 22. [Google Scholar] [CrossRef]
- Sonea, A.; Al-Kaseasbeh, S. An introduction to NeutroHX-Groups. In Theory and Applications of NeutroAlgebras as Generalizations of Classical Algebras; IGI Global Publishing Tomorrow’s Research Today: Hershey, PA, USA, 2022. [Google Scholar] [CrossRef]
- Mousavi, S.S.; Jafarpour, M.; Cristea, I. From HX-Groups to HX-Polygroups. Axioms 2024, 13, 7. [Google Scholar] [CrossRef]
- Rotman, J.J. An Introduction to the Theory of Groups; Springer: New York, NY, USA, 1995. [Google Scholar]
- Cristea, I.; Kocijan, J.; Novák, M. Introduction to Dependence Relations and Their Links to Algebraic Hyperstructures. Mathematics 2019, 7, 885. [Google Scholar] [CrossRef]
- Kalampakas, A.; Spartalis, S. Hyperoperations on directed graphs. J. Discret. Math. Sci. Cryptogr. 2023, 27, 1011–1025. [Google Scholar] [CrossRef]
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 (https://creativecommons.org/licenses/by/4.0/).