Question
= Question 2 Suppose that a and b are n-vectors with boolean entries (each entry is either 0 or 1). We have a group
= 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.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started