implements Sparrow with a new algorithm to enable inter-job constraints