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 7070811
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:36:41+00:00 2026-05-28T05:36:41+00:00

I was reading about compressed tries and read the following: a compressed trie is

  • 0

I was reading about compressed tries and read the following:

a compressed trie is a tree which has L leaves and every internal node in the trie has at least 2 children.

Then the author wrote that a tree with L leaves such that every internal node has alteast 2 children, has atmost L-1 internal nodes. I am really confused why this is true.

Can somebody offer a inductive proof for it?

  • 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-05-28T05:36:41+00:00Added an answer on May 28, 2026 at 5:36 am

    Inductive proof:

    we will prove it by induction on L – the number of leaves in the tree.

    base: a tree made out of 1 leaf is actually a tree with only a root. It has 0 internal nodes, and the claim is true.

    assume the claim is true for a compressed tree with L leaves.

    Step: let T be a tree with L+1 leaves. choose an arbitrary leaf, let it be l, and trim it.

    In order to make the tree compressed again – you need to make l’s father a leaf [if l’s father has more then 2 sons including l, skip this step]. We do it by giving it the same value as l’s brother, and trimming the brother.

    Now you have a tree T’ with L leaves.

    By induction: T’ has at most L-1 internal nodes.

    so, T had L-1+1 = L internal nodes, and L+1 leaves, at most.

    Q.E.D.

    alternative proof:

    a binary tree with L leaves has L-1 internal nodes (1 + 2 + 4 + … + L/2 = L-1)

    Since at “worst case” you have a binary tree [every internal node has at least 2 sons!], then you cannot have more then L-1 internal nodes!

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

Sidebar

Related Questions

Reading about the problem of creating a read only primitive vector in C# (basically,
When reading about JQuery best practices, I read this recently: Never include Javascript events
while reading about declare construct from php manual i tried the following example using
After reading about at least the first 3 or 4 chapters of about 4
While reading about binary semaphore and mutex I found the following difference: Both can
After reading about Firefox's Geolocation functionality, which doesn't use GPS , I'm wondering what
While reading about memmove I read that it can handle MEMORY OVERLAPS but I
I was reading about linux kernel development and I just read some text that
Reading about the Dispose pattern , I see the documentation repeatedly refer to cleaning
Reading about Kohana templates and saw something I've never seen before: $this->template->title = __('Welcome

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.