Answer:
a = 29
u = 12
Step-by-step explanation:
32 + 7u + 9 + 2a - 3 = 3a + 7u + 9
32 + 2a - 3 = 3a
a = 29
3(29) + 7u + 9 = 180
7u = 180 - 96
7u = 84
u = 12
Answer: 8(u - 10)
Step-by-step explanation:
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)).
Answer:
To express the sum of two numbers using distributive property, we factor out the highest common factor (HCF) of the two numbers (i.e. the greatest number that can divide the two numbers without remainder)
28 = 2 x 2 x 7
42 = 2 x 3 x 7
The HCF of 28 and 42 is given by 2 x 7 = 14
Therefore, we express 28 + 42 using distributive property thus: 14(2 + 3)