Ranking-based approaches for localizing faults