Bdk = 1 if k occurs at least once in d and is zero otherwise; Bcd = 1 if d is classified as an instance of class c and is zero otherwise.