An algorithm for fast multiplication of elements in 2-groups based on the Zhegalkin polynomials

Cover Page

Cite item

Abstract

Network design for a multiprocessor computing system or data center is an important problem where the search for graph models that have attractive topological properties and allow the use of efficient routing algorithms is carried out. Cayley graphs have the indicated properties, in particular such as high symmetry, hierarchical structure, recursive design, high connectivity and fault tolerance.

The definition of the Cayley graph implies that the vertices of the graph are elements of some algebraic group. Selecting a group and its generating elements allows us to obtain a graph that meets the necessary requirements for diameter, degree of vertices, number of nodes, etc. A large number of scientific articles and monographs are devoted to solving this problem.

The goal of this work is to create an algorithm for fast multiplication of elements in finite 2-groups whose exponent is 2n.

The first section of the article provides a theoretical justification for the algorithm for fast multiplication in finite 2-groups. It is shown that elements of these groups can be represented in the form of bit strings, and their multiplication is carried out based on the Zhegalkin polynomials.

The second section presents the pseudocode of the algorithm on the basis of which the Zhegalkin polynomials are calculated.

The third section demonstrates an example of obtaining the Zhegalkin polynomials for a two-generated group of exponent 4.

In conclusion, the prospects for using the algorithm on the real hardware are discussed.

Full Text

Introduction

Designing a network of a multiprocessor computing system (MCS) or a data center is an important problem in which graph models are searched for that have attractive topological properties and allow the use of effective routing algorithms. Cayley graphs possess these properties, in particular such as high symmetry, hierarchical structure, recursive construction, high connectivity and fault tolerance [1]. For example, such basic network topologies as "ring", "hypercube" and "torus" are Cayley graphs.

The definition of a Cayley graph implies that the vertices of the graph are elements of some algebraic group. The choice of the group and its generating elements allows us to obtain a graph [2] that meets the necessary requirements in diameter, degree of vertices, number of nodes, etc. A large number of scientific articles and monographs have been devoted to solving this problem, among which we highlight the works [3–15].

As it was said, one of the widely used MCS topologies is the k-dimensional hypercube. This graph is given by the k-generated Burnside group of exponent 2. This group has a simple structure and is equal to the direct product of k instances of a cyclic 2-group. A generalization of the hypercube is an n-dimensional torus, which is generated by the direct multiplication of n instances of cyclic subgroups whose orders may not coincide. In articles [16–19], Cayley graphs of Burnside groups of exponents 3, 4, 5 and 7 are studied.

To study Cayley graphs generated by groups of higher exponents, first of all, it is necessary to develop fast algorithms for multiplying elements in these groups. Such algorithms help to implement efficient routing on the corresponding Cayley graphs.

The purpose of this work is to create an algorithm for fast multiplication of elements in finite 2-groups, i.e. in groups of exponent 2n

The first section of the article provides a theoretical justification for the algorithm of fast multiplication in finite 2-groups. It is shown that the elements of these groups can be represented as bit strings, and their multiplication is carried out on the basis of Zhegalkin polynomials.

The second section presents the pseudocode of the algorithm on the basis of which the Zhegalkin polynomials are calculated.

In the third section, an example of obtaining Zhegalkin polynomials for a two-generated group of exponent 4 is demonstrated.

In conclusion, the prospects of using the algorithm on real computing devices are considered.

  1. Proof of the main result

The theorem. Let G be an arbitrary finite group 2-a group whose order is equal to .Then the following statements will be true:

  1. xGx=(x1,...,xn)2n.
  2. x,y,zG:xy=zzi=fi(x,y)2, где fi(x,y), where are some Zhegalkin polynomials.

Proof. Any finite 2-group G has a pc-presentation (power commutator presentation [3; 4]):

G={a1,,anai2=vii,1in,[ak,aj]=vjk,1j<kn},

where the word vjk при 1jkn expressed in terms of as ak+1,,an follows:

vjk=ak+1xk+1anxn,xi2.

In this case

xGx=a1x1anxn,xi2.

Each element of the group x is uniquely defined in terms of degrees x1,,xn, so we can write the elements of the group as follows:

xGx=(x1,...,xn)2n.

Thus, we can naturally represent the elements of the group in the form of Boolean (bit) vectors of dimension n.

Let x=(x1,...,xn) and y=(y1,...,yn)  be two arbitrary elements of the group G, consider their multiplication xy=z=(z1,...,zn).

The calculation of degrees is traditionally carried out on the basis of the collective Hall process [3; 4]. However, there is a more efficient way to multiply elements based on Hall polynomials [20].In this case

zi=xi+yi+pi(x1,,xi1,y1,,yi1),xi,yi,zi2.

Note that the multiplication and addition operations in the field are 2 identical to the Boolean operations "and", as well as the exclusive "or", respectively. By performing the specified substitution of operations in Hall polynomials, we obtain Zhegalkin polynomials [21]. Thus,

x,y,zG:xy=zzi=fi(x,y)2,

where fi(x,y) are some Zhegalkin polynomials.

