Giter Club home page Giter Club logo

data_communication_in_software_define_wireless_network's Introduction

data_communication_in_software_define_wireless_network's People

Contributors

85prakash avatar prakashupes avatar singhgaurav24 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

data_communication_in_software_define_wireless_network's Issues

Formula to generate random graph

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)

Print Wrong path

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

Structure of routing table

The current structure of the routing table is :

Current Node   |   Next Hope 
    0          |   1


etc

Provide new structure.

Update Readme

Work on Readme: link

Tasks:

  • Write abstract of project
  • Project description
  • Manual
  • Documentaion

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.