How many possible trade routes contest. 15M gold prize!

General chit-chat about anything in-game here.
In-game trade offers should be published here
Roleplaying is recommended (Write like as if your character is speaking)

Re: How many possible trade routes contest. 15M gold prize!

Postby Captain dungeness » Thu Apr 28, 2016 6:03 am

I'm back from a bit o' shore leave in Tortuga! Don't mean to blow me own horn but I happen to be married to the Governor's daughter in Tortuga and let me tell you I don't regret bein' late on this contest announcement one bit. All you landlubbers can be jealous of me Grand Social Status since yall aren't married to such a woman as the Governor's daughter! :lol:

Now for the contest results.

Announcing the Winner:

Image

Haron with his calculation of 28,350!

Congratulations on your 15M gold and well done with your maths skills



There was a great response to this contest and many great conversations about combinations, permutations and calculations. Shaydo and I thoroughly enjoyed this contest and I'm sure we will have more in the future.

Here is how we arrived at the final answer:
We started by using the ports list found on the active ports page: Caspian=1, Neapolis=2, Seaglory=3...
This is convenient because they are arranged by resource.

Shaydo used his programming skills to create a Visual Basic script to list every possible combination of ports and then wrote the program to sift through the list and identify illegal routes and duplicate routes. At first his program was taking hours just to check a few thousand routes so he made some improvements and managed to reach a list of routes within a few hours of running the script.

Captain D took a slightly different approach since he has far inferior programming skills and only knows a little bit of lua scripting. He first compiled every combination including silly routes like the same port 4 times in a row, then scripted the program to check each route against 5 criteria to remove duplicates and illegal routes. The following are the 5 rules that valid 4-port trade routes in Avonmora need to follow: (2 & 3-port routes were calculated separately)
21*21*21*21= 194,481 total routes
1) no repeated ports immediately after one another: 34,461 routes removed
2) no repeated resources (ie no 2 rum ports one immediately after another): 54,558 routes removed
3) no 2-port routes in disguise (no Tortuga-Tzogos-Tortuga-Tzogos): 378 routes removed
4) no rotated routes (1-4-7-10 & 10-1-4-7) the program limits the 2nd, 3rd and 4th ports to be greater than the first port. If any of the 2nd, 3rd or 4th ports were less than the first then the route could be rotated so that the lowest number is first which would be a duplicate of another route: 77,679 routes removed
5) no rotated 3-port routes (1-4-1-5 & 1-5-1-4) this means the 4th port must be greater than the 2nd port when the 1st & 3rd ports are the same: 1,134 ports removed
4-port routes total 26,271

3-port routes follow the same type of rules: no repeat ports or resources and the 2nd and 3rd ports must be greater than the 1st port.
3-port routes total 1,890

2-port routes are quite a bit easier since they can can only be duplicated by flipping the 1st & 2nd ports (Kanoni-Baramas & Baramas-Kanoni). 21*18/2
2-port routes total 189

Therefore there are 28,350 total valid routes in Avonmora.

Shaydo compared the 2 separately created lists and they match exactly and also match Haron's logic which gives us great confidence that we have a correct list.

Haron has posted some excellent explanations on how to arrive at these same numbers without using programming.
Honorable mention goes to PhoenixKnight and Slindur who estimated within 3% and 8% of the correct number.

Let us know what other competitions might be fun! We will provide the prize money.
Maybe the Travelling Salesman Problem?

