Design and implement a data structure for a social network

Assignment Help Python Programming
Reference no: EM131395681

Assignment in Python

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 ! Jill ! 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.
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.

Reference no: EM131395681

Questions Cloud

How do you determine who gets the shot : The problem is that it takes a considerable amount of time to produce the medication. Currently, there are 50,000 people infected (with more every day) but only 1,000 available doses of medication. How do you determine who gets the shot? What is t..
Create a library class. include vectors of books : Then check to make sure that the user owes no fees. If the user does, report an error. If not, create a Transaction, and place it in the vector of Transactions. Also write a function that will return a vector that contains the names of all Patrons..
Whether definitions are stipulative or lexical - politician : Determine whether the following definitions are stipulative, lexical, precising, theoretical, or persuasive.- "Politician" means a person of unquestioned honesty and integrity whom the people, in their collective wisdom, have duly elected to guide ..
Create a patron class for the library : Have functions that access this data, as well as a function to set the fee of the user. Have a helper function that returns a Boolean (bool) depending on whether or not the user owes a fee.
Design and implement a data structure for a 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.;
Whether definitions are stipulative or lexical - intoxicated : Determine whether the following definitions are stipulative, lexical, precising, theoretical, or persuasive.- "Intoxicated," for purposes of driving a car in many states, means having a blood-alcohol content of 0.08 percent (.0008) or greater.
Discuss essential features of qualitative inquiry : Reflect on the assigned readings and other sources related to the essential features of qualitative inquiry. In one or two pages, describe the purpose and assumptions of qualitative research methods
Discuss about the evidence-based practice : You need to have a strong PICO(T) question in order for the search to make sense. If you are struggling with this please don't hesitate to email me and send me your question with the PICO(T) breakdown so I can help you with this. Send it early in ..
Create functions for returning those data values : Create functions for checking a book in and out. Do simple validation of data entered into a Book; for example, accept ISBNs only of the form n-n-n-x where n is an integer and x is a digit or a letter. Store an ISBN as a string.

Reviews

Write a Review

Python Programming Questions & Answers

  Create a jes function

Create a JES function named level1() and include the relevant behaviours. Specifically, in this level, you only need to detect just one character from the text and the text is only in a single row.

  Improve the readability and structural design of the code

Improve the readability and structural design of the code by improving the function names, variables, and loops, as well as whitespace. Move functions close to related functions or blocks of code related to your organised code.

  Evaluate a user''s expression

Write a function that will evaluate a user's expression. It should call the getExpression function that you previously wrote to get the expression to evaluate from the user. You should evaluate the expression step-by-step.

  Programming exercise - routing of telephone

programming exercise - routing of telephone callsdescriptionsome telephone operators have submitted their price lists

  Generate a plot with a point for every charging station

After you have imported your data, you should use matplotlib to generate a plot with a point for every charging station. Note that the first column of data is longitude, i.e., the y-values, and the second column is latitude, i.e., the x-values

  Implement a battleship game in python

Assignment Summary: Battleship is a children's game where players guess (x,y) coordinate positions of the opposing player's ship pieces in a 10x10 grid. For the official Hasbro rules and additional game context, read http://www.hasbro.com/common/i..

  Write a program that generates two integers

Write a program that generates two integers under 100, show them on screen, and prompts the user to enter the sum of these two integers. The program then reports true if the answer is correct, false otherwise.

  Assignment work in python

Write a function interleave two pictures take the first 20 pixels from the first picture and then 20 pixels from the second picture and then the next 20 pixels from the first picture and then the next 20 pixels from the second picture and so on till ..

  Write a function that will take two arguments

Write a function that will take two arguments: a word to be searched for and a list of strings containing the grid and write code to read, in turn, each line of the file, remove the newline character and append the resulting string to a list of stri..

  Create functions to simplify your code

Create functions to simplify your code. If you find yourself writing the same code over and over again, it should probably be made into a function.

  Implements the binary tree as a class

Implements the binary tree above as a class. Divides into tokens, generating an iterator, with added support for variable names. Evaluates a postfix expression, given an iterator, with added support for variables.

  Write a program that acts like a simple calculator

You will write a program that acts like a simple calculator for binary numbers. You should read in a string of input that has the format: number operator number.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd