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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T22:16:15+00:00 2026-05-25T22:16:15+00:00

The average-case analysis is quite hard to do for disjoint data structure. The least

  • 0

The average-case analysis is quite hard to do for disjoint data
structure. The least of the problems is that the answer depends on how
to define average (with respect to the union operation). For instance,
in the forest given below. For description purpose each tree is
represented by set.

{0}, {1}, {2}, {3}, {4, 5, 6,8 }

we could say that since there are five trees, there are 5 * 4 = 20
equally likely results of the next union (as any two different trees
can be unioned). Of course, the implication of this model is that
there is only a 2/5 chance that the next union will involve the large
tree.

Another model might say that all unions between any two elements in
different trees are equally likely, so a larger tree is more likely to
be involved in the next union than a smaller tree. In the example
above, there is an 8/11 chance that the large tree is involved in the
next union, since (ignoring symmetries) there are 6 ways in which to
merge two elements in {1, 2, 3, 4}, and 16 ways to merge an element in
{5, 6, 7, 8} with an element in {1, 2, 3, 4}. There are still more
models and no general agreement on which is the best. The average
running time depends on the model; O(m), O(m log n), and O(mn) bounds
have actually been shown for three different models, although the
latter bound is thought to be more realistic.

Above text is from Algorithms and data analysis by Wessis.

I am quite poor in combinational maths, so i am not understanding above problem, i need help here in answering following questions.

  1. How do we got 2/5 in above description?
  2. How do we got 8/11 in above description?
  3. Author has described only two models but at end of paragraph it is mentioned for different models, what is third model?

Thanks for your help

  • 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-25T22:16:15+00:00Added an answer on May 25, 2026 at 10:16 pm

    Here is the answer for the first two questions:

    1. Given five trees A, B, C, D, E what is the probability that E is included in a pair of randomly chosen trees?

      Since there are 10 pairs possible (AB, AC, AD, AE, BC, BD, BE, CD, CE, DE) and four of them (AB, AC, AD, AE) contain A the probability is 4/10 = 2/5.

    2. Given five trees A={a}, B={b}, C={c}, D={d}, E={e,f,g,h} what is the probability that an element of E is included in a pair of randomly chosen items (where no two items are chosen from one tree)?

      There are 22 pairs of items (ab, ac, ad, ae, af, ag, ah, bc, bd, be, bf, bg, bh, cd, ce, cf, cg, ch, de, df, dg, dh) and 16 of them include one of (e,f,g,h) the probability is 16/22 = 8/11.

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

Sidebar

Related Questions

What is the average case complexity of the following function given that the input
What is the average time that it would take a complete novice, whose background
Binary search has a average case performance as O(log n) and Quick Sort with
As the title states im having some difficulties analzying the average-case memory usage of
I'm trying to decide which data structure to use for the following. Lets say
It seems Radix sort has a very good average case performance, i.e. O(kN) :
According to the book I'm reading, interpolation search takes O(loglogn) in average case. The
I am trying to derive the average case running time for deterministic linear search
Can some one tell me how Randomized select algorithm gives average case time complexity
What is the time complexity of iterating a hash map in average case? I

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.