-
Notifications
You must be signed in to change notification settings - Fork 0
/
Divisionsalgorithmus.tex
33 lines (31 loc) · 1022 Bytes
/
Divisionsalgorithmus.tex
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
30
31
32
33
%!TeX spellcheck = de_DE
%!TeX encoding = utf8
%!TEX root = ./test_div.tex
\hbadness=10000
\sProofOn
\descriptionwidth=40pt
\begin{struktogramm}(150,90)
\assign{
\begin{declaration}[]
\description{ \( F \) }{freier
\( S \)-Modul mit Basis }
\description{ \( > \) }{ Monomordnung }
\description{ \( f \) }{ \( \in F \) }
\description{ \(G= g_{1} , \dots ,g_{t} \)}{\( \in F \)}
\end{declaration} %
}
\assign{ \( s= \left[ \right] \)}
\assign{ \( m=\left[ \right] \)}
\assign{ \( j= 1 \)}
\assign{ \(f':= f\) }
\assign{ \( \bar{m}:= ini \left( f' \right) \)}
\while{ \( \exists g_{q} \in G \ :\bar{m} | ini \left( g_{q} \right) \)}
\assign{ \( i = \arg \max \left\{ g_{q} \in G \ :
m | ini \left( g_{q} \right) \right\} \)}
\assign{ \( s_{j} := i \)}
\assign{ \( m_{j} := \bar{m} / ini\left( g_{s_{j}} \right) \)}
\assign{ \( f':= f-\sum_{l=1}^{j} g_{s_{l}} * m_{l} \)}
\assign{ \( m:= ini \left( f' \right) \)}
\assign{ \( j:=j+1 \)}
\whileend
\end{struktogramm}