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)).
What do we know from the problem?:
*bill is $58
*wants to leave 80% tip
what's missing?:
what's the total bill
How to solve it?:
first we have to take care of the 80% so..
80/100= 0.80 or 0.8
step 2:
$58 x 0.8= $46.40
Step 3:
ADD the total bill which is $58 and add the $46.40
$58 + $46.40= $104.4
FINALLY: Arun's total bill was $104.40
Answer:C(x) = 2000+ 0.05 x
Step-by-step explanation: Cost (C) = fixed cost + (cost per pencil x number of pencils)
Since:
Fixed cost: $2000
Cost per pencil : $0.05
Replacing with the values given:
C(x) = 2000+ 0.05 x
Where x is the number of pencils manufactured.
Feel free to ask for more if needed or if you did not understand something.
The answer is 3. I hope this helps!
Answer:
1,6 and 6,6
Step-by-step explanation:
since they are on the same y-axis, changing the x-value shouldn't matter.