/
presentationpstl.tex
286 lines (242 loc) · 6.41 KB
/
presentationpstl.tex
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
\documentclass{beamer}
\mode<presentation>
{\usetheme[left]{Goettingen}
\useinnertheme[shadow]{rounded}
}
\usefonttheme{serif}
\usepackage[french]{babel}
\usepackage[utf8]{inputenc}
\usepackage{times}
\usepackage[T1]{fontenc}
\usepackage{array}
\usepackage{rotating}
\usepackage{graphicx}
\usepackage{hyperref}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{txfonts}
\usepackage{color}
\usepackage{multicol}
\usepackage{multirow}
\usepackage{qtree}
\usepackage{dot2texi}
\usepackage{listings}
\lstset{%
language=python,
basicstyle=\scriptsize\ttfamily
}
\hypersetup{
backref=true, %permet d'ajouter des liens dans...
pagebackref=true,%...les bibliographies
hyperindex=true, %ajoute des liens dans les index.
colorlinks=true, %colorise les liens
breaklinks=true, %permet le retour à la ligne dans les liens trop longs
urlcolor= blue, %couleur des hyperliens
linkcolor= , %couleur des liens internes
bookmarks=true, %créé des signets pour Acrobat
bookmarksopen=true, %si les signets Acrobat sont créés,
%les afficher complètement.
pdftitle={Présentation colour numbers of complete graphs}, %informations apparaissant dans
pdfauthor={Marguerite Zamansky}, %dans les informations du document
}
\title
{Outils de combinatoire analytique en sage}
\subtitle{Projet STL}
\author
{Matthieu Dien \and Marguerite Zamansky}
\institute
{Université Pierre et Marie Curie}
\date{\today}
\AtBeginSection[]
{
\begin{frame}<beamer>{Sommaire}
\tableofcontents[currentsection]
\end{frame}
}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\begin{frame}{Objectifs}
\begin{itemize}
\item Fournir un outil de calcul symbolique pour des séries multivariées,
\item de préférence libre :
\item offrir une alternative à Mapple et porter les fonctionnalités de Gfun vers Sage.
\end{itemize}
\end{frame}
\section{Sage}
\begin{frame}{Sage}
\begin{figure}
\includegraphics[width=4cm]{sage_logo_new.jpeg}
\end{figure}
\begin{itemize}
\item logiciel libre de calcul formel num\'erique et symbolique
\item regroupe des outils déjà connus et éprouvés (GP/PARI, GAP, Singular, Maxima)
\item et ses propres paquets (combinat, rings, matrix ...)
\item le tout interfacé par un top-level Python
\end{itemize}
\end{frame}
\section{Combinatoire analytique}
\begin{frame}{Définitions}
\begin{block}{Série génératrice multivariée}
Une série génératrice $A$ associée à une classe combinatoire $\mathcal{A}$ :%s et $k$ paramètres scalaires $\chi_j$ :
$$ A(X_1, \ldots, X_k) = \sum_{i_1, \ldots ,i_k \ge 0}^{+\infty} a_{i_1, \ldots , i_k} \ X_1^{i_1} \cdots X_k^{i_k} $$
permet de compter le nombre d'élément de $\mathcal{A}$. %: $a_{i_1, \ldots , i_k} = \mathrm{Card}( e \in \mathcal{A}, \ \chi_j(e)=i_j, \ \forall j \in \llbracket 1 , k \rrbracket )$
\note{On utilise des séries formelles, on n'a pas besoin d'avoir un rayon de convergence non nul, plus l'infini se traduit par un lazy}
\end{block}
\end{frame}
\begin{frame}{S\'eries G\'en\'eratrices Multivari\'ees}{Exemple}
\centering
Arbres binaires-ternaires :
$$\mathcal{ABT} = \{z\} \cdot \{w\} + \{z\} \cdot
\{u\} \cdot \mathcal{ABT}^2 + \{z\} \cdot \{v\} \cdot \mathcal{ABT}^3$$
\includegraphics[scale=0.3]{abttree.pdf}
\end{frame}
\begin{frame}{Exemple}
\begin{center}
\footnotesize{\begin{tabular}{c|c}
$ABT(z,u,v,w) =$ & \\
\hline
$z \cdot w \ + $ & $z\cdot w$ \\
& \\
$z^3 \cdot u \cdot w^2 \ +$ & \Tree [.$z\cdot u$ $z\cdot w$ $z\cdot w$ ] \\
& \\
$z^4 \cdot v \cdot w^3 \ +$ & \Tree [.$z\cdot v$ $z\cdot w$ $z\cdot w$ $z\cdot
w$ ]\\
& \\
$2 \cdot z^5 \cdot u^2 \cdot w^3 \ +$ &
\Tree [.$z\cdot u$ [.$z\cdot u$ $z\cdot w$ $z\cdot w$ ] $z\cdot w$ ]
\hspace{0.2cm}
\Tree [.$z\cdot u$ $z\cdot w$ [.$z\cdot u$ $z\cdot w$ $z\cdot w$ ] ] \\
% & \\
$ \ldots $ & $ \ldots $\\
\end{tabular}
}
\end{center}
\end{frame}
\section{Implémentation}
\begin{frame}{Impl\'ementation}
\begin{block}{Difficultés}
\begin{itemize}
\item Représenter les séries formelles en mémoire
\item S'intégrer à un projet de grande envergure
\end{itemize}
\end{block}
\pause
\bigskip
\begin{block}{Solutions}
\begin{itemize}
\item Utilisation de streams (programmation paresseuse).
\item Générateurs python
\end{itemize}
\end{block}
\end{frame}
\begin{frame}[containsverbatim]{Générateurs Python}
\begin{block}{}
\begin{itemize}
\item Permet de créer des objets itérables
\item \texttt{yield}
\end{itemize}
\end{block}
\bigskip
\begin{block}{exemple : itérer sur les entiers}
\begin{center}
\begin{lstlisting}
def integers_definition():
i = 0
while True :
yield i
i += 1
for n in integers_definition():
if n % 2 == 0:
print("%d est pair"%n)
else :
print("%d est impair"%n)
\end{lstlisting}
\end{center}
\end{block}
\end{frame}
\begin{frame}[containsverbatim]{Représentation}
\small{Un stream de listes de couples formés d'un entier et d'un $n$-uplet.}
\begin{center}
\tiny{ \begin{tabular}{|c|l|}
\hline
entrée & mémoire \\
\hline
\texttt{F}
&
\begin{lstlisting}
[]
\end{lstlisting}
\\
\hline
\texttt{F.coefficients(2); F}
&
\begin{lstlisting}
[[],
[],
[(1,[0,0,1,1])]]
\end{lstlisting} \\
\hline
\texttt{F.coefficients(14); F}
&
\begin{lstlisting}
[[],
[],
[(1,[0,0,1,1])],
[],
[],
[],
[(1,[1,0,2,3])],
[],
[(2,[0,1,3,4])],
[],
[(2,[2,0,3,5])],
[],
[(5,[1,1,4,6])],
[],
[(5,[3,0,4,7]),
(3,[0,2,5,7])]]
\end{lstlisting}
\\
\hline
\end{tabular}}
\end{center}
\end{frame}
\begin{frame}{Démonstration}{Arbres binaires-ternaires}
\begin{block}{Ce qu'on écrit dans Sage,}
\includegraphics[width=9cm]{binterspec}
\end{block}
\pause
\bigskip
\begin{block}{le résultat qu'on obtient.}
\includegraphics[width=9cm]{binterres}
\end{block}
\end{frame}
\begin{frame}{Conclusion}
\begin{block}{Opérateurs implémentés}
\begin{itemize}
\item Addition
\item Produit
\item Séquence
\item Dérivée
\item Composition
\item Cast en polynôme
\end{itemize}
\end{block}
\pause
\begin{block}{Contribution}
\begin{itemize}
\item Patch bug dans Sage
\item Proposition du package
\end{itemize}
\end{block}
\end{frame}
\begin{frame}{Perspectives}
Continuer l'impl\'ementation pour avoir les fonctionnalit\'es disponibles dans Gfun :
\begin{itemize}
\item comme les algorithmes \textit{algfuntoalgeq, algeqtodiffeq, diffeqtorec}
\item Sage days, du 17 au 21 juin
\end{itemize}
\end{frame}
\end{document}