subject

You’re some security analysts monitor a collection of networked computers, tracking the spread of an online virus. there are n computers in the system, call them c1,. you are given a trace indicating the times at which pairs of computers communicated. the trace consists of m triples (ci ,cj ,tk) that indicate that ci and cj communicated at time tk. at this time, a virus could have spread from ci to cj , or from cj to ci . we assume that the trace holds the triples sorted in order by time. for simplicity, we assume that each pair of computers communicates at most once over the time of the trace. also, it is possible to have pairs (cs ,cj ,tk) and (ct ,cj ,tk); this would indicate that cj opened connections to both cs and ct at time tk, allowing a virus to spread in any way among the 3 machines. there’s nothing special about 3 here – there might be 4 or 10 or however many connections open at the same time, allowing a virus to spread in any way among all of them. we would like to answer questions of the following form: if a virus was introduced at ci at time x, could it have spread to cj at time y? that is, is there a sequence of communications that could have led from the virus moving from ci to cj? design an algorithm that, given as input a collection of (sorted) trace data and a virus query, gives a yes/no answer for the query. the algorithm should run in time o(m+n).

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:10
Which are not examples of chronic or persistent stress? moving
Answers: 1
question
Computers and Technology, 23.06.2019 19:40
Use a physical stopwatch to record the length of time it takes to run the program. calculate the difference obtained by calls to the method system.currenttimemillis() just before the start of the algorithm and just after the end of the algorithm. calculate the difference obtained by calls to the method system.currenttimemillis() at the start of the program and at the end of the program so that the elapsed time includes the display of the result. use the value returned by the method system.currenttimemillis() just after the end of the algorithm as the elapsed time.
Answers: 3
question
Computers and Technology, 24.06.2019 10:30
You're programming an infinite loop. what must you include in your code to prevent crashes? in roblox
Answers: 2
question
Computers and Technology, 24.06.2019 12:50
When is it most apprpriate for a development team to change the definition of done
Answers: 1
You know the right answer?
You’re some security analysts monitor a collection of networked computers, tracking the spread of a...
Questions
question
Mathematics, 04.06.2020 13:28
question
Mathematics, 04.06.2020 13:28
Questions on the website: 13722363