<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>On Some Features of Symmetric Diagonal Latin Squares?</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Eduard Vatutin</string-name>
          <email>evatutin@rambler.ru</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Stepan Kochemazov</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Oleg Zaikin</string-name>
          <email>zaikin.icc@gmail.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Matrosov Institute for System Dynamics and Control Theory SB RAS</institution>
          ,
          <addr-line>Irkutsk</addr-line>
          ,
          <country country="RU">Russia</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Southwest State University</institution>
          ,
          <addr-line>Kursk</addr-line>
          ,
          <country country="RU">Russia</country>
        </aff>
      </contrib-group>
      <fpage>74</fpage>
      <lpage>79</lpage>
      <abstract>
        <p>In this paper, we study the dependencies of the number of symmetric and doubly symmetric diagonal Latin squares on the order N. Using fast generator of diagonal Latin squares (augmented by symmetry checker), we determined these dependencies for order at most 8. We also found a number of doubly symmetric diagonal Latin squares of orders 12, 16 and 20.</p>
      </abstract>
      <kwd-group>
        <kwd>Latin square</kwd>
        <kwd>symmetric Latin square</kwd>
        <kwd>enumeration</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>
        Latin square (LS) of order N is a square table A = kaij k; i; j = 1; N , which
consists of elements from some set U; jU j = N [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. Further we will use U equal
to 0; 1; : : : ; N 1. In LS elements in each row and each column are distinct.
Diagonal Latin square (DLS) is a LS, in which each symbol from U occurs
precisely once in its main diagonal and main antidiagonal.
      </p>
      <p>
        DLS is normalized, if elements of its rst row are sorted in ascending order.
It is easy to show, that any DLS can be normalized using bijective
substitution (permutation) of its elements. Thus, we can de ne classi cation on the set
of all possible DLSs of a particular order: all DLSs, which can be reduced to
the same normalized DLS, form one equivalence class. This classi cation can be
used in application to some combinatorial problems (enumeration of LSs and
DLSs [
        <xref ref-type="bibr" rid="ref2 ref3 ref6 ref7 ref8">6, 8, 7, 2, 3</xref>
        ], search for pairs and triples of (partially) mutually orthogonal
LS and DLS [
        <xref ref-type="bibr" rid="ref10 ref5 ref9">10, 9, 5</xref>
        ]). Squares from the same class have similar features
(existence/nonexistence of an orthogonal mate, the number and values of transversals,
the values of main diagonal and main antidiggonal, etc.), and this in turn leads to
decrease of required computational resources in the corresponding experiments.
      </p>
    </sec>
    <sec id="sec-2">
      <title>Symmetric Latin squares</title>
      <p>By symmetric LS we mean such LS, for which one-to-one correspondence occurs
between all pairs of elements (aij ; ai;N j+1); i = 1; N ; j = 1; b N2 c. This
symmetry occurs in the horizontal plane { with respect to the vertical line (across the
central column for DLSs of odd order and between two central columns for DLSs
of even order). By analogy, one can denote the symmetry in the vertical plane.
For normalized DLS the condition of occurrence of symmetry in the horizontal
plane can be rewritten in more simple form: aij + ai;N j+1 = N 1. Symmetric
LSs have symmetric set of transversals, this can be employed for constructing
pairs and triples of (partially) mutually orthogonal diagonal Latin squares.
Examples of two symmetric DLSs (in the horizontal and vertical plane respectively)
are depicted in Figure 1.</p>
      <p>0 1 2 3 4 5
4 2 0 5 3 1
5 4 3 2 1 0
2 5 4 1 0 3
3 0 1 4 5 2
1 3 5 0 2 4
0 1 2 3 4 5
4 2 5 0 3 1
3 5 1 2 0 4
5 3 0 4 1 2
2 4 3 1 5 0
1 0 4 5 2 3</p>
      <p>
        Dependence of the number of symmetric LSs with xed diagonal on order
N is represented by the sequence A003191 in Online Encyclopedia of Integer
Sequences (OEIS) [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. An interesting fact is that there is no symmetric LS of
odd order (except the case where N = 1), that is why the sequence contains
only the following cases: N 2 2; 4; 6; 8; 10.
3
      </p>
    </sec>
    <sec id="sec-3">
      <title>Symmetric diagonal Latin squares</title>
      <p>Dependence of the number of symmetric DLSs on the order N is not presented
in OEIS at the present moment, that is why determining of this dependence is of
great importance. The most natural way to solve this problem for a given order
N is to generate all DLSs, and perform symmetry checking for each of them.
It is also possible to improve this approach by lling half of square's elements
in combination with varying the order of lling elements based on principle of
minimum feasibilities and the branch and bound method.</p>
      <p>
        Generation of DLSs can be done by an e ective generator, which was
developed by authors of the present paper. This generator is based on some
algorithmic features of the considered problem. The following techniques made it
possible to achieve high e ciency of our generator (see [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]).
      </p>
      <p>{ Using the order of lling elements based on principle of minimal feasibilities.
{ Using static data structures instead of dynamic ones.
{ Taking into account the cardinality of the set of possible values for
currently un lled square's cells in combination with early clipping unpromising
branches of a combinatorial tree in the case of nding square's cells without
any possible elements.
{ Applying auxiliary data structures (one-dimensional arrays) for fast
construction of the set of possible elements.</p>
      <p>{ Employing bit arithmetic.
4</p>
    </sec>
    <sec id="sec-4">
      <title>Computational experiments</title>
      <p>In accordance with the rst strategy (see Section 3), we developed a program
implementation, which was used to determine the dependence of the number of
normalized symmetric DLSs on the order N . The results of the computational
experiments are shown in Table 1.</p>
      <p>At the present moment, the number of symmetric normalized DLSs of order
10 can not be calculated in a reasonable time. Let us consider an approach, which
consists in the generation of the corresponding DLSs with symmetry checking of
each generated DLS. The speed of the corresponding sequential program (written
in Delphi) is about 200 000 DLSs per second on i7 4770 CPU. If we assume,
that there are about 1022 normalized DLSs of order 10, than it will take about
1:6 109 years for this program to process all of them. A supercomputer with
the performance of 1 tera ops will take about 160 years to perform the same
experiment.</p>
      <p>Besides that, there are also DLSs, which are symmetric in horizontal and
vertical plane at the same time (further we will call them doubly symmetric).
An example of such DLS is depicted in Figure 2. DLSs of this type are quite
rare combinatorial objects. The dependence of the number of doubly symmetric
normalized DLSs on the order N is shown in Table 2. For each considered order
it was obtained by generating all DLSs with checking doubly symmetry for each
of them.</p>
      <p>0 1 2 3 4 5 6 7
6 2 3 7 0 4 5 1
4 5 1 0 7 6 2 3
5 6 7 4 3 0 1 2
7 3 6 2 5 1 4 0
2 7 4 1 6 3 0 5
3 0 5 6 1 2 7 4
1 4 0 5 2 7 3 6
According to results of the experiment, we can conclude, that for 2 N 8
there is are doubly symmetric DLSs for orders, which are not multiples of 4. For
9 N 20 we also could nd doubly symmetric DLSs only for N = 4n; n 2 N,
i.e. for N = 12; 16; 20. However, in these additional experiments we did not
use an exhaustive search { for each considered N its own 1-day random search
based experiment was performed. We presume, that this feature holds true for
all N 1.</p>
      <p>Symmetric and doubly symmetric DLSs have a number of peculiarities, which
are outlined below.</p>
      <p>{ As a rule, they have a lot of transversals.
{ They usually (but not always) have a lot of orthogonal diagonal mates.
{ For N = 4 and N = 8 all known DLSs with maximal possible number of
orthogonal mates, are doubly symmetric.</p>
      <p>Let us show these doubly symmetric DLSs with maximal possible number of
orthogonal mates.
B@B13 02 31 20CAC ; BBBB75 63 57 41 36 20 14 02CCCC :</p>
      <p>By analogy, we tried to nd additional symmetries in DLSs with respect to
their diagonals, but it turned out, that there are no such symmetries for N 8.</p>
      <p>Thus, in the course of the experiments we found two integer sequences:
(0; 2; 64; 3 612 672) { the number of normalized symmetric DLSs of order 2n
and (0; 2; 0; 15 780) { the number of normalized doubly symmetric DLSs of order
2n. None of these sequences is presented in OEIS at the present moment. We
have not found any other types of symmetries in DLSs.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          <article-title>1. Number of symmetric Latin squares of order 2n with constant diagonal</article-title>
          , https://oeis.org/A003191, accessed
          <issue>15 July 2017</issue>
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          <article-title>2. Number of diagonal latin squares of order n with rst row 1</article-title>
          ..n., https://oeis.org/A274171, accessed
          <issue>15 July 2017</issue>
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          <article-title>3. Number of diagonal latin squares of order n</article-title>
          ., https://oeis.org/A274806, accessed
          <issue>15 July 2017</issue>
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Colbourn</surname>
            ,
            <given-names>C.J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Dinitz</surname>
            ,
            <given-names>J.H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wanless</surname>
            ,
            <given-names>I.M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bennett</surname>
            ,
            <given-names>F.E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lindner</surname>
            ,
            <given-names>C.C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Julian</surname>
            <given-names>R.</given-names>
          </string-name>
          <string-name>
            <surname>Abel</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Finizio</surname>
            ,
            <given-names>N.J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zhu</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Greig</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Handbook of Combinatorial Designs, Second Edition (Discrete Mathematics and Its Applications), chap</article-title>
          .
          <source>Latin Squares</source>
          , pp.
          <volume>224</volume>
          {
          <fpage>265</fpage>
          . Chapman and Hall/CRC (
          <year>2006</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Egan</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wanless</surname>
            ,
            <given-names>I.M.:</given-names>
          </string-name>
          <article-title>Enumeration of MOLS of small order</article-title>
          .
          <source>Math. Comput</source>
          .
          <volume>85</volume>
          (
          <issue>298</issue>
          ),
          <volume>799</volume>
          {
          <fpage>824</fpage>
          (
          <year>2016</year>
          ), http://dx.doi.org/10.1090/mcom/3010
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>McKay</surname>
            ,
            <given-names>B.D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wanless</surname>
            ,
            <given-names>I.M.</given-names>
          </string-name>
          :
          <article-title>On the number of latin squares</article-title>
          .
          <source>Annals of Combinatorics</source>
          <volume>9</volume>
          (
          <issue>3</issue>
          ),
          <volume>335</volume>
          {344 (oct
          <year>2005</year>
          ), http://dx.doi.org/10.1007/s00026-005-0261-7
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Vatutin</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kochemazov</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zaikin</surname>
            ,
            <given-names>O.</given-names>
          </string-name>
          :
          <article-title>Applying volunteer and parallel computing for enumerating diagonal latin squares of order 9</article-title>
          .
          <source>In: Proc. of The Eleventh International Conference on Parallel Computational Technologies. Communications in Computer and Information Science</source>
          , vol.
          <volume>753</volume>
          , pp.
          <volume>110</volume>
          {
          <fpage>124</fpage>
          . Springer (
          <year>2017</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Vatutin</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zaikin</surname>
            ,
            <given-names>O.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zhuravlev</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Manzyuk</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kochemazov</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Titov</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          :
          <article-title>Using grid systems for enumerating combinatorial objects on example of diagonal Latin squares</article-title>
          .
          <source>In: Selected Papers of the 7th International Conference Distributed Computing and Grid-technologies in Science and Education, Dubna, Russia, July 4-9</source>
          ,
          <year>2016</year>
          . CEUR-WS, vol.
          <volume>1787</volume>
          , pp.
          <volume>486</volume>
          {
          <issue>490</issue>
          (
          <year>2016</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Zaikin</surname>
            ,
            <given-names>O.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kochemazov</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Semenov</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>SAT-based search for systems of diagonal Latin squares in volunteer computing project SAT@home</article-title>
          . In: Biljanovic,
          <string-name>
            <given-names>P.</given-names>
            ,
            <surname>Butkovic</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            ,
            <surname>Skala</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            ,
            <surname>Grbac</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.G.</given-names>
            ,
            <surname>Cicin-Sain</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            ,
            <surname>Sruk</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            ,
            <surname>Ribaric</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            ,
            <surname>Gros</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            ,
            <surname>Vrdoljak</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            ,
            <surname>Mauher</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            ,
            <surname>Tijan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            ,
            <surname>Lukman</surname>
          </string-name>
          ,
          <string-name>
            <surname>D</surname>
          </string-name>
          . (eds.) 39th
          <source>International Convention on Information and Communication Technology, Electronics and Microelectronics</source>
          ,
          <string-name>
            <surname>MIPRO</surname>
          </string-name>
          <year>2016</year>
          , Opatija, Croatia, May 30 - June 3,
          <year>2016</year>
          . pp.
          <volume>277</volume>
          {
          <fpage>281</fpage>
          .
          <string-name>
            <surname>IEEE</surname>
          </string-name>
          (
          <year>2016</year>
          ), http://dx.doi.org/10.1109/MIPRO.
          <year>2016</year>
          .7522152
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Zaikin</surname>
            ,
            <given-names>O.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zhuravlev</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kochemazov</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Vatutin</surname>
          </string-name>
          , E.:
          <article-title>On the construction of triples of diagonal Latin squares of order 10</article-title>
          .
          <source>Electronic Notes in Discrete Mathematics</source>
          <volume>54</volume>
          ,
          <volume>307</volume>
          {
          <fpage>312</fpage>
          (
          <year>2016</year>
          ), http://dx.doi.org/10.1016/j.endm.
          <year>2016</year>
          .
          <volume>09</volume>
          .053
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>