% Prof. Dr. Andreas Podelski: Computer Science - Bridge Course
% Exercise sheets and related material for SS 2014.
% With the collaboration of David Zschocke und Dirk Steinmetz

% example.tex: Example for using the submission class file.

% ------------------------------------------------------------------------------
\documentclass{submission}
\usepackage[utf8]{inputenc}

% Metadata ---------------------------------------------------------------------
\title{
  Sheet -1
}
\author{
  Example Student Name
}
\date{
  \today
}

% Actual content starts here ---------------------------------------------------
\begin{submission}
  This is a submission example. Text content goes here. While regular text is
  treated as usual, \TeX{} allows some additional stuff:
  \begin{align*}
    \pi &\approx 3.1415\\
    e &= \sum_{n=0}^{\infty}\frac{x^n}{n!}
  \end{align*}
  Or with a different layout:
  \begin{align*}
    \pi &\approx 3.1415 &
    e &= \sum_{n=0}^{\infty}\frac{x^n}{n!}
  \end{align*}
  
  
  
  \section*{You can make headlines.}
  That is especially useful for separating various tasks.
  
  
  
  \subsection*{...and smaller ones}
  If you should ever need them.
  
  To draw automata:
  \begin{align*}
    \begin{automate}
      \initialstate{}{0}{q_0}
      \state{right=of 0}{1}{q_1}
      \acceptingstate{right=of 1}{2}{q_2}
      \advtransition{loop above, right}{0}{~0}{0}
      \transition{0}{1}{1}
      \advtransition{loop above, right}{1}{~0}{1}
      \transition{1}{}{0}
      \transitionWord{1}{0110}{2}
    \end{automate}
  \end{align*}
\end{submission}