2. Algorithm for calculating Zhegalkin polynomials

In this section, we consider an algorithm for calculating Zhegalkin polynomials for a finite 2-group G. The input algorithm knows such parameters of the group as the number of generating elements, the order of G and its exponent. Also, the nilpotence level of the group may appear as an input data.

The pseudocode of the algorithm is shown below. 

Input: G – finite group 2-group G

Output: Zhegalkin polynomials for group G

  1. pc=pq(G) we calculate the pc-presentation of the group using the p-quotient algorithm [3, 4]. Note that this algorithm has already been implemented in computer algebra systems such as GAP and Magma.
  2. H=Hall(pc)based on the pc-presentation, we calculate the Hall polynomials using the algorithm from [22].
  3. F=Zhegalkin(H) we obtain Zhegalkin polynomials from Hall polynomials by replacing the multiplication and summing operations in the field with 2 
  4. identical Boolean operations "and", as well as the exclusive "or", respectively.

3. An example

As an example, consider the maximum two - generated finite G=a1,a2 period group 22=4,  which is usually denoted by B(2,4) or B2(4). The order of this group is equal 212, and for each element of G there is a unique pc-presentation of the form a1x1a12x12,  where xi2, i=1,2,,12.  Here a1 and a2  are the generating elements G, a3,a12 calculated recursively through a1 and a2.

We obtain a GAP pc-presentation of this group in the computer algebra system.

For brevity, trivial commutator relations are not given (for example, such as [a4,a1]=1 etc.).

a12=a4, a22=a5, a32=a8a9a10a11a12, a42=1, a52=1, a62=a11, a72=a11a12, ai2=1 (8i12),

[a3,a1]=a6, [a3,a2]=a7, [a4,a2]=a6a8a9a10a12, [a4,a3]=a8a11, [a5,a1]=a7a8a9a10,

[a5,a3]=a10a11a12, [a5,a4]=a9a11, [a6,a1]=a8, [a6,a2]=a9, [a6,a3]=a11, [a6,a4]=a11,

[a6,a5]=a11, [a7,a1]=a9a12, [a7,a2]=a10, [a7,a3]=a11a12, [a7,a4]=a11a12, [a7,a5]=a11a12,

[a8,a1]=a11, [a8,a2]=a12, [a9,a1]=a11a12, [a9,a2]=a11, [a10,a1]=a12, [a10,a2]=a11a12.

Calculate the Hall polynomials of group G for generating elements a1 and a2 based on the algorithm from [22]: 

1) a1a1y1a12y12=a1z1a12z12, где

z1=y1+1,

z2=y2,

z3=y3,

z4=y1+y4,

z5=y5,

z6=y6+y1y2,

z7=y7,

z8=y8+y1y2+y1y3,

z9=y9+y1y2,

z10=y10+y1y2,

z11=y11+y1y3+y1y2y3+y1y2y4+y1y2y5+y1y2y6,

z12=y12+y1y2;

2) a2a1y1a12y12=a1z1a12z12, where

z1=y1,

z2=y2+1,

z3=y1+y3,

z4=y4,

z5=y2+y5,

z6=y6,

z7=y7+y1y2,

z8=y8+y1y3,

z9=y9+y1y3+y2y4,

z10=y10+y1y2+y1y3+y2y3,

z11=y11+y1y2+y1y3+y2y3+y2y4+y1y2y3+y1y2y4+y1y2y5+y1y2y7,

z12=y12+y1y2+y1y3+y2y3+y1y2y3+y1y2y4+y1y2y5+y1y2y7.

Replace the multiplication and summing operations with the Boolean operations "and", as well as the exclusive "or", respectively. As a result, we obtain the Zhegalkin polynomials.  

Each element of the group is a bit string (z1,z2,,z12).  Thus, it will B(2,4) take 12 bits to encode one element in. In general, if the order of the group is equal  2n, then it will take n bits to store one element.

Conclusion

In conclusion, we say that in tasks requiring the calculation of a large number of multiplications of group elements, the method described in this paper will dramatically reduce the running time of computer programs. For example, one of these problems is the task of finding the shortest routes on Cayley graphs, which are often used in the design of topologies for interprocessor connection networks in supercomputers, as well as data centers.

In addition, it should be noted that the proposed presentation of the group elements in the form of bit vectors allows them to be used even on the most primitive microcontrollers. 

×

About the authors

Alexander A. Kuznetsov

Reshetnev Siberian State University of Science and Technology

Author for correspondence.
Email: alex_kuznetsov80@mail.ru

Dr.  Sc., Professor, Head of Institute of Space Research and High Technologies

Russian Federation, 31, Krasnoyarskii Rabochii prospekt, Krasnoyarsk, 660037

Alexandra S. Kuznetsova

Reshetnev Siberian State University of Science and Technology

Email: alexakuznetsova85@gmail.com

Cand. Sc., Associate Professor of the Department of Applied Mathematics

Russian Federation, 31, Krasnoyarskii Rabochii prospekt, Krasnoyarsk, 660037

