1023
правки
KVN (обсуждение | вклад) |
KVN (обсуждение | вклад) |
||
Строка 16: | Строка 16: | ||
'''проц''' ЛЕС(<math>p_0</math>: ''вершина'') = | '''проц''' ЛЕС(<math>p_0</math>: ''вершина'') = | ||
::<math>S</math> : ''семейство дуг'' = <math>\empty</math>; | |||
::<math>q</math>: ''вершина'' = <math>p_0</math>; | |||
::<math>L</math> : '''начало''' ПОМЕТИТЬ(q); | |||
::::<math>S \Leftarrow \overline{\ni} </math>ИСХОД<math>\,(q)</math>; | |||
:::: '''пока''' <math>S \neq \empty </math> '''цикл''' | |||
::::::<math>q</math> := КОНЕЦ(<math>\overline{\ni}S</math>); | |||
::::::'''если''' НЕПОМЕЧЕНА(<math>q</math>) '''то начать''' <math>L</math> '''все''' | |||
:::: '''все''' | |||
:: '''конец''' | |||
'''все''' | '''все''' |