Giter Club home page Giter Club logo

commnetproj4's Introduction

Creator: Sarah Yaw Project Description: This is a simulator of a routing matrix that utilizes dijkstras algorithm to traverse and process the information given. It takes in an input file consisting of "node adjacentNode distance" such that the amount of space does not matter, the names of the routers do not matter (although alignment of the table might look a little weird if nore than 4 characters long), and that every node in the network is mentioned at least once. Run Instructions:

  1. Open up the terminal window.
  2. Type "cd "and then the file path to where the sye_rmatrix.java file is located and hit enter. Example: cd Desktop/school/s1/CommNet/Project4
  3. Type "javac sye_rmatrix.java" in the terminal and hit enter. This compiles the program and adds a file called sye_rmatrix.class to your folder.
  4. Type "java sye_rmatrix" and input the input and output file names then hit enter. If you do not include the input and output file names, defaults will be chosen. Example: java sye_rmatrix -i sye_input.txt -0 sye_output.txt Note: If running on Google Cloud the run command will be "nohup java sye_rmatrix -i input.txt -0 output.txt &"
  5. If you wish to open the output file, please wait until the program has finished. Conclusion: I estimate this took 30 hours to complete. I finished on my third, pretty solid day of working on it and only took breaks for food and rest. The most difficult part for me was figuring out how exactly to get dijkstra into code. I think the algorithm is a lot of fun to do by hand, but for some reason I was having trouble conceptualizing it into code. I ended up looking up help and commented the URL where i used it in the code. I'm happy to report that my program works! I made the input handle a variety of cases (node names being words or characters, nodes with similar names, a mixture of tabs and spaces separating the information of the input file), and it works well. I think this assignment worked out pretty good. I don't really have any changes I would make.

commnetproj4's People

Contributors

sarahyaw avatar

Watchers

 avatar

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.