Question: You said: ( Computer project ) Twenty computers are connected in a network. One computer becomes infected with a virus. Every day, this virus spreads
You said:
Computer project Twenty computers are connected in a network. One computer becomes infected with a virus. Every day, this virus spreads from any infected computer to any uninfected computer with probability Also, every day, a computer technician takes infected computers at random or all infected computers, if their number is less than and removes the virus from them. Estimate: a the expected time it takes to remove the virus from the whole network; b the probability that each computer gets infected at least once; c the expected number of computers that get infected. These are some advice on how to solve this: Decide on N large number of simulations Loop the simulation N times, collect data, then average. A single simulation is also a whileloop there can unknown # of days: from day when the virus is introduced until the day when the network is clean. Network: C C C all conected to each other. In the beginning of a simulation, ie before day infect one computer, say C or a random one In a single day: aMorning Virus spreads Currently infected: Currently clean: For each "infectedclean in the morning" pair connection its a Bernoulli trial with p for the virus to spread along this connection. bAfternoon: The technician shows up and tries to clean. If currently infected is less than or equal to : all get cleaned, finish the simulation. If currently infected more than : randomly chose of them to clean. what do we need to count in a single simulation? a Number of days c For each computer, a flag indicating if it has been infectedhas had the virus on it at least once during the simulation, In the end: # of computers for which this flag is true. b Event: # of computers infectedfrom part c give code.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
