1 / 1

Objetorienteeritud programmeerimine 2008/2009 kevadsemester

Eesnimi. Perekonnanimi. Test 10. Objetorienteeritud programmeerimine 2008/2009 kevadsemester Rühm inf 1 E 12-14 ruum L203. läbidaKeskjärjestuses(g, t) // läbida kahendpuu g keskjärjestuses // alates tipust t

caitir
Download Presentation

Objetorienteeritud programmeerimine 2008/2009 kevadsemester

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Eesnimi Perekonnanimi Test 10 Objetorienteeritud programmeerimine 2008/2009 kevadsemester Rühm inf 1 E 12-14 ruum L203 läbidaKeskjärjestuses(g, t) //läbida kahendpuu g keskjärjestuses // alates tipust t Kui on olemas t.vasakAlluv: läbidaKeskjärjestuses(g, t.vasakAlluv). Print(t.info). Kui on olemas t.paremAlluv: läbidaKeskjärjestuses(g, t.paremAlluv). Ülesanne Kirjutage kahendpuu (vt paremal) tipumärgenditeks paarikaupa erinevad tähed. Kirjutage kahendpuu tipud (märgendid) keskjärjestuses (vt algoritm vasakul): Keskjärjestuses: r i ü k o h j Kahendpuu: j e ü r k h i o Eesjärjestuses: j ü r i k h o Lõppjärjestuses i r o h k ü j

More Related