Question: 1 . List & Set ( 5 0 % ) We want to build a friend recommendation system. When two users who are unfamiliar with

1.List & Set (50%)
We want to build a friend recommendation system. When two users who are unfamiliar with each other
know someone in common, we will provide recommendations so that they can get to know each other.
However, given that some people may be offended by specific individuals, we would like to avoid
unnecessary referrals, so please help these users refer some new friends. Remarks: 1. There is no situation
where A knows B, but B does not know A.2. Once you know each other, you can no longer recommend
them.
1.List & Set (50%)
:
Input:
Know:
1,A=['B']
2,B=['A',C',?'D']
3,C=['B',?'E',F']
Blacklist.:
NA=['C',?'E']
NB=[F']
NC=[A',D']
 1.List & Set (50%) We want to build a friend recommendation

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!