Általános fa (Generic tree)

$preorder(t : Node^*)$

$t \neq \emptyset$
$process(t)$
$preorder(t \rightarrow child1)$
$t := t \rightarrow sibling$
$postorder(t : Node^*)$

$t \neq \emptyset$
$postorder(t \rightarrow child1)$
$process(t)$
$t := t \rightarrow sibling$

Animáció

Struktogram

$preorder(t : Node^*)$

$t \neq \emptyset$
$process(t)$
$preorder(t \rightarrow child1)$
$t := t \rightarrow sibling$

$postorder(t : Node^*)$

$t \neq \emptyset$
$postorder(t \rightarrow child1)$
$process(t)$
$t := t \rightarrow sibling$

Feladatok