Cooperated Bayesian algorithm for distributed scheduling problem