diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/algorithm2e/algorithm2e_exfor.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/algorithm2e/algorithm2e_exfor.tex | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/algorithm2e/algorithm2e_exfor.tex b/Master/texmf-dist/doc/latex/algorithm2e/algorithm2e_exfor.tex new file mode 100644 index 00000000000..305f020d53e --- /dev/null +++ b/Master/texmf-dist/doc/latex/algorithm2e/algorithm2e_exfor.tex @@ -0,0 +1,10 @@ +\SetLine +\ForAll{elements of $S_1$}{ + remove an element e from $S_1$\; + put e in the set $S_2$\; + } +\lFor{i=1 \emph{\KwTo}max}{mark i}\; +\ForEach{$e$ in the set}{ + put $e$ in ${\cal E}$\; + mark $e$\; +} |