update greedy_search3