greedy IDS