-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcours-9.tex
164 lines (142 loc) · 4.41 KB
/
cours-9.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
\ifdefined\ishandout
\documentclass[handout]{beamer}
\else
\documentclass{beamer}
\fi
\usepackage[frenchb]{babel}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{hyperref}
\usepackage{multirow}
\usepackage{listings}
\usepackage{fancyvrb}
\usepackage{tikz}
\usepackage{framed}
\usepackage{algorithm}
\usepackage{algorithmic}
\usepackage{xcolor}
\usepackage{color, colortbl}
\usepackage{handoutWithNotes}
\usepackage{amsmath}
\usetikzlibrary{shapes.geometric}
\usetikzlibrary{positioning}
\usetikzlibrary{shapes.arrows, chains}
\usetikzlibrary{arrows,calc}
\usetikzlibrary{shapes.multipart}
\usepackage{array}
\usetheme{Boadilla}
\definecolor{BlueGreen}{cmyk}{0.85,0,0.33,0}
\definecolor{Gray}{rgb}{0.8,0.8,0.8}
\ifdefined\ishandout
\pgfpagesuselayout{3 on 1 with notes}[a4paper,border shrink=5mm]
\usecolortheme{dove}
\else
\usecolortheme{dolphin}
\fi
\lstnewenvironment{codeC}
{ \lstset{language=C,
otherkeywords={printf,scanf}}
}
{}
\ifdefined\ishandout
\definecolor{mygreen}{rgb}{0,0,0}
\definecolor{mymauve}{rgb}{0,0,0}
\definecolor{myblue}{rgb}{0,0,0}
\else
\definecolor{mygreen}{rgb}{0,0.6,0}
\definecolor{mymauve}{rgb}{0.58,0,0.82}
\definecolor{myblue}{rgb}{0,0,1}
\fi
\definecolor{mygray}{rgb}{0.5,0.5,0.5}
\lstset{language=C,
% breakatwhitespace=false, % sets if automatic breaks should only happen at whitespace
% breaklines=true, % sets automatic line breaking
% captionpos=b,
commentstyle=\itshape\color{mymauve},
keywordstyle=\bfseries\color{myblue},
%numbers=left, % where to put the line-numbers; possible values are (none, left, right)
% numbersep=8pt, % how far the line-numbers are from the code
% numberstyle=\tiny\color{mygray}, % the style that is used for the line-numbers
rulecolor=\color{black}, % if not set, the frame-color may be changed on line-breaks within not-black text (e.g. comments (green here))
% showspaces=false, % show spaces everywhere adding particular underscores; it overrides 'showstringspaces'
showstringspaces=false, % underline spaces within strings only
% showtabs=false, % show tabs within strings adding particular underscores
% stepnumber=2, % the step between two line-numbers. If it's 1, each line will be numbered
stringstyle=\color{mygreen}, % string literal style
% tabsize=2
}
\ifdefined\ishandout
\newcommand{\red}{\textbf}
\else
\newcommand{\red}{\textcolor{red}}
\fi
%\newcommand \emph
%Default size : 12.8 cm * 9.6 cm
\newcommand{\tmark}[1]{\tikz[remember picture, baseline=-.5ex]{\coordinate(#1);}}
\ifdefined\ishandout
\newenvironment<>{codeblock}[1]{%begin
\setbeamercolor{block title}{fg=black,bg=lightgray!80}%
\begin{block}{#1}}
% \begin{codeC}}
% {\end{codeC}
{
\end{block}}
\newenvironment<>{termblock}[1]{
\setbeamercolor{block title}{fg=black,bg=lightgray!90}%
\begin{block}{#1}
}
% \begin{Verbatim}}
{%\end{Verbatim}
\end{block}
}
\definecolor{bluegreen}{RGB}{0,0,0}
%\definecolor{bluegreen}{rgb}{0,0.6,0.8}
\else
\newenvironment<>{codeblock}[1]{%begin
\setbeamercolor{block title}{fg=darkgray,bg=yellow}%
\begin{block}{#1}}
% \begin{codeC}}
% {\end{codeC}
{
\end{block}}
\newenvironment<>{termblock}[1]{
\setbeamercolor{block title}{fg=white,bg=lightgray}%
\begin{block}{#1}}
% \begin{Verbatim}}
{%\end{Verbatim}
\end{block}
}
\definecolor{bluegreen}{RGB}{0,149,182}
%\definecolor{bluegreen}{rgb}{0,0.6,0.8}
\fi
%\newcommand{\output}[1]{
\setbeamertemplate{navigation symbols}{}
\newcommand{\bvrb}{\Verb[commandchars=£µ§,formatcom=\color{bluegreen}]}
\newcommand{\footvrb}{\footnotesize\Verb}
\newcommand{\vrbalert}[2][]{\visible<#1>{#2}}
%%% Commande pour les listes/arbres
\newcommand{\mvide}{\nodepart{one} \nodepart{two}}
\newcommand{\tvide}{\nodepart{one} \nodepart{two} \nodepart{three}}
%%Fin des commandes pour les listes/arbres.
\newcommand<>{\case}[2]{%
\filldraw (#1,#2) rectangle (1+#1,1+#2);}
%%% Paramètres du cours (à régler)
%Numéro du cours
\newcommand{\nb}{9}
\title[cours n°8]{Sujets avancés-2}
\author[]{[email protected]}
\institute[Polytech'UPMC]{Polytech'UPMC}
\date{20 Novembre 2017}
\begin{document}
\begin{frame}
\titlepage
\centering{
\url{https://moodle-sciences.upmc.fr} (cours Informatique Générale MAIN-ROB)}
\end{frame}
\begin{frame}
\frametitle{Plan du cours}
\tableofcontents[hideallsubsections]
\end{frame}
\input{astar}
\input{minimax}
\end{document}