Giter VIP home page Giter VIP logo

cmp3004's Introduction

Bahçeşehir University - CMP3004 Project

Travelling Salesman Problem in C++(20)

Solving the classic TSP with some popular algorithms like Exhaustive Search, O(n!), Greedy Nearest Neighbour, O(n²), Divide and Conquer O(TODO), Genetic Algorithm O(TODO)

Dependencies

There are two directories for two different things.

One is just for visualization, not really it does some basic searches, that's unused, and unattended.

The other (no-visuals) is the main focus, the algorithms should be developed on there.

There is already some basic infrastructure for them, no need to read from a file, the cities are already in the City.hpp file

Currently I'm using {fmt} for my io needs, if you don't want to install it, go through the code and replace fmt::print() calls with std::cout

A C++2a compatible compiler is required, I'm using GCC-10.1, clang-10/11 and the latest MSVC are also supported

Screenshots

Nearest Neighbour 48 Reversed (Current)

Genetic Algorithm Link

Genetic Algorithm Link

Divide & Conquer Link

Usage

Run tup if you have it installed tup

That will build and link the files in their own directories, so the executable for sfml-visuals will be in there named TSP_Window

Contributors

  • Eren ÖZDEMİR
  • Oktay Mert AKÜZÜM
  • Onur Orkun KADER

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.