1)minimum no of comparisions use
min heap tree minimum element only '1' comparision-----if we use max heap ,find max element is only '1' comparision
3)maximum element 100 comaprisions in min heap tree.(we don't know where max element present)
minimum element 100 comparisions in max heap tree.
2)for average no of comparisions use avl tree.
min and max element requires log(100)+1=8 comparisions.
3)we can search max element in only '1' comparision using max heap tree.
if we consider constructio for tree also it requires o(nlogn)=100*log(100)=700.
no of comparisions =700+cost for searching particular element(max or min)
finally prefer binary search tree(avl tree) to search any element in only o(logn) comparisions