intersection and union calculation of neighborhood

View: New views
1 Messages — Rating Filter:   Alert me  

intersection and union calculation of neighborhood

by mgupta :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hi all,
 
         i need some help in coding the following calculation in a MANET environment................
 
suppose at time T0 node x has neighborhood set N0 and at time T1 it's neighborhood is N1. I would like to calculate the intersection and union of the two sets N0 and N1 in the interval T0 through T1 i.e. the sets
 
         intersection(N0, N1) and union(N0, N1)  .
 
i am new to ns-2. so it would be very helpful if anyone could give an example code to implement the above.
 
thank you
 
meeta