Giter Site home page Giter Site logo

src's Introduction

=== Project4 READEME ===
Author:Suizhu Shengqi
E-mail:[email protected]
Class:CSC172
Lab Session:MW:6:15-7:30

=== About Project4===
The project is using basic graphs to draw out the monroe county.
First I put the data in the prepPanel.
I used hashmap to store the input, and then used kruskal's algorithm to get the
Minimum spanning tree(MST).
Then I pass in the two hashmaps and the MST, did the graphics thing, added the 
background, imported the dijkstra algorithm.
For the dijkstra's algorithm and kruskal's algorithm I made class for them,
for the kruska method, created a helper class "disjset"

Used java's priority queue, arraylist and hash map to achieve the algorithm.

=== How to Run==
 in cmd type in: javac Project4.java then
	type in: java Project4

	to enter own routes, do it in the text field, or put route data in infile.txt
	
=== Files in Project4 ===
Project4.java			Main Class
PrepPanel.java			Preparation class
GraphClass.java			Graphing class
Dijkstra.java			Helper class for finding the shortest path
Kruskal.java			Helper class for finding the MST
DisjSets.java			Helper class for Kruskal.java
Vertex.java				Intersection class
Road.java				Road class
map.jpg					Background
infile.txt				File input
monroe-county.tab		Data needed for making the graph
README.txt				this file

=== Specia Thanks ===
Google Map				Providing the background
Wikipedia				Pseudocode for the dijkstra algorithm

src's People

Contributors

baconremovalunit avatar

Watchers

James Cloos avatar  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.