Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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']
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Why is the System Build Process an iterative process?

Answered: 1 week ago