Giter Club home page Giter Club logo

graph-traversal's Introduction

Searcheron Logo Searcheron

A practical demonstration of graph traversals using cities in Ghana as examples. Informed Searching Algorithms implemented include:

  • Depth First Search (DFS)
  • Breadth First Search (BFS)
  • Uniform Cost Search (UCS)

Uninformed Searching Algorithms implemented also include:

  • Greedy Best First Search (GBFS)
  • A* Searching Algorithm (A*A)

Maps to be traversed are in two sections:

  1. A less populated (simple) map
  2. A much complex map

Cities in the Simple Map

  • Accra
  • Tema
  • Achimota
  • Kasoa
  • Dansoman
  • Mamprobi
  • Kaneshie
  • Boduase
  • Mankessim

Cities in the Extended Map

  • Accra
  • Tema
  • Achimota
  • Kasoa
  • Dansoman
  • Mamprobi
  • Kaneshie
  • Boduase
  • Mankessim
  • Korle Gono
  • James Town
  • Russia
  • Bubuashie
  • Tesano
  • Kakum
  • Elmina
  • Cape Coast
  • Takoradi

All these cities are goal states and the algorithms find paths to these goal states

This Program has two run modes:

  • Console mode
  • Gui mode

How to run the GUI mode

To run the GUI part of the program, run the searcheron.py file.

Simple instructions for running in console mode

To run the console part of the program, run the console_test.py file

Requirements

  • Python 2.7 - Code was only tested in Python2.7. I cannot confirm if it run in other Python Versions or not.
  • PyQt4 - (How to install PyQt4 in Python2.7 can be found in requirements.txt file)

Sample Screen Shots of Project

Splash Screen during Start Up

Splash Screen

Traversing the Map from the initial city (Accra) to Boduase using Depth First Search on the Simple Map.

Boduase Using Depth First Search

Traversing the Map from the initial city (Accra) to Kaneshie using Depth First Search on the Complex Map

Accra using Depth First Search

Traversing the Map from the initial city (Accra) to Kakum using Uniform Cost Search on the Complex Map. (On the console beneath the GUI is a list of cities traversed)

Accra using Depth First Search

Traversing the Map from the initial city (Accra) to Kakum using Depth First Search on the Complex Map. (On the console beneath the GUI is a list of cities traversed)

Accra using Depth First Search

graph-traversal's People

Contributors

bluedistro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.