Code Monkey home page Code Monkey logo

amarjitdhillon / find-shortest-path-using-generic-algorithm-in-matlab Goto Github PK

View Code? Open in Web Editor NEW
10.0 10.0 1.0 6 KB

Objective of this project was to select minimum cost path for sending packets from router A to router B such that all routers are traversed, hence this problem is different to Travelling Salesmen Problem (TSP), where Intermediate nodes can be left off. Initial location for all routers was randomly generated in 3-D space. Hinged upon initially generated locations, distance amidst them is computed using Euclidian formula which serves as Fitness function. Initial Population was selected using Roulette wheel selection using aforementioned Fitness function. Then Crossover was computed if, Probability of crossover. Pc > (Randomly generated probability) using two-point crossover. After this initial population was updated and mutation was done if Pm > (Randomly generated probability). Best chromosome was computed using max fitness function and Inversion / Swapping / Sliding was done on 2nd,3rd,4th chromosome, while 1st chromosome was passed as such using Elite Selection method to preserve best chromosome (Solution in this case). User have laxity to enter number of initial routers, size of initial population and number of iterations for Genetic algorithm to simulate. This method was named as MGA (Modified Genetic Algorithm) and it’s performance was juxtaposed with SGA (Simple Genetic Algorithm) where Initial Selection / Fitness function / Crossover / Mutation method deployed were computed differently using same set of routers co-ordinates used for SGA. Results were shown using six simulation Graphs, three for each case.

MATLAB 100.00%

find-shortest-path-using-generic-algorithm-in-matlab's People

Contributors

amarjitdhillon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.