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:
The greatest common factor of 50
Step-by-step explanation:
Greatest Common Factor (GCF) of two numbers
and the factors of 50 are 1, 2, 5, 10, 25 and 50.
Answer:
Solution given:
model A printers [a] prints=80books per day
model B printers [b] prints=55books per day
total no of printers =9
no of model A printers be x
and
no of model B printers be [9-x]
According to the question;
ax+(9-x)b=670 books
substituting value of a and b; we get
80x+(9-x)55=670
80x-55x+495=670
25x=670-495=175
x=
=7
So;
no of model A printers =x=<u>7</u>
no of model B printers =9-x=9-7=<u>2</u>
<u>is</u><u> </u><u>your</u><u> </u><u>answer</u><u>.</u>
Im pretty sure the answer is x=-2
Answer:which grade are you
Step-by-step explanation:
If you are grade 7 to 9 I know