A tree-based algorithm for mining diverse social entities