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

  Write a program that uses a bar

Write a program that uses a bar chart to display the percent-ages of the overall grade represented by the project, quizzes the midterm exam and the final exam

  Write a program in python to draw a blue triangle

Write a program in Python to draw a blue triangle in a drawing window. Write a program in Python that moves the triangle in an animated movement. Write a program in Python to draw a simplified face.

  Write a non-fruitful function drawequitriangle

Write a non-fruitful function drawEquitriangle(someturtle, somesize) which calls drawPoly from the previous question to have its turtle draw a equilateral triangle

  Design an application in python

Design an application in Python- The application would generate a set of 100 integers in a random manner in the range of 50 to 150 including both the numbers in the range

  Which stores and manipulates times on a 24 hour clock.

Complete the class Time, which stores and manipulates times on a 24 hour clock. As specified below, write the required methods, including those needed for overloading operators. Exceptions messages should include the class and method names, and ident..

  Write a program in python to draw a simplified face

Write a program in Python to draw a blue triangle in a drawing window. Write a program in Python that moves the triangle in an animated movement. Write a program in Python to draw a simplified face.

  How many of each package should be made to minimize cost

Each Bronze package has 1 pen, each Silver package has 5 pens, and each Gold package has 2 pens. How many of each package should be made to minimize their cost? What is the minimum cost?

  Construct a model of a byte adder

Construct a model of a byte adder based on the bit adder and Specify an algorithm for integer addition based on binary operation - Create a program in Python which implement the model of the adder

  Output the starting position and length

X Strings: Input a string. Output the starting position and length of the first occurrence of the longest substring of capital Xs in that string. The first letter is in position 1.

  Write python code that will execute a list

Write python code that will execute a list of functions with supplied parameters and report the observed runtime for each function run. Assume that the input file has a list of strings like so:

  The interest rate per period

The interest rate per period. For example, if your loan's interest is 6.5% per year, and you are paying monthly, this would be 6.5%/12. If you are paying every two weeks, r would be 6.5%/26, because there are 26 two-week periods in a year.

  The block of statements below the line of stars

The block of statements below the line of stars is where I need help correcting. The true line that needs to be corrected is p = add((getX(k),getY(r))), it needs to give points of the path using the block of information. I have somthing which I kn..

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