Git Product home page Git Product logo

astar-paris-subway-simplified's Introduction

astar-paris-subway-simplified

Adaptative Cognitive Agents' first assignment using A* algorithm

Paris Subway Simplified Problem

Use A* algorithm to solve the Paris Subway Simplified problem

input: User choose input from station 1 (E1) to station 14 (E14) output: Border evolution with cost from root until goal, solution with final cost and elapsed time (min) considering train speed as 30 Km/h

Subway Map

Example: Algorithm output from E2 to E14 (portuguese text)

Busca A* no mapa de Paris

    Percurso: E2 => E14

====================================

Fronteira de Busca      : [(24.7, 'E10'), (25.1, 'E3'), (36.6, 'E9'), (39.8, 'E1')]
Cidades Expandidas      : ['E2']  #1

Fronteira de Busca      : [(25.1, 'E3'), (36.6, 'E9'), (39.8, 'E1')]
Cidades Expandidas      : ['E2', 'E10']  #2

Fronteira de Busca      : [(30.200000000000003, 'E4'), (32.3, 'E13'), (36.6, 'E9'), (39.8, 'E1')]
Cidades Expandidas      : ['E2', 'E10', 'E3']  #3

Fronteira de Busca      : [(32.3, 'E13'), (36.6, 'E9'), (39.8, 'E1'), (45.7, 'E5'), (57.7, 'E8')]
Cidades Expandidas      : ['E2', 'E10', 'E3', 'E4']  #4

Fronteira de Busca      : [(32.3, 'E14'), (36.6, 'E9'), (39.8, 'E1'), (45.7, 'E5'), (57.7, 'E8')]
Cidades Expandidas      : ['E2', 'E10', 'E3', 'E4', 'E13']  #5

Fronteira de Busca      : [(36.6, 'E9'), (39.8, 'E1'), (45.7, 'E5'), (57.7, 'E8')]
Cidades Expandidas      : ['E2', 'E10', 'E3', 'E4', 'E13', 'E14']  #6


=======================================================

Menor caminho   : ['E2', 'E3', 'E13', 'E14']
Numero de cidade visitas            : 4
Distancia total percorrida          : 32.3Km
Tempo total da viagem           : 64.6min

astar-paris-subway-simplified's People

Contributors

vhsabino 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.