Q4- It's election season and two candidates, Candidate A and Candidate B, are in a hotly...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Q4- It's election season and two candidates, Candidate A and Candidate B, are in a hotly contested city council race in rainy Eastmoreland. You are a strategic advisor for Candidate A in charge of election forecasting and voter acquisition tactics. Based on careful modeling, you've created one possible version of the social graph of voters. Your graph has 10,000 nodes, where nodes are denoted by an integer ID between 0 and 9999. The edge lists of the graphs are provided in the homework bundle. Both graphs are undirected. Given the hyper-partisan political climate of Eastmoreland, most voters have already made up their minds: 40% know they will vote for A, 40% know they will vote for B, and the remaining 20% are undecided. Each voter's support is determined by the last digit of their node id. If the last digit is 0-3, the node supports A. If the last digit is 4-7, the node supports B. And if the last digit is 8 or 9, the node is undecided. The undecided voters will go through a 10-day decision period where they choose a candidate each day based on the majority of their friends. The decision period works as follows: 1. The graphs are initialized with every voter's initial state (A, B, or undecided). 2. In each iteration, every undecided voter decides on a candidate. Voters are processed in increasing order of node ID. For every undecided voter, if the majority of their friends support A, they now support A. If the majority of their friends support B, they now support B. "Majority" for A means that strictly more of their friends support A than the number of their friends supporting B, and vice versa for B (ignoring undecided friends). 3. If a voter has an equal number of friends supporting A and B, we assign support for A or B in alternating fashion, starting with A. In other words, as the voters are being processed in increasing order of node ID, the first tie leads to support for A, the second tie leads to support for B, the third for A, the fourth for B, and so on. This alternating assignment happens at a global level for the whole network, across all rounds. (Keep a single global variable that keeps track of whether the current alternating vote is A or B, and initialize it to A in the first round. Then as you iterate over nodes in order of increasing ID, whenever you assign a vote using this alternating variable, change its value afterwards.) 4. When processing the updates, use the values from the current iteration. For example, when updating the votes for node 10, you should use the updated votes for nodes 0-9 from the current iteration, and nodes 11 and onwards from the previous iteration. 5. There are 10 iterations of the process described above. 6. On the 11th day, it's election day, and the votes are counted. Note that only the undecided voters go through the decision process. The decision process does not change the loyalties of those yoters who have already made up their minds. Voters who are initially undecided may change their mind on each iteration of this process. You assign the initial vote configurations to the social graph of voters you have created. After performing 10 iterations of the voting process, you find that your candidate, candidate A wins. Can you describe some properties of your social graph that enable A to achieve this outcome. Q4- It's election season and two candidates, Candidate A and Candidate B, are in a hotly contested city council race in rainy Eastmoreland. You are a strategic advisor for Candidate A in charge of election forecasting and voter acquisition tactics. Based on careful modeling, you've created one possible version of the social graph of voters. Your graph has 10,000 nodes, where nodes are denoted by an integer ID between 0 and 9999. The edge lists of the graphs are provided in the homework bundle. Both graphs are undirected. Given the hyper-partisan political climate of Eastmoreland, most voters have already made up their minds: 40% know they will vote for A, 40% know they will vote for B, and the remaining 20% are undecided. Each voter's support is determined by the last digit of their node id. If the last digit is 0-3, the node supports A. If the last digit is 4-7, the node supports B. And if the last digit is 8 or 9, the node is undecided. The undecided voters will go through a 10-day decision period where they choose a candidate each day based on the majority of their friends. The decision period works as follows: 1. The graphs are initialized with every voter's initial state (A, B, or undecided). 2. In each iteration, every undecided voter decides on a candidate. Voters are processed in increasing order of node ID. For every undecided voter, if the majority of their friends support A, they now support A. If the majority of their friends support B, they now support B. "Majority" for A means that strictly more of their friends support A than the number of their friends supporting B, and vice versa for B (ignoring undecided friends). 3. If a voter has an equal number of friends supporting A and B, we assign support for A or B in alternating fashion, starting with A. In other words, as the voters are being processed in increasing order of node ID, the first tie leads to support for A, the second tie leads to support for B, the third for A, the fourth for B, and so on. This alternating assignment happens at a global level for the whole network, across all rounds. (Keep a single global variable that keeps track of whether the current alternating vote is A or B, and initialize it to A in the first round. Then as you iterate over nodes in order of increasing ID, whenever you assign a vote using this alternating variable, change its value afterwards.) 4. When processing the updates, use the values from the current iteration. For example, when updating the votes for node 10, you should use the updated votes for nodes 0-9 from the current iteration, and nodes 11 and onwards from the previous iteration. 5. There are 10 iterations of the process described above. 6. On the 11th day, it's election day, and the votes are counted. Note that only the undecided voters go through the decision process. The decision process does not change the loyalties of those yoters who have already made up their minds. Voters who are initially undecided may change their mind on each iteration of this process. You assign the initial vote configurations to the social graph of voters you have created. After performing 10 iterations of the voting process, you find that your candidate, candidate A wins. Can you describe some properties of your social graph that enable A to achieve this outcome.
Expert Answer:
Posted Date:
Students also viewed these computer network questions
-
Jasmine and their spouse are considering purchasing a larger house for their growing family.Below is a summary of their current combined income and expenses. Combined Salary (Gross Annually) $125,000...
-
Arene C has the composition 90.6% carbon and 9.4% hydrogen. Its mass and 1H NMR spectra are shown below. a. b. a. Calculate the empirical formula of C. b. From the mass spectrum, find the molecular...
-
This is for Delta Airlines 2019/2020. I really need help.
-
Listed below are the genders of the younger winner in the categories of Best Actor and Best Actress for recent and consecutive years. Do the genders of the younger winners appear to occur randomly? F...
-
The Hilton Skating Club used straight-line depreciation for a used Zamboni* that cost $43,500, under the assumption it would have a four-year life and a $5,000 trade-in value. After two years, the...
-
What is the median level of sedation?
-
\(\{4,450,864,339,889,157,339\}\) Find the least common multiple of the given set of numbers.
-
Kegglers Supply is a merchandiser of three different products. The companys February 28 inventories are footwear, 20,000 units; sports equipment, 80,000 units; and apparel, 50,000 units. Management...
-
Angelina has a taxable income of $130,000 for the current year,including $120,000 of employment income. She is not married andlives alone. Angelina??s employer withheld CPP and EI premiums of$3,34 1...
-
Given data set SampledSeeds.csv sampled from the dataset seeds Data Set and the attribute information can be found at here (https://archive.ics.uci.edu/ml/datasets/seeds). (a) Use KNN to clssify the...
-
Compute the forced response of a steady-state displacement amplitude and phase for spring- mass-damper system with the following values: c = 200 kg/s, k = 2000 N/m, m= 100 kg, subject to a harmonic...
-
Consider the state-space model x+
-
X y Suppose w = - + where y F Z x = e, y = 2 + sin(2t), and z = 2 + cos(3t). dw as a function of x, y, z, and f. Do not rewrite x, y, and z in terms of t, and do not rewrite e as x. dt 1. Use the...
-
Think about charging the capacitor up using the circuit to the right. Before you close the switch, there is no charge on the capacitor. a) Make a graph of how you would expect the voltage difference...
-
Vortex shedding from wind velocity in slender lightweight structures, such as flagpoles, can cause oscillations (bending vibrations) to occur mimicking loading cycles and accelerating failure due to...
-
General Food company's latest annual dividend of $4.60 was paid yesterday. You believe the growth rate will be between 4.5% and 5% forever. Your required rate of return is 11%. If the stock is...
-
3.16. For a system with non-identical service rates (see Sect. 3.5) and a limit of N jobs in the system (Eq. 3.13), obtain an expression for the mean service time per job, E[Ts], as a function of the...
-
4. Jean-Franois, a French wine exporter, sues Bob Joe, a Texas importer, claiming that Bob Joe owes him $2 million for wine. Jean-Franois takes the witness stand to describe how the contract was...
-
5. The Kyrgyz Republic is one of the new nations that broke away from the old Soviet Union. In September 1994, the government of Kyrgyzstan made two independent announcements: (1) it was abolishing...
-
6. The Instituto de Auxilios y Viviendas is a government agency of the Dominican Republic. Dr. Marion Fernandez, the general administrator of the Instituto and Secretary of the Republic, sought a...
Study smarter with the SolutionInn App