100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
Csc 2001F - Binary trees Notes R192,75   Add to cart

Class notes

Csc 2001F - Binary trees Notes

 8 views  0 purchase

This is a comprehensive and detailed note on binary trees for Csc 2001F. Quality stuff!! U'll need it!!

Preview 3 out of 20  pages

  • May 21, 2024
  • 20
  • 2022/2023
  • Class notes
  • Prof. setton
  • All classes
All documents for this subject (11)
avatar-seller
anyiamgeorge19
BINARY TREES



TREES



 One example of data structure linked nodes that not linear

 Why ? some operations be more efficient

 Defined as :

o set nodes + set directed edges

o single root node

o every non-root node has exactly one incoming link & zero or more outgoing links

o no cycles



 Be used for faster search, organising files, formal languages, etc…




TREE VISUALISED

,BINARY TREES



 Trees where each parent has at most 2 children

 Call them left & right




EXERCISE :



 What is the :

o Root  2

o Leaves  1,5

o Size  5

o Height  3




OPERATIONS ON BINARY TREES



 Traversals

o InOrder
o PreOrder
o PostOrder
o Level Order

, BinaryTreesNode




BinaryTree - Construction




BinaryTree - height

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

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

Quick and easy check-out

You can quickly pay through EFT, credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

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 this summary from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller anyiamgeorge19. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy this summary for R192,75. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

83750 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy summaries for 14 years now

Start selling
R192,75
  • (0)
  Buy now