4: Bomen
1) Preorde
2) Postorde
3) Binaire bomen:
a. Preorde
b. Postorde
c. Inorde
4) Binaire zoekboom:
a. Opzoeken v/e sleutel
b. Opzoeken kleinste / grootste element (helemaal links/rechts)
c. Toevoegen v/e element
d. Verwijderen v/e element (verwissel met kleinste kind rechterdeelboom)
5) Binaire hoop:
a. Opzoeken kleinste sleutel (wortel)
b. Toevoegen v/e element (gwn opt eind en dan bubbelen)
c. Verwijderen v/h kleinste element (zet laatste element en dan bubbelen)
5: Grafen
1) Generiek zoeken (kies random boog en zet op true / ontdekt)
2) Breedte-eerst zoeken (wachtrij)
3) Diepte-eerst zoeken (stapel / recursie)
4) Topologisch sorteren (1=bezig)
5) Kortste pad ongewogen graaf (breedte-eerst telkens +1)
a. Voorgangers: op voorganger zetten ipv x+1
6) Dijkstra (kortste pad gewogen graaf) (Q = knopen kortste afstand nog niet bepaald, kies telkens
kleinste en bepaal vr zijn buren de nieuwe kortere afstanden)
7) geefPad (s->v : bepaal voorganger v recursief tot voorganger = s)
8) Prim (minimale kost opspannende boom) (gulzig beste boog kiezen)
9) Kruskal (min kost opsp boom) (eerst bogen sorteren)
10) Handelsreizigersprobleem (min kost opsp boom – preorde overlopen)
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller easyIT. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $3.23. You're not tied to anything after your purchase.