extern sqlite3 *db;
void setup_sql(void);
-double value_route(int nislands, const int *islands);
+
+
+typedef struct {
+ double distance_loss_factor;
+ int ntrades;
+ struct TradesBlock *trades;
+ double route_tail_value;
+} IslandPair;
+
+IslandPair *ipair_get(int si, int di);
+
+double value_route(int nislands, const int *islands, int exclude_arbitrage);
void setup_value(void);
+
void setup_search(void);
void search(int start_isle);