Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Social Network People have friends and connections on social media sites. Many times things for friends of friends Cfriends.txt') that contains rows of people who

image text in transcribed
image text in transcribed
Social Network People have friends and connections on social media sites. Many times things for friends of friends Cfriends.txt') that contains rows of people who are connected as friends those site show us who we aren't directly connected to. You are given a text file names separated by a space. For instance, line 1, is Alice Bob" Which means alice is a friend of bob and bob is a friend of alice The input file may contain different values. You can't assume you will have Alice, Bob, Carol, Edward, Daniel and Fran. You'l want a data structure to track all the friends and each one will have its own data structure for what friends they have. Sample Output Social Network I. Find all friends shared by 2 people D. Find all friends of X, that person Y does not have S. Find all friends that X and Y have, but do not share with each other Q. Quit Enter a valid person Alex Alex is not part of this network, enter another name. Enter a valid person Alice Fran Enter a valid person Alice and Fran share these people Carol Bob Social Network I. Find all friends shared by 2 people D. Find all friends of X, that person Y does not have S. Find all friends that X and Y have, but do not share with each other Q. Quit Enter a valid person Alice Enter a valid person --> Fran These people are friends with Alice but not with Fran

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

1 2 3 Data Base Techniques

Authors: Dick Andersen

1st Edition

0880223464, 978-0880223461

Students also viewed these Databases questions

Question

2. How can competencies be used in employee development?

Answered: 1 week ago