Given a set of entities/merchants, each with shared attributes, group them into clusters where two entities belong to the same cluster if they share at least one attribute. Attributes have a duration and expire after a certain number of days, so clusters must be recomputed as the day advances and…