Advertisement
Sax

Algorithmics in beamer

Sax
May 12th, 2020
1,994
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 0.62 KB | None | 0 0
  1. % include these two:
  2. % \usepackage{algorithm, algpseudocode} % algs and such
  3.  
  4. \begin{frame}
  5.     \frametitle{Hyper-heuristic model}
  6.     \framesubtitle{Our approach}
  7.  
  8.     \begin{algorithm}[H]
  9.     \caption{Learning Phase of the Hyper-heuristic}
  10.     \label{alg:hh}
  11.     \begin{algorithmic}[1]
  12.     \State $s \sim \text{\textsc{Unif}}(\{0, 1, \dots, h\}^n)$
  13.         \While{termination criteria is not satisfied}
  14.             \State op $\sim D_{\bar{p}}(\textsc{OP}_1, \textsc{OP}_2, \dots, \textsc{OP}_m)$
  15.             \State $s' \gets \text{op}(s)$
  16.             \If{$f(s') \geq f(s)$}
  17.                 \State $s \gets s'$
  18.             \EndIf
  19.         \EndWhile
  20.     \end{algorithmic}
  21.     \end{algorithm}
  22. \end{frame}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement