CS代考 The teams is a sports competition are divided into six groups with five tea

The teams is a sports competition are divided into six groups with five teams in each
group. Each team plays the other teams in its group once only. Write a Prolog preciate
schedule(S) that is true if S is a valid schedule. A schedule lists the fixtures for each day
of the competition. In a fixture (A,B), team A is the home team and team B is the away

Copyright By PowCoder代写 加微信 powcoder

team. A schedule is valid if:
there are no more than three matches on any day,
each team has the same number of home and away fixtures in the whole schedule,
each team has at least four rest days between fixtures.
Ideally the schedule S should be as short as possible, and the predicate schedule should
be able to generate multiple valid schedules.

程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com