Giter Site home page Giter Site logo

hooolius / p1_pakkelevering Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 1.0 8.1 MB

Projekt P1 - Levering af pakker

License: MIT License

Shell 0.08% CMake 1.83% C 97.98% C++ 0.11%
tsp travelling-salesman travelling-salesman-problem combinatorial-optimization pathfinding astar-algorithm astar pairing-heap held-karp aau

p1_pakkelevering's Introduction

P1: Pakkelevering

p1_pakkelevering is a program written in C that can find the shortest route inbetween a series of addresses within the city of Aalborg. As this program uses the Held-Karp algorithm, the RAM usages will grow exponentially as more addresses are used, with 27 addresses taking around 15 GB of RAM, therefore, use at own risk. We recommend using at most 25 addresses on most computers.

The program was written as part of our 1. semester project at Aalborg University.

Prerequisites

Windows

  • MinGW with CMake installed
  • Git

Linux

  • CMake
  • Git

Installation

Linux

Clone the repository:

git clone https://github.com/hooolius/p1_pakkelevering.git

Navigate to the build directory:

cd p1_pakkelevering/src/build

Generate makefiles:

cmake -G "Unix Makefiles" ..

Install to a location:

sudo make DESTDIR=/path/to/location install 

Or to your bin directory:

sudo make install

Windows:

Clone the repository:

git clone https://github.com/hooolius/p1_pakkelevering.git

Navigate to the build directory:

cd p1_pakkelevering/src/build

Open MinGW as administrator in src/build

Generate makefiles:

cmake ..

Install to Program Files (x86):

make install 

Usage

Linux and Windows:

To use a specific input file:

p1_pakkelevering <input file>

Or simply

p1_pakkelevering

Then input addresses at the prompt.

Example:

p1_pakkelevering test_file.txt

This will make p1_pakkelevering calculate the optimal tour from the addresses within test_file.txt

License

MIT

p1_pakkelevering's People

Contributors

christofferaaen avatar dkalaxdk avatar florisleferink avatar hooolius avatar sejbas avatar smh87 avatar stenkirk avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

smh87

p1_pakkelevering's Issues

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.