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)).
N P r = (n!)/((n-r)!)
8 P 4 = (8!)/((8-4)!)
8 P 4 = (8!)/(4!)
8 P 4 = (8*7*6*5*4!)/(4!)
8 P 4 = 8*7*6*5
8 P 4 = 1680
The final answer is 1680
Answer:
there are no potatoes..... all i see are beautiful creations :0
Answer:
36x+42 if you need it simplified
x=-7/6 if you set the equation equal to zero
Answer:
1) A
2) A
3) B
4) D
5)A
6) D
7) A
8) C
9) D
Step-by-step explanation:
1) -5 (-2) -6= 4
2) 3 coins plus c coins = 3 + c
3) x-2 =16, x = 18
4)
=-5. Clearing, z = 60
5) x =13,4
6) 14=t-4. Clearing t = 58
7) -30=j+50, clearing j=80
8) 2.8x=-9.24, clearing x=-3-3
9) 5.8=
. Clearing z=12.76