14.3: Binary Tree Properties (2024)

  1. Last updated
  2. Save as PDF
  • Page ID
    34705
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}}}\)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{#1}}} \)

    \( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

    ( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\id}{\mathrm{id}}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\kernel}{\mathrm{null}\,}\)

    \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\)

    \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\)

    \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}} % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}} % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}}}\)

    \( \newcommand{\vectorC}[1]{\textbf{#1}}\)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}}\)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}}\)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}}}\)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{#1}}} \)

    \(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)

    Binary Trees have certain properties, and some of them are calculated based on each tree. We will not go into the math that is depicted below, but I did want to present this, so that you are exposed to the concept of these properties.

    1) The maximum number of nodes at level ‘l’ of a binary tree is 2l-1.
    Here level is number of nodes on path from root to the node (including root and node). Level of root is 1.
    This can be proved by induction.
    For root, l = 1, number of nodes = 21-1= 1
    Assume that maximum number of nodes on level l is 2l-1
    Since in Binary tree every node has at most 2 children, next level would have twice nodes, i.e. 2 * 2l-1


    2) Maximum number of nodes in a binary tree of height ‘h’ is 2h– 1.
    Here height of a tree is maximum number of nodes on root to leaf path. Height of a tree with single node is considered as 1.
    This result can be derived from point 2 above. A tree has maximum nodes if all levels have maximum nodes. So maximum number of nodes in a binary tree of height h is 1 + 2 + 4 + .. + 2h-1. This is a simple geometric series with h terms and sum of this series is 2h– 1.
    In some books, height of the root is considered as 0. In this convention, the above formula becomes 2h+1– 1


    3) In a Binary Tree with N nodes, minimum possible height or minimum number of levels is ? Log2(N+1) ?
    This can be directly derived from point 2 above. If we consider the convention where height of a leaf node is considered as 0, then above formula for minimum possible height becomes ? Log2(N+1) ? – 1


    4) A Binary Tree with L leaves has at least ? Log2L ? + 1 levels
    A Binary tree has maximum number of leaves (and minimum number of levels) when all levels are fully filled. Let all leaves be at level l, then below is true for number of leaves L.

     L <= 2l-1 [From Point 1] l = ? Log2L ? + 1 where l is the minimum number of levels. 


    5) In Binary tree where every node has 0 or 2 children, number of leaf nodes is always one more than nodes with two children.

     L = T + 1Where L = Number of leaf nodes T = Number of internal nodes with two children

    SeeHandshaking Lemma and Treefor proof.

    "Binary Tree | Set 2 (Properties)"byArjun Ashokis licensed underCC BY-SA 4.0

    14.3: Binary Tree Properties (2024)
    Top Articles
    Trader Joe's SWOT Analysis (2024)
    Warren Buffett's company missed out on a roughly $1.5 billion gain by dumping Costco stock in 2020
    Encore Atlanta Cheer Competition
    Printable Whoville Houses Clipart
    Shoe Game Lit Svg
    Mrh Forum
    1970 Chevrolet Chevelle SS - Skyway Classics
    Plaza Nails Clifton
    Identifont Upload
    Weapons Storehouse Nyt Crossword
    T&G Pallet Liquidation
    Tabler Oklahoma
    Epaper Pudari
    Wunderground Huntington Beach
    Rosemary Beach, Panama City Beach, FL Real Estate & Homes for Sale | realtor.com®
    Nioh 2: Divine Gear [Hands-on Experience]
    FAQ: Pressure-Treated Wood
    Burn Ban Map Oklahoma
    Best Nail Salon Rome Ga
    Log in or sign up to view
    Brett Cooper Wikifeet
    Farmer's Almanac 2 Month Free Forecast
    Band Of Loyalty 5E
    2024 INFINITI Q50 Specs, Trims, Dimensions & Prices
    Rs3 Ushabti
    Dei Ebill
    When His Eyes Opened Chapter 3123
    Biografie - Geertjan Lassche
    Movies - EPIC Theatres
    How Much Is An Alignment At Costco
    Clearvue Eye Care Nyc
    Gerber Federal Credit
    Petsmart Distribution Center Jobs
    Hell's Kitchen Valley Center Photos Menu
    Stanley Steemer Johnson City Tn
    11526 Lake Ave Cleveland Oh 44102
    Go Bananas Wareham Ma
    Emily Tosta Butt
    Smite Builds Season 9
    Santa Clara County prepares for possible ‘tripledemic,’ with mask mandates for health care settings next month
    56X40X25Cm
    VerTRIO Comfort MHR 1800 - 3 Standen Elektrische Kachel - Hoog Capaciteit Carbon... | bol
    26 Best & Fun Things to Do in Saginaw (MI)
    8 4 Study Guide And Intervention Trigonometry
    All Buttons In Blox Fruits
    Blog Pch
    Where and How to Watch Sound of Freedom | Angel Studios
    Optimal Perks Rs3
    Unit 4 + 2 - Concrete and Clay: The Complete Recordings 1964-1969 - Album Review
    Black Adam Showtimes Near Cinemark Texarkana 14
    Intuitive Astrology with Molly McCord
    Latest Posts
    Article information

    Author: Ray Christiansen

    Last Updated:

    Views: 6434

    Rating: 4.9 / 5 (49 voted)

    Reviews: 88% of readers found this page helpful

    Author information

    Name: Ray Christiansen

    Birthday: 1998-05-04

    Address: Apt. 814 34339 Sauer Islands, Hirtheville, GA 02446-8771

    Phone: +337636892828

    Job: Lead Hospitality Designer

    Hobby: Urban exploration, Tai chi, Lockpicking, Fashion, Gunsmithing, Pottery, Geocaching

    Introduction: My name is Ray Christiansen, I am a fair, good, cute, gentle, vast, glamorous, excited person who loves writing and wants to share my knowledge and understanding with you.