Question 2 Suppose that a and b are n vectors with boolean
Last updated: 3/14/2023
Question 2 Suppose that a and b are n vectors with boolean entries each entry is either 0 or 1 We have a group of n squirrels each assigned a number 1 n Vector a encodes the friendships of squirrel Atto with this group i e an entry ai 1 denotes that Atto squirrel 1 is friends with squirrel i Vector b is similar but for squirrel Besso squirrel 2 In this scenario a squirrel is not considered to be friends with themselves This means that a for Atto is 0 and b2 for Besso is 0 a 5 points Express the number of friends Atto and Besso have in common in terms of vectors a and b b 2 points Using an inner product describe how you would determine who has more friends between Atto and Besso c 5 points Use a and b to expression the number of friends Besso has that Atto doesn t