thank you Tommaso,
I will try to create a second group.
In my work, a vehicle Vi sends the alarm message received from its
predecessor to its successor. and to simplify the task, I supposed
that the predecessor of Vi is V(i-1) and the successor is V(i+1), I
think now this hypothesis should be deleted to work with clusters. I
should work by a function that return the nearest neighbor.
another thing, in my work, each new injected vehicle Vi on road sends
a hello message in broadcast, and I fix one leader (V0), when the
leader receives the hello message it send an ackhello to Vi, so the
vehicle Vi registers the address as the leader address and it's used
after for communication.
I you have an idea to enhance this algorithm to support clustering, It
will be very helpfull for me.
Amel,
2014-04-28 21:32 UTC+01:00, Tommaso Pecorella <
tomm...@gmail.com>:
> Hi,
>
> it's easier than I thought then. Much easier. Because you already have your
>
> clustering algorithm, you just didn't realize you do.
>
> Let me explain (and correct me if I'm wrong).
>
> You have a system to associate two nodes. One will become a group leader,
> the other will be part of the group.
> This is the very beginning of a cluster. It's the 0th building block.
>
> Now, what happens when you have one more node approaching the 2-nodes
> cluster ?
> If it can join the cluster, either by talking to the cluster leader or to
> the other node, then you have a 3node cluster.
>
> By induction, your cluster can grow.
>
> About the cluster leaving, that's another point, but I guess nodes will
> leave the cluster if they're too far away and that a node knows when it's
> leaving a cluster.
>
> Anyway, if you can do this for ONE cluster, then you have done it for any
> number of clusters. Simply let the simulation evolve. It's "natural" that
> if you have 4 nodes and they're in two different areas (i.e., 2 close to
> each other but the couples far away), then two clusters will be made.
>
> The problem may be in cluster *selection*. I.e., what happens when a node
> approaches an area where two clusters are present. However, is this
> possible ?
> Yes. Consider two groups of nodes moving as two separate flocks. They
> could, at one point, collide and become a single group.
>
> In order to solve this problem, you should break the problem in
> sub-problems. In this case the "base block" is: a node is already in a
> cluster. It "senses" other nodes around it, belonging to a different
> cluster. Should it leave its current cluster and join the other one ?
> This is a distributed cluster resolution, and depending on how the decision
>
> is made, clusters may become one or not.
> An alternative is to let the two cluster heads to decide who's going to
> survive. This is a form of "centralized" decision. The loosing cluster can
> simply disband, the nodes will "naturally" join the other one.
>
> Mind, there are infinite possible optimizations, but this is the basic, and
>
> if you have already a 2-nodes cluster creation, you already have 99% of the
>
> algorithm done.
>
> So... don't search. You already did it. Just try, you'll find out that it
> works.
>
> Cheers,
>
> T.
>
>
> On Monday, April 28, 2014 12:30:55 PM UTC+2, amel wrote:
>>
>>
>>
>>
>> 2014-04-28 10:53 GMT+01:00 Tommaso Pecorella
>> <
tomm...@gmail.com<javascript:>
>> >:
>>
>>> Hi Amel,
>>>
>>> language barriers and translators, that's why.
>>>
>>> If you "need to define and implement a "simple" clustering algorithm for
>>>
>>> VANET" as part of your thesis work, then using one from someone else
>>> would
>>> not be acceptable (at least in my University).
>>> If you need to *use* a simple clustering algorithm, then asking for one
>>> is totally acceptable.
>>> of course, I'm totaly agree with you
>>> Words, they may be simply ink or bytes, but they're heavier than
>>> mountains.
>>>
>>> Anyway, enough hair splitting. Clustering.
>>>
>>> Clustering may be the result of:
>>>
>>> 1. L2 - a node joining a WiFi AP is part of a cluster. The Ap
>>> selection is clustering
>>> 2. L3 - joining a subnet is clustering (up to some extent)
>>> 3. L7 - same as L3
>>> 4. etc.
>>>
>>> Basically, clustering can't be modeled in a generic way, because it
>>> depends on the type of technology and the clustering type. Moreover,
>>> clustering may be the *result* of trust algorithms. You join a cluster
>>> email to
ns-3-users+...@googlegroups.com <javascript:>.
>>> To post to this group, send email to
>>>
ns-3-...@googlegroups.com<javascript:>
>>> .