Write a computer program in the programming language of your choice that generates a configuration model...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a computer program in the programming language of your choice that generates a configuration model network with nodes of degree 1 and 3 only and then calculates the size of the largest component. a) Use your program to calculate the size of largest component for a network of n = 10 000 nodes with p₁ = 0.6 and p3 = 0.4 (and pk = 0 for all other values of k). b) Modify your program to calculate the size of the largest component for values of P₁ from 0 to 1 in steps of 0.01, then make a graph of the results as a function of p1. Hence estimate the value of p₁ at the phase transition where the giant component disappears. Write a computer program in the programming language of your choice that generates a configuration model network with nodes of degree 1 and 3 only and then calculates the size of the largest component. a) Use your program to calculate the size of largest component for a network of n = 10 000 nodes with p₁ = 0.6 and p3 = 0.4 (and pk = 0 for all other values of k). b) Modify your program to calculate the size of the largest component for values of P₁ from 0 to 1 in steps of 0.01, then make a graph of the results as a function of p1. Hence estimate the value of p₁ at the phase transition where the giant component disappears.
Expert Answer:
Answer rating: 100% (QA)
Python using the NetworkX library to generate a configuration model network with nodes of degree 1 a... View the full answer
Related Book For
Numerical Methods With Chemical Engineering Applications
ISBN: 9781107135116
1st Edition
Authors: Kevin D. Dorfman, Prodromos Daoutidis
Posted Date:
Students also viewed these programming questions
-
Write a MATLAB code/script which includes a row vector named your first name constructed with square brackets consisting of the digits in your student number in order and calculates the sum of the...
-
Ratio of weight of A and B is 7/2 If the weight of A were 2 kg less, the ratio would have been 7/6. What is the present weight of 'A'? 1. 3 2. 4 3. 5 4. 1 5. 2
-
Peter works at G&L Industries Pty Ltd as an internal auditor. His responsibilities are to ensure each store adhered to accounting processes and follows internal control procedures. As such he...
-
The Wall Street Journal Corporate Perceptions Study 2011 surveyed readers and asked how each rated the quality of management and the reputation of the company for over 250 worldwide corporations....
-
Egyptian Spa produces two different spa products: Relax and Refresh. The company uses three operations to manufacture the products: mixing, blending, and packaging. Because of the materials used,...
-
Southern Amusements Corporation had the following stockholders' equity on November 30: On December 30, Southern purchased 200 shares of treasury stock at $15 per share. Requirements 1. Journalize the...
-
Cash larceny involves the fraudulent stealing of an employer's cash. These schemes often target the company's bank deposits. The fraudster steals the money after the deposit has been prepared, but...
-
The fixed asset acquisition procedures for Turner Brothers, Inc., are as follows: Supervisors in the user departments determine their fixed asset needs and submit bids or orders directly to...
-
Tree Row Bank has assets of $ 1 5 0 million, liabilities of $ 1 3 5 million, and equity of $ 1 5 million. The asset duration is six years and the duration of the liabilities is four years. Market...
-
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 30 37 38 39 40 41 42 43 44 45 40 47 48 49 50 51 52 53 54 55 1 In the last 10 years, Victoria has worked for Alberta...
-
Two major cell phone providers want to investigate whether there is a difference in the proportion of times a call is successful. During a one-week period, 570 calls were placed at random times...
-
Calculate the solution to the following mean-reverting rnsteinUhlenbeck SDE: \[d X_{t}=\mu X_{t} d t+\sigma d B_{t}\] with \(X_{0}=x\).
-
If we have a model for the short rate \(r(t)\), show that (a) the zero coupon bond price can be calculated as: \[P(t, s)=\mathbf{E}_{t}\left[e^{\int_{t}^{s} r(u) d u}...
-
Suppose the total volatility of returns on a stock is 25%. A linear model with two risk factors indicates that the stock has betas of 0.8 and 1.2 on the two risk factors. The factors have volatility...
-
Consider a European Call option with strike \(K\) and time to expiration \(T\). Denote the price of the call for \(C(S, T)\) and let \(B(T)\) the price of one unit of a zero coupon bond maturing at...
-
Suppose \(V=\Lambda_{1}(t) \Lambda_{2}(S)\). Find the most general solution of the Black-Scholes equation.
-
Define organizational communication as a key element of organizational climate What is organizational climate and how will this view affect the way you write your messages inside a company? Drenth et...
-
How can a promoter avoid personal liability for pre-incorporation contracts?
-
Consider two particles that are interacting via a LennardJones potential, The dynamic equation for the distance r between these particles is given by the force balance (in dimensionless form), where...
-
Use Gauss elimination with partial pivoting to find the solution to 4 2 22 1 13 0 022 3 -1 3 2 3 W X y N -2 [B] 2 -1
-
Answer the following questions about this program: (a) What mathematical problem is solved by this program? (b) What numerical method is used to solve the problem? (c) What does the variable n...
-
In its first month of operations (May of 2019), Allred Company's Department 1 incurred charges of \($72,000\) for direct materials (9,000 units), \($38,700\) for direct labor, and \($13,500\) for...
-
The following data (and annotations) for March 2019 are for the work-in-process account of the first of Olympus Company's four departments used in manufacturing its only product. Assuming that...
-
Find a spanning tree of the graph below using the undirected spanning tree algorithm. Work by hand on this problem rather than using Mathematica. Assume that the order of the edges is:...
Study smarter with the SolutionInn App