puu j(v,p): a(b,d) b(c,NULL) c(NULL,NULL) d(e,f) e(NULL,NULL) f(NULL,NULL) puu läbimine magasini abil preorder: a b c d e f j->v->p näitekasutus: puu trükk postorder: c b a e d f v->j->p näitekasutus: järjestuspuu endorder: c b e f d a v->p->j näitekasutus: aritmeetiline avaldis