SHARE
TWEET

Algorithmics in beamer

Sax May 12th, 2020 1,200 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top