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

  • Home
  • SEARCH
  • 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 8140045
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T12:02:02+00:00 2026-06-06T12:02:02+00:00

I have a maximum heap represented in an array A , and I have

  • 0

I have a maximum heap represented in an array A , and I have the following question :

Is it possible to build a sorted list , based on the maximum 
heap - A - in O(n*log(log(n))) ? 

My answer : No we can’t ! we can always run on A and execute MergeSort in O(n*log(n))
or a QuickSort in O(n*log(n)) (worst case O(n^2)) .

I thought also maybe to build the actual heap based on A , this would take O(n) , and then extract from there all the elements in O(n*log(n)) , but I gained nothing here .

At the moment I can’t see any option for O(n*log(log(n))) , any ideas ?

  • 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-06T12:02:04+00:00Added an answer on June 6, 2026 at 12:02 pm

    If you have a max-heap in an array form then using something like insertion sort on that array should yield pretty good results. A max heap in array form is nearly sorted (descending) and the best case for insertion for is O(n) when the array is nearly sorted. It’ll still has a O(n^2) worst case but I don’t think you’d ever hit the worst case.

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

Sidebar

Related Questions

We have a Web Java based application running on JBoss with allowed maximum heap
Suppose I have the following: A region defined by minimum and maximum latitude and
I have a J2EE project running on JBoss, with a maximum heap size of
The question is not about the maximum heap size on a 32-bit OS, given
Possible Duplicate: Maximum Java heap size of a 32-bit JVM on a 64-bit OS
What is the best way to show friends' posts? Each user can have maximum
I was reading in netbeans 6, you don't have to set the maximum heap
As I was reading RedBook I stayed quite confused, that openGL can have maximum
I have built the following function, but is it possible to get it to
I have a requirement to determine the maximum Id int value for a set

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.