Jelajahi Sumber

special case when no label was visited

Martin Thoma 11 tahun lalu
induk
melakukan
b2183da1a5
2 mengubah file dengan 12 tambahan dan 2 penghapusan
  1. 12 2
      documents/DYCOS/DYCOS-Algorithmus.tex
  2. TEMPAT SAMPAH
      documents/DYCOS/DYCOS.pdf

+ 12 - 2
documents/DYCOS/DYCOS-Algorithmus.tex

@@ -115,8 +115,18 @@ tatsächlich die Grapherweiterung:
                     \State \Call{InhaltlicherMehrfachsprung}{$v$, $l$}
                 \EndIf
             \EndFor
-            \State $label \gets \Call{max}{d}$
-            \State $v.\Call{SetLabel}{label}$
+
+            \If{$d$ ist leer}
+                \State $M_H \gets \Call{HäufigsteLabelImGraph}{}$
+                \ForAll{$label$ in $M_H$}
+                    \State $v.\Call{AddLabel}{label}$
+                \EndFor
+            \Else
+                \State $M_H \gets \Call{max}{d}$
+                \ForAll{$label$ in $M_H$}
+                    \State $v.\Call{AddLabel}{label}$
+                \EndFor
+            \EndIf
         \EndFor
         \State \Return Labels für $\N_t \setminus \T_t$
     \end{algorithmic}

TEMPAT SAMPAH
documents/DYCOS/DYCOS.pdf