Giter VIP home page Giter VIP logo

desmos-polynom's Introduction

Desmos-Polynom

In this project we will start an infrastructure for the next projects. This project and the following will used directed, weighted graph.

DGraph:

  • we describe a DGraph by hashtable that implements the nodes-Hashtable<Integer, node_data> Nodes, and hashtable inside hashtable the implements the edges Hashtable<node_data, Hashtable<Integer, edge_data>> Edge.
  • if the user will entered a node or data that is existent in the graph the previous node will deleted and the new one will replace it.
  • negative weight isn't vaild !
  • if the user will entered to the edge constructor 2 equals key the function won't do nothing

Graph_Algo :

  • we derscrib the a Graph_Algo by graph graph.
  • in the methods init from file and save we used serializable and deserializable.
  • the function "isconnected" check if the graph is connected by check for each node_data if it's get to the other nodes, if itsn't she will return false.
  • the function "shortestPathDist" check if there is a shortest path between the 2 node_data that we entered here by setweight and dijkstras function. setweight function set all the weight of the nodes to infinty and the tag to 0. than we pass all the nodes with dijkstras algorithm . the function will return the distance between them. if there aren't path between them she will return infinty(999999.8E) .
  • the function "shortestPath" check if there is a shortest path between the 2 node_data that we enetered there key as listed earlier, this function will return "null" if there isn't a path between the 2 noes that we gets. this function retrurn a list of node_data that is the shortest path.
  • the function "TSP" check if there is a short path between a list of keys of nodes that she gets by ask for the shortest path between 2 nodes each time, she will return the path that is the shortest by List <node_data> . if there isn't a path between 2 nodes she will return "null".

desmos-polynom's People

Contributors

darsam44 avatar shanishalel 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.