finish greedy algorithm and show up the results in tune-view