Question

20 points] Collaborative Problem: You are helping some security analysts monitor a collection of networked computers, tracking the spread of an online virus. There are n computers in the system, labeled C1,C2 Cn, and as input, you are given a collection of trace data indicating the times at which pairs of computers communicated. Thus the data is a sequence of ordered triples (Ci, Cj, tk) Such a triple indicates that Ci and C, communicated at time tk. Assume there are m triples total. Now let us assume that the triples are presented to you in sorted order of time. For purposes of simplicity, we will assume that each pair of computers communicates at most once during the inter val you are observing. The security analysts you are working with would like to be able to answer questions of the following form: If the virus was inserted into computer Ca at time r, could it pos- sibly have infected computer Cb by time y? The mechanics of infection are simple if an infected computer Ci communicates with an uninfected computer Cj at time t (in other words, if one of the triples (Ci, Cj,tk) or (Cj,Ci,tk) appears in the trace data), then computer C, becomes infected as well, starting at time tk. Infection can thus spread from one machine to another across a sequence of communications, provided that no step in this sequence involves a move backwards in time. Thus, for example, if Ci is infected by time tk and the trace data contains triples (Ci, Cj, tk) and (Cj, Ct), where tkS tr, then C will become infected via Cj. (Note that it is okay for tk to be equal to tr. This would mean that C, had open connections to both Ci and C at the same time, so a virus could move from Ci to Cq) For example, suppose 4, the trace data consists of the triples (C1,C2,4), (C2,C4,8) (Cs, C4,8) (C1, C4, 12) and the virus was inserted into computer Ci at time 2. Then Cs would be infected at time 8 by a sequence of three steps first C2 becomes infected at time 4, then C4 gets the virus from C2 at time 8, and then Cs gets the virus from C4 at time 8. On the other hand, if the trace data were (C2, Cs, 8) (Ci, C4,12) (C1, C2, 14) and again the virus was inserted into computer Ci at time 2, then Cs would not become infected during the period of observation. Observe, however, that although C2 becomes infected at time 14, Cs only communicates with C2 before C2 becomes infected. There is no sequence of communications moving forward in time by which the virus could get from C1 to Cs in this second example. Design an algorithm that answers questions of this type: given a collection of trace data, the algorithm should decide whether a virus introduced at computer Ca at time could have infected computer Cb by time y. Prove that the algorithm runs in time O(m). Also, prove the correctness of your algorithm.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

TrPJt: 2.dimenional arvas that have triple op Aace lato 名4(120-to length) (data) te viu st. Plag bs

Add a comment
Know the answer?
Add Answer to:
20 points] Collaborative Problem: You are helping some security analysts monitor a collection of networked computers,...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Write a C program for: One technique for dealing with deadlock is called “detect and recover.” In...

    Write a C program for: One technique for dealing with deadlock is called “detect and recover.” In this scheme, some procedure is used to identify when a deadlock occurs, and then another procedure is used to deal with the blocked processes. One technique to identify a deadlock is to maintain a resource graph that identifies all processes, all resources, and the relationships between them (that is, which processes exclusively own which resources, and which processes are blocked waiting for which...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT