1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
WARRIOR [948]
3 years ago
8

2 point) what is the height of a d-heap that contains n elements? the height should be a function of n and

Mathematics
1 answer:
belka [17]3 years ago
6 0
Assuming a d-heap means the order of the tree representing the heap is d.
Most of the computer applications use binary trees, so they are 2-heaps.

A heap is a complete tree where each level is filled (complete) except the last one (leaves) which may or may not be filled.

The height of the heap is the number of levels.  Hence the height of a binary tree is Ceiling(log_2(n)), for example, for 48 elements, log_2(48)=5.58.
Ceiling(5.58)=6.  Thus a binary tree of 6 levels contains from 2^5+1=33 to 2^6=64 elements, and 48 is one of the possibilities.  So the height of a binary-heap with 48 elements is 6.

Similarly, for a d-heap, the height is ceiling(log_d(n)).



You might be interested in
What is the volume of a cube with 1/2 inch sides pls answer I’ll give brainliest if you answer fast
Otrada [13]
1 Millimeter is the answer I hope this helps you.
3 0
3 years ago
Read 2 more answers
What is the slope of the line (-4,-4) and (1,4)
Misha Larkins [42]

Answer:

8/5

Step-by-step explanation:

To find the slope given two points

m = (y2-y1)/(x2-x1)

    = (4- -4)/(1 - -4)

   = (4+4)/(1+4)

   =8/5

7 0
2 years ago
Read 2 more answers
write an equation in slope intercept form of a line passing through the point (2,-3) that is perpendicular to a line whose slope
vladimir2022 [97]
1) find slope. when its perpendicular, It will be a negative reciprocal to the given slope so m1= -1/m1 
m=-1

2) y=mx+b
    y =-1x+b 
    (-3)=-1(2)+b
     -3=-2+b
       b=-1

3)  y=-1x-1

hope I helped!
6 0
3 years ago
The residual plot for a data set is shown.
Stolb23 [73]

Here are the CORRECT answers.

Please leave a thanks.

7 0
3 years ago
Read 2 more answers
Ali has x cards.
valentina_108 [34]

━━━━━━━━━━━━━━━ ♡ ━━━━━━━━━━━━━━━  

If Ali has x cards, then Belinda has 2x cards.

If Ali has x cards, then Charlie has x+5 cards.

2x (Belinda) + x+5 (Charlie) + x (Ali) = 33 (total)

2x + x+5 + x = 33

Now simplify the equation... x+x+5 can be simplified as 2x+5.

2x+5 plus 2x can become 4x+5.

So their total number is 4x+5.

So 4x+5=33.

You want to isolate the variables and numbers.

To remove the 5 from the left side, subtract 5 from both sides.

4x+5-5=4x - 33-5=28

So the equation now is 4x=28

To remove the 4, divide each side by 4.

4x÷4=x - 28÷4=7

So x equals 7, Ali has 7 cards.

━━━━━━━━━━━━━━━ ♡ ━━━━━━━━━━━━━━━  

5 0
3 years ago
Read 2 more answers
Other questions:
  • I'm having trouble with this<br><br> -9x + 4y = 55<br> -11x + 7y = 82
    12·2 answers
  • Kevin runs 7 miles in 50 minutes. At the same rate, how many miles would he run in 75 minutes?
    7·1 answer
  • Logan has a change jar that contains only pennies and nickels. he has 64 coins which add up to a total of $1.52. how many of eac
    9·2 answers
  • Someone help please i dont know how to do this
    7·1 answer
  • Simplify:<br><br><br> A. 4.08<br> B. 5.62<br> C. -7.62<br> D. -9.14
    13·2 answers
  • 20 POINTS!!!! WILL MARK BRAINLEST
    5·1 answer
  • Mr. Chin's hotel bill is $143. He leaves 12% of the hotel bill as a tip for the housekeeping service. What is the total amount M
    12·2 answers
  • Please help!!!!!! this is due soon
    15·1 answer
  • Please help ASAP thank you!
    15·2 answers
  • -2(-3n<br><img src="https://tex.z-dn.net/?f=%20-%202%28%20-%203n%20%7B2%29%7D%5E%7B2%7D%20" id="TexFormula1" title=" - 2( - 3n {
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!