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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T02:04:21+00:00 2026-05-24T02:04:21+00:00

In CLRS , third Edition, on page 155, it is given that in MAX-HEAPIFY,

  • 0

In CLRS, third Edition, on page 155, it is given that in MAX-HEAPIFY,

"the worst case occurs when the bottom level of the tree is exactly half full"  

I guess the reason is that in this case, Max-Heapify has to “float down” through the left subtree.
But the thing I couldn’t get is “why half full” ?
Max-Heapify can also float down if left subtree has only one leaf. So why not consider this as the worst case ?

  • 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-24T02:04:22+00:00Added an answer on May 24, 2026 at 2:04 am

    Read the entire context:

    The children’s subtrees each have size at most 2n/3 – the worst case occurs when the last row of the tree is exactly half full

    Since the running time T(n) is analysed by the number of elements in the tree (n), and the recursion steps into one of the subtrees, we need to find an upper bound on the number of nodes in a subtree, relative to n, and that will yield that T(n) = T(max num. nodes in subtree) + O(1)

    The worst case of number of nodes in a subtree is when the final row is as full as possible on one side, and as empty as possible on the other. This is called half full. And the left subtree size will be bounded by 2n/3.

    If you’re proposing a case with only a few nodes, then that’s irrelevant, since all base cases can be considered O(1) and ignored.

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

Sidebar

Related Questions

In CLRS, third Edition, on page 155, it is given that in MAX-HEAPIFY, The
Section 9.3 in CLRS 3rd edition Selection in worst-case linear time talks about the
I'm reading CLRS and studying the B-Tree now. CLRS claims that B-Tree naming is
Hi I am reading the chapter about universal hashing on CLRS. On page 234
I am going through the above topic from CLRS(CORMEN) ( page 834 ) and
In CLRS's Introduction to Algorithms 3rd edition P.525, when it analyzes the size(x)'s lower
I have a basic doubt that, How can we have both CLR's on a
Having had success with my last CLRS question, here's another: In Introduction to Algorithms
I'm reading Introduction to Algorithm by CLRS. In chapter 2, the authors mention loop
I have some projects in a solution that are running on .net 3.5 SP1

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.