greedy csp