Studying Quick-Find and Quick-Union heuristic I've found clear that:
with quick find trees and a union based on the size of the trees we can make a union in $T_{am}(n)=O(\log(n))$
with quick find trees and a union based on the height of the trees we can make a find in $T(n)=O(\log(n))$
But I read that using quick union trees and an union based on the size of the trees we can also have a find in $T(n)=O(\log(n))$, so my question is how can this be demonstrated? What relationship is there between height and size?
For example knowing that $\text{size}(A)=4$ I could have both:
A A
/ | \ |
1 2 3 1
|
2
|
3