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....
-
Carrie owns a business that she operates as a sole proprietorship. The business had a net profit of $25,000 in 2016. This is Carrie's only earned income. a. How much must she pay for self-employment...
-
Determine whether each of the functions f (a) = a div d and g(a) = a mod d, where d is a fixed positive integer, from the set of integers to the set of integers, is one-to-one, and determine whether...
-
Antonio Galvan, an attorney, uses the direct write-off method to account for uncollectible receivables. On August 31, Galvans accounts receivable were $8,000. During September, he earned service...
-
The following balance sheet and income statement data were taken from the records of L. L. Beeno for the year ended December 31, 2015: Prepare the operating section of the statement of cash flows,...
-
The three strikes law requires a person who is convicted of a felony offense and who has one or two other previous serious felony convictions to serve a mandatory life sentence in prison, with or...
-
Tom Scott is the owner, president, and primary salesperson for Scott Manufacturing. Because of this, the companys profits are driven by the amount of work Tom does. If he works 40 hours each week,...
-
8. Select the lightest W shape that will act as a column 12 m long with fixed ends and support an axial load of 700 kN with a factor of safety of 2. Assume that the proportional limit is 200 MPa and...
-
A European call has strike $14 and underlying asset described by CRR notation S = 16, u = 1.02, d=0.97. For a ten-step model, what is the expiry value of this call at node (10,7)?
-
A liquid -vapor mixture of R-12 changes from an initial state defined by T1=200 K and x=20 percent to a final state defined by T2=360 K and V2 = V1. Locate the initial and final state on a T - V...
-
Use factoring by grouping to solve the following equation. x3+2x + 3x+6=0 Enter the real solutions only, separated by commas if necessary. Do not type "x" in your answer. Provide your answer below:
-
a. Review the derivation of the three jump conditions for 1-dimensional "bore" (=water surface discontinuity) based on the "vertically averaged" conservation law b. Using the jump conditions based...
-
A 0.950 kgkg block is attached to a spring with spring constant 15.0 N/mN/m . While the block is sitting at rest, a student hits it with a hammer and almost instantaneously gives it a speed of 36.0...
-
Prepare the journal entry to record Jevonte Company's issuance of 36,000 shares of its common stock assuming the shares have a: a. $4 par value and sell for $14 cash per share. b. $4 stated value and...
-
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...
-
The peak amplitude of a single-degree-of-freedom system, under a harmonic excitation, is observed to be \(5 \mathrm{~mm}\). If the undamped natural frequency of the system is \(5 \mathrm{~Hz}\), and...
-
A torsional system consists of a disc of mass moment of inertia \(J_{0}=10 \mathrm{~kg}-\mathrm{m}^{2}\), a torsional damper of damping constant \(c_{t}=300 \mathrm{~N}-\mathrm{m}-\mathrm{s} /...
-
The landing gear of an airplane can be idealized as the spring-mass-damper system shown in Fig. 3.52 [3.16]. If the runway surface is described \(y(t)=y_{0} \cos \omega t\), determine the values of...
Study smarter with the SolutionInn App