Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9292583
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T20:54:53+00:00 2026-06-18T20:54:53+00:00

i am trying to understand the binary tree properties. But i am not sure

  • 0

i am trying to understand the binary tree properties. But i am not sure about one thing:

The def. of a Binary trees states that:

  1. A binary tree is balanced if for each node it holds that the number of inner nodes in the left subtree and the number of inner nodes in the right subtree differ by at most 1.

  2. A binary tree is balanced if for any two leaves the diff. of the depth is ast most 1.

I am asking me if this two def. are equivalent, i mean does Def. 1 statisfy Def. 2 and viceversa? … it seems for me yes…but who can explain me exactly with examples the (non) equivalence of this properties?

Thanks,
Patric

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T20:54:55+00:00Added an answer on June 18, 2026 at 8:54 pm

    No, the two are not equivalent.

        3
       / \
      2   7
     /   / \
    1   5   8
       / \   \
      4   6   9
    

    is a tree satisfying property 2, but not property 1.

    Property 1 implies property 2, however.

    Proposition: In a binary tree that is balanced according to property 1 with n inner nodes, all leaves are at a depth of

    • k if n = 2^k - 1
    • k or k+1 if 2^k <= n < 2^(k+1)-1, and there are leaves at depth k+1.

    Proof: (By induction on the number of inner nodes)

    For n = 1 = 2^1-1, there are one or two leaves at depth 1 (root is at depth 0).

    For n = 2, one subtree has one inner node, all leaves in that subtree are at depth 2, the other subtree is empty or a leaf at depth 1.

    Let n >= 2 and consider a binary tree that is balanced according to property 1 with n+1 inner nodes.

    If n is even, n = 2*m, both subtrees must have m inner nodes, and the depth property holds by the induction hypothesis.

    If n = 2*m+1 is odd, one subtree has m inner nodes, the other m+1.

    1. If 2^k <= m < 2^(k+1)-1, the subtree with m inner nodes has leaves at depth k+1, and possibly leaves at depth k by the induction hypothesis. The tree with m+1 inner nodes also has leaves at depth k+1 and possibly (if m+1 < 2^(k+1)-1) at depth k.

    2. If m = 2^k - 1, the subtree with m inner nodes has leaves only at depth k, and the subtree with m+1 inner nodes has leaves at depth k+1 and possibly at depth k.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was trying to understand the Binary Space Partitioning method implementation that is given
Trying to understand the options for will_paginate's paginate method: :page — REQUIRED, but defaults
I'm trying to figure out corecursion in Clojure with nontrivial (i.e. not Fibonacci), but
I'm trying to implement a method for a binary tree which returns a stream.
I now understand that a clustered index contains all of the row data, not
I'm trying to get a binary one-of-K coding of a integer vector in Octave.
So I'm trying to insert a value into a binary tree using this recursive
I am trying to recursively convert int to binary string but I don't really
I am trying to understand what is possible with binary operators (only binary operators)
I am trying to figure out how to decode a legacy binary file that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.