A generic framework for efficient computation of top-k diverse results