📚 The CoCalc Library - books, templates and other resources
License: OTHER
\documentclass[usepdftitle=false,hyperref={pdfpagelabels=false}]{beamer}12% use KIT-Theme3% see http://sdqweb.ipd.kit.edu/wiki/Dokumentvorlagen4%\usetheme{Frankfurt} % see http://deic.uab.es/~iblanes/beamer_gallery/index_by_theme.html5\InputIfFileExists{templates/beamerthemekit.sty}{\usepackage{templates/beamerthemekit}}{\usetheme{Frankfurt}}6\usefonttheme{professionalfonts}789\usepackage{hyperref}10\usepackage{lmodern}11\usepackage{listings}12\usepackage{wrapfig} % see http://en.wikibooks.org/wiki/LaTeX/Floats,_Figures_and_Captions1314\usepackage[utf8]{inputenc} % this is needed for german umlauts15\usepackage[ngerman]{babel} % this is needed for german umlauts16\usepackage[T1]{fontenc} % this is needed for correct output of umlauts in pdf1718\usepackage{verbatim}19\usepackage{relsize}20\usepackage{subfigure}2122% http://en.wikibooks.org/wiki/LaTeX/Algorithms_and_Pseudocode23% http://tex.stackexchange.com/questions/1375/what-is-a-good-package-for-displaying-algorithms24% http://tex.stackexchange.com/questions/26539/beamer-and-pseudocode25% http://www.jkrieger.de/tools/latex/informatik.html26% http://ctan.mackichan.com/macros/latex/contrib/algorithmicx/algorithmicx.pdf27% http://ctan.mackichan.com/macros/latex/contrib/algorithms/algorithms.pdf28% http://www.cs.brown.edu/system/software/latex/doc/algodoc.pdf29% http://www.cs.utexas.edu/~shan/doc/algorithms.pdf30\usepackage{algorithm,algpseudocode}31\usepackage{tikz}32\usetikzlibrary{arrows,shapes,positioning,shadows,calc}33\usepackage{tkz-berge}34\usepackage{xcolor}35\makeatletter3637% to change colors38\newcommand{\fillcol}{green!20}39\newcommand{\bordercol}{black}4041%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%42%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%43% code from Andrew Stacey (with small adjustment to the border color)44% http://tex.stackexchange.com/questions/51582/background-coloring-with-overlay-specification-in-algorithm2e-beamer-package45\newcounter{jumping}46\resetcounteronoverlays{jumping}4748\def\jump@setbb#1#2#3{%49\@ifundefined{jump@#1@maxbb}{%50\expandafter\gdef\csname jump@#1@maxbb\endcsname{#3}%51}{%52\csname jump@#1@maxbb\endcsname53\pgf@xa=\pgf@x54\pgf@ya=\pgf@y55#356\pgfmathsetlength\pgf@x{max(\pgf@x,\pgf@xa)}%57\pgfmathsetlength\pgf@y{max(\pgf@y,\pgf@ya)}%58\expandafter\xdef\csname jump@#1@maxbb\endcsname{\noexpand\pgfpoint{\the\pgf@x}{\the\pgf@y}}%59}60\@ifundefined{jump@#1@minbb}{%61\expandafter\gdef\csname jump@#1@minbb\endcsname{#2}%62}{%63\csname jump@#1@minbb\endcsname64\pgf@xa=\pgf@x65\pgf@ya=\pgf@y66#267\pgfmathsetlength\pgf@x{min(\pgf@x,\pgf@xa)}%68\pgfmathsetlength\pgf@y{min(\pgf@y,\pgf@ya)}%69\expandafter\xdef\csname jump@#1@minbb\endcsname{\noexpand\pgfpoint{\the\pgf@x}{\the\pgf@y}}%70}71}7273\tikzset{%74remember picture with id/.style={%75remember picture,76overlay,77draw=\bordercol,78save picture id=#1,79},80save picture id/.code={%81\edef\pgf@temp{#1}%82\immediate\write\pgfutil@auxout{%83\noexpand\savepointas{\pgf@temp}{\pgfpictureid}}%84},85if picture id/.code args={#1#2#3}{%86\@ifundefined{save@pt@#1}{%87\pgfkeysalso{#3}%88}{89\pgfkeysalso{#2}%90}91},92onslide/.code args={<#1>#2}{%93\only<#1>{\pgfkeysalso{#2}}%94},95alt/.code args={<#1>#2#3}{%96\alt<#1>{\pgfkeysalso{#2}}{\pgfkeysalso{#3}}%97},98stop jumping/.style={99execute at end picture={%100\stepcounter{jumping}%101\immediate\write\pgfutil@auxout{%102\noexpand\jump@setbb{\the\value{jumping}}{\noexpand\pgfpoint{\the\pgf@picminx}{\the\pgf@picminy}}{\noexpand\pgfpoint{\the\pgf@picmaxx}{\the\pgf@picmaxy}}103},104\csname jump@\the\value{jumping}@maxbb\endcsname105\path (\the\pgf@x,\the\pgf@y);106\csname jump@\the\value{jumping}@minbb\endcsname107\path (\the\pgf@x,\the\pgf@y);108},109}110}111112113\def\savepointas#1#2{%114\expandafter\gdef\csname save@pt@#1\endcsname{#2}%115}116117\def\tmk@labeldef#1,#2\@nil{%118\def\tmk@label{#1}%119\def\tmk@def{#2}%120}121122\tikzdeclarecoordinatesystem{pic}{%123\pgfutil@in@,{#1}%124\ifpgfutil@in@%125\tmk@labeldef#1\@nil126\else127\tmk@labeldef#1,\pgfpointorigin\@nil128\fi129\@ifundefined{save@pt@\tmk@label}{%130\tikz@scan@one@point\pgfutil@firstofone\tmk@def131}{%132\pgfsys@getposition{\csname save@pt@\tmk@label\endcsname}\save@orig@pic%133\pgfsys@getposition{\pgfpictureid}\save@this@pic%134\pgf@process{\pgfpointorigin\save@this@pic}%135\pgf@xa=\pgf@x136\pgf@ya=\pgf@y137\pgf@process{\pgfpointorigin\save@orig@pic}%138\advance\pgf@x by -\pgf@xa139\advance\pgf@y by -\pgf@ya140}%141}142\newcommand\tikzmark[2][]{%143\tikz[remember picture with id=#2] #1;}144\makeatother145146\resetcounteronoverlays{algocf}147148\newcommand<>{\boxto}[1]{%149\only#2{\tikz[remember picture with id=#1]150\draw[line width=1pt,fill=\fillcol,rectangle,rounded corners]151(pic cs:#1) ++(5.2,-.1) rectangle (-0.4,0)152;\tikz\node [anchor=base] (#1){};}% <= insertion to store the anchor to be used as based for the annotation153}154%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%155%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%156157% Define some styles for graphs158\tikzstyle{vertex}=[circle,fill=black!25,minimum size=20pt,inner sep=0pt]159\tikzstyle{selected vertex} = [vertex, fill=red!24]160\tikzstyle{blue vertex} = [vertex, fill=blue!24]161\tikzstyle{yellow vertex} = [vertex, fill=yellow!24]162\tikzstyle{edge} = [draw,thick,-]163\tikzstyle{weight} = [font=\small]164\tikzstyle{selected edge} = [draw,line width=5pt,-,red!50]165\tikzstyle{ignored edge} = [draw,line width=5pt,-,black!20]166167\hypersetup{pdftitle={Graphentheorie II}}168\beamertemplatenavigationsymbolsempty169170\newcommand\InsertToC[1][]{171\begin{frame}{Outline}172\tableofcontents[subsectionstyle=show/show/show, subsubsectionstyle=show/show/show, #1]173\end{frame}174}175176\begin{document}177\title{Graphentheorie II}178\author{Tobias Sturm, Martin Thoma, Max Wagner, Thomas Krings}179\date{\today}180\subject{Graphentheorie-Referat fur ICPC}181182\frame{\titlepage}183184\frame{185\frametitle{Inhaltsverzeichnis}186\setcounter{tocdepth}{1}187\tableofcontents188\setcounter{tocdepth}{2}189}190191\AtBeginSection[]{192\InsertToC[sections={\thesection}] % shows only subsubsections of one subsection193}194195\input{MinimaleSpannbaume} % Minimale Spannbäume196\input{SCC} % Starke zusammenhangskomponenten197\input{GraphColoring} % Färbung von Graphen198\input{Kreise} % Euler- und Hamilton-Kreise199200\section{Abspann}201\subsection{Abspann}202203\begin{frame}{}204Vielen Dank für eure Aufmerksamkeit!205\end{frame}206\input{Literatur} % Quellen und weitere Infos207\input{Quellen}208209\end{document}210211212