Coder Social home page Coder Social logo

hmk5-adm's Introduction

Hmk5-ADM

Last hmk for Adm course Group 23: Leonardo Placidi, Eleftheria Tetoula Tsonga, Nicolò Petrungaro.

This repository is composed of:

  1. this README and a file gitignore.
  2. main.ipynb where you find all the procedures to solve the hmk.
  3. main.py that is the same as above but in a python fomrat, easy ot open from an editor and run it.
  1. for functionality1 we just performed a bfs that return the graph with the minimum distances from the root.
  2. for functionality2 we understood that we have to find a graph, smartest possible that can connect the nodes that are given(so can meet other nodes and would fail only if the nodes are in different connected components of the graph), and we used a variation, through dijsktra of the Prim's algorithm of mst.
  3. for functionality3 we used dijsktra in order to every couple of nodes in the path
  4. for functionality4 we controlled all permutations of paths and choosed the minimum, and when the nodes were more than 7 we used a randomization to find samples and provide a local minimum, for sure it will give a good path.

All those functionalities and plottings are in the Graph Class and use oop programming and functional programming, and are done in relation to the kind of distances selected by the user.
Calling G.GraphandPlot() the user will be able to perform any task requested in the homework obtaining a fantastic tangible graph!

hmk5-adm's People

Contributors

eleftheriattl avatar gruntrexpewrus avatar ilmeccanico avatar

Watchers

 avatar

Forkers

eleftheriattl

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.