Coder Social home page Coder Social logo

k23hp / romaniaproblemai Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jakederkowski96/romaniaproblemai

0.0 0.0 0.0 272 KB

using BFS, DFS, and IDS algorithms to find the shortest distance, from any city in Romania to Bucharest

Shell 0.40% Python 99.60%

romaniaproblemai's Introduction

The Romania Problem

Use search algorithms commonly found in Artificial Intelligence to determine the shortest path between a city that is picked by the user.

Contents

Map of Romania

Romania The map that was given for the assignment

About

Map data has been read into the main program from a text file which consists of the relations between the cities and their respective cost per relation. For this assignment we were to say that all edges costs are the same; 1. As this data is read it is stored in a dictionary, that behaves like an adjacency list; therefore, each key is a parent node and the keys are its children allowing for searches and traversals to be done efficiently.

Algorithms

List of the algorithms used in this program

  • Breadth-First Search (BFS)
  • Depth-First Search (DFS)
  • Iterative-Deepening Search (IDS)

Setup

Use the Command to run normally:

$ python3 main.py

Only set up necessary is if you want the program to spit out all of the possible results by running a script that feeds it all of the possible input.

Quick Run

make the 'Run.sh' executable by:

  • $ chmod +x Run.sh

then run it:

  • $ ./Run.sh
Other

I used this assignment to become more familiar with search algorithms that are commonly used in AI programs/machines and as a refresher of packaging and creating modules in python. Please feel free to offer any suggestion in making program work more efficiently.

Thanks

Authors

Jake Derkowski LinkedIn Email

romaniaproblemai's People

Contributors

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