improved GreedyDfsStrategy