Affinity propagation is a type of computer algorithm that helps find relationships between different items. It does this by looking for patterns between different items and grouping them together if they have similarities. For example, if you have a bunch of pictures of different animals, affinity propagation would be able to group together the pictures of cats and the pictures of dogs.