Nurse scheduling using prolog