Iterative Learning of Weighted Rule Sets for Greedy Search