-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgap-days-2025.tex
More file actions
653 lines (573 loc) · 18.7 KB
/
Copy pathgap-days-2025.tex
File metadata and controls
653 lines (573 loc) · 18.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
%
% Seyyed Ali Mohammadiyeh
% pdflatex.exe -synctex=1 -interaction=nonstopmode -shell-escape "gap-days-2025".tex
% pdflatex -synctex=1 -interaction=nonstopmode -shell-escape "gap-days-2025".tex
%
\PassOptionsToPackage{colorlinks=true,linkcolor=blue,urlcolor=blue,citecolor=blue}{hyperref}
\documentclass{beamer}
\usepackage{amsmath, amssymb}
\usepackage{xcolor}
\usepackage{listings}
\definecolor{gapgreen}{HTML}{90A959}
\usetheme{default}
\usecolortheme[named=gapgreen]{structure}
\title{Latin Squares Meet Group Theory: Tools and Insights in GAP - LatinSquare GAP Package}
\author[S. A. Mohammadiyeh]{Seyyed Ali Mohammadiyeh\\
Department of Pure Mathematics, Faculty of Mathematical Sciences\\
University of Kashan, Kashan 87317-53153, I. R. Iran\\
\texttt{alim@kashanu.ac.ir}, \texttt{max@std.kashanu.ac.ir}}
\date{\today}
\lstset{
basicstyle=\ttfamily\small,
keywordstyle=\color{gapgreen}\bfseries,
commentstyle=\color{gray},
stringstyle=\color{blue},
showstringspaces=false,
frame=single,
breaklines=true
}
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{footline}{
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=.8\paperwidth,ht=2.5ex,dp=1ex,left]{author in head/foot}%
\hspace{1em}\scriptsize Seyyed Ali Mohammadiyeh -- GAP Days 2025
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.2\paperwidth,ht=2.5ex,dp=1ex,right]{date in head/foot}%
\scriptsize\insertframenumber{} / \inserttotalframenumber\hspace{1em}
\end{beamercolorbox}}%
\vskip0pt%
}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\begin{frame}
\frametitle{Who I am}
ALI
\begin{listings}
\item Senior Software Engineer and CTO of IT company
\item Programming professional 10 years, up to 15 years coding
\item B.Sc. in Mathematics with double major in Computer Science and Computer Engineering
\end{listings}
\end{frame}
% \begin{frame}
% \frametitle{Table of Contents}
% \tableofcontents
% \end{frame}
\section{What is a Latin Square?}
\begin{frame}
\frametitle{Definition}
A \textbf{Latin square} of order $n$ is an $n \times n$ array filled with $n$ different symbols, each occurring exactly once in each row and exactly once in each column.
\pause
\begin{itemize}
\item Often, symbols are the integers $\{1, 2, \dots, n\}$.
\item No symbol repeats in any row or column.
\end{itemize}
\end{frame}
% \begin{frame}
% \frametitle{All Latin Squares of Order 3}
% Here are all the Latin squares of order 3:
% 1.
% \[
% \begin{bmatrix}
% 1 & 2 & 3 \\
% 2 & 3 & 1 \\
% 3 & 1 & 2 \\
% \end{bmatrix}
% \]
% \pause
% 2.
% \[
% \begin{bmatrix}
% 1 & 3 & 2 \\
% 2 & 1 & 3 \\
% 3 & 2 & 1 \\
% \end{bmatrix}
% \]
% \pause
% 3.
% \[
% \begin{bmatrix}
% 2 & 1 & 3 \\
% 3 & 2 & 1 \\
% 1 & 3 & 2 \\
% \end{bmatrix}
% \]
% \pause
% 4.
% \[
% \begin{bmatrix}
% 2 & 3 & 1 \\
% 3 & 1 & 2 \\
% 1 & 2 & 3 \\
% \end{bmatrix}
% \]
% \pause
% 5.
% \[
% \begin{bmatrix}
% 3 & 1 & 2 \\
% 1 & 2 & 3 \\
% 2 & 3 & 1 \\
% \end{bmatrix}
% \]
% \pause
% 6.
% \[
% \begin{bmatrix}
% 3 & 2 & 1 \\
% 1 & 3 & 2 \\
% 2 & 1 & 3 \\
% \end{bmatrix}
% \]
% Each matrix represents a valid Latin square of order 3 where each number appears exactly once per row and column.
% \end{frame}
% \begin{frame}
% \frametitle{More Examples (Order 4)}
% \[
% \begin{bmatrix}
% 1 & 2 & 3 & 4 \\
% 2 & 3 & 4 & 1 \\
% 3 & 4 & 1 & 2 \\
% 4 & 1 & 2 & 3 \\
% \end{bmatrix}
% \quad
% \begin{bmatrix}
% 1 & 2 & 3 & 4 \\
% 3 & 4 & 1 & 2 \\
% 4 & 1 & 2 & 3 \\
% 2 & 3 & 4 & 1 \\
% \end{bmatrix}
% \]
% \end{frame}
\begin{frame}
\frametitle{Applications}
Latin squares appear in:
\begin{itemize}
\item \textbf{Statistics:} Experimental design to ensure that treatments are balanced across different conditions, allowing for a more reliable analysis of experimental results.
\item \textbf{Cryptography:} Encryption algorithms.
\item \textbf{Game and Puzzle design:} Sudoku is a partial Latin square!
\item \textbf{Combinatorics:} Designs, finite geometry, etc.
\end{itemize}
\end{frame}
\begin{frame}
\frametitle{Group Theory Relation}
Latin squares are related to group theory and quasigroups.
A quasigroup $(Q, \ast)$ is a non-empty set $Q$ with a binary operation $\ast$ (that is, a magma, indicating that a quasigroup has to satisfy the closure property), obeying the Latin square property.
\end{frame}
\begin{frame}
\frametitle{Historical Notes}
\begin{itemize}
\item Studied by \textbf{Leonhard Euler} in the 18th century.
\item Euler's conjecture on orthogonal Latin squares was famous (later disproven for $n=6$).
\item The Korean mathematician Choi Seok-jeong was the first to publish an example of Latin squares of order nine, in order to construct a magic square in 1700, predating Leonhard Euler by 67 years.
\end{itemize}
\end{frame}
\begin{frame}
\frametitle{Euler's Contribution}
The concept of "Latin square" was inspired by mathematical papers by Leonhard Euler (1707–1783), who used Latin characters as symbols, but any set of symbols can be used: the integer sequence 1, 2, 3 can be replaced by the alphabetic sequence A, B, C.
Euler began the general theory of Latin squares.
\end{frame}
\begin{frame}
\frametitle{Choi Seok-jeong}
\includegraphics[width=0.5\textwidth]{img12}
Choi Seok-jeong was a Korean politician and mathematician who was the first to find orthogonal Latin squares. He constructed magic squares and invented the Hexagonal Tortoise Problem.
\end{frame}
\begin{frame}
\frametitle{Choi Seok-jeong}
Here is Choi Seok-jeong's orthogonal Latin squares of order 9 in modern notation:
\includegraphics[width=0.5\textwidth]{img10}
From the orthogonal Latin squares, he was able to construct a magic square of order 9.
\includegraphics[width=0.5\textwidth]{img11}
\end{frame}
\begin{frame}
\frametitle{Terminology}
\begin{itemize}
\item \textbf{Order:} The size $n$ of the square.
\item \textbf{Symbol set:} The $n$ elements used (commonly $1$ to $n$).
\item \textbf{Orthogonal Latin squares (OLS):} Two Latin squares where each ordered pair occurs once.
\item \textbf{Mutually orthogonal Latin squares (MOLS):} ...
\end{itemize}
\end{frame}
\begin{frame}
\frametitle{How Many Latin Squares?}
The number grows extremely fast:
\begin{itemize}
\item $n = 1$: $1$
\item $n = 2$: $2$
\item $n = 3$: $12$
\item $n = 4$: $576$
\item $n = 5$: $161280$
\item $n = 6$: over $8.9$ billion!
\end{itemize}
\pause
Exact formulas exist only for small $n$.
\end{frame}
\begin{frame}
\frametitle{Latin Squares in Sudoku}
\begin{itemize}
\item A valid Sudoku solution is a Latin square with extra region constraints.
\item Sudoku = Latin square + $3\times3$ box conditions.
\end{itemize}
\begin{center}
\includegraphics[width=0.5\textwidth]{img8}
\end{center}
\end{frame}
\begin{frame}
\frametitle{Latin Squares in Sudoku}
\begin{center}
\includegraphics[width=0.5\textwidth]{img9}
\end{center}
\end{frame}
% \section{Minimum Order for Latin Squares}
% \begin{frame}
% \frametitle{Minimum \( n \) for Latin Squares}
% \begin{itemize}
% \item A Latin square is a grid filled with \( n \) rows and \( n \) columns, where each number appears exactly once in each row and column.
% \item \textbf{Order 1:} A 1x1 Latin square is trivially possible, as it just contains one element.\\
% Example: \(\begin{bmatrix} 1 \end{bmatrix}\)
% \item \textbf{Order 2:} A 2x2 Latin square is possible. For example:
% \[
% \begin{bmatrix}
% 1 & 2 \\
% 2 & 1
% \end{bmatrix}
% \]
% \item \textbf{Order 3:} A 3x3 Latin square is the smallest non-trivial Latin square and is possible.
% \end{itemize}
% \end{frame}
\section{All Latin Squares of Order 1}
\begin{frame}
\frametitle{Latin Squares of Order 1}
The only Latin square of order 1 is:
\[
\begin{bmatrix}
1
\end{bmatrix}
\]
\end{frame}
\section{All Latin Squares of Order 2}
\begin{frame}
\frametitle{Latin Squares of Order 2}
There are two Latin squares of order 2:
\[
\begin{bmatrix}
1 & 2 \\
2 & 1
\end{bmatrix}
\quad
\begin{bmatrix}
2 & 1 \\
1 & 2
\end{bmatrix}
\]
These two are isotopically equivalent and represent the cyclic group \( \mathbb{Z}/2\mathbb{Z} \).
\end{frame}
\section{All Latin Squares of Order 3}
\begin{frame}
\frametitle{Latin Squares of Order 3}
There are 12 Latin squares of order 3. One example is:
\[
\begin{bmatrix}
1 & 2 & 3 \\
2 & 3 & 1 \\
3 & 1 & 2
\end{bmatrix}
\]
This represents the cyclic group \( \mathbb{Z}/3\mathbb{Z} \).
\end{frame}
\begin{frame}
\includegraphics[width=0.5\textwidth]{img17}
\end{frame}
\section{All Latin Squares of Order 4}
\begin{frame}
\frametitle{Latin Squares of Order 4}
There are 576 Latin squares of order 4. Here are two examples:
\[
\begin{bmatrix}
1 & 2 & 3 & 4 \\
2 & 3 & 4 & 1 \\
3 & 4 & 1 & 2 \\
4 & 1 & 2 & 3
\end{bmatrix}
\quad
\begin{bmatrix}
1 & 2 & 4 & 3 \\
2 & 3 & 1 & 4 \\
3 & 4 & 2 & 1 \\
4 & 1 & 3 & 2
\end{bmatrix}
\]
\end{frame}
\section{All Latin Squares of Order 5}
\begin{frame}
\frametitle{Latin Squares of Order 5}
There are 161280 Latin squares of order 5. Here are some examples:
\[
\begin{bmatrix}
1 & 2 & 3 & 4 & 5 \\
2 & 3 & 4 & 5 & 1 \\
3 & 4 & 5 & 1 & 2 \\
4 & 5 & 1 & 2 & 3 \\
5 & 1 & 2 & 3 & 4
\end{bmatrix},
\quad
\begin{bmatrix}
1 & 2 & 3 & 5 & 4 \\
2 & 3 & 4 & 1 & 5 \\
3 & 4 & 5 & 2 & 1 \\
4 & 5 & 1 & 3 & 2 \\
5 & 1 & 2 & 4 & 3
\end{bmatrix},
\]
and 161278 more.\\
(You can display these squares across multiple slides if necessary.)
\end{frame}
\begin{frame}
\frametitle{Numbers of Latin Squares of Order $n=1, 2, \dots$}
\begin{table}[ht]
\centering
\small
\resizebox{\textwidth}{!}{%
\begin{tabular}{|c|c|c|}
\hline
$n$ & $L(n,n)$ & Reference \\
\hline
1 & 1 & \\
2 & 1 & \\
3 & 1 & \\
4 & 4 & \\
5 & 56 & 1782, Euler, 1890, Cayley - 1915, MacMahon \\
6 & 9408 & 1890, Frolov - 1900, Tarry \\
7 & 16942080 & 1939, Norton - 1948, Sade - 1951, Saxena \\
8 & 535281401856 & 1967, Wells \\
9 & 377597570964258816 & 1975, Bammel and Rothstein \\
10 & 7580721483160132811489280 & 1995, McKay and Rogoyski \\
11 & 5363937773277371298119673540771840 & 2005, McKay and Wanless \\
12 & $1.62 \times 10^{44}$ & 1995, McKay and Rogoyski \\
13 & $2.51 \times 10^{56}$ & 1995, McKay and Rogoyski \\
14 & $2.33 \times 10^{70}$ & 1995, McKay and Rogoyski \\
15 & $1.5 \times 10^{86}$ & 1995, McKay and Rogoyski \\
\hline
\end{tabular}%
}
\caption{Numbers of Latin Squares of order $n=1, 2, \dots$.}
\end{table}
\end{frame}
\begin{frame}
\frametitle{Numbers of Latin Squares of Order $n=1, 2, \dots$}
\includegraphics[width=1\textwidth]{img18}
\end{frame}
\begin{frame}
\frametitle{Construction Methods}
Several techniques:
\begin{itemize}
\item \textbf{Cyclic method:} Rotate rows.
\item \textbf{Backtracking:} Recursive filling (used in our package).
\item \textbf{Group-based construction:} Use permutation groups.
\end{itemize}
\end{frame}
\begin{frame}
\frametitle{Reduced Latin Squares and Normalized Latin Squares}
Latin squares are also sometimes called "reduced" or "normalized" Latin squares when the first row and first column are in natural order.
\end{frame}
\begin{frame}
\frametitle{Magic square}
\includegraphics[width=0.5\textwidth]{img14}
\includegraphics[width=0.5\textwidth]{img13}
\end{frame}
\begin{frame}
\frametitle{Trivial Case Latin squares}
A 1x1 square is considered trivial because it only contains one cell, and any symbol can be placed there without violating the Latin square property (each symbol appears only once in each row and column).
\end{frame}
\begin{frame}
\frametitle{Non-Trivial Latin squares}
A Latin square is non-trivial if it has more than one row and column, and each symbol appears exactly once in each row and column.
\end{frame}
\begin{frame}
\frametitle{Mutually orthogonal Latin squares (MOLS)}
A set of Latin squares of the same order such that every pair of squares are orthogonal (that is, form a Graeco-Latin square) is called a set of mutually orthogonal Latin squares (or pairwise orthogonal Latin squares) and usually abbreviated as MOLS or MOLS(n) when the order is made explicit.
For example, a set of MOLS(4) is given by:
\includegraphics[width=0.5\textwidth]{img15}
And a set of MOLS(5):
\includegraphics[width=0.5\textwidth]{img16}
\end{frame}
\begin{frame}
\frametitle{Balanced Latin Square}
Balanced Latin Squares are special cases of latin square that remove immediate carry-over effects: A condition will precede another exactly once (or twice, if the number of conditions is odd).
The balanced latin square generator proposed and mathematically proved by James V. Bradley in "Complete Counterbalancing of Immediate Sequential Effects in a Latin Square Design".
\end{frame}
\begin{frame}
\frametitle{Albrecht Dürer's magic square}
...
\end{frame}
\begin{frame}
\frametitle{Luo Shu magic square}
...
\end{frame}
\begin{frame}
\frametitle{Sagrada Família magic square}
...
\end{frame}
\begin{frame}
\frametitle{Gardner square}
...
\end{frame}
\begin{frame}
\frametitle{Parker square}
...
\end{frame}
% \begin{frame}
% \frametitle{Smallest Non-Trivial Order}
% The smallest order for a non-trivial Latin square is 3, resulting in a 3x3 square.
% \end{frame}
\begin{frame}
\frametitle{Recap}
\begin{itemize}
\item Latin squares are $n \times n$ grids with unique symbols in each row and column.
\item They have many real-world applications.
\item Enumeration and generation are key challenges.
\end{itemize}
Next, we'll look at how the GAP package works with Latin squares.
\end{frame}
\section{latinsquare Package Introduction}
\begin{frame}
\frametitle{Introduction}
This package provides functions to generate and count Latin squares using GAP. It offers:
\begin{itemize}
\item \textbf{Generation of Latin squares:} Construct all Latin squares of a given order.
\item \textbf{Counting Latin squares:} Count them without generating all explicitly.
% \item \textbf{Random selection:} Generate all and select one at random.
More can be added as needed.
\end{itemize}
\end{frame}
\section{Installation}
\begin{frame}[fragile]
\frametitle{Installation}
\textbf{Installation:}
Place the package inside GAP's \texttt{pkg} directory.\\
\includegraphics[width=1\textwidth]{img19}\\
\end{frame}
\begin{frame}[fragile]
\frametitle{Installation by PackageManager}
\textbf{Installation:}
\begin{lstlisting}
gap> LoadPackage("PackageManager");
gap> InstallPackage("https://github.com/BaseMax/LatinSquareGAP");
Or maybe in the future - easy and direct:
gap> InstallPackage("LatinSquare");
\end{lstlisting}
\end{frame}
\section{Installation}
\begin{frame}[fragile]
\frametitle{Loading}
\textbf{Loading:}
\begin{lstlisting}
gap> LoadPackage("LatinSquare");
\end{lstlisting}
You should see a confirmation message.
\end{frame}
\section{Functions}
\begin{frame}[fragile]
\frametitle{}
\textbf{Prototype:} \texttt{LatinSquareList(n, c)}\\
\textbf{Description:} Generates all Latin squares of order \texttt{n}.
\end{frame}
\begin{frame}[fragile]
\frametitle{LatinSquareCount}
\textbf{Prototype:} \texttt{LatinSquareCount(n)}\\
\textbf{Description:} Counts all Latin squares of order \texttt{n}, optionally using partial data.
\begin{lstlisting}
gap> LatinSquareCount(3);
12
\end{lstlisting}
\end{frame}
\begin{frame}[fragile]
\frametitle{LatinSquareRow}
\textbf{Prototype:} \texttt{LatinSquareRow(n, r, c)}\\
\textbf{Description:} Computes valid completions of a row for a Latin square of order \texttt{n}.
\end{frame}
\begin{frame}[fragile]
\frametitle{LatinSquareCountRow}
\textbf{Prototype:} \texttt{LatinSquareCountRow(n, k, r, c)}\\
\textbf{Description:} Recursively counts valid completions of the current row.
\begin{itemize}
\item \texttt{n}: Order of the square.
\item \texttt{k}: Rows fixed so far.
\item \texttt{r}: Column restrictions.
\item \texttt{c}: Current row.
\end{itemize}
\end{frame}
\section{Usage Examples}
\begin{frame}[fragile]
\frametitle{Counting Latin Squares}
To count the number of Latin squares of order 4:
\begin{lstlisting}
gap> LatinSquareCount(4);
\end{lstlisting}
\end{frame}
\begin{frame}[fragile]
\frametitle{Generating Latin Squares}
To generate all Latin squares of order 3:
\begin{lstlisting}
brk> LatinSquareList(1);
[ [ [ 1 ] ] ]
brk> LatinSquareList(2);
[ [ [ 1, 2 ], [ 2, 1 ] ], [ [ 2, 1 ], [ 1, 2 ] ] ]
brk> LatinSquareList(3);
[ [ [ 1, 2, 3 ], [ 2, 3, 1 ], [ 3, 1, 2 ] ], [ [ 1, 2, 3 ], [ 3, 1, 2 ], [ 2, 3, 1 ] ], [ [ 1, 3, 2 ], [ 2, 1, 3 ], [ 3, 2, 1 ] ],
[ [ 1, 3, 2 ], [ 3, 2, 1 ], [ 2, 1, 3 ] ], [ [ 2, 1, 3 ], [ 1, 3, 2 ], [ 3, 2, 1 ] ], [ [ 2, 1, 3 ], [ 3, 2, 1 ], [ 1, 3, 2 ] ],
[ [ 2, 3, 1 ], [ 1, 2, 3 ], [ 3, 1, 2 ] ], [ [ 2, 3, 1 ], [ 3, 1, 2 ], [ 1, 2, 3 ] ], [ [ 3, 1, 2 ], [ 1, 2, 3 ], [ 2, 3, 1 ] ],
[ [ 3, 1, 2 ], [ 2, 3, 1 ], [ 1, 2, 3 ] ], [ [ 3, 2, 1 ], [ 1, 3, 2 ], [ 2, 1, 3 ] ], [ [ 3, 2, 1 ], [ 2, 1, 3 ], [ 1, 3, 2 ] ] ]
\end{lstlisting}
\end{frame}
\section{Algorithm Overview}
\begin{frame}
\frametitle{Algorithm Overview}
Backtracking, a problem-solving technique in computer science, is generally considered a good and powerful approach for exploring multiple possibilities systematically and finding solutions, especially when dealing with constraints and complex problems.
This package uses recursive backtracking:
\begin{itemize}
\item \texttt{LatinSquareList}: Builds full Latin squares.
\item \texttt{LatinSquareCount}: Quickly counts Latin squares without saving generated squares.
\item \texttt{LatinSquareRow}: Valid row generation.
\item \texttt{LatinSquareCountRow}: Counts completions via recursion.
\end{itemize}
\end{frame}
%\section{License and Author}
%\begin{frame}
%\frametitle{License and Author}
%\textbf{License:} MIT License\\[1mm]
%\textbf{Author:} Seyyed Ali Mohammadiyeh
%\end{frame}
\section{Acknowledgements}
\begin{frame}
\frametitle{Acknowledgements}
Thanks to the GAP community and contributors!
% who supported this work!
\end{frame}
\section{Q\&A}
\begin{frame}
\frametitle{Thank You!}
\centering
\Large Thank you so much for your attention!\\[1em]
\Large Any questions?
\end{frame}
\begin{frame}[allowframebreaks]
\frametitle{References}
\begin{thebibliography}{99}
\bibitem{gap} GAP Group. GAP -- Groups, Algorithms, Programming, Version 4.11.1; 2023. \url{https://www.gap-system.org}
\bibitem {r1} Ackoff, R. L. (1953). The design of social research. Chicago: University of Chicago Press.
\bibitem {r2} Edwards, A. L. (1998). Experimental design. N.Y.: Addison-Wesley.
\bibitem {r3} Keppel, G. (2006). Introduction to design and analysis. New York: NY: Worth.
\bibitem {r4} Mason, R. L., Gunst, R. F., \& Hess, J. C. (1989). Statistical design and analysis of experiments. New York: NY: Wiley.
\bibitem {r5} Myers, J. L,. \& Well, A. D. (2003). Research design and statistical analysis. Mahwah, NJ: Erlbaum.
\bibitem {r6} St Andrews University. (n.d.). Choi Seok-jeong. Retrieved from \url{https://mathshistory.st-andrews.ac.uk/Biographies/Choi_Seok-jeong/}
\bibitem {r7} https://github.com/BaseMax/gap-days-2025
\bibitem {r8} https://github.com/BaseMax/LatinSquareGAP
\bibitem {r9} https://github.com/BaseMax/LatinSquareGen
\bibitem {r10} https://github.com/BaseMax/LatinSquareGenerationC
\bibitem {r11} https://oeis.org/A000315
\end{thebibliography}
\end{frame}
\end{document}