I need a program writen in NS-2 to simulate an Ad Hoc network with 30 mobile nodes "moving randomly" and implement the Cluster-based Methods broadcasting and the Cluster-Decomposition-based Method which is an enhancement to the cluster based method. The result file should include the reachability of each technique as well as packet redundancy. In few words, a program that randomly select a source node to broadcast a packet using the techniques stated above and compare between them in terms of reachability and packet redundancy. In addition of putting comments through out the code in order to be well understood.
I have IEEE papers which describe both techniques if that would be useful