This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @fileOverview This is one solution of the travelling robot problem from | |
* http://armelnene.blogspot.co.uk/2012/04/traveling-robot-problem.html | |
* | |
* Usage: Copy and paste into your browser's JavaScript console, after setting | |
* the desired values at the end of the script or use node.js to run the script. | |
* | |
* This solution sorts the distances a robot can walk by the | |
* km/(time + cooldown)-ratio descending. | |
* Higher ratios will be used first. If ratios are equal for some distances the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I get PROTOCOL_ and PARSER_ errors, when selecting from a table with raw messages from Twitter. | |
Depending on which query I execute, I get different results. In one node does not even exit. | |
The rows were inserted using connection.escape(). | |
I am using Node.js 0.8.4 on WindowsXP. |