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)).
<h3>
Answer: 2/5</h3>
This is because there are 20 women out of 50 people total (30+20 = 50).
So 20/50 = 2/5
This converts to the decimal form 0.4 and the percentage form 40%
Answer:
Step-by-step explanation:
It is A
Answer:
First of all it's a geometric sequence and it is multiplying 2 every time
Step-by-step explanation:
2*2=4
4*2=8
8*2=16
Answer:
32
Step-by-step explanation:
Area of a big right triangle = 1/2 * 4 * (2+2+6) = 1/2 * 4 *10 =20
Area of a left right triangle = 1/2* 2*2 = 2
Area of a right right triangle = 1/2 * 6*2 =6
Area of a square = 2*2 = 4
All together:
20+ 2+6+4 =32