All Projects → kiwicom → travelling-salesman

kiwicom / travelling-salesman

Licence: other
Rules for Kiwi.com travelling salesman competition

Programming Languages

python
139335 projects - #7 most used programming language
C++
36643 projects - #6 most used programming language

Projects that are alternatives of or similar to travelling-salesman

Halite Ii
Season 2 of @twosigma's artificial intelligence programming challenge
Stars: ✭ 201 (+1335.71%)
Mutual labels:  competition, competitive-programming
HackerRank-Solutions
This project include solutions of the problem from HackerRank which will be helpful for coding interview preparations. Subscribe for more updates 👇
Stars: ✭ 18 (+28.57%)
Mutual labels:  competition, competitive-programming
cyberrating
🚥 S&P of Blockchains
Stars: ✭ 13 (-7.14%)
Mutual labels:  evaluation, scoring
Halite Iii
Season 3 of @twosigma's artificial intelligence programming challenge
Stars: ✭ 159 (+1035.71%)
Mutual labels:  competition, competitive-programming
Competitive Programming
Contains solutions and codes to various online competitive programming challenges and some good problems. The links to the problem sets are specified at the beginning of each code.
Stars: ✭ 65 (+364.29%)
Mutual labels:  competition, competitive-programming
Competitive Coding
Contains Solution for all type of Problems of Competitive Programming. Updates Frequently as any problem is solved.
Stars: ✭ 16 (+14.29%)
Mutual labels:  competitive-programming
B2P-Penicilin-Tablut-AI
Java-based artificial intelligence that plays Tablut using Ashton's rules
Stars: ✭ 27 (+92.86%)
Mutual labels:  competition
CP-Templates
Competitive Programming Templates
Stars: ✭ 28 (+100%)
Mutual labels:  competitive-programming
solutions
Solutions to online programming problems
Stars: ✭ 36 (+157.14%)
Mutual labels:  competitive-programming
Machine-learning-toolkits-with-python
Machine learning toolkits with Python
Stars: ✭ 31 (+121.43%)
Mutual labels:  evaluation
library
CompetitiveProgramming C++ Library
Stars: ✭ 134 (+857.14%)
Mutual labels:  competitive-programming
CodeForces
Python solutions to CodeForces problems
Stars: ✭ 48 (+242.86%)
Mutual labels:  competitive-programming
pdq evaluation
Evaluation code for using probabilistic detection quality (PDQ) measure for probabilistic object detection tasks. Currently supports COCO and robotic vision challenge (RVC) data.
Stars: ✭ 34 (+142.86%)
Mutual labels:  evaluation
tool-competition-av
The repository hosts the code for the SBST CPS Tool competition for testing autonomous cars.
Stars: ✭ 16 (+14.29%)
Mutual labels:  competition
verification-helper
a testing framework for snippet libraries used in competitive programming
Stars: ✭ 137 (+878.57%)
Mutual labels:  competitive-programming
CBLUE
中文医疗信息处理基准CBLUE: A Chinese Biomedical Language Understanding Evaluation Benchmark
Stars: ✭ 379 (+2607.14%)
Mutual labels:  evaluation
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 (+107.14%)
Mutual labels:  competitive-programming
GoogleCodeJam-2016
🏃 Python Solutions of All 26 Problems of GCJ 2016
Stars: ✭ 18 (+28.57%)
Mutual labels:  competitive-programming
open-space-toolkit-astrodynamics
Flight profile, orbit, attitude, access.
Stars: ✭ 16 (+14.29%)
Mutual labels:  flight
GPE-Helper
🚑 GPE 小幫手-拯救你我的程式檢定考試
Stars: ✭ 40 (+185.71%)
Mutual labels:  competitive-programming

Rules:

  • Find the Hamiltonian cycle in time dependent flight graph
  • You are given:
    • m flights flying between n cities
    • n days to visit n cities
    • Start/end airport (round trip)
  • Being at day i in city x means you can catch all the flights on day i+1 from city x
  • All flights are immediate, they take no time.
  • On each day you have to board exactly 1 flight.
  • On some days, there might not be a flight between some cities.
  • We guarantee, that at least one Hamiltonian cycle in any given graph, exists.

Evaluation

  • You have 30 seconds for each dataset to produce valid output. After this period we kill your program if it hadn't already finished and process what your program outputted up to this point. Invalid output will result in 0 points but killing your program as such doesn't affect awarded points as long as you manage to produce valid result. Detailed description of our scoring system can be found in scoring README.
  • Evaluation data will be sampled the same way as the training real data - we will use real world prices of flights.

Program:

  • Executable in /app/run
  • Input will be STDIN, output will be STDOUT.

Input, STDIN

<City to start from>  # always a single IATA code
<FROM> <TO> <DateOfDeparture> <PRICE>
<FROM> <TO> <DateOfDeparture> <PRICE>
...

Some remarks about input:

  • <FROM>, <TO> - IATA codes - 3 English alphabet uppercase letters A-Z.
  • <PRICE> will be positive integer that fits into uint16_t - 16 bit unsigned integer (0 < <PRICE> <= 65535). (No prefixes, no hexa, nothing. Just number. :-])
  • Input data will be ordered lexicographically (FROM, TO, DateOfDeparture), with FROM/TO ordering to be also lexicographical. If this seems to be confusing, just look at the output of data_generator.py.

e.g.:

NAP
NAP BRQ 0 10
FCO BRQ 0 641
BRQ FCO 1 40
BRQ NAP 1 510
FCO NAP 2 3

Output, STDOUT

This will be strictly validated for syntax, and against input.

Format

  • We expect n+1 lines.
  • First line will be total price.
  • Second to last(n+1) line will contain flights in the same format as the input.

e.g.:

53
NAP BRQ 0 10
BRQ FCO 1 40
FCO NAP 2 3
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].