Vladimir V. Kishkan

Reshetnev Siberian State University of Science and Technology

Email: kishkan@mail.ru

Cand. Sc., Associate Professor of the Department of Informatics and Computer Science

Russian Federation, 31, Krasnoyarskii Rabochii prospekt, Krasnoyarsk, 660037

References

  1. Heydemann M. Cayley graphs and interconnection networks, in Graph symmetry: algebraic methods and applications (Editors: Hahnand Sabidussi). Dordrecht: Kluwer Academic Publishers. 1997, P. 167–226.
  2. Loz E. New record graphs in the degree-diameter problem. Australasian Journal of Combinatorics. 2008, Vol. 41, P.63–80.
  3. Sims C. Computation with Finitely Presented Groups. Cambridge: Cambridge University Press, 1994, 628 p.
  4. Holt D., Eick B., O'Brien E. Handbook of computational group theory. Boca Raton: Chapman & Hall/CRC Press, 2005, 514 p.
  5. Schibell S., Stafford R. Processor interconnection networks and Cayley graphs. Discrete Applied Mathematics. 1992, Vol. 40, P. 337–357.
  6. Stamoulis G., Tsitsiklis J. Effcient routing Scheme for Multiple Broadcasts in Hypercubes. IEEE Trans. on Parallel and Distributed Systems. 1993, Vol. 4(7), P. 725–739.
  7. Stamoulis G., Tsitsiklis J. The Effciency of Greedy Routing in Hypercubes and Butteries. IEEE Transaction on Communication. 1994, Vol. 42(11), P. 3051–3061.
  8. Kiasari A., Sarbazi-Azad H. Analytic performance comparison of hypercubes and star graphs with implementation constraints. Journal of Computer and System Sciences. 2008, No. 6, P. 1000–1012.
  9. Akers S., Krishnamurthy B. A group theoretic model for symmetric interconnection networks. Proceedings of the International Conference on Parallel Processing. 1986, P. 216–223.
  10. Tang K., Arden B. Vertex-transitivity and routing for Cayley graphs in GCR representations. Proceedings of ACM Symposium on Applied Computing SAC. 1992, P. 1180–1187.
  11. Wang L., Tang K. Topology-Based Routing for Xmesh in Wireless Sensor Networks. Lecture Notes in Electrical Engineering. 2009. Vol.44. P. 229–239.
  12. Ryu J., Noel E., and Tang K. Fault-tolerant Routing on Borel Cayley Graph // IEEE ICC Next Generation Networking Symposium. 2012, P. 2872–2877.
  13. Shin J., Sirer E., Weatherspoon H., Kirovski D. On the feasibility of completely wireless datacenters. EEE/ACM Transaction On Networking. 2013, Vol. 21(5), P. 1666–1679.
  14. Kuznetsov A. A., Kuznetsova A. S. [A parallel algorithm for study of the Cayley graphs of permutation groups]. Vestnik SibGAU. 2014, No. 1(53), P. 34–39 (In Russ.).
  15. Camelo M., Papadimitriou D., Fabrega L., Vila P. Efficient Routing in Data Center with Underlying Cayley Graph. Proceedings of the 5th Workshop on Complex Networks CompleNet. 2014. P. 189–197.
  16. Kuznetsov A. A. [The Cayley graphs of Burnside groups of exponent 3]. Siberian Electronic Mathematical Reports. 2015, Vol. 12, P. 248–254 (In Russ.).
  17. Kuznetsov A. A., Kuznetsova A. S. [Perspective topologies of multiprocessor computing systems based on the Cayley graphs of groups of period 4]. Vestnik SibGAU. 2016, No. 3 (17), P. 575–578 (In Russ.).
  18. Kuznetsov A. A. [An algorithm of computation of the growth functions in finite two-generated groups of exponent five]. Prikladnaya Diskretnaya Matematika. 2016, No. 3 (33), P. 116–125 (In Russ.).
  19. Kuznetsov A. A., Kishkan V. V. The Cayley graphs of finite two-generator burnside groups of exponent 7. Siberian Journal of Science and Technology. 2018. No. 2, P. 217–222 (In Russ.).
  20. Hall P. Nilpotent groups, Notes of lectures given at the Canadian Mathematical Congress 1957 Summer Seminar, in The collected works of Philip Hall. Oxford: Clarendon Press, 1988. P. 415–462.
  21. Yablonsky S. V. Vvedeniye v diskretnuyu matematiku [Introduction to discrete mathematics]. Moscow, Nauka Publ., 1989, 384 p.
  22. Kuznetsov A. A., Kuznetsova A. S. [Fast multiplication in finite two-generated groups of exponent five]. Prikladnaya Diskretnaya Matematika. 2013, No. 1 (18), P. 110–1116 (In Russ.).

Supplementary files

Supplementary Files
Action
1. JATS XML

Copyright (c) 2023 Kuznetsov A.A., Kuznetsova A.S., Kishkan V.V.

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.

This website uses cookies

You consent to our cookies if you continue to use our website.

About Cookies