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
When you run around a track at 5 km/h, your velocity is contant true or false
ch4aika [34]
I think false.
.
Velocity the speed AND direction of something.
.
you run AROUND a track, so the direction changes. Thus velocity changes.
4 0
3 years ago
Read 2 more answers
Solve for x. 4 In (4x) = 16
sveticcg [70]

Answer:

x= 4

Step-by-step explanation:

4 x 4= 16

3 0
3 years ago
Read 2 more answers
Last month Jim drove his car 2,718.3 miles. That brought the car’s total mileage to 87,416. What was the car’s mileage before la
stich3 [128]

To solve this problem you must apply the proccedure shown below:

1. You have that Jim drove the car 2,718.3 miles for a total mileage of 87,416.

2. Then, to calculate the mileage before last month, you only need to substract the total mileage given in the exercise above and the mileage drove last month, as following:

87,416miles-2,718.3miles=84,697.7miles

Therefore, the answer is: 84,697.7 miles.

3 0
4 years ago
The physical plant at the main campus of a large state university recieves daily requests to replace fluorescent lightbulbs. The
faltersainse [42]

Answer:

34%

Step-by-step explanation:

Given that the distribution of daily light bulb request replacement is approximately bell shaped with ;

Mean , μ = 45 ; standard deviation, σ = 3

Using the empirical formula where ;

68% of the distribution is within 1 standard deviation from the mean ;

95% of the distribution is within 2 standard deviation from the mean

Lightbulb replacement numbering between ;

42 and 45

Number of standard deviations from the mean /

Z = (x - μ) / σ

(x - μ) / σ < Z < (x - μ) / σ

(42 - 45) / 3 = -1

This lies between - 1 standard deviation a d the mean :

Hence, the approximate percentage is : 68% / 2 = 34%

5 0
3 years ago
If a candy machine contains 76 green candies, 42 orange candies, 58 red
sergiy2304 [10]

Answer:

P(candy chosen is red) = 58/200

Step-by-step explanation:

6 0
3 years ago
Other questions:
  • The students in Camille's grade voted to select a guest speaker. 65% of the students voted for a famous athlete. If there are 60
    14·1 answer
  • The ideal (daytime) noise-level for hospitals is 45 decibels with a standard deviation of 10 db; which is to say, this may not b
    8·1 answer
  • I'm stuck, could someone help me?
    6·1 answer
  • Which table represents a linear function?
    9·2 answers
  • The distance from the earth to Mercury is approximately 57,000,000 miles. Express this distance in scientific notation.
    15·2 answers
  • What is the equation of this graph?
    5·1 answer
  • 2x + 4y = 12
    12·1 answer
  • What do you know about the hypotenuse of triangle abc
    9·1 answer
  • Out of the 800 students enrolled in a recreational
    13·1 answer
  • Naomi is still not sure how many boxes of each type of candy to order. Her dad explains that he needs to do a little more mathem
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!