This demo shows a sensor network where
each node rebroadcasts the first message
it receives. An "initiator" component
broadcasts a message, and the model keeps
track of the number of nodes that receive
the message after one hop, after two
hops, etc., and plots a histogram.
If you increase the range above the
"sureRange", then the probability of
delivery drops according to the formula
shown, which keeps the expected number
of recipients roughly constant. It was
shown by Franceschetti et al. (2003)
that on average, fewer hops are
needed when the range increases.
When you run the demo, the initiator
will broadcast a message. A node turns
red if it receives the message in one hop;
it turns green if it receives the message in
more than one hop. It stays white if
it never receives the message.
SmallWorldMultiInstanceComposite is available in two formats: