Experince
-
๐ญ Iโm currently working on Spring Project
-
๐ซ How to reach me [email protected]
-
๐ Know about my experiences drive.google.com
Experince
๐ญ Iโm currently working on Spring Project
๐ซ How to reach me [email protected]
๐ Know about my experiences drive.google.com
Path info for going 3->8 is:
Structure of WSN in form of graph:
0 ->: ( 1, 1)( 2, 2)( 5, 5)( 6, 6)( 9, 9)
1 ->: ( 0, 1)( 2, 3)( 8, 9)( 9, 10)
2 ->: ( 0, 2)( 1, 3)( 3, 5)( 6, 8)( 7, 9)( 8, 10)( 9, 11)
3 ->: ( 2, 5)( 5, 8)( 6, 9)( 9, 12)
4 ->: ( 7, 11)( 8, 12)
5 ->: ( 0, 5)( 3, 8)( 7, 12)
6 ->: ( 0, 6)( 2, 8)( 3, 9)
7 ->: ( 2, 9)( 4, 11)( 5, 12)( 9, 16)
8 ->: ( 1, 9)( 2, 10)( 4, 12)
9 ->: ( 0, 9)( 1, 10)( 2, 11)( 3, 12)( 7, 16)
Enter Message :hgjh
Enter Source of message :3
Enter Desti of message :8
Total Cost Required For this Transmission:15
Status:
Packet reached at3
Packet Sent to2
Status:
Packet reached at2
Packet Sent to8
**Transmission Success***
Packet reached successfully
Path info: 2 ->3 ->8
But it should be 3->2->8
The current structure of the routing table is :
Current Node | Next Hope
0 | 1
etc
Give the formula to generate a graph so that vertex will not be repeated. Till now it has formula
int i=1;
while(i<(vertex*4)-vertex)
{
int u=(rand()%vertex);
int v=(rand()%vertex);
if(u!=v)
{
i++;
//cout<<u<<", "<<v<<endl;
int wt=(u+v)%20;
g.addEdge(u,v,wt);
}
}
which gives output like:
0 ->: ( 1, 1)( 2, 2)( 5, 5)( 6, 6)( 9, 9)
1 ->: ( 0, 1)( 2, 3)( 8, 9)( 9, 10)
2 ->: ( 0, 2)( 1, 3)( 3, 5)( 6, 8)( 7, 9)( 8, 10)( 9, 11)
3 ->: ( 2, 5)( 5, 8)( 6, 9)( 9, 12)
4 ->: ( 7, 11)( 8, 12)
5 ->: ( 0, 5)( 3, 8)( 7, 12)
6 ->: ( 0, 6)( 2, 8)( 3, 9)
7 ->: ( 2, 9)( 4, 11)( 5, 12)( 9, 16)
8 ->: ( 1, 9)( 2, 10)( 4, 12)
9 ->: ( 0, 9)( 1, 10)( 2, 11)( 3, 12)( 7, 16)
** (dest and wt)
It is important to have a manual of created functions that helps in better understanding.
Link of Shared doc:
https://docs.google.com/document/d/1ySp4aeQqzpLyn_1q4TFlcX5_H3jPC75-7d43Mm6HJI0/edit#
Kindly give comments after understanding code.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.