Question

In: Computer Science

1. For the next few questions, consider a network formed by 500 students in a dorm...

1. For the next few questions, consider a network formed by 500 students in a dorm as the nodes.

The edges in this network represent roommate relationships, i.e. two nodes are connected if they are currently roommates. In this form, the rooms are mostly double occupancy with a few triples and quads.

What is the mode (most frequent value) of the node degrees?

2. Consider the aforementioned roommate network. How many nodes are in the largest clique in the network?

3.Consider the aforementioned roommate network. Would an adjacency matrix of this graph contain mostly ones or zeros?

4.Consider the aforementioned roommate network. Among the following types of network representations, which would be more compact? Adjacency Matrix or Adjacency List?

5.Consider the aforementioned roommate network. Which of the following best describes the connectivity of this graph?

Not connected

Weakly connected

None of the above

Strongly connected

Solutions

Expert Solution

Ans-1: Mode is the most frequent value. In the quesiton, mode of nodes' degree is asked. A degree of a node x is the number of nodes that are adjacent to x. So, given network would contain degrees of nodes as below:

d1,d2,d3, d4, d5, d6, d7, d8, d9... = 1, 1, 2, 1, 1, 3, 1, 1, 1, 1...

Here di = '1' represents that node i is connected to only single node, '2' represent that it is connected to two othe nodes and '3' represents that it is connected to three other nodes.

As the question stats that most of the connections are doubly i.e. most of the nodes will have their degree as 1.

So mode will be 1.

Ans-2: Clique is a subset C of vertices(nodes) of an undirected graph such that the subgraph induced by C is fully connected. Largest clique will be the clique which has the largest number of vertices. Vertices are fully connected in a clique i.e. You can start from a vertex 'x' and can traverse all other vertices and then come back to 'x' itself.

Let say given network G = {v1, v2, v3, ..., v500}. As the question stats that there are quad occupancy i.e. there would be some groups of 4 vertices which are connected to each other only(4 students in a dorm 'D')

So number of nodes in Largest clique would be 4.

Ans-3: Adjacency matrix would contain most of zeros as the network is sparse. An entry in matrix show edge between them. The network contain 500 students i.e. matrix of 500x500 but most of the relationship is doubly, a few are tripple and quad.

Ans-4: As the network is sparse(less 1s and more 0s), An adjacency list would be more compact.

Ans-5: The aformentioned graph is not connected. This graph has connected components in the size of 2, 3 and 4.

A undirected graph(network) is connected if and only if there is a path between any two vertices i.e. you can start from a vertex x and traverse all other vertices and come back to x. This property should hold for all the vertices in the graph.


Related Solutions

For the next few questions, consider the market for a type of equipment used by crafting...
For the next few questions, consider the market for a type of equipment used by crafting enthusiasts to cut out die-cut shapes. It's a specialized market, so we'll just have to assume we have enough buyers and sellers to have our demand and supply curves be straight, smooth lines. The following information applies to the market before any tax is applied: Vertical intercept, demand curve: 80 Vertical intercept, supply curve: 50 P* = $60 Q* = 40 Later, a tax...
For questions the next few questions, please respond to the following questions with regard to the...
For questions the next few questions, please respond to the following questions with regard to the following scenario. Becky would like to sell her 2003 Ford Ranger. She advertised the truck at $3,800 in the local newspaper. She hopes to sell it for $3,500. The lowest price she will accept before selling is $3,300. If she doesn’t receive an offer of at least $3,300, she will donate her truck to charity for a tax deduction. Alec would like to buy...
# FOR THE NEXT FEW QUESTIONS YOU WILL WORK WITH THE TEN SEGMENTS DATA FROM PART...
# FOR THE NEXT FEW QUESTIONS YOU WILL WORK WITH THE TEN SEGMENTS DATA FROM PART 1 OF THE EXAM. THE DATA ARE LOCATED ON Canvas. 10) Write code to import TenSegments.csv into R as a data frame tensegments 11) Write code that creates a new column with the CLV for all segments using formula 1. Assume a discount rate of 10%. 12) Write a for loop that loops through all the CLV values and creates a new vector that...
Barrington Bears has developed the following sales forecasts for the next few months. January 500, February...
Barrington Bears has developed the following sales forecasts for the next few months. January 500, February 600, March 720, April 800 and May 770. BB has 80 bears on hand on Dec. 31. Normal ending inventory policy is to hold 20% of next month’s sales. Each bear needs .8 yards of fabric and two pounds of stuffing. Fabric is budgeted to cost $15 per yard and stuffing $4 per pound. Direct labor is paid $18 per hour. Each bear takes...
The next few questions relate to the discussion we had in class concerning a REITs financial...
The next few questions relate to the discussion we had in class concerning a REITs financial statements. For reference, please refer to the Excel file Problem Set 2, Tab FFO. So, getting on, let's make the following assumptions about a simplified REIT income statement. (All of the numbers are in millions). 250 in revenues; 100 in operating expenses; 50 in depreciation; 50 shares outstanding; 10 in Cap Expenditures; 40% tax rate. What is the REITs Adjusted Funds from Operations? 140...
Use the following information about the town of? Boone, NC to answer the next few questions....
Use the following information about the town of? Boone, NC to answer the next few questions. Suppose Boone has a total population of? 25,000 people. There are? 18,000 people who currently have a job. Another? 3,000 people do not have a job but are currently looking for one. Of those? 3,000 people, 500 of them recently quit and are looking for a job that suits their? skill-set, 1,000 of them were recently replaced by new machinery at the local ski?...
Use only the information in the following table for the next few questions.  The following statistics represent...
Use only the information in the following table for the next few questions.  The following statistics represent samples of copper wire submitted by two companies for tensile strength testing (psi). Statistic                                                      Company A          Company B Arithmetic Mean                                       500                         600 Median                                                       500                        500 Mode                                                           500                       300 Standard Deviation                                   40                          20 Mean Absolute Deviation                         32                        16 Quartile Deviation                                     25                         14 Range                                                       240                         120 Sample Size                                          100                           80 The middle 95% of the wires from Company A tested between _____ and _____ .  Record ONLY the lower limit as a whole number. The middle 50 percent of the wires of Company A tested...
Example 38: The following data should be used for the next few questions: Raw materials inventory,...
Example 38: The following data should be used for the next few questions: Raw materials inventory, January 1 $ 12,000 Raw materials inventory, December 31 16,000 Work in process, January 1 5,000 Work in process, December 31 8,000 Finished goods, January 1 17,000 Finished goods, December 31 12,000 Raw materials purchases 118,000 Direct labor 165,000 Factory utilities 64,000 Indirect labor 12,000 Factory depreciation 18,000 Selling and administrative expenses 220,000 How much is the cost of the direct materials used? a....
Scenario 1 (Use the network 221.153.17.0 for the following questions.) We need to subnet this network...
Scenario 1 (Use the network 221.153.17.0 for the following questions.) We need to subnet this network to support a minimum of 4 (four) networks. How many bits do we need to use from the last octet to support this? How many hosts would each network be able to support? What will the subnet mask be? Give the network, IP range, and broadcast address for the first 3 networks: Network 1:    _________________             Broadcast: _________________ Host IP Range:         _________________ to _________________...
Use the following for the next 4 questions: A nationwide survey of college students was conducted...
Use the following for the next 4 questions: A nationwide survey of college students was conducted and found that students spend two hours per class hour studying. A professor at your school wants to determine whether the time students spend at your school is significantly different from the two hours. A random sample of fifteen statistics students is carried out and the findings indicate an average of 2.1 hours with a standard deviation of 0.24 hours. Using the 0.10 level...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT