All Projects → dilsonpereira → chinese-postman-problem

dilsonpereira / chinese-postman-problem

Licence: other
C++ solution for the chinese postman problem

Programming Languages

c
50402 projects - #5 most used programming language
C++
36643 projects - #6 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to chinese-postman-problem

juxta
Generates large collages of images using OpenSeadragon
Stars: ✭ 41 (+115.79%)
Mutual labels:  large-scale
SpinNet
[CVPR 2021] SpinNet: Learning a General Surface Descriptor for 3D Point Cloud Registration
Stars: ✭ 181 (+852.63%)
Mutual labels:  large-scale
learning2hash.github.io
Website for "A survey of learning to hash for Computer Vision" https://learning2hash.github.io
Stars: ✭ 14 (-26.32%)
Mutual labels:  large-scale
kaliningraph
🕸️ Graphs, finite fields and discrete dynamical systems in Kotlin
Stars: ✭ 62 (+226.32%)
Mutual labels:  graph-algorithms
Graph-Algorithms
Everything you need to know about graph theory to ace a technical interview 🔥
Stars: ✭ 87 (+357.89%)
Mutual labels:  graph-algorithms
GraphLIME
This is a Pytorch implementation of GraphLIME
Stars: ✭ 40 (+110.53%)
Mutual labels:  graph-algorithms
cognipy
In-memory Graph Database and Knowledge Graph with Natural Language Interface, compatible with Pandas
Stars: ✭ 31 (+63.16%)
Mutual labels:  graph-algorithms
gcnn keras
Graph convolution with tf.keras
Stars: ✭ 47 (+147.37%)
Mutual labels:  graph-algorithms
mage
MAGE - Memgraph Advanced Graph Extensions 🔮
Stars: ✭ 89 (+368.42%)
Mutual labels:  graph-algorithms
hugegraph-computer
A large-scale graph computing system, basic on disk/memory & integrate with graph database HugeGraph
Stars: ✭ 18 (-5.26%)
Mutual labels:  graph-algorithms
position-rank
PositionRank: An Unsupervised Approach to Keyphrase Extraction from Scholarly Documents
Stars: ✭ 89 (+368.42%)
Mutual labels:  graph-algorithms
PyBC
Bitcoin blockchain parser for Python 2 and 3. Includes handy examples.
Stars: ✭ 26 (+36.84%)
Mutual labels:  graph-algorithms
j2
j2 is a minimalist concatenative programming language that makes up for its simplicity by its ability to natively bind with C libraries' ABI *and types*, *without glue*
Stars: ✭ 37 (+94.74%)
Mutual labels:  graph-algorithms
ffhqr-dataset
FFHQR -- the first large-scale retouching dataset for computer vision research.
Stars: ✭ 85 (+347.37%)
Mutual labels:  large-scale
lynxkite
The complete graph data science platform
Stars: ✭ 120 (+531.58%)
Mutual labels:  graph-algorithms
TeamReference
Team reference for Competitive Programming. Algorithms implementations very used in the ACM-ICPC contests. Latex template to build your own team reference.
Stars: ✭ 29 (+52.63%)
Mutual labels:  graph-algorithms
LaplacianOpt.jl
A Julia/JuMP Package for Maximizing Algebraic Connectivity of Undirected Weighted Graphs
Stars: ✭ 16 (-15.79%)
Mutual labels:  graph-algorithms
gradoop demo
Demo application for GRADOOP operators
Stars: ✭ 21 (+10.53%)
Mutual labels:  graph-algorithms
daas-with-github-actions
A low code learning project run with github actions
Stars: ✭ 15 (-21.05%)
Mutual labels:  large-scale
ratewithscience
Rate things on arbitrary scales using big data and science!
Stars: ✭ 42 (+121.05%)
Mutual labels:  graph-algorithms

A C++ solution for the chinese postman problem

To clone the repo and its dependencies (submodules):

git clone --recursive https://github.com/dilsonpereira/chinese-postman-problem

Compilation on Linux:

make chinese

Usage:

./chinese -f <inputFile>

File format:

The first two lines give n (number of vertices) and m (number of edges). Each of the next m lines has a tuple (u, v, c) representing an edge, where u and v are the endpoints (0-based indexing) of the edge and c is its cost.

Sample input:

10
15
0 1 1
0 4 3
1 2 0
1 4 10
2 3 9
2 5 2
2 6 7
3 6 3
4 5 4
4 7 2
5 7 6
6 8 4
6 9 2
7 8 1
8 9 5

Sample output:

Solution cost: 62
Solution:
0 4 7 8 9 6 3 2 6 8 7 5 2 1 2 5 4 1 0 

See Example.cpp to learn how to use the library.

Feel free to contact me if you have any problem.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].