-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathframe-algorithm-split-merge-details.tex
More file actions
29 lines (29 loc) · 1.06 KB
/
frame-algorithm-split-merge-details.tex
File metadata and controls
29 lines (29 loc) · 1.06 KB
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
% SPDX-License-Identifier: CC-BY-4.0
% Copyright 2018 Toni Dietze
\documentclass[beamer]{standalone}
\input{preamble.tex}
\begin{document}
\begin{standaloneframe}{\jobname}
\begin{algorithmic}[1]
\Function{split}{$ℳ$}
\State $\pi \gets$ $ℳ$-splitter splitting every state $A$ in $ℳ$ into $A^1$ and $A^2$
\State \Return a proper $\pi$-split of $ℳ$
\EndFunction
\vspace{1em}
\Function{merge}{$ℳ'$}
\State $\pi \gets \text{identity mapping}$
\ForAll{states $A$ s.t.\ $A^1$, $A^2$ in $ℳ'$}
\State $\widehat{\pi} \gets \text{identity mapping}$
\State $\widehat{\pi}(A^1) \gets A$ and $\widehat{\pi}(A^2) \gets A$
\State $\lambda \gets \text{a good $\widehat{\pi}$-distributor}$
\If{$\displaystyle\frac{\lklhd{c}{\mrg_{\widehat{\pi}}^\lambda(ℳ')}}{\lklhd{c}{ℳ'}} \geq \mu$}
\label{algorithmic:lklhd-ratio}
\State $\pi(A^1) \gets A$ and $\pi(A^2) \gets A$
\EndIf
\EndFor
\State $\lambda \gets \text{a good $\pi$-distributor}$
\State \Return $\mrg_\pi^\lambda(ℳ')$
\EndFunction
\end{algorithmic}
\end{standaloneframe}
\end{document}