Question

LinkedOUT is a new social network. Every pair of LinkedOUT users is either acquainted or not...

LinkedOUT is a new social network. Every pair of LinkedOUT users is either acquainted or not acquainted with each other. Two users u1 and u2 are approachable if there exists a sequence of users starting with u1 and ending with u2 where each adjacent pair of users in the sequence are acquainted. New user Weff Jeiner has just signed up for LinkedOUT and is not acquainted with anyone. Given a list of all pairs of users that are acquainted on LinkedOUT, describe an efficient algorithm to determine the minimum number of users with whom Weff needs to become acquainted in order to be approachable by every user on LinkedOUT.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

The whole LinkedOut social network can be thought of an Undirected Graph.

Each user is denoted by a unique node in the graph. If two users u1 and u2 are acquainted then there exist edge between their representative nodes. If they are not acquainted then there is no edge between the nodes.

So LinkedOut can be uniquely represented as undirected graph G (E, V)

eg:

To find the minimum number of people to be acquainted initially such that we know the entire network is the same as

Find the minimum number of nodes such that from these nodes we can reach each node of the graph

Solution:

1. If the graph is fully connected then there exist path between any two nodes and knowing one node may be enough to get to any node in the graph

eg:

So knowing U4 is enough

2. If the graph is not fully connected then we can find its component and choose any one node from each connected component. Knowing those nodes is sufficient to reach each node

eg:

In the above graph, we have 3 connected components so knowing U4, U7, U10 from the respective component is enough to reach each node in the graph.

So just find connected component set and choose any node from each connected component

ALGORITHM :

To find connected component do Depth-first search or Breadth-first search

Pseudocode:

Add a comment
Know the answer?
Add Answer to:
LinkedOUT is a new social network. Every pair of LinkedOUT users is either acquainted or not...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 4. The global cconomy has three cell phone users for every fixed line user. Two in...

    4. The global cconomy has three cell phone users for every fixed line user. Two in e cell phone users lives in a developing nation and the growth rate is fastest in Africa In 2000, 1 African in 50 had a cell phone; in 2009, it was 14 in 50. Describe the changes in what, how, and for whom t n services the global economy produces. 5. Which of the entries in the list below are consumption goods and services...

  • Josefine is currently setting up a new computer network at The University of Algorithms. The netw...

    Algorithm implementation in Java please. Josefine is currently setting up a new computer network at The University of Algorithms. The network consists of N computers numbered from 0 to N -1 that are initially not connected at all She builds the network by adding network cables between pairs of computers one at a time. Two computers A and B are connected if there exists at least one series of cables that leads from computer A to computer B. As other...

  • 1. Why is growing the number of users such an important metric for social media companies?...

    1. Why is growing the number of users such an important metric for social media companies? How does Metcalfe’s Law relate to the profitability of social media companies? 2. Most social media companies rely on ad revenue as their main source of income. What are other ways that LinkedIn generates income? Why is it important for a company to have multiple ways of generating income? 3.Why do recruiters and job seekers like LinkedIn? Explain why an employer may dislike LinkedIn....

  • Case 14-6 Making Connections Social Konnections Inc. (SKI or the “Company”) is a global Internet company...

    Case 14-6 Making Connections Social Konnections Inc. (SKI or the “Company”) is a global Internet company that runs Social Konnections, a large social media networking Web site. SKI has experienced steep growth since its launch in 2005, and the Company went public in 2010. SKI currently has over 500 million active users who visit the site to connect with others, express themselves, and play games. Last year, substantially all of SKI’s revenue came from advertisers who market their products and...

  • An SDLC approach that completes portions of the system in small increments across iterations and ...

    An SDLC approach that completes portions of the system in small increments across iterations and integrates it into the whole is called Choose Choose walking skeleton Scrum team A(m) is a is a set of functionally related activities that combine to enable the develop process in a UP project In Scrum, a(n) s the client stakeholder for whom a system is being built. Refactoring scrum meeting The basic idea behind the development methodology is to respond to a current situation...

  • 12:11 7 くBack Week 06 Homework #5.docx CMPR100 Week 06 Homework #5 There are 2 tasks each worth ...

    12:11 7 くBack Week 06 Homework #5.docx CMPR100 Week 06 Homework #5 There are 2 tasks each worth 50% Task #1 Turn to page (EX 109) and complete Lab O1: Insurance Premium Worksheet, when completed submit only the excel file Task #2 In your Discovering Computers 2016 book, read chapter 02 and write a one-page essay on page 77 (Ethics &Issues 2-3). Use a separate word document for the the essay as week 06 Homework #5 Task "2. essay and...

  • I need your thoughts about this article. Pew Research recently reported that “roughly six-in-ten U.S. adults...

    I need your thoughts about this article. Pew Research recently reported that “roughly six-in-ten U.S. adults say they do not think it is possible to go through daily life without having data collected about them by companies or the government.” Andrew Hawn, my former colleague and now founder of MetaForesight, is a technology, media and content expert. Andrew has been collaborating with my analytic startup, Metametrix, and we recently spoke about privacy and its far-reaching implications. “We’re seeing a social...

  • A new version of the operating system is being planned for installation into your department’s production...

    A new version of the operating system is being planned for installation into your department’s production environment. What sort of testing would you recommend is done before your department goes live with the new version? Identify each type of testing and describe what is tested. Explain the rationale for performing each type of testing. [ your answer goes here ] Would the amount of testing and types of testing to be done be different if you were installing a security...

  • import java.util.Arrays; import java.util.Random; import java.util.Scanner; /** * TODO Write a summary of the role of...

    import java.util.Arrays; import java.util.Random; import java.util.Scanner; /** * TODO Write a summary of the role of this class in the * MasterMind program. * * @author TODO add your name here */ public class MasterMind { /** * Prompts the user for a value by displaying prompt. * Note: This method should not add a new line to the output of prompt. * * After prompting the user, the method will consume an entire * line of input while reading...

  • Founded in 2006 by Blake Mycoskie, TOMS Shoes was an American footwear company based in Santa...

    Founded in 2006 by Blake Mycoskie, TOMS Shoes was an American footwear company based in Santa Monica, California. Although TOMS Shoes was a for-profit business, its mission was more like that of a not-for-profit organization. The firm’s reason for existence was to donate to children in need one new pair of shoes for every pair of shoes sold. Blake Mycoskie referred to it as the company’s “One for One” business model. While vacationing in Argentina during 2006, Mycoskie befriended children...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT