418
правок
Изменения
м
→Псевдокод
<font color="green">// Шаг 3</font>
'''for''' i = 0 .. n - 1
'''for''' j = 0 i + 1 .. n - 1 '''if''' '''not''' marked[i][j] '''and''' isTerminalsisTerminal[i] '''and''' '''not''' isTerminalsisTerminal[j] '''and''' i != j
marked[i][j] = marked[j][i] = true
Q.push(<tex>\langle i, j \rangle</tex>)