Shaydo (#22355) and Captain Dungeness (#3397)
Image
Image
User avatar
Captain dungeness
 
Posts: 626
Joined: Mon Feb 28, 2011 3:43 am

Re: How many possible trade routes contest. 15M gold prize!

Postby Admiral Nelson » Thu Apr 28, 2016 6:14 am

Howwwwwwwww Convenient!

Is he in your guild by any chance?
User avatar
Admiral Nelson
 
Posts: 2370
Joined: Sat Mar 12, 2016 7:48 am

Re: How many possible trade routes contest. 15M gold prize!

Postby Brazzler » Thu Apr 28, 2016 6:24 am

Arg wrote:Howwwwwwwww Convenient!

Is he in your guild by any chance?


I hate it how people are like this. Can't you just accept that he won?
If you didn't want your ass shot off, you shouldn't have stuck it out so far.
User avatar
Brazzler
 
Posts: 337
Joined: Wed Oct 16, 2013 2:37 am

Re: How many possible trade routes contest. 15M gold prize!

Postby Admiral Nelson » Thu Apr 28, 2016 6:27 am

[quote="Brazzler"][quote="Arg"]Howwwwwwwww Convenient!

Is he in your guild by any chance?[/quote]

I hate it how people are like this. Can't you just accept that he won?[/quote]

I have, I have no reason to be jealous BRO!!!!!!

I did not even guess.

I do not want a measly 15 million.

Just a laugh to me really, how someone can take those two lines that bad...

Kind of sad.
User avatar
Admiral Nelson
 
Posts: 2370
Joined: Sat Mar 12, 2016 7:48 am

Re: How many possible trade routes contest. 15M gold prize!

Postby Haron » Thu Apr 28, 2016 7:38 am

The travelling salesman problem would be great, I think. I do not believe anyone will find the perfect answer - or, at least not be able to PROVE they have the perfect answer, to that one.

However, it should not be PRESENTED as "the travelling salesman problem", but rather - the great regatta of Avonmora! All players start in Aiora, have to visit every port in Avonmora, and return to Aiora. First ship back wins! Oh, and since all ships are equally fast (maxed cutters), and voodoo and instatravel would be cheating, rather than actually travel, each player just have to present his route. The travel time of all routes are calculated, and the player with the shortest travel time wins.

That would be a fun contest, indeed!
The T'zak Ryn offers Naval Combat Solutions for the Quality Conscious Customer
User avatar
Haron
Forum Rambler
 
Posts: 1926
Joined: Tue Mar 29, 2016 10:04 am

Re: How many possible trade routes contest. 15M gold prize!

Postby Haron » Thu Apr 28, 2016 7:43 am

Oh, and I fear that wife of yours in Toruga might not be entirely monogamous...
The T'zak Ryn offers Naval Combat Solutions for the Quality Conscious Customer
User avatar
Haron
Forum Rambler
 
Posts: 1926
Joined: Tue Mar 29, 2016 10:04 am

Re: How many possible trade routes contest. 15M gold prize!

Postby Haron » Thu Apr 28, 2016 7:44 am

My player id is Haron (#57533), by the way :-)
The T'zak Ryn offers Naval Combat Solutions for the Quality Conscious Customer
User avatar
Haron
Forum Rambler
 
Posts: 1926
Joined: Tue Mar 29, 2016 10:04 am

Re: How many possible trade routes contest. 15M gold prize!

Postby Most Lee Harmless » Thu Apr 28, 2016 7:46 am

Excellent problem!

The Tortuga Governors daughter is rather popular, I hear....

How about a further problem : the average time she can spend with each lover before they have to leap from her window as the next charges through her door?

I'll start at... mmm... 5 minutes?
-1 : Move to archive.
User avatar
Most Lee Harmless
 
Posts: 3970
Joined: Sat Mar 01, 2014 3:48 pm

Re: How many possible trade routes contest. 15M gold prize!

Postby Hawk » Thu Apr 28, 2016 12:36 pm

I had a very good argument ready to explain why my estimate of 7 was actually the closest :geek:

However, since my guild mate won I shall let it rest lol
"Have at it gentlemen"
User avatar
Hawk
Players Dev Team Member
 
Posts: 453
Joined: Wed Mar 28, 2012 2:32 am

Re: How many possible trade routes contest. 15M gold prize!

Postby PhoenixKnight » Thu Apr 28, 2016 1:05 pm

guess I removed a few extra ones in my script. Congrats Haron
Phoenix Knight
Dragon of the desert and the two seas
User avatar
PhoenixKnight
 
Posts: 1318
Joined: Sat Feb 09, 2013 9:27 pm

PreviousNext

Return to Tavern

cron