Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

design and implement a data structure for social network

In this assignment you are required to design and implement a data structure for a social network (e.g., Facebook, LinkedIn, etc). You would also be required to implement an algorithm to show the connection, or path, between two people (e.g., Me → John → J ill → Ahmad → Y ou). Your program is required to have the following functionality: • It should be able to create an initial network of at least 10 people. (I should have the option to submit the names and your program should accept it). • It should display the entire network with the connections. • It should accept the names of two people as an argument and display the path between those two people. • It should be able to print the network at different hops with hop as an input, for e.g., a list of all the friends who are just one step away, two steps away and so on depending on the input value for the hop and the person in the network

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question