File size: 188,358 Bytes
aff484f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 | task_name,problem_type,instruction,instance,solution,obj,instance_variant,solution_variant,context_index,input_format,input_index_base
OP,OP,"Recently I sketched a plan for a single loop from home that hits a few bakeries; each bakery has a reward score, and the goal is to pick the combination of stops whose reward scores add up to the highest total. The walk must start and finish at the apartment, avoid revisiting any bakery, and stay within the distance Iβm allowed. Iβll put the exact bakery list, rewards, and distances below.
# total_locations_including_apartment=17
# apartment_node_id=A
# max_walk_distance=28.0
bakery_node_id,map_x,map_y,reward_score
A,10,14,0
B,18,15,10
C,18,13,10
D,16,9,10
E,15,11,10
F,14,13,5
G,16,17,5
H,15,17,5
I,16,19,10
J,11,6,15
K,11,17,5
L,10,18,5
M,9,23,10
N,7,24,15
O,8,19,15
P,8,17,10
Q,4,18,10
If you could send the chosen loop back in a simple JSON shape, that'd be perfect β something like this:
{
""solution"": [depot_id, location_id, ..., depot_id]
}
The ""solution"" array is just the ordered list of stops for the loop, starting and finishing at the depot (your apartment) and listing each bakery you visit once. This JSON is only a sketch of the shape I need, not the actual answerβI'll expect the real IDs from the instance.
All identifiers must be used exactly as they appear in the instance input β no renaming and no new labels.
- for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'coordinates': [[10, 14], [18, 15], [18, 13], [16, 9], [15, 11], [14, 13], [16, 17], [15, 17], [16, 19], [11, 6], [11, 17], [10, 18], [9, 23], [7, 24], [8, 19], [8, 17], [4, 18]], 'prizes': [0, 10, 10, 10, 10, 5, 5, 5, 10, 15, 5, 5, 10, 15, 15, 10, 10], 'depot': 0, 'max_length': 28.0, 'route_length': 27.608593636739734, 'collected_prize': 70.0, 'objective': 70.0}","[0, 10, 11, 14, 12, 13, 16, 15, 0]",70.0,"{'problem_type': 'OP', 'num_nodes': 17, 'nodes': [{'id': 'A', 'x': 10, 'y': 14, 'prize': 0}, {'id': 'B', 'x': 18, 'y': 15, 'prize': 10}, {'id': 'C', 'x': 18, 'y': 13, 'prize': 10}, {'id': 'D', 'x': 16, 'y': 9, 'prize': 10}, {'id': 'E', 'x': 15, 'y': 11, 'prize': 10}, {'id': 'F', 'x': 14, 'y': 13, 'prize': 5}, {'id': 'G', 'x': 16, 'y': 17, 'prize': 5}, {'id': 'H', 'x': 15, 'y': 17, 'prize': 5}, {'id': 'I', 'x': 16, 'y': 19, 'prize': 10}, {'id': 'J', 'x': 11, 'y': 6, 'prize': 15}, {'id': 'K', 'x': 11, 'y': 17, 'prize': 5}, {'id': 'L', 'x': 10, 'y': 18, 'prize': 5}, {'id': 'M', 'x': 9, 'y': 23, 'prize': 10}, {'id': 'N', 'x': 7, 'y': 24, 'prize': 15}, {'id': 'O', 'x': 8, 'y': 19, 'prize': 15}, {'id': 'P', 'x': 8, 'y': 17, 'prize': 10}, {'id': 'Q', 'x': 4, 'y': 18, 'prize': 10}], 'depot': 'A', 'max_length': 28.0, 'route_length': 27.608593636739734, 'collected_prize': 70.0, 'objective': 70.0}","['A', 'K', 'L', 'O', 'M', 'N', 'Q', 'P', 'A']",1,csv,names
OP,OP,"Many people are pitching in to design a single loop from the church that stops at a few donation boxes, each box having a different importance score. The idea is to decide which boxes to include so the sum of their importance scores is as high as possible, making sure the finished route doesnβt exceed the set distance and that each box is visited only once. The specific instance details β the drop points, their scores, and the maximum route length β follow below.
There are 24 locations in total, with the church at node A; the completed loop must have length no greater than 5.0.
| location_id | x_coordinate | y_coordinate | importance_score |
|---|---|---|---|
| A | 19 | 24 | 0 |
| B | 12 | 24 | 20 |
| C | 14 | 28 | 20 |
| D | 16 | 28 | 20 |
| E | 20 | 28 | 20 |
| F | 21 | 27 | 20 |
| G | 12 | 22 | 20 |
| H | 22 | 17 | 30 |
| I | 19 | 15 | 30 |
| J | 11 | 18 | 30 |
| K | 17 | 28 | 30 |
| L | 9 | 29 | 40 |
| M | 10 | 32 | 40 |
| N | 19 | 10 | 40 |
| O | 15 | 8 | 40 |
| P | 14 | 31 | 50 |
| Q | 21 | 25 | 50 |
| R | 18 | 25 | 10 |
| S | 19 | 24 | 10 |
| T | 16 | 21 | 10 |
| U | 14 | 19 | 20 |
| V | 17 | 19 | 20 |
| W | 10 | 21 | 20 |
| X | 15 | 23 | 10 |
The closed loop must start and end at node A, visit each listed location at most once, and keep total length no greater than 5.0.
Oh, and to keep things machine-friendly, please send your chosen loop in this simple JSON shape:
{
""solution"": [church_id, box_id, ..., church_id]
}
This just means: ""solution"" is the route as an ordered list β start at the church, list each donation box you stop at (each box at most once), and finish back at the church. The placeholders above are only a sketch of the shape I want; donβt treat them as the real answer.
Please use the exact identifiers from the instance input β no renaming, no made-up labels.
- for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'coordinates': [[19, 24], [12, 24], [14, 28], [16, 28], [20, 28], [21, 27], [12, 22], [22, 17], [19, 15], [11, 18], [17, 28], [9, 29], [10, 32], [19, 10], [15, 8], [14, 31], [21, 25], [18, 25], [19, 24], [16, 21], [14, 19], [17, 19], [10, 21], [15, 23]], 'prizes': [0, 20, 20, 20, 20, 20, 20, 30, 30, 30, 30, 40, 40, 40, 40, 50, 50, 10, 10, 10, 20, 20, 20, 10], 'depot': 0, 'max_length': 5.0, 'route_length': 4.47213595499958, 'collected_prize': 60.0, 'objective': 60.0}","[0, 16, 18, 0]",60.0,"{'problem_type': 'OP', 'num_nodes': 24, 'nodes': [{'id': 'A', 'x': 19, 'y': 24, 'prize': 0}, {'id': 'B', 'x': 12, 'y': 24, 'prize': 20}, {'id': 'C', 'x': 14, 'y': 28, 'prize': 20}, {'id': 'D', 'x': 16, 'y': 28, 'prize': 20}, {'id': 'E', 'x': 20, 'y': 28, 'prize': 20}, {'id': 'F', 'x': 21, 'y': 27, 'prize': 20}, {'id': 'G', 'x': 12, 'y': 22, 'prize': 20}, {'id': 'H', 'x': 22, 'y': 17, 'prize': 30}, {'id': 'I', 'x': 19, 'y': 15, 'prize': 30}, {'id': 'J', 'x': 11, 'y': 18, 'prize': 30}, {'id': 'K', 'x': 17, 'y': 28, 'prize': 30}, {'id': 'L', 'x': 9, 'y': 29, 'prize': 40}, {'id': 'M', 'x': 10, 'y': 32, 'prize': 40}, {'id': 'N', 'x': 19, 'y': 10, 'prize': 40}, {'id': 'O', 'x': 15, 'y': 8, 'prize': 40}, {'id': 'P', 'x': 14, 'y': 31, 'prize': 50}, {'id': 'Q', 'x': 21, 'y': 25, 'prize': 50}, {'id': 'R', 'x': 18, 'y': 25, 'prize': 10}, {'id': 'S', 'x': 19, 'y': 24, 'prize': 10}, {'id': 'T', 'x': 16, 'y': 21, 'prize': 10}, {'id': 'U', 'x': 14, 'y': 19, 'prize': 20}, {'id': 'V', 'x': 17, 'y': 19, 'prize': 20}, {'id': 'W', 'x': 10, 'y': 21, 'prize': 20}, {'id': 'X', 'x': 15, 'y': 23, 'prize': 10}], 'depot': 'A', 'max_length': 5.0, 'route_length': 4.47213595499958, 'collected_prize': 60.0, 'objective': 60.0}","['A', 'Q', 'S', 'A']",2,markdown_table,names
OP,OP,"Iβm putting together a museum loop that starts and ends at the hotel: pick which museums to include (each one has a little satisfaction rating), donβt visit any museum twice, and keep the total travel time within a fixed time budget. The idea is to get the most enjoyment possible β thatβs measured by adding up the satisfaction scores of the museums visited β while making sure the whole route is one continuous loop from the hotel back to the hotel. The concrete details are shown below.
I have 17 locations (including the hotel 0) and a time budget of 16.0.
| location_id | map_x_coordinate | map_y_coordinate | satisfaction_score |
|---|---|---|---|
| 0 | 4 | 7 | 0 |
| 1 | 5 | 11 | 20 |
| 2 | 4 | 12 | 20 |
| 3 | 3 | 10 | 15 |
| 4 | 3 | 9 | 15 |
| 5 | 4 | 8 | 10 |
| 6 | 7 | 11 | 20 |
| 7 | 7 | 8 | 20 |
| 8 | 6 | 7 | 15 |
| 9 | 5 | 6 | 10 |
| 10 | 6 | 5 | 25 |
| 11 | 13 | 13 | 40 |
| 12 | 14 | 14 | 40 |
| 13 | 11 | 13 | 30 |
| 14 | 9 | 16 | 30 |
| 15 | 9 | 18 | 50 |
| 16 | 4 | 16 | 30 |
I'll pick a loop that starts and ends at 0 and stays within the time budget of 16.0.
When you send back the loop you want me to evaluate, just use this simple JSON shape so I can read it easily:
{
""solution"": [hotel_id, museum_id, ..., hotel_id]
}
This is just a sketch of the shape I expect. The ""solution"" array is the route listed in order: start at the hotel (hotel_id), visit each museum once (each museum_id), and finish back at the hotel (hotel_id again). Think of it like filling in a little travel itinerary form: the list shows the exact sequence you'll walk.
Please note: the JSON above is an example of the expected format, not the actual answer. Use the exact identifiers from the instance inputβdo not rename them or create new labels.
Valid identifiers look like plain numbers such as ""1"" or ""23"", single capital letters like ""A"" or ""B"", or a capital letter followed by digits like ""A1"" or ""X7"".","{'coordinates': [[4, 7], [5, 11], [4, 12], [3, 10], [3, 9], [4, 8], [7, 11], [7, 8], [6, 7], [5, 6], [6, 5], [13, 13], [14, 14], [11, 13], [9, 16], [9, 18], [4, 16]], 'prizes': [0, 20, 20, 15, 15, 10, 20, 20, 15, 10, 25, 40, 40, 30, 30, 50, 30], 'depot': 0, 'max_length': 16.0, 'route_length': 15.478708664619077, 'collected_prize': 135.0, 'objective': 135.0}","[0, 8, 7, 6, 1, 2, 3, 4, 5, 0]",135.0,"{'problem_type': 'OP', 'num_nodes': 17, 'nodes': [{'id': 0, 'x': 4, 'y': 7, 'prize': 0}, {'id': 1, 'x': 5, 'y': 11, 'prize': 20}, {'id': 2, 'x': 4, 'y': 12, 'prize': 20}, {'id': 3, 'x': 3, 'y': 10, 'prize': 15}, {'id': 4, 'x': 3, 'y': 9, 'prize': 15}, {'id': 5, 'x': 4, 'y': 8, 'prize': 10}, {'id': 6, 'x': 7, 'y': 11, 'prize': 20}, {'id': 7, 'x': 7, 'y': 8, 'prize': 20}, {'id': 8, 'x': 6, 'y': 7, 'prize': 15}, {'id': 9, 'x': 5, 'y': 6, 'prize': 10}, {'id': 10, 'x': 6, 'y': 5, 'prize': 25}, {'id': 11, 'x': 13, 'y': 13, 'prize': 40}, {'id': 12, 'x': 14, 'y': 14, 'prize': 40}, {'id': 13, 'x': 11, 'y': 13, 'prize': 30}, {'id': 14, 'x': 9, 'y': 16, 'prize': 30}, {'id': 15, 'x': 9, 'y': 18, 'prize': 50}, {'id': 16, 'x': 4, 'y': 16, 'prize': 30}], 'depot': 0, 'max_length': 16.0, 'route_length': 15.478708664619077, 'collected_prize': 135.0, 'objective': 135.0}","[0, 8, 7, 6, 1, 2, 3, 4, 5, 0]",3,markdown_table,0
OP,OP,"This morning the courier schedule called for one complete loop beginning and ending at the depot, hitting some pickup locations to collect parcels. Every pickup location lists a value, and the total for the trip is found by adding together the values of the places visited β each pickup can only be done once. Since thereβs a cap on how far the loop can go, the aim is to choose stops that give the biggest possible total value without exceeding that cap. The exact details (which pickups, their values, and the distance/time limit) follow below.
# total_locations_including_depot=20
# depot_location_id=0
# maximum_trip_length=12.0
location_id,location_x,location_y,pickup_value
0,10,14,0
1,16,9,10
2,15,11,10
3,14,13,5
4,16,13,5
5,16,17,5
6,15,17,5
7,16,19,10
8,14,15,5
9,14,5,10
10,8,5,15
11,7,9,10
12,11,17,5
13,11,20,10
14,10,22,10
15,9,23,10
16,10,26,15
17,7,24,15
18,8,13,10
19,5,11,10
If you send the route back, just stick to this simple JSON shape so it's easy to parse:
{
""solution"": [depot_id, location_id, ..., depot_id]
}
This just means: put the depot first, list the pickup locations in the order the courier will visit them, and finish at the depot again. It's just a sketch of the shape I need, not the actual answer β the real reply should replace those placeholders with the exact IDs from the instance.
Please use the identifiers exactly as they appear in the instance input β no renaming and no new labels.
Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.","{'coordinates': [[10, 14], [16, 9], [15, 11], [14, 13], [16, 13], [16, 17], [15, 17], [16, 19], [14, 15], [14, 5], [8, 5], [7, 9], [11, 17], [11, 20], [10, 22], [9, 23], [10, 26], [7, 24], [8, 13], [5, 11]], 'prizes': [0, 10, 10, 5, 5, 5, 5, 10, 5, 10, 15, 10, 5, 10, 10, 10, 15, 15, 10, 10], 'depot': 0, 'max_length': 12.0, 'route_length': 11.67257114780908, 'collected_prize': 20.0, 'objective': 20.0}","[0, 19, 18, 0]",20.0,"{'problem_type': 'OP', 'num_nodes': 20, 'nodes': [{'id': 0, 'x': 10, 'y': 14, 'prize': 0}, {'id': 1, 'x': 16, 'y': 9, 'prize': 10}, {'id': 2, 'x': 15, 'y': 11, 'prize': 10}, {'id': 3, 'x': 14, 'y': 13, 'prize': 5}, {'id': 4, 'x': 16, 'y': 13, 'prize': 5}, {'id': 5, 'x': 16, 'y': 17, 'prize': 5}, {'id': 6, 'x': 15, 'y': 17, 'prize': 5}, {'id': 7, 'x': 16, 'y': 19, 'prize': 10}, {'id': 8, 'x': 14, 'y': 15, 'prize': 5}, {'id': 9, 'x': 14, 'y': 5, 'prize': 10}, {'id': 10, 'x': 8, 'y': 5, 'prize': 15}, {'id': 11, 'x': 7, 'y': 9, 'prize': 10}, {'id': 12, 'x': 11, 'y': 17, 'prize': 5}, {'id': 13, 'x': 11, 'y': 20, 'prize': 10}, {'id': 14, 'x': 10, 'y': 22, 'prize': 10}, {'id': 15, 'x': 9, 'y': 23, 'prize': 10}, {'id': 16, 'x': 10, 'y': 26, 'prize': 15}, {'id': 17, 'x': 7, 'y': 24, 'prize': 15}, {'id': 18, 'x': 8, 'y': 13, 'prize': 10}, {'id': 19, 'x': 5, 'y': 11, 'prize': 10}], 'depot': 0, 'max_length': 12.0, 'route_length': 11.67257114780908, 'collected_prize': 20.0, 'objective': 20.0}","[0, 19, 18, 0]",4,csv,0
OP,OP,"Picture a greenhouse and a handful of plant shops scattered around town, each with a little usefulness score attached. The plan is to draw one loop out and back that visits selected shops only once, stays inside the allowed travel distance, and ends up with the biggest possible total usefulnessβthe total being the sum of the ratings of the shops visited. The concrete list of suppliers, distances and usefulness numbers is shown below.
# total_locations_including_greenhouse=24
# greenhouse_node_id=A
# max_route_distance=26.0
location_id,x_coord,y_coord,usefulness_score
A,10,14,0
B,18,13,10
C,16,9,10
D,15,11,10
E,14,13,5
F,16,17,5
G,15,17,5
H,16,19,10
I,13,20,10
J,14,15,5
K,14,5,10
L,11,6,15
M,7,9,10
N,11,12,5
O,11,17,5
P,10,18,5
Q,11,20,10
R,10,26,15
S,8,19,15
T,8,17,10
U,8,13,10
V,5,11,10
W,4,18,10
X,7,18,10
Oh, and when you send back the loop, please use this simple JSON shape so it's easy to read and check:
{
""solution"": [""greenhouse_id"", ""shop_id"", ""..."", ""greenhouse_id""]
}
Think of it like a little form: ""solution"" holds the ordered loop β start at the greenhouse, list each shop you plan to visit (once each), and finish back at the greenhouse. The ""..."" just means you can have as many shops in the middle as fit the route.
This is just a sketch of the expected shape, not the actual answer. Be sure to use the exact identifiers from the instance input β do not rename them or invent new labels.
- Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.","{'coordinates': [[10, 14], [18, 13], [16, 9], [15, 11], [14, 13], [16, 17], [15, 17], [16, 19], [13, 20], [14, 15], [14, 5], [11, 6], [7, 9], [11, 12], [11, 17], [10, 18], [11, 20], [10, 26], [8, 19], [8, 17], [8, 13], [5, 11], [4, 18], [7, 18]], 'prizes': [0, 10, 10, 10, 5, 5, 5, 10, 10, 5, 10, 15, 10, 5, 5, 5, 10, 15, 15, 10, 10, 10, 10, 10], 'depot': 0, 'max_length': 26.0, 'route_length': 25.42756561849559, 'collected_prize': 85.0, 'objective': 85.0}","[0, 19, 23, 18, 15, 16, 8, 7, 5, 6, 9, 0]",85.0,"{'problem_type': 'OP', 'num_nodes': 24, 'nodes': [{'id': 'A', 'x': 10, 'y': 14, 'prize': 0}, {'id': 'B', 'x': 18, 'y': 13, 'prize': 10}, {'id': 'C', 'x': 16, 'y': 9, 'prize': 10}, {'id': 'D', 'x': 15, 'y': 11, 'prize': 10}, {'id': 'E', 'x': 14, 'y': 13, 'prize': 5}, {'id': 'F', 'x': 16, 'y': 17, 'prize': 5}, {'id': 'G', 'x': 15, 'y': 17, 'prize': 5}, {'id': 'H', 'x': 16, 'y': 19, 'prize': 10}, {'id': 'I', 'x': 13, 'y': 20, 'prize': 10}, {'id': 'J', 'x': 14, 'y': 15, 'prize': 5}, {'id': 'K', 'x': 14, 'y': 5, 'prize': 10}, {'id': 'L', 'x': 11, 'y': 6, 'prize': 15}, {'id': 'M', 'x': 7, 'y': 9, 'prize': 10}, {'id': 'N', 'x': 11, 'y': 12, 'prize': 5}, {'id': 'O', 'x': 11, 'y': 17, 'prize': 5}, {'id': 'P', 'x': 10, 'y': 18, 'prize': 5}, {'id': 'Q', 'x': 11, 'y': 20, 'prize': 10}, {'id': 'R', 'x': 10, 'y': 26, 'prize': 15}, {'id': 'S', 'x': 8, 'y': 19, 'prize': 15}, {'id': 'T', 'x': 8, 'y': 17, 'prize': 10}, {'id': 'U', 'x': 8, 'y': 13, 'prize': 10}, {'id': 'V', 'x': 5, 'y': 11, 'prize': 10}, {'id': 'W', 'x': 4, 'y': 18, 'prize': 10}, {'id': 'X', 'x': 7, 'y': 18, 'prize': 10}], 'depot': 'A', 'max_length': 26.0, 'route_length': 25.42756561849559, 'collected_prize': 85.0, 'objective': 85.0}","['A', 'T', 'X', 'S', 'P', 'Q', 'I', 'H', 'F', 'G', 'J', 'A']",5,csv,names
OP,OP,"Weβve got an office-based inspector who has to build one closed inspection route: leave the office, check a handful of locations (each tagged with a priority score), and return to the office without going over the allowed route length. The trick is picking which spots to check so that when all their priority numbers are added together the total is as high as possible, making sure no site is checked twice and the whole trip stays within the limit. The specific sites, their scores and the route limit are listed below.
Weβve got 18 locations in total, the office is node A, and the closed route must not exceed 20.0 in length.
We list location A at (19, 24) with priority 0.
We list location B at (14, 28) with priority 20.
We list location C at (16, 28) with priority 20.
We list location D at (20, 28) with priority 20.
We list location E at (12, 26) with priority 20.
We list location F at (21, 27) with priority 20.
We list location G at (19, 15) with priority 30.
We list location H at (17, 28) with priority 30.
We list location I at (9, 29) with priority 40.
We list location J at (10, 32) with priority 40.
We list location K at (13, 33) with priority 40.
We list location L at (14, 31) with priority 50.
We list location M at (7, 36) with priority 50.
We list location N at (21, 25) with priority 50.
We list location O at (18, 25) with priority 10.
We list location P at (16, 21) with priority 10.
We list location Q at (14, 19) with priority 20.
We list location R at (15, 23) with priority 10.
We must choose which sites to visit so our closed tour (starting and ending at node A) maximizes total priority without exceeding 20.0.
Oh, and when you send back the chosen route, please use a tiny JSON snippet like this so it's easy to parse:
{
""solution"": [office_id, site_id, ..., office_id]
}
Think of this as a simple form: ""solution"" is the ordered list of stops on the closed route β start at the office, visit the places you pick (each at most once), and finish back at the office. The JSON above is just a sketch of the shape I need, not the final answer itself.
Also, make sure you use the exact identifiers from the instance input β donβt rename them or invent new labels.
- for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'coordinates': [[19, 24], [14, 28], [16, 28], [20, 28], [12, 26], [21, 27], [19, 15], [17, 28], [9, 29], [10, 32], [13, 33], [14, 31], [7, 36], [21, 25], [18, 25], [16, 21], [14, 19], [15, 23]], 'prizes': [0, 20, 20, 20, 20, 20, 30, 30, 40, 40, 40, 50, 50, 50, 10, 10, 20, 10], 'depot': 0, 'max_length': 20.0, 'route_length': 19.22677276241436, 'collected_prize': 170.0, 'objective': 170.0}","[0, 14, 7, 1, 2, 3, 5, 13, 0]",170.0,"{'problem_type': 'OP', 'num_nodes': 18, 'nodes': [{'id': 'A', 'x': 19, 'y': 24, 'prize': 0}, {'id': 'B', 'x': 14, 'y': 28, 'prize': 20}, {'id': 'C', 'x': 16, 'y': 28, 'prize': 20}, {'id': 'D', 'x': 20, 'y': 28, 'prize': 20}, {'id': 'E', 'x': 12, 'y': 26, 'prize': 20}, {'id': 'F', 'x': 21, 'y': 27, 'prize': 20}, {'id': 'G', 'x': 19, 'y': 15, 'prize': 30}, {'id': 'H', 'x': 17, 'y': 28, 'prize': 30}, {'id': 'I', 'x': 9, 'y': 29, 'prize': 40}, {'id': 'J', 'x': 10, 'y': 32, 'prize': 40}, {'id': 'K', 'x': 13, 'y': 33, 'prize': 40}, {'id': 'L', 'x': 14, 'y': 31, 'prize': 50}, {'id': 'M', 'x': 7, 'y': 36, 'prize': 50}, {'id': 'N', 'x': 21, 'y': 25, 'prize': 50}, {'id': 'O', 'x': 18, 'y': 25, 'prize': 10}, {'id': 'P', 'x': 16, 'y': 21, 'prize': 10}, {'id': 'Q', 'x': 14, 'y': 19, 'prize': 20}, {'id': 'R', 'x': 15, 'y': 23, 'prize': 10}], 'depot': 'A', 'max_length': 20.0, 'route_length': 19.22677276241436, 'collected_prize': 170.0, 'objective': 170.0}","['A', 'O', 'H', 'B', 'C', 'D', 'F', 'N', 'A']",6,nl,names
OP,OP,"Many people on the team prefer a single circular run from the branch that hits selected prospects once and ends where it started, without blowing past the travel allowance. The ideal run is the one that nets the highest combined potential sales β add up each visited clientβs value to see the total β as long as the total travel stays under the limit and nobody is visited twice. The concrete details and numbers are shown below.
The scenario lists 16 locations (including the branch 1), and the tour must start and end at that branch while keeping total travel under 28.0.
Location 1 at (19, 24) with potential sales 0.
Location 2 at (12, 24) with potential sales 20.
Location 3 at (20, 28) with potential sales 20.
Location 4 at (21, 27) with potential sales 20.
Location 5 at (19, 15) with potential sales 30.
Location 6 at (14, 15) with potential sales 30.
Location 7 at (11, 18) with potential sales 30.
Location 8 at (9, 29) with potential sales 40.
Location 9 at (10, 32) with potential sales 40.
Location 10 at (15, 8) with potential sales 40.
Location 11 at (21, 25) with potential sales 50.
Location 12 at (18, 25) with potential sales 10.
Location 13 at (16, 21) with potential sales 10.
Location 14 at (17, 28) with potential sales 10.
Location 15 at (17, 19) with potential sales 20.
Location 16 at (15, 23) with potential sales 10.
These numbers let the team compare candidate circular runs that start and end at 1 and must not exceed 28.0.
Also β to keep things machine-friendly, just send the chosen run back in this little JSON shape so it's easy to read:
{
""solution"": [""branch_id"", ""prospect_id"", ""..."", ""branch_id""]
}
Think of it like a quick form: ""solution"" is the ordered circular run, the array lists the branch (start/end) and each prospect you hit in order, and it ends back at the branch. This is only the expected shape β not the actual route yet.
Please make sure to use the identifiers exactly as they appear in the instance input β no renaming and no invented labels.
- for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.","{'coordinates': [[19, 24], [12, 24], [20, 28], [21, 27], [19, 15], [14, 15], [11, 18], [9, 29], [10, 32], [15, 8], [21, 25], [18, 25], [16, 21], [17, 28], [17, 19], [15, 23]], 'prizes': [0, 20, 20, 20, 30, 30, 30, 40, 40, 40, 50, 10, 10, 10, 20, 10], 'depot': 0, 'max_length': 28.0, 'route_length': 27.975610652340634, 'collected_prize': 150.0, 'objective': 150.0}","[0, 11, 7, 13, 2, 3, 10, 0]",150.0,"{'problem_type': 'OP', 'num_nodes': 16, 'nodes': [{'id': 1, 'x': 19, 'y': 24, 'prize': 0}, {'id': 2, 'x': 12, 'y': 24, 'prize': 20}, {'id': 3, 'x': 20, 'y': 28, 'prize': 20}, {'id': 4, 'x': 21, 'y': 27, 'prize': 20}, {'id': 5, 'x': 19, 'y': 15, 'prize': 30}, {'id': 6, 'x': 14, 'y': 15, 'prize': 30}, {'id': 7, 'x': 11, 'y': 18, 'prize': 30}, {'id': 8, 'x': 9, 'y': 29, 'prize': 40}, {'id': 9, 'x': 10, 'y': 32, 'prize': 40}, {'id': 10, 'x': 15, 'y': 8, 'prize': 40}, {'id': 11, 'x': 21, 'y': 25, 'prize': 50}, {'id': 12, 'x': 18, 'y': 25, 'prize': 10}, {'id': 13, 'x': 16, 'y': 21, 'prize': 10}, {'id': 14, 'x': 17, 'y': 28, 'prize': 10}, {'id': 15, 'x': 17, 'y': 19, 'prize': 20}, {'id': 16, 'x': 15, 'y': 23, 'prize': 10}], 'depot': 1, 'max_length': 28.0, 'route_length': 27.975610652340634, 'collected_prize': 150.0, 'objective': 150.0}","[1, 12, 8, 14, 3, 4, 11, 1]",7,nl,1
OP,OP,"Someone in dispatch needs to pick a one-loop route for a messenger that starts and ends at the hub and hits a selection of customer drops. Each visit earns a fee, and the better route is the one that finishes the loop with the highest total of those fees (just add up the fees for the stops you actually make). The messenger canβt exceed the allotted ride distance, and each drop can only be done once. The full details β addresses, fees, and the distance limit β are shown below.
There are 20 locations in total; the hub is 1, and the allowed loop length is 29.0.
Drop 1 at (19, 24) with fee 0.
Drop 2 at (12, 24) with fee 20.
Drop 3 at (20, 28) with fee 20.
Drop 4 at (12, 26) with fee 20.
Drop 5 at (21, 27) with fee 20.
Drop 6 at (12, 22) with fee 20.
Drop 7 at (22, 17) with fee 30.
Drop 8 at (14, 15) with fee 30.
Drop 9 at (12, 29) with fee 30.
Drop 10 at (19, 10) with fee 40.
Drop 11 at (15, 8) with fee 40.
Drop 12 at (14, 31) with fee 50.
Drop 13 at (7, 36) with fee 50.
Drop 14 at (21, 25) with fee 50.
Drop 15 at (21, 21) with fee 10.
Drop 16 at (18, 26) with fee 10.
Drop 17 at (17, 28) with fee 10.
Drop 18 at (14, 19) with fee 20.
Drop 19 at (10, 21) with fee 20.
Drop 20 at (15, 23) with fee 10.
Someone in dispatch should choose a single-loop route starting and ending at 1 that maximizes collected fees without exceeding 29.0.
If you could return the chosen loop in a tiny JSON snippet thatβd be perfect β something like this:
{
""solution"": [hub_id, drop_id, ..., hub_id]
}
This just means ""solution"" should be an ordered list of identifiers: the first and last entry are the hub, and the items in between are the customer drops the messenger will visit. It's a sketch of the shape I expect, not the actual answer β fill in the real IDs from the instance when you submit the route.
Please make sure to use the identifiers exactly as they appear in the instance input β donβt rename them or invent new labels.
- for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'coordinates': [[19, 24], [12, 24], [20, 28], [12, 26], [21, 27], [12, 22], [22, 17], [14, 15], [12, 29], [19, 10], [15, 8], [14, 31], [7, 36], [21, 25], [21, 21], [18, 26], [17, 28], [14, 19], [10, 21], [15, 23]], 'prizes': [0, 20, 20, 20, 20, 20, 30, 30, 30, 40, 40, 50, 50, 50, 10, 10, 10, 20, 20, 10], 'depot': 0, 'max_length': 29.0, 'route_length': 28.0067326375244, 'collected_prize': 230.0, 'objective': 230.0}","[0, 19, 1, 3, 8, 11, 16, 2, 4, 13, 0]",230.0,"{'problem_type': 'OP', 'num_nodes': 20, 'nodes': [{'id': 1, 'x': 19, 'y': 24, 'prize': 0}, {'id': 2, 'x': 12, 'y': 24, 'prize': 20}, {'id': 3, 'x': 20, 'y': 28, 'prize': 20}, {'id': 4, 'x': 12, 'y': 26, 'prize': 20}, {'id': 5, 'x': 21, 'y': 27, 'prize': 20}, {'id': 6, 'x': 12, 'y': 22, 'prize': 20}, {'id': 7, 'x': 22, 'y': 17, 'prize': 30}, {'id': 8, 'x': 14, 'y': 15, 'prize': 30}, {'id': 9, 'x': 12, 'y': 29, 'prize': 30}, {'id': 10, 'x': 19, 'y': 10, 'prize': 40}, {'id': 11, 'x': 15, 'y': 8, 'prize': 40}, {'id': 12, 'x': 14, 'y': 31, 'prize': 50}, {'id': 13, 'x': 7, 'y': 36, 'prize': 50}, {'id': 14, 'x': 21, 'y': 25, 'prize': 50}, {'id': 15, 'x': 21, 'y': 21, 'prize': 10}, {'id': 16, 'x': 18, 'y': 26, 'prize': 10}, {'id': 17, 'x': 17, 'y': 28, 'prize': 10}, {'id': 18, 'x': 14, 'y': 19, 'prize': 20}, {'id': 19, 'x': 10, 'y': 21, 'prize': 20}, {'id': 20, 'x': 15, 'y': 23, 'prize': 10}], 'depot': 1, 'max_length': 29.0, 'route_length': 28.0067326375244, 'collected_prize': 230.0, 'objective': 230.0}","[1, 20, 2, 4, 9, 12, 17, 3, 5, 14, 1]",8,nl,1
OP,OP,"On Saturday the plan is to drive out from the family home, visit a handful of local shops, then head back home β all without visiting a shop more than once and keeping the total drive under a preset cap. The task is choosing which shops to hit and the route between them so the trip stays within the mileage limit. Each shop offers a utility value, and the tripβs value is just the sum of the utilities of the shops visited, so better plans are those with higher summed utility. The exact shop list, distances, and scores are shown below.
There are 16 locations in total, the family home is 1, and the chosen round trip must not exceed 16.0 in total driving distance.
| location_id | x_coordinate | y_coordinate | shop_utility |
|---|---|---|---|
| 1 | 10 | 14 | 0 |
| 2 | 18 | 13 | 10 |
| 3 | 16 | 9 | 10 |
| 4 | 14 | 13 | 5 |
| 5 | 15 | 17 | 5 |
| 6 | 15 | 20 | 10 |
| 7 | 7 | 9 | 10 |
| 8 | 11 | 12 | 5 |
| 9 | 11 | 17 | 5 |
| 10 | 10 | 18 | 5 |
| 11 | 10 | 22 | 10 |
| 12 | 9 | 23 | 10 |
| 13 | 8 | 17 | 10 |
| 14 | 8 | 13 | 10 |
| 15 | 5 | 11 | 10 |
| 16 | 4 | 18 | 10 |
Select shops and a route that maximize summed utility while keeping the round trip under 16.0 and returning to 1.
Oh, and when you send back the route, please use this little JSON layout so it's easy to read and parse:
{
""solution"": [home_id, shop_id, ..., home_id]
}
Think of ""solution"" as the ordered list of place IDs for the drive: start at home, list each shop in the order you visit them (donβt repeat shops), and finish back at home. This block is just a sketch of the shape Iβm expecting, not the actual answer.
Please use the exact identifiers from the instance input β donβt rename them or invent new ones.
- for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'coordinates': [[10, 14], [18, 13], [16, 9], [14, 13], [15, 17], [15, 20], [7, 9], [11, 12], [11, 17], [10, 18], [10, 22], [9, 23], [8, 17], [8, 13], [5, 11], [4, 18]], 'prizes': [0, 10, 10, 5, 5, 10, 10, 5, 5, 5, 10, 10, 10, 10, 10, 10], 'depot': 0, 'max_length': 16.0, 'route_length': 15.906114355209759, 'collected_prize': 35.0, 'objective': 35.0}","[0, 13, 14, 6, 7, 0]",35.0,"{'problem_type': 'OP', 'num_nodes': 16, 'nodes': [{'id': 1, 'x': 10, 'y': 14, 'prize': 0}, {'id': 2, 'x': 18, 'y': 13, 'prize': 10}, {'id': 3, 'x': 16, 'y': 9, 'prize': 10}, {'id': 4, 'x': 14, 'y': 13, 'prize': 5}, {'id': 5, 'x': 15, 'y': 17, 'prize': 5}, {'id': 6, 'x': 15, 'y': 20, 'prize': 10}, {'id': 7, 'x': 7, 'y': 9, 'prize': 10}, {'id': 8, 'x': 11, 'y': 12, 'prize': 5}, {'id': 9, 'x': 11, 'y': 17, 'prize': 5}, {'id': 10, 'x': 10, 'y': 18, 'prize': 5}, {'id': 11, 'x': 10, 'y': 22, 'prize': 10}, {'id': 12, 'x': 9, 'y': 23, 'prize': 10}, {'id': 13, 'x': 8, 'y': 17, 'prize': 10}, {'id': 14, 'x': 8, 'y': 13, 'prize': 10}, {'id': 15, 'x': 5, 'y': 11, 'prize': 10}, {'id': 16, 'x': 4, 'y': 18, 'prize': 10}], 'depot': 1, 'max_length': 16.0, 'route_length': 15.906114355209759, 'collected_prize': 35.0, 'objective': 35.0}","[1, 14, 15, 7, 8, 1]",9,markdown_table,1
OP,OP,"Someone in the dorm council is putting together a campus scavenger circuit: the route must be a loop that leaves from and returns to the dorm, picks a handful of checkpoints (each with its own point value), and never goes to the same checkpoint twice. The goal is to rack up as many points as possible β the total is just the sum of the point values at the stops visited β while making sure the whole loop can be completed within the huntβs time allowance. The practical choices are which checkpoints to include and the order to visit them so the tour stays within time and doesnβt duplicate stops. The precise checkpoint locations, scores, and time limit are shown below.
{
""total_locations_including_dorm"": 23,
""nodes"": [
{
""checkpoint_id"": 0,
""map_x_coordinate"": 19,
""map_y_coordinate"": 24,
""checkpoint_points"": 0
},
{
""checkpoint_id"": 1,
""map_x_coordinate"": 12,
""map_y_coordinate"": 24,
""checkpoint_points"": 20
},
{
""checkpoint_id"": 2,
""map_x_coordinate"": 14,
""map_y_coordinate"": 28,
""checkpoint_points"": 20
},
{
""checkpoint_id"": 3,
""map_x_coordinate"": 20,
""map_y_coordinate"": 28,
""checkpoint_points"": 20
},
{
""checkpoint_id"": 4,
""map_x_coordinate"": 21,
""map_y_coordinate"": 27,
""checkpoint_points"": 20
},
{
""checkpoint_id"": 5,
""map_x_coordinate"": 12,
""map_y_coordinate"": 22,
""checkpoint_points"": 20
},
{
""checkpoint_id"": 6,
""map_x_coordinate"": 19,
""map_y_coordinate"": 15,
""checkpoint_points"": 30
},
{
""checkpoint_id"": 7,
""map_x_coordinate"": 14,
""map_y_coordinate"": 15,
""checkpoint_points"": 30
},
{
""checkpoint_id"": 8,
""map_x_coordinate"": 12,
""map_y_coordinate"": 29,
""checkpoint_points"": 30
},
{
""checkpoint_id"": 9,
""map_x_coordinate"": 17,
""map_y_coordinate"": 28,
""checkpoint_points"": 30
},
{
""checkpoint_id"": 10,
""map_x_coordinate"": 9,
""map_y_coordinate"": 29,
""checkpoint_points"": 40
},
{
""checkpoint_id"": 11,
""map_x_coordinate"": 10,
""map_y_coordinate"": 32,
""checkpoint_points"": 40
},
{
""checkpoint_id"": 12,
""map_x_coordinate"": 13,
""map_y_coordinate"": 33,
""checkpoint_points"": 40
},
{
""checkpoint_id"": 13,
""map_x_coordinate"": 19,
""map_y_coordinate"": 10,
""checkpoint_points"": 40
},
{
""checkpoint_id"": 14,
""map_x_coordinate"": 15,
""map_y_coordinate"": 8,
""checkpoint_points"": 40
},
{
""checkpoint_id"": 15,
""map_x_coordinate"": 7,
""map_y_coordinate"": 36,
""checkpoint_points"": 50
},
{
""checkpoint_id"": 16,
""map_x_coordinate"": 19,
""map_y_coordinate"": 24,
""checkpoint_points"": 10
},
{
""checkpoint_id"": 17,
""map_x_coordinate"": 21,
""map_y_coordinate"": 21,
""checkpoint_points"": 10
},
{
""checkpoint_id"": 18,
""map_x_coordinate"": 16,
""map_y_coordinate"": 21,
""checkpoint_points"": 10
},
{
""checkpoint_id"": 19,
""map_x_coordinate"": 18,
""map_y_coordinate"": 26,
""checkpoint_points"": 10
},
{
""checkpoint_id"": 20,
""map_x_coordinate"": 17,
""map_y_coordinate"": 28,
""checkpoint_points"": 10
},
{
""checkpoint_id"": 21,
""map_x_coordinate"": 14,
""map_y_coordinate"": 19,
""checkpoint_points"": 20
},
{
""checkpoint_id"": 22,
""map_x_coordinate"": 10,
""map_y_coordinate"": 21,
""checkpoint_points"": 20
}
],
""dorm_location_id"": 0,
""maximum_route_budget"": 10.0
}
Oh, and when you send a proposed loop back, please use this simple JSON layout so it's easy to read and check:
{
""solution"": [""dorm_id"", ""checkpoint_id"", ""..."", ""dorm_id""]
}
Think of ""solution"" as the ordered loop: the first item is the dorm where you start, the last item is the dorm where you finish, and everything in between are the checkpoints in the order you visit them. The example values are just placeholders to show the shape β not a real route.
Please make sure to use the exact identifiers from the instance input (don't rename them or invent new ones).
- for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'coordinates': [[19, 24], [12, 24], [14, 28], [20, 28], [21, 27], [12, 22], [19, 15], [14, 15], [12, 29], [17, 28], [9, 29], [10, 32], [13, 33], [19, 10], [15, 8], [7, 36], [19, 24], [21, 21], [16, 21], [18, 26], [17, 28], [14, 19], [10, 21]], 'prizes': [0, 20, 20, 20, 20, 20, 30, 30, 30, 30, 40, 40, 40, 40, 40, 50, 10, 10, 10, 10, 10, 20, 20], 'depot': 0, 'max_length': 10.0, 'route_length': 8.94427190999916, 'collected_prize': 60.0, 'objective': 60.0}","[0, 16, 19, 20, 9, 0]",60.0,"{'problem_type': 'OP', 'num_nodes': 23, 'nodes': [{'id': 0, 'x': 19, 'y': 24, 'prize': 0}, {'id': 1, 'x': 12, 'y': 24, 'prize': 20}, {'id': 2, 'x': 14, 'y': 28, 'prize': 20}, {'id': 3, 'x': 20, 'y': 28, 'prize': 20}, {'id': 4, 'x': 21, 'y': 27, 'prize': 20}, {'id': 5, 'x': 12, 'y': 22, 'prize': 20}, {'id': 6, 'x': 19, 'y': 15, 'prize': 30}, {'id': 7, 'x': 14, 'y': 15, 'prize': 30}, {'id': 8, 'x': 12, 'y': 29, 'prize': 30}, {'id': 9, 'x': 17, 'y': 28, 'prize': 30}, {'id': 10, 'x': 9, 'y': 29, 'prize': 40}, {'id': 11, 'x': 10, 'y': 32, 'prize': 40}, {'id': 12, 'x': 13, 'y': 33, 'prize': 40}, {'id': 13, 'x': 19, 'y': 10, 'prize': 40}, {'id': 14, 'x': 15, 'y': 8, 'prize': 40}, {'id': 15, 'x': 7, 'y': 36, 'prize': 50}, {'id': 16, 'x': 19, 'y': 24, 'prize': 10}, {'id': 17, 'x': 21, 'y': 21, 'prize': 10}, {'id': 18, 'x': 16, 'y': 21, 'prize': 10}, {'id': 19, 'x': 18, 'y': 26, 'prize': 10}, {'id': 20, 'x': 17, 'y': 28, 'prize': 10}, {'id': 21, 'x': 14, 'y': 19, 'prize': 20}, {'id': 22, 'x': 10, 'y': 21, 'prize': 20}], 'depot': 0, 'max_length': 10.0, 'route_length': 8.94427190999916, 'collected_prize': 60.0, 'objective': 60.0}","[0, 16, 19, 20, 9, 0]",10,json,0
OP,OP,"Imagine the maintenance crew needs a single tidy loop out of their depot to service a selection of sites and then return home. The objective is to pick stops that give the biggest combined benefit β simply add together the benefit numbers of the visited sites to get the routeβs score. The whole trip has to stay under the set distance cap and no location can be visited twice. The concrete details (site locations, benefits and the travel cap) are provided below.
There are 25 locations including depot 0; plan a loop that starts and ends at 0 and stays within 12.0.
Location 0 at (19, 24) with benefit 0.
Location 1 at (12, 24) with benefit 20.
Location 2 at (14, 28) with benefit 20.
Location 3 at (16, 28) with benefit 20.
Location 4 at (20, 28) with benefit 20.
Location 5 at (22, 17) with benefit 30.
Location 6 at (19, 15) with benefit 30.
Location 7 at (14, 15) with benefit 30.
Location 8 at (11, 18) with benefit 30.
Location 9 at (12, 29) with benefit 30.
Location 10 at (10, 32) with benefit 40.
Location 11 at (13, 33) with benefit 40.
Location 12 at (19, 10) with benefit 40.
Location 13 at (15, 8) with benefit 40.
Location 14 at (14, 31) with benefit 50.
Location 15 at (7, 36) with benefit 50.
Location 16 at (21, 25) with benefit 50.
Location 17 at (19, 24) with benefit 10.
Location 18 at (21, 21) with benefit 10.
Location 19 at (16, 21) with benefit 10.
Location 20 at (18, 26) with benefit 10.
Location 21 at (17, 28) with benefit 10.
Location 22 at (14, 19) with benefit 20.
Location 23 at (10, 21) with benefit 20.
Location 24 at (15, 23) with benefit 10.
Visit a subset of these locations (each at most once) to maximize total benefit while returning to 0 within 12.0.
Just drop your chosen loop into a simple JSON sketch like this when you send the solution:
{
""solution"": [depot_id, location_id, ..., depot_id]
}
Here ""solution"" is the ordered list of stops for the loop β start at the depot, visit each chosen site once (if at all), then come back to the depot. Think of it like filling in a little travel itinerary form: the array shows the route in order. This is only the shape I expect, not the actual route you must provide.
Please make sure you use the exact identifiers from the instance input β do not rename them or invent new labels.
- for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'coordinates': [[19, 24], [12, 24], [14, 28], [16, 28], [20, 28], [22, 17], [19, 15], [14, 15], [11, 18], [12, 29], [10, 32], [13, 33], [19, 10], [15, 8], [14, 31], [7, 36], [21, 25], [19, 24], [21, 21], [16, 21], [18, 26], [17, 28], [14, 19], [10, 21], [15, 23]], 'prizes': [0, 20, 20, 20, 20, 30, 30, 30, 30, 30, 40, 40, 40, 40, 50, 50, 50, 10, 10, 10, 10, 10, 20, 20, 10], 'depot': 0, 'max_length': 12.0, 'route_length': 10.46284073991415, 'collected_prize': 90.0, 'objective': 90.0}","[0, 20, 4, 16, 17, 0]",90.0,"{'problem_type': 'OP', 'num_nodes': 25, 'nodes': [{'id': 0, 'x': 19, 'y': 24, 'prize': 0}, {'id': 1, 'x': 12, 'y': 24, 'prize': 20}, {'id': 2, 'x': 14, 'y': 28, 'prize': 20}, {'id': 3, 'x': 16, 'y': 28, 'prize': 20}, {'id': 4, 'x': 20, 'y': 28, 'prize': 20}, {'id': 5, 'x': 22, 'y': 17, 'prize': 30}, {'id': 6, 'x': 19, 'y': 15, 'prize': 30}, {'id': 7, 'x': 14, 'y': 15, 'prize': 30}, {'id': 8, 'x': 11, 'y': 18, 'prize': 30}, {'id': 9, 'x': 12, 'y': 29, 'prize': 30}, {'id': 10, 'x': 10, 'y': 32, 'prize': 40}, {'id': 11, 'x': 13, 'y': 33, 'prize': 40}, {'id': 12, 'x': 19, 'y': 10, 'prize': 40}, {'id': 13, 'x': 15, 'y': 8, 'prize': 40}, {'id': 14, 'x': 14, 'y': 31, 'prize': 50}, {'id': 15, 'x': 7, 'y': 36, 'prize': 50}, {'id': 16, 'x': 21, 'y': 25, 'prize': 50}, {'id': 17, 'x': 19, 'y': 24, 'prize': 10}, {'id': 18, 'x': 21, 'y': 21, 'prize': 10}, {'id': 19, 'x': 16, 'y': 21, 'prize': 10}, {'id': 20, 'x': 18, 'y': 26, 'prize': 10}, {'id': 21, 'x': 17, 'y': 28, 'prize': 10}, {'id': 22, 'x': 14, 'y': 19, 'prize': 20}, {'id': 23, 'x': 10, 'y': 21, 'prize': 20}, {'id': 24, 'x': 15, 'y': 23, 'prize': 10}], 'depot': 0, 'max_length': 12.0, 'route_length': 10.46284073991415, 'collected_prize': 90.0, 'objective': 90.0}","[0, 20, 4, 16, 17, 0]",11,nl,0
OP,OP,"Weβve got one circular flight window for a drone that must launch and land at the local airstrip, and the job is to pick which locations to shoot so the flight collects the most useful information. Each candidate site has an intelligence value and the success of a route is just the sum of the values for the places visited. The drone must return to base on the same flight, canβt go beyond its permitted range, and no site should be photographed more than once. The concrete list of spots, distances, and values appears below.
We list 17 locations (airstrip is A) and the flight range limit is 26.0.
| site_id | map_x_coordinate | map_y_coordinate | intelligence_value |
|---|---|---|---|
| A | 10 | 14 | 0 |
| B | 18 | 13 | 10 |
| C | 15 | 11 | 10 |
| D | 13 | 20 | 10 |
| E | 14 | 15 | 5 |
| F | 14 | 5 | 10 |
| G | 11 | 6 | 15 |
| H | 8 | 5 | 15 |
| I | 7 | 9 | 10 |
| J | 11 | 20 | 10 |
| K | 10 | 22 | 10 |
| L | 9 | 23 | 10 |
| M | 10 | 26 | 15 |
| N | 7 | 24 | 15 |
| O | 8 | 19 | 15 |
| P | 5 | 11 | 10 |
| Q | 7 | 18 | 10 |
Weβll plan a single loop starting and ending at A that does not exceed 26.0.
When you send back the chosen route, just use this simple JSON shape so I can read it automatically:
{
""solution"": [airstrip_id, site_id, ..., airstrip_id]
}
""solution"" is the ordered list of place IDs the drone will visit on the flight β start at the airstrip, go through the listed sites (each at most once), and return to the airstrip. This is just a sketch of the format I expect, not the actual route.
Please use the exact identifiers from the instance input β don't rename them or make up new labels.
for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'coordinates': [[10, 14], [18, 13], [15, 11], [13, 20], [14, 15], [14, 5], [11, 6], [8, 5], [7, 9], [11, 20], [10, 22], [9, 23], [10, 26], [7, 24], [8, 19], [5, 11], [7, 18]], 'prizes': [0, 10, 10, 10, 5, 10, 15, 15, 10, 10, 10, 10, 15, 15, 15, 10, 10], 'depot': 0, 'max_length': 26.0, 'route_length': 23.482345123636772, 'collected_prize': 70.0, 'objective': 70.0}","[0, 16, 14, 13, 11, 10, 9, 0]",70.0,"{'problem_type': 'OP', 'num_nodes': 17, 'nodes': [{'id': 'A', 'x': 10, 'y': 14, 'prize': 0}, {'id': 'B', 'x': 18, 'y': 13, 'prize': 10}, {'id': 'C', 'x': 15, 'y': 11, 'prize': 10}, {'id': 'D', 'x': 13, 'y': 20, 'prize': 10}, {'id': 'E', 'x': 14, 'y': 15, 'prize': 5}, {'id': 'F', 'x': 14, 'y': 5, 'prize': 10}, {'id': 'G', 'x': 11, 'y': 6, 'prize': 15}, {'id': 'H', 'x': 8, 'y': 5, 'prize': 15}, {'id': 'I', 'x': 7, 'y': 9, 'prize': 10}, {'id': 'J', 'x': 11, 'y': 20, 'prize': 10}, {'id': 'K', 'x': 10, 'y': 22, 'prize': 10}, {'id': 'L', 'x': 9, 'y': 23, 'prize': 10}, {'id': 'M', 'x': 10, 'y': 26, 'prize': 15}, {'id': 'N', 'x': 7, 'y': 24, 'prize': 15}, {'id': 'O', 'x': 8, 'y': 19, 'prize': 15}, {'id': 'P', 'x': 5, 'y': 11, 'prize': 10}, {'id': 'Q', 'x': 7, 'y': 18, 'prize': 10}], 'depot': 'A', 'max_length': 26.0, 'route_length': 23.482345123636772, 'collected_prize': 70.0, 'objective': 70.0}","['A', 'Q', 'O', 'N', 'L', 'K', 'J', 'A']",12,markdown_table,names
OP,OP,"On weekends the goal is often to get the most out of a short walkβpick a circuit that starts and ends at the house and visits specialty stores so that the sum of their desirability scores is as high as possible, without going over the allowed walking distance. Donβt stop at the same store twice, and keep it one continuous loop. The exact store locations, desirability numbers and distances are shown below.
There are 19 locations in total; start and finish at A, and keep the entire loop no longer than 22.0.
Location A at (10, 14) β desirability 0.
Location B at (18, 15) β desirability 10.
Location C at (18, 13) β desirability 10.
Location D at (16, 9) β desirability 10.
Location E at (15, 11) β desirability 10.
Location F at (14, 13) β desirability 5.
Location G at (16, 13) β desirability 5.
Location H at (15, 17) β desirability 5.
Location I at (16, 19) β desirability 10.
Location J at (14, 5) β desirability 10.
Location K at (11, 6) β desirability 15.
Location L at (8, 5) β desirability 15.
Location M at (11, 17) β desirability 5.
Location N at (11, 20) β desirability 10.
Location O at (10, 22) β desirability 10.
Location P at (9, 23) β desirability 10.
Location Q at (10, 26) β desirability 15.
Location R at (8, 19) β desirability 15.
Location S at (7, 18) β desirability 10.
Donβt visit the same store twice and keep it one continuous loop within 22.0.
Also, when you send back your chosen loop, please use this simple JSON shape so it's easy to read and check:
{
""solution"": [home_id, store_id, ..., home_id]
}
""solution"" is just the ordered list of places in the circuit: start at your home placeholder (home_id), visit each store placeholder once in the order shown, and come back to the same home_id at the end. Think of it like filling in a short form β this block is only a sketch of the shape I need, not the actual route.
Please use the exact identifiers from the instance input β donβt rename them or invent new labels.
- for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'coordinates': [[10, 14], [18, 15], [18, 13], [16, 9], [15, 11], [14, 13], [16, 13], [15, 17], [16, 19], [14, 5], [11, 6], [8, 5], [11, 17], [11, 20], [10, 22], [9, 23], [10, 26], [8, 19], [7, 18]], 'prizes': [0, 10, 10, 10, 10, 5, 5, 5, 10, 10, 15, 15, 5, 10, 10, 10, 15, 15, 10], 'depot': 0, 'max_length': 22.0, 'route_length': 21.99710237668337, 'collected_prize': 60.0, 'objective': 60.0}","[0, 12, 13, 14, 15, 18, 17, 0]",60.0,"{'problem_type': 'OP', 'num_nodes': 19, 'nodes': [{'id': 'A', 'x': 10, 'y': 14, 'prize': 0}, {'id': 'B', 'x': 18, 'y': 15, 'prize': 10}, {'id': 'C', 'x': 18, 'y': 13, 'prize': 10}, {'id': 'D', 'x': 16, 'y': 9, 'prize': 10}, {'id': 'E', 'x': 15, 'y': 11, 'prize': 10}, {'id': 'F', 'x': 14, 'y': 13, 'prize': 5}, {'id': 'G', 'x': 16, 'y': 13, 'prize': 5}, {'id': 'H', 'x': 15, 'y': 17, 'prize': 5}, {'id': 'I', 'x': 16, 'y': 19, 'prize': 10}, {'id': 'J', 'x': 14, 'y': 5, 'prize': 10}, {'id': 'K', 'x': 11, 'y': 6, 'prize': 15}, {'id': 'L', 'x': 8, 'y': 5, 'prize': 15}, {'id': 'M', 'x': 11, 'y': 17, 'prize': 5}, {'id': 'N', 'x': 11, 'y': 20, 'prize': 10}, {'id': 'O', 'x': 10, 'y': 22, 'prize': 10}, {'id': 'P', 'x': 9, 'y': 23, 'prize': 10}, {'id': 'Q', 'x': 10, 'y': 26, 'prize': 15}, {'id': 'R', 'x': 8, 'y': 19, 'prize': 15}, {'id': 'S', 'x': 7, 'y': 18, 'prize': 10}], 'depot': 'A', 'max_length': 22.0, 'route_length': 21.99710237668337, 'collected_prize': 60.0, 'objective': 60.0}","['A', 'M', 'N', 'O', 'P', 'S', 'R', 'A']",13,nl,names
OP,OP,"Someone organized a weekend donation run: a volunteer will drive out from the community center, stop at various homes to collect promised items, and then return to the starting point. The trick is choosing stops that give the biggest haul β add up the contribution values of the chosen homes β without driving over the allowed mileage and without visiting any house twice. The detailed list of stops, their values, and the distance limit are shown below.
# total_locations_including_center=18
# community_center_id=1
# mileage_limit=20.0
house_id,x_coordinate,y_coordinate,contribution_value
1,4,7,0
2,5,11,20
3,4,12,20
4,2,14,30
5,3,10,15
6,3,9,15
7,4,8,10
8,7,11,20
9,8,9,20
10,7,8,20
11,6,7,15
12,5,8,10
13,5,6,10
14,6,5,25
15,13,13,40
16,11,13,30
17,9,16,30
18,9,18,50
You can send the final route back in a tiny JSON snippet so it's easy to check. Something like this:
{
""solution"": [community_center_id, home_id, ..., community_center_id]
}
This just means: list the stops in order inside the ""solution"" array, starting and ending at the community center, with each house you visit shown once in between. It's just a sketch of the shape I want β not the real answer itself.
Please make sure to use the exact identifiers from the problem input, with no renaming or extra labels.
- for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'coordinates': [[4, 7], [5, 11], [4, 12], [2, 14], [3, 10], [3, 9], [4, 8], [7, 11], [8, 9], [7, 8], [6, 7], [5, 8], [5, 6], [6, 5], [13, 13], [11, 13], [9, 16], [9, 18]], 'prizes': [0, 20, 20, 30, 15, 15, 10, 20, 20, 20, 15, 10, 10, 25, 40, 30, 30, 50], 'depot': 0, 'max_length': 20.0, 'route_length': 18.95741732923815, 'collected_prize': 190.0, 'objective': 190.0}","[0, 12, 13, 10, 9, 8, 7, 1, 2, 4, 5, 6, 0]",190.0,"{'problem_type': 'OP', 'num_nodes': 18, 'nodes': [{'id': 1, 'x': 4, 'y': 7, 'prize': 0}, {'id': 2, 'x': 5, 'y': 11, 'prize': 20}, {'id': 3, 'x': 4, 'y': 12, 'prize': 20}, {'id': 4, 'x': 2, 'y': 14, 'prize': 30}, {'id': 5, 'x': 3, 'y': 10, 'prize': 15}, {'id': 6, 'x': 3, 'y': 9, 'prize': 15}, {'id': 7, 'x': 4, 'y': 8, 'prize': 10}, {'id': 8, 'x': 7, 'y': 11, 'prize': 20}, {'id': 9, 'x': 8, 'y': 9, 'prize': 20}, {'id': 10, 'x': 7, 'y': 8, 'prize': 20}, {'id': 11, 'x': 6, 'y': 7, 'prize': 15}, {'id': 12, 'x': 5, 'y': 8, 'prize': 10}, {'id': 13, 'x': 5, 'y': 6, 'prize': 10}, {'id': 14, 'x': 6, 'y': 5, 'prize': 25}, {'id': 15, 'x': 13, 'y': 13, 'prize': 40}, {'id': 16, 'x': 11, 'y': 13, 'prize': 30}, {'id': 17, 'x': 9, 'y': 16, 'prize': 30}, {'id': 18, 'x': 9, 'y': 18, 'prize': 50}], 'depot': 1, 'max_length': 20.0, 'route_length': 18.95741732923815, 'collected_prize': 190.0, 'objective': 190.0}","[1, 13, 14, 11, 10, 9, 8, 2, 3, 5, 6, 7, 1]",14,csv,1
OP,OP,"Recently the rangers talked about crafting a patrol loop that leaves from the station, inspects a handful of trail stretches, and returns without retracing any one stretch. Each stretch has a monitoring value, so the effectiveness of the loop is just the sum of those values, and the whole route has to fit within the maximum patrol length. The detailed list of segments, their scores, and the distance cap appear below.
# total_locations_including_station=19
# ranger_station_id=A
# max_patrol_length=11.0
location_id,coord_x,coord_y,monitoring_score
A,4,7,0
B,5,11,20
C,4,12,20
D,2,14,30
E,3,10,15
F,3,9,15
G,4,8,10
H,8,9,20
I,7,8,20
J,6,7,15
K,5,8,10
L,5,6,10
M,6,5,25
N,13,13,40
O,14,14,40
P,11,13,30
Q,9,16,30
R,9,18,50
S,4,16,30
Oh, and when you send your chosen patrol back, please use a tiny JSON snippet like this so it's easy to read:
{
""solution"": [""station_id"", ""trail_id"", ""..."", ""station_id""]
}
Think of that as a simple form: ""solution"" holds the loop as a list, starting and ending at the station, with any trail stretches you want to visit in the middle. The ""station_id"" and ""trail_id"" entries are just placeholders showing the shape β replace them with the actual identifiers from the instance when you reply.
This JSON is just a sketch of the expected shape, not the real answer itself. Also, please make sure you use the identifiers exactly as they appear in the instance input β don't rename them and don't invent new labels.
- for example: ""Valid identifiers look like plain numbers such as ""1"" or ""23"", single capital letters like ""A"" or ""B"", or a capital letter followed by digits like ""A1"" or ""X7"".""","{'coordinates': [[4, 7], [5, 11], [4, 12], [2, 14], [3, 10], [3, 9], [4, 8], [8, 9], [7, 8], [6, 7], [5, 8], [5, 6], [6, 5], [13, 13], [14, 14], [11, 13], [9, 16], [9, 18], [4, 16]], 'prizes': [0, 20, 20, 30, 15, 15, 10, 20, 20, 15, 10, 10, 25, 40, 40, 30, 30, 50, 30], 'depot': 0, 'max_length': 11.0, 'route_length': 10.242640687119284, 'collected_prize': 90.0, 'objective': 90.0}","[0, 11, 12, 9, 8, 10, 6, 0]",90.0,"{'problem_type': 'OP', 'num_nodes': 19, 'nodes': [{'id': 'A', 'x': 4, 'y': 7, 'prize': 0}, {'id': 'B', 'x': 5, 'y': 11, 'prize': 20}, {'id': 'C', 'x': 4, 'y': 12, 'prize': 20}, {'id': 'D', 'x': 2, 'y': 14, 'prize': 30}, {'id': 'E', 'x': 3, 'y': 10, 'prize': 15}, {'id': 'F', 'x': 3, 'y': 9, 'prize': 15}, {'id': 'G', 'x': 4, 'y': 8, 'prize': 10}, {'id': 'H', 'x': 8, 'y': 9, 'prize': 20}, {'id': 'I', 'x': 7, 'y': 8, 'prize': 20}, {'id': 'J', 'x': 6, 'y': 7, 'prize': 15}, {'id': 'K', 'x': 5, 'y': 8, 'prize': 10}, {'id': 'L', 'x': 5, 'y': 6, 'prize': 10}, {'id': 'M', 'x': 6, 'y': 5, 'prize': 25}, {'id': 'N', 'x': 13, 'y': 13, 'prize': 40}, {'id': 'O', 'x': 14, 'y': 14, 'prize': 40}, {'id': 'P', 'x': 11, 'y': 13, 'prize': 30}, {'id': 'Q', 'x': 9, 'y': 16, 'prize': 30}, {'id': 'R', 'x': 9, 'y': 18, 'prize': 50}, {'id': 'S', 'x': 4, 'y': 16, 'prize': 30}], 'depot': 'A', 'max_length': 11.0, 'route_length': 10.242640687119284, 'collected_prize': 90.0, 'objective': 90.0}","['A', 'L', 'M', 'J', 'I', 'K', 'G', 'A']",15,csv,names
OP,OP,"On game day the task is to sketch out one loop from the venue, hitting certain street teams that each carry an influence score β the smarter route is the one that brings in the highest total influence, which you calculate by adding the scores of the teams you visit. The outing must begin and end at the venue, never revisit a position, and keep the total travel under the allowed distance. The specific map and influence figures appear below.
They are: 19 locations (including the venue 1), maximum allowed route distance 8.0.
| location_id | x_coordinate | y_coordinate | influence_score |
|---|---|---|---|
| 1 | 4 | 7 | 0 |
| 2 | 4 | 12 | 20 |
| 3 | 2 | 14 | 30 |
| 4 | 3 | 10 | 15 |
| 5 | 3 | 9 | 15 |
| 6 | 4 | 8 | 10 |
| 7 | 7 | 11 | 20 |
| 8 | 8 | 9 | 20 |
| 9 | 7 | 8 | 20 |
| 10 | 6 | 7 | 15 |
| 11 | 5 | 8 | 10 |
| 12 | 5 | 6 | 10 |
| 13 | 6 | 5 | 25 |
| 14 | 13 | 13 | 40 |
| 15 | 14 | 14 | 40 |
| 16 | 11 | 13 | 30 |
| 17 | 9 | 16 | 30 |
| 18 | 9 | 18 | 50 |
| 19 | 4 | 16 | 30 |
Plan one closed loop starting and ending at 1, visiting distinct locations and keeping total travel under 8.0.
When you send your chosen loop back, just use this simple JSON shape so it's easy to read and check:
{
""solution"": [venue_id, team_id, ..., venue_id]
}
Think of ""solution"" as the ordered list that shows the loop: start at the venue, list each street team you plan to visit in order (no repeats), and finish back at the venue. The placeholders venue_id and team_id are just stand-ins for whatever exact IDs appear in the instance β swap them out for the real IDs when you answer.
This JSON is only a sketch of the expected shape, not the final route β be sure to replace the placeholders with the real identifiers from the instance, used exactly as given.
- for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""
Do not rename IDs or invent new labels β use the instance's identifiers exactly as they appear.","{'coordinates': [[4, 7], [4, 12], [2, 14], [3, 10], [3, 9], [4, 8], [7, 11], [8, 9], [7, 8], [6, 7], [5, 8], [5, 6], [6, 5], [13, 13], [14, 14], [11, 13], [9, 16], [9, 18], [4, 16]], 'prizes': [0, 20, 30, 15, 15, 10, 20, 20, 20, 15, 10, 10, 25, 40, 40, 30, 30, 50, 30], 'depot': 0, 'max_length': 8.0, 'route_length': 7.65685424949238, 'collected_prize': 60.0, 'objective': 60.0}","[0, 10, 9, 12, 11, 0]",60.0,"{'problem_type': 'OP', 'num_nodes': 19, 'nodes': [{'id': 1, 'x': 4, 'y': 7, 'prize': 0}, {'id': 2, 'x': 4, 'y': 12, 'prize': 20}, {'id': 3, 'x': 2, 'y': 14, 'prize': 30}, {'id': 4, 'x': 3, 'y': 10, 'prize': 15}, {'id': 5, 'x': 3, 'y': 9, 'prize': 15}, {'id': 6, 'x': 4, 'y': 8, 'prize': 10}, {'id': 7, 'x': 7, 'y': 11, 'prize': 20}, {'id': 8, 'x': 8, 'y': 9, 'prize': 20}, {'id': 9, 'x': 7, 'y': 8, 'prize': 20}, {'id': 10, 'x': 6, 'y': 7, 'prize': 15}, {'id': 11, 'x': 5, 'y': 8, 'prize': 10}, {'id': 12, 'x': 5, 'y': 6, 'prize': 10}, {'id': 13, 'x': 6, 'y': 5, 'prize': 25}, {'id': 14, 'x': 13, 'y': 13, 'prize': 40}, {'id': 15, 'x': 14, 'y': 14, 'prize': 40}, {'id': 16, 'x': 11, 'y': 13, 'prize': 30}, {'id': 17, 'x': 9, 'y': 16, 'prize': 30}, {'id': 18, 'x': 9, 'y': 18, 'prize': 50}, {'id': 19, 'x': 4, 'y': 16, 'prize': 30}], 'depot': 1, 'max_length': 8.0, 'route_length': 7.65685424949238, 'collected_prize': 60.0, 'objective': 60.0}","[1, 11, 10, 13, 12, 1]",16,markdown_table,1
OP,OP,"Many local photographers plan shoots the same way: pick a circular route from the studio, visit several distinct views, and head home β all without repeating locations. The aim is to collect as much artistic value as possible along that single loop; the total is simply the sum of the values for the places that are actually visited. The plan must fit into the allowed travel time, cannot include the same spot twice, and must start and end at the studio. The concrete locations, their scores, and travel times follow below.
There are 18 locations listed, with the studio at node 0 and a maximum allowed loop travel of 25.0.
Location 0 sits at (19, 24) and yields artistic value 0.
Location 1 sits at (12, 24) and yields artistic value 20.
Location 2 sits at (16, 28) and yields artistic value 20.
Location 3 sits at (20, 28) and yields artistic value 20.
Location 4 sits at (12, 26) and yields artistic value 20.
Location 5 sits at (12, 22) and yields artistic value 20.
Location 6 sits at (19, 15) and yields artistic value 30.
Location 7 sits at (14, 15) and yields artistic value 30.
Location 8 sits at (11, 18) and yields artistic value 30.
Location 9 sits at (10, 32) and yields artistic value 40.
Location 10 sits at (19, 10) and yields artistic value 40.
Location 11 sits at (15, 8) and yields artistic value 40.
Location 12 sits at (14, 31) and yields artistic value 50.
Location 13 sits at (7, 36) and yields artistic value 50.
Location 14 sits at (16, 21) and yields artistic value 10.
Location 15 sits at (17, 28) and yields artistic value 10.
Location 16 sits at (14, 19) and yields artistic value 20.
Location 17 sits at (10, 21) and yields artistic value 20.
The entries that follow describe each location for composing a single looped route that starts and ends at node 0 and fits within the 25.0 travel limit.
If you want to hand me a planned loop, just send it in this simple JSON shape β nothing fancy, just the stops in order.
{
""solution"": [studio_id, view_id, ..., studio_id]
}
This just says: ""solution"" is the ordered list of stops, starting and finishing at the studio. studio_id is the studio/start point, view_id are the viewpoints you visit, and the ""..."" means any other stops in between. It's only a sketch of the shape I expect, not the actual route.
Please use the exact identifiers from the instance input when you fill this in β do not rename or invent new ones.
- for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'coordinates': [[19, 24], [12, 24], [16, 28], [20, 28], [12, 26], [12, 22], [19, 15], [14, 15], [11, 18], [10, 32], [19, 10], [15, 8], [14, 31], [7, 36], [16, 21], [17, 28], [14, 19], [10, 21]], 'prizes': [0, 20, 20, 20, 20, 20, 30, 30, 30, 40, 40, 40, 50, 50, 10, 10, 20, 20], 'depot': 0, 'max_length': 25.0, 'route_length': 23.462852037598072, 'collected_prize': 120.0, 'objective': 120.0}","[0, 1, 4, 12, 2, 15, 0]",120.0,"{'problem_type': 'OP', 'num_nodes': 18, 'nodes': [{'id': 0, 'x': 19, 'y': 24, 'prize': 0}, {'id': 1, 'x': 12, 'y': 24, 'prize': 20}, {'id': 2, 'x': 16, 'y': 28, 'prize': 20}, {'id': 3, 'x': 20, 'y': 28, 'prize': 20}, {'id': 4, 'x': 12, 'y': 26, 'prize': 20}, {'id': 5, 'x': 12, 'y': 22, 'prize': 20}, {'id': 6, 'x': 19, 'y': 15, 'prize': 30}, {'id': 7, 'x': 14, 'y': 15, 'prize': 30}, {'id': 8, 'x': 11, 'y': 18, 'prize': 30}, {'id': 9, 'x': 10, 'y': 32, 'prize': 40}, {'id': 10, 'x': 19, 'y': 10, 'prize': 40}, {'id': 11, 'x': 15, 'y': 8, 'prize': 40}, {'id': 12, 'x': 14, 'y': 31, 'prize': 50}, {'id': 13, 'x': 7, 'y': 36, 'prize': 50}, {'id': 14, 'x': 16, 'y': 21, 'prize': 10}, {'id': 15, 'x': 17, 'y': 28, 'prize': 10}, {'id': 16, 'x': 14, 'y': 19, 'prize': 20}, {'id': 17, 'x': 10, 'y': 21, 'prize': 20}], 'depot': 0, 'max_length': 25.0, 'route_length': 23.462852037598072, 'collected_prize': 120.0, 'objective': 120.0}","[0, 1, 4, 12, 2, 15, 0]",17,nl,0
OP,OP,"In our town the fundraiser team wants to plan a single outing that leaves from headquarters, visits a selection of donor addresses (each tagged with a possible donation amount), and returns home, all within a fixed travel budget. The aim is to pick the combination of stops that yields the highest total of those tagged amounts β you find that by adding together the donation numbers for the stops you take. Each donor can only be visited once, the journey must both start and end at HQ, and the total travel can't exceed the set limit. The concrete locations, donation tags, and travel limit are listed below.
{
""total_locations_including_hq"": 21,
""nodes"": [
{
""location_id"": ""A"",
""x_coordinate"": 10,
""y_coordinate"": 14,
""donation_potential"": 0
},
{
""location_id"": ""B"",
""x_coordinate"": 18,
""y_coordinate"": 15,
""donation_potential"": 10
},
{
""location_id"": ""C"",
""x_coordinate"": 18,
""y_coordinate"": 13,
""donation_potential"": 10
},
{
""location_id"": ""D"",
""x_coordinate"": 15,
""y_coordinate"": 11,
""donation_potential"": 10
},
{
""location_id"": ""E"",
""x_coordinate"": 14,
""y_coordinate"": 13,
""donation_potential"": 5
},
{
""location_id"": ""F"",
""x_coordinate"": 16,
""y_coordinate"": 13,
""donation_potential"": 5
},
{
""location_id"": ""G"",
""x_coordinate"": 16,
""y_coordinate"": 19,
""donation_potential"": 10
},
{
""location_id"": ""H"",
""x_coordinate"": 15,
""y_coordinate"": 20,
""donation_potential"": 10
},
{
""location_id"": ""I"",
""x_coordinate"": 14,
""y_coordinate"": 15,
""donation_potential"": 5
},
{
""location_id"": ""J"",
""x_coordinate"": 11,
""y_coordinate"": 6,
""donation_potential"": 15
},
{
""location_id"": ""K"",
""x_coordinate"": 8,
""y_coordinate"": 5,
""donation_potential"": 15
},
{
""location_id"": ""L"",
""x_coordinate"": 7,
""y_coordinate"": 9,
""donation_potential"": 10
},
{
""location_id"": ""M"",
""x_coordinate"": 11,
""y_coordinate"": 12,
""donation_potential"": 5
},
{
""location_id"": ""N"",
""x_coordinate"": 11,
""y_coordinate"": 17,
""donation_potential"": 5
},
{
""location_id"": ""O"",
""x_coordinate"": 11,
""y_coordinate"": 20,
""donation_potential"": 10
},
{
""location_id"": ""P"",
""x_coordinate"": 10,
""y_coordinate"": 22,
""donation_potential"": 10
},
{
""location_id"": ""Q"",
""x_coordinate"": 10,
""y_coordinate"": 26,
""donation_potential"": 15
},
{
""location_id"": ""R"",
""x_coordinate"": 7,
""y_coordinate"": 24,
""donation_potential"": 15
},
{
""location_id"": ""S"",
""x_coordinate"": 8,
""y_coordinate"": 17,
""donation_potential"": 10
},
{
""location_id"": ""T"",
""x_coordinate"": 4,
""y_coordinate"": 18,
""donation_potential"": 10
},
{
""location_id"": ""U"",
""x_coordinate"": 7,
""y_coordinate"": 18,
""donation_potential"": 10
}
],
""headquarters_id"": ""A"",
""travel_budget"": 12.0
}
Oh, and when youβre ready to tell me the route, just drop it in a tiny JSON snippet like this so itβs easy to parse:
{
""solution"": [hq_id, donor_id, ..., hq_id]
}
This just represents the tour as a simple list: start at HQ (the first hq_id), visit each donor in order (each donor_id is a stop you want to include), and finish back at HQ (the last hq_id). Think of it like filling out a short form β not the final answer itself, just the shape I expect.
Please use the exact identifiers from the instance input, with no renaming and no extra labels β they have to match character-for-character.
- for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.","{'coordinates': [[10, 14], [18, 15], [18, 13], [15, 11], [14, 13], [16, 13], [16, 19], [15, 20], [14, 15], [11, 6], [8, 5], [7, 9], [11, 12], [11, 17], [11, 20], [10, 22], [10, 26], [7, 24], [8, 17], [4, 18], [7, 18]], 'prizes': [0, 10, 10, 10, 5, 5, 10, 10, 5, 15, 15, 10, 5, 5, 10, 10, 15, 15, 10, 10, 10], 'depot': 0, 'max_length': 12.0, 'route_length': 10.019764837837084, 'collected_prize': 20.0, 'objective': 20.0}","[0, 18, 20, 0]",20.0,"{'problem_type': 'OP', 'num_nodes': 21, 'nodes': [{'id': 'A', 'x': 10, 'y': 14, 'prize': 0}, {'id': 'B', 'x': 18, 'y': 15, 'prize': 10}, {'id': 'C', 'x': 18, 'y': 13, 'prize': 10}, {'id': 'D', 'x': 15, 'y': 11, 'prize': 10}, {'id': 'E', 'x': 14, 'y': 13, 'prize': 5}, {'id': 'F', 'x': 16, 'y': 13, 'prize': 5}, {'id': 'G', 'x': 16, 'y': 19, 'prize': 10}, {'id': 'H', 'x': 15, 'y': 20, 'prize': 10}, {'id': 'I', 'x': 14, 'y': 15, 'prize': 5}, {'id': 'J', 'x': 11, 'y': 6, 'prize': 15}, {'id': 'K', 'x': 8, 'y': 5, 'prize': 15}, {'id': 'L', 'x': 7, 'y': 9, 'prize': 10}, {'id': 'M', 'x': 11, 'y': 12, 'prize': 5}, {'id': 'N', 'x': 11, 'y': 17, 'prize': 5}, {'id': 'O', 'x': 11, 'y': 20, 'prize': 10}, {'id': 'P', 'x': 10, 'y': 22, 'prize': 10}, {'id': 'Q', 'x': 10, 'y': 26, 'prize': 15}, {'id': 'R', 'x': 7, 'y': 24, 'prize': 15}, {'id': 'S', 'x': 8, 'y': 17, 'prize': 10}, {'id': 'T', 'x': 4, 'y': 18, 'prize': 10}, {'id': 'U', 'x': 7, 'y': 18, 'prize': 10}], 'depot': 'A', 'max_length': 12.0, 'route_length': 10.019764837837084, 'collected_prize': 20.0, 'objective': 20.0}","['A', 'S', 'U', 'A']",18,json,names
OP,OP,"Imagine a food truck plotting one neat circuit: out from the kitchen, through a few festival spots, and back home for the night. The decision is which stops to hit so the combined promised sales from those chosen events is as large as it can be. You judge a route by summing the sales scores of every stop you include β that sum is the expected revenue β and by summing the distances of each segment of the loop (kitchen to first stop, between stops, and back) to get the total drive length. You canβt stop at the same event twice, and the whole loop must stay inside the allowed driving distance, so pick a round trip made of different events that maximizes the total sales without busting the distance limit. The exact spots, scores, and distances are listed below.
# total_locations_count=18
# kitchen_node=A
# max_route_length=14.0
location_id,coord_x,coord_y,expected_sales
A,4,7,0
B,5,11,20
C,4,12,20
D,2,14,30
E,3,9,15
F,4,8,10
G,7,11,20
H,8,9,20
I,7,8,20
J,6,7,15
K,5,8,10
L,5,6,10
M,6,5,25
N,13,13,40
O,11,13,30
P,9,16,30
Q,9,18,50
R,4,16,30
When you want to send me your chosen loop, just pop it into this little JSON shape so it's easy to read:
{
""solution"": [depot_id, location_id, ..., depot_id]
}
Think of ""solution"" as the ordered list of stops in your loop: start at the depot, visit each event once in the order listed, and then finish back at the depot. This JSON is just a sketch of the expected shape β not the actual answer itself β so fill in real IDs from the instance when you give the final route.
Please use the exact identifiers from the instance input β don't rename them and don't invent new labels.
- for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'coordinates': [[4, 7], [5, 11], [4, 12], [2, 14], [3, 9], [4, 8], [7, 11], [8, 9], [7, 8], [6, 7], [5, 8], [5, 6], [6, 5], [13, 13], [11, 13], [9, 16], [9, 18], [4, 16]], 'prizes': [0, 20, 20, 30, 15, 10, 20, 20, 20, 15, 10, 10, 25, 40, 30, 30, 50, 30], 'depot': 0, 'max_length': 14.0, 'route_length': 13.899494936611667, 'collected_prize': 110.0, 'objective': 110.0}","[0, 12, 11, 9, 7, 8, 10, 5, 0]",110.0,"{'problem_type': 'OP', 'num_nodes': 18, 'nodes': [{'id': 'A', 'x': 4, 'y': 7, 'prize': 0}, {'id': 'B', 'x': 5, 'y': 11, 'prize': 20}, {'id': 'C', 'x': 4, 'y': 12, 'prize': 20}, {'id': 'D', 'x': 2, 'y': 14, 'prize': 30}, {'id': 'E', 'x': 3, 'y': 9, 'prize': 15}, {'id': 'F', 'x': 4, 'y': 8, 'prize': 10}, {'id': 'G', 'x': 7, 'y': 11, 'prize': 20}, {'id': 'H', 'x': 8, 'y': 9, 'prize': 20}, {'id': 'I', 'x': 7, 'y': 8, 'prize': 20}, {'id': 'J', 'x': 6, 'y': 7, 'prize': 15}, {'id': 'K', 'x': 5, 'y': 8, 'prize': 10}, {'id': 'L', 'x': 5, 'y': 6, 'prize': 10}, {'id': 'M', 'x': 6, 'y': 5, 'prize': 25}, {'id': 'N', 'x': 13, 'y': 13, 'prize': 40}, {'id': 'O', 'x': 11, 'y': 13, 'prize': 30}, {'id': 'P', 'x': 9, 'y': 16, 'prize': 30}, {'id': 'Q', 'x': 9, 'y': 18, 'prize': 50}, {'id': 'R', 'x': 4, 'y': 16, 'prize': 30}], 'depot': 'A', 'max_length': 14.0, 'route_length': 13.899494936611667, 'collected_prize': 110.0, 'objective': 110.0}","['A', 'M', 'L', 'J', 'H', 'I', 'K', 'F', 'A']",19,csv,names
OP,OP,"Iβm imagining an urban explorer who wants to plan a single little loop that starts and ends at the subway station, drops by a handful of murals and landmarks, and gets back before time runs out. The choice to make is which places to include and in what order so the whole loop stays under the available exploring time, never visits the same spot twice, and brings the most fun. Treat each mural or landmark like a tiny happiness number β add up the enjoyment scores of the spots visited, and the best loop is the one with the biggest total while still finishing at the subway on time. The concrete details for the spots, their enjoyment numbers, and the time limit are shown below.
There are 23 locations on the map (including the subway station 1), and I need the whole loop to finish within 27.0 units of exploring time.
| location_id | x_coordinate | y_coordinate | enjoyment_score |
|---|---|---|---|
| 1 | 19 | 24 | 0 |
| 2 | 12 | 24 | 20 |
| 3 | 14 | 28 | 20 |
| 4 | 16 | 28 | 20 |
| 5 | 20 | 28 | 20 |
| 6 | 12 | 26 | 20 |
| 7 | 21 | 27 | 20 |
| 8 | 12 | 29 | 30 |
| 9 | 17 | 28 | 30 |
| 10 | 9 | 29 | 40 |
| 11 | 19 | 10 | 40 |
| 12 | 15 | 8 | 40 |
| 13 | 14 | 31 | 50 |
| 14 | 7 | 36 | 50 |
| 15 | 21 | 25 | 50 |
| 16 | 19 | 24 | 10 |
| 17 | 21 | 21 | 10 |
| 18 | 16 | 21 | 10 |
| 19 | 18 | 26 | 10 |
| 20 | 14 | 19 | 20 |
| 21 | 17 | 19 | 20 |
| 22 | 10 | 21 | 20 |
| 23 | 15 | 23 | 10 |
Iβll choose a route that starts and ends at 1 and stays under 27.0 time to maximize total enjoyment.
Oh, and when you send back the chosen loop, please use a tiny JSON snippet so it's easy to read and check. Something like this:
{
""solution"": [station_id, spot_id, ..., station_id]
}
This just means: ""solution"" is the loop, and the list is the order of places you visit starting and ending at the subway station. The placeholders above are just showing the shape β replace them with the exact IDs from the puzzle when you answer.
Make sure to use the instanceβs identifiers exactly as given β no renaming and no invented labels.
- for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'coordinates': [[19, 24], [12, 24], [14, 28], [16, 28], [20, 28], [12, 26], [21, 27], [12, 29], [17, 28], [9, 29], [19, 10], [15, 8], [14, 31], [7, 36], [21, 25], [19, 24], [21, 21], [16, 21], [18, 26], [14, 19], [17, 19], [10, 21], [15, 23]], 'prizes': [0, 20, 20, 20, 20, 20, 20, 30, 30, 40, 40, 40, 50, 50, 50, 10, 10, 10, 10, 20, 20, 20, 10], 'depot': 0, 'max_length': 27.0, 'route_length': 25.02191243148413, 'collected_prize': 260.0, 'objective': 260.0}","[0, 18, 3, 2, 7, 12, 8, 4, 6, 14, 15, 0]",260.0,"{'problem_type': 'OP', 'num_nodes': 23, 'nodes': [{'id': 1, 'x': 19, 'y': 24, 'prize': 0}, {'id': 2, 'x': 12, 'y': 24, 'prize': 20}, {'id': 3, 'x': 14, 'y': 28, 'prize': 20}, {'id': 4, 'x': 16, 'y': 28, 'prize': 20}, {'id': 5, 'x': 20, 'y': 28, 'prize': 20}, {'id': 6, 'x': 12, 'y': 26, 'prize': 20}, {'id': 7, 'x': 21, 'y': 27, 'prize': 20}, {'id': 8, 'x': 12, 'y': 29, 'prize': 30}, {'id': 9, 'x': 17, 'y': 28, 'prize': 30}, {'id': 10, 'x': 9, 'y': 29, 'prize': 40}, {'id': 11, 'x': 19, 'y': 10, 'prize': 40}, {'id': 12, 'x': 15, 'y': 8, 'prize': 40}, {'id': 13, 'x': 14, 'y': 31, 'prize': 50}, {'id': 14, 'x': 7, 'y': 36, 'prize': 50}, {'id': 15, 'x': 21, 'y': 25, 'prize': 50}, {'id': 16, 'x': 19, 'y': 24, 'prize': 10}, {'id': 17, 'x': 21, 'y': 21, 'prize': 10}, {'id': 18, 'x': 16, 'y': 21, 'prize': 10}, {'id': 19, 'x': 18, 'y': 26, 'prize': 10}, {'id': 20, 'x': 14, 'y': 19, 'prize': 20}, {'id': 21, 'x': 17, 'y': 19, 'prize': 20}, {'id': 22, 'x': 10, 'y': 21, 'prize': 20}, {'id': 23, 'x': 15, 'y': 23, 'prize': 10}], 'depot': 1, 'max_length': 27.0, 'route_length': 25.02191243148413, 'collected_prize': 260.0, 'objective': 260.0}","[1, 19, 4, 3, 8, 13, 9, 5, 7, 15, 16, 1]",20,markdown_table,1
OP,OP,"Thereβs a small sandwich cart that rolls out from a commissary every morning and needs a single round trip: pick which street corners and pop-up events to visit, donβt go to the same spot twice, and make sure the whole trip fits the allotted driving time. The goal is simple β pick the combination of stops whose estimated sales add up to the biggest total β by summing each stopβs expected income β without blowing the time budget. The concrete stop list and numbers are shown below.
{
""total_locations_including_commissary"": 19,
""nodes"": [
{
""stop_id"": 1,
""x_coordinate_on_map"": 19,
""y_coordinate_on_map"": 24,
""expected_sales_at_stop"": 0
},
{
""stop_id"": 2,
""x_coordinate_on_map"": 12,
""y_coordinate_on_map"": 24,
""expected_sales_at_stop"": 20
},
{
""stop_id"": 3,
""x_coordinate_on_map"": 12,
""y_coordinate_on_map"": 26,
""expected_sales_at_stop"": 20
},
{
""stop_id"": 4,
""x_coordinate_on_map"": 21,
""y_coordinate_on_map"": 27,
""expected_sales_at_stop"": 20
},
{
""stop_id"": 5,
""x_coordinate_on_map"": 22,
""y_coordinate_on_map"": 17,
""expected_sales_at_stop"": 30
},
{
""stop_id"": 6,
""x_coordinate_on_map"": 11,
""y_coordinate_on_map"": 18,
""expected_sales_at_stop"": 30
},
{
""stop_id"": 7,
""x_coordinate_on_map"": 12,
""y_coordinate_on_map"": 29,
""expected_sales_at_stop"": 30
},
{
""stop_id"": 8,
""x_coordinate_on_map"": 17,
""y_coordinate_on_map"": 28,
""expected_sales_at_stop"": 30
},
{
""stop_id"": 9,
""x_coordinate_on_map"": 9,
""y_coordinate_on_map"": 29,
""expected_sales_at_stop"": 40
},
{
""stop_id"": 10,
""x_coordinate_on_map"": 19,
""y_coordinate_on_map"": 10,
""expected_sales_at_stop"": 40
},
{
""stop_id"": 11,
""x_coordinate_on_map"": 15,
""y_coordinate_on_map"": 8,
""expected_sales_at_stop"": 40
},
{
""stop_id"": 12,
""x_coordinate_on_map"": 7,
""y_coordinate_on_map"": 36,
""expected_sales_at_stop"": 50
},
{
""stop_id"": 13,
""x_coordinate_on_map"": 21,
""y_coordinate_on_map"": 25,
""expected_sales_at_stop"": 50
},
{
""stop_id"": 14,
""x_coordinate_on_map"": 18,
""y_coordinate_on_map"": 25,
""expected_sales_at_stop"": 10
},
{
""stop_id"": 15,
""x_coordinate_on_map"": 21,
""y_coordinate_on_map"": 21,
""expected_sales_at_stop"": 10
},
{
""stop_id"": 16,
""x_coordinate_on_map"": 16,
""y_coordinate_on_map"": 21,
""expected_sales_at_stop"": 10
},
{
""stop_id"": 17,
""x_coordinate_on_map"": 18,
""y_coordinate_on_map"": 26,
""expected_sales_at_stop"": 10
},
{
""stop_id"": 18,
""x_coordinate_on_map"": 17,
""y_coordinate_on_map"": 28,
""expected_sales_at_stop"": 10
},
{
""stop_id"": 19,
""x_coordinate_on_map"": 14,
""y_coordinate_on_map"": 19,
""expected_sales_at_stop"": 20
}
],
""commissary_node_id"": 1,
""max_driving_time_or_route_length"": 8.0
}
When you send back the chosen route, just use a tiny JSON shape like this so it's easy to read and parse:
{
""solution"": [cart_depot, corner_id, ..., cart_depot]
}
Think of that array as the trip: start at the commissary (the first item), list each corner or event you want to hit in order, and finish back at the commissary (the last item). It's just a simple form β the sketch above shows the shape I expect, not the actual stops.
Please use the exact identifiers from the instance input β don't rename them or invent new labels.
Valid identifiers look like plain numbers such as ""1"" or ""23"", single capital letters like ""A"" or ""B"", or a capital letter followed by digits like ""A1"" or ""X7"".","{'coordinates': [[19, 24], [12, 24], [12, 26], [21, 27], [22, 17], [11, 18], [12, 29], [17, 28], [9, 29], [19, 10], [15, 8], [7, 36], [21, 25], [18, 25], [21, 21], [16, 21], [18, 26], [17, 28], [14, 19]], 'prizes': [0, 20, 20, 20, 30, 30, 30, 30, 40, 40, 40, 50, 50, 10, 10, 10, 10, 10, 20], 'depot': 0, 'max_length': 8.0, 'route_length': 7.841619252963779, 'collected_prize': 70.0, 'objective': 70.0}","[0, 12, 3, 0]",70.0,"{'problem_type': 'OP', 'num_nodes': 19, 'nodes': [{'id': 1, 'x': 19, 'y': 24, 'prize': 0}, {'id': 2, 'x': 12, 'y': 24, 'prize': 20}, {'id': 3, 'x': 12, 'y': 26, 'prize': 20}, {'id': 4, 'x': 21, 'y': 27, 'prize': 20}, {'id': 5, 'x': 22, 'y': 17, 'prize': 30}, {'id': 6, 'x': 11, 'y': 18, 'prize': 30}, {'id': 7, 'x': 12, 'y': 29, 'prize': 30}, {'id': 8, 'x': 17, 'y': 28, 'prize': 30}, {'id': 9, 'x': 9, 'y': 29, 'prize': 40}, {'id': 10, 'x': 19, 'y': 10, 'prize': 40}, {'id': 11, 'x': 15, 'y': 8, 'prize': 40}, {'id': 12, 'x': 7, 'y': 36, 'prize': 50}, {'id': 13, 'x': 21, 'y': 25, 'prize': 50}, {'id': 14, 'x': 18, 'y': 25, 'prize': 10}, {'id': 15, 'x': 21, 'y': 21, 'prize': 10}, {'id': 16, 'x': 16, 'y': 21, 'prize': 10}, {'id': 17, 'x': 18, 'y': 26, 'prize': 10}, {'id': 18, 'x': 17, 'y': 28, 'prize': 10}, {'id': 19, 'x': 14, 'y': 19, 'prize': 20}], 'depot': 1, 'max_length': 8.0, 'route_length': 7.841619252963779, 'collected_prize': 70.0, 'objective': 70.0}","[1, 13, 4, 1]",21,json,1
OP,OP,"Recently a docent was asked to design a casual gallery circuit: it must leave the museum, hit a handful of galleries without returning to any already seen, and then circle back to the museum. The point is to choose stops that, when their interest scores are added up, give the highest total possible, all while the total walk doesnβt exceed the allowed distance. The concrete details will be shown below.
There are 19 locations in total; the museum is node 1; the maximum allowed walk is 10.0.
Location 1 is located at (4, 7) and has interest score 0.
Location 2 is located at (5, 11) and has interest score 20.
Location 3 is located at (4, 12) and has interest score 20.
Location 4 is located at (2, 14) and has interest score 30.
Location 5 is located at (3, 10) and has interest score 15.
Location 6 is located at (3, 9) and has interest score 15.
Location 7 is located at (4, 8) and has interest score 10.
Location 8 is located at (7, 11) and has interest score 20.
Location 9 is located at (8, 9) and has interest score 20.
Location 10 is located at (7, 8) and has interest score 20.
Location 11 is located at (6, 7) and has interest score 15.
Location 12 is located at (5, 6) and has interest score 10.
Location 13 is located at (6, 5) and has interest score 25.
Location 14 is located at (13, 13) and has interest score 40.
Location 15 is located at (14, 14) and has interest score 40.
Location 16 is located at (11, 13) and has interest score 30.
Location 17 is located at (9, 16) and has interest score 30.
Location 18 is located at (9, 18) and has interest score 50.
Location 19 is located at (4, 16) and has interest score 30.
These specifics support selecting a loop that starts and ends at 1 without exceeding 10.0.
If you want to return the chosen circuit, a neat, minimal way to do it is with a tiny JSON snippet like this:
{
""solution"": [museum_id, gallery_id, ..., museum_id]
}
Here ""solution"" is just the ordered list of stops on the walk β start at the museum, list each gallery you visit (at most once), and finish back at the museum. Think of it like filling in a simple itinerary form: the items inside the brackets are the place identifiers in visit order. This is only a sketch of the shape I expect, not the actual route.
Please make sure to use the exact identifiers from the instance input β don't rename them or invent new ones.
- for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'coordinates': [[4, 7], [5, 11], [4, 12], [2, 14], [3, 10], [3, 9], [4, 8], [7, 11], [8, 9], [7, 8], [6, 7], [5, 6], [6, 5], [13, 13], [14, 14], [11, 13], [9, 16], [9, 18], [4, 16]], 'prizes': [0, 20, 20, 30, 15, 15, 10, 20, 20, 20, 15, 10, 25, 40, 40, 30, 30, 50, 30], 'depot': 0, 'max_length': 10.0, 'route_length': 9.404918347287664, 'collected_prize': 70.0, 'objective': 70.0}","[0, 11, 12, 10, 9, 0]",70.0,"{'problem_type': 'OP', 'num_nodes': 19, 'nodes': [{'id': 1, 'x': 4, 'y': 7, 'prize': 0}, {'id': 2, 'x': 5, 'y': 11, 'prize': 20}, {'id': 3, 'x': 4, 'y': 12, 'prize': 20}, {'id': 4, 'x': 2, 'y': 14, 'prize': 30}, {'id': 5, 'x': 3, 'y': 10, 'prize': 15}, {'id': 6, 'x': 3, 'y': 9, 'prize': 15}, {'id': 7, 'x': 4, 'y': 8, 'prize': 10}, {'id': 8, 'x': 7, 'y': 11, 'prize': 20}, {'id': 9, 'x': 8, 'y': 9, 'prize': 20}, {'id': 10, 'x': 7, 'y': 8, 'prize': 20}, {'id': 11, 'x': 6, 'y': 7, 'prize': 15}, {'id': 12, 'x': 5, 'y': 6, 'prize': 10}, {'id': 13, 'x': 6, 'y': 5, 'prize': 25}, {'id': 14, 'x': 13, 'y': 13, 'prize': 40}, {'id': 15, 'x': 14, 'y': 14, 'prize': 40}, {'id': 16, 'x': 11, 'y': 13, 'prize': 30}, {'id': 17, 'x': 9, 'y': 16, 'prize': 30}, {'id': 18, 'x': 9, 'y': 18, 'prize': 50}, {'id': 19, 'x': 4, 'y': 16, 'prize': 30}], 'depot': 1, 'max_length': 10.0, 'route_length': 9.404918347287664, 'collected_prize': 70.0, 'objective': 70.0}","[1, 12, 13, 11, 10, 1]",22,nl,1
OP,OP,"Back at the community center the challenge is to map a single circular tour that starts and stops at base, visits some neighborhoods without repeating any stop, and finishes within the shiftβs time allowance. The way to tell which tour is better is by how much donation total it collects β simply sum the donations from every neighborhood visited β and only those tours that keep the full drive under the time cap count. The detailed list of locations, travel times, and donation estimates appears below.
# total_locations_including_depot=20
# community_center_id=0
# shift_time_limit=25.0
location_id,map_x_coordinate,map_y_coordinate,donation_estimate
0,4,7,0
1,5,11,20
2,4,12,20
3,2,14,30
4,3,10,15
5,3,9,15
6,4,8,10
7,7,11,20
8,8,9,20
9,7,8,20
10,6,7,15
11,5,8,10
12,5,6,10
13,6,5,25
14,13,13,40
15,14,14,40
16,11,13,30
17,9,16,30
18,9,18,50
19,4,16,30
When you give the route back, just use this simple JSON shape so it's easy to read and check:
{
""solution"": [depot_id, location_id, ..., depot_id]
}
This is just a sketch of the shape I need: the ""solution"" entry is an ordered list of stops on the circular tour, starting and ending at base (the first and last entries are the depot), and the items in between are the neighborhoods you plan to visit. Treat the placeholders as placeholders β replace them with the exact identifiers from the instance when you send the real answer.
Please make sure you use the identifiers exactly as they appear in the input β no renaming and no new labels. Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.","{'coordinates': [[4, 7], [5, 11], [4, 12], [2, 14], [3, 10], [3, 9], [4, 8], [7, 11], [8, 9], [7, 8], [6, 7], [5, 8], [5, 6], [6, 5], [13, 13], [14, 14], [11, 13], [9, 16], [9, 18], [4, 16]], 'prizes': [0, 20, 20, 30, 15, 15, 10, 20, 20, 20, 15, 10, 10, 25, 40, 40, 30, 30, 50, 30], 'depot': 0, 'max_length': 25.0, 'route_length': 23.672882102102214, 'collected_prize': 220.0, 'objective': 220.0}","[0, 12, 13, 10, 9, 8, 7, 1, 2, 3, 4, 5, 6, 0]",220.0,"{'problem_type': 'OP', 'num_nodes': 20, 'nodes': [{'id': 0, 'x': 4, 'y': 7, 'prize': 0}, {'id': 1, 'x': 5, 'y': 11, 'prize': 20}, {'id': 2, 'x': 4, 'y': 12, 'prize': 20}, {'id': 3, 'x': 2, 'y': 14, 'prize': 30}, {'id': 4, 'x': 3, 'y': 10, 'prize': 15}, {'id': 5, 'x': 3, 'y': 9, 'prize': 15}, {'id': 6, 'x': 4, 'y': 8, 'prize': 10}, {'id': 7, 'x': 7, 'y': 11, 'prize': 20}, {'id': 8, 'x': 8, 'y': 9, 'prize': 20}, {'id': 9, 'x': 7, 'y': 8, 'prize': 20}, {'id': 10, 'x': 6, 'y': 7, 'prize': 15}, {'id': 11, 'x': 5, 'y': 8, 'prize': 10}, {'id': 12, 'x': 5, 'y': 6, 'prize': 10}, {'id': 13, 'x': 6, 'y': 5, 'prize': 25}, {'id': 14, 'x': 13, 'y': 13, 'prize': 40}, {'id': 15, 'x': 14, 'y': 14, 'prize': 40}, {'id': 16, 'x': 11, 'y': 13, 'prize': 30}, {'id': 17, 'x': 9, 'y': 16, 'prize': 30}, {'id': 18, 'x': 9, 'y': 18, 'prize': 50}, {'id': 19, 'x': 4, 'y': 16, 'prize': 30}], 'depot': 0, 'max_length': 25.0, 'route_length': 23.672882102102214, 'collected_prize': 220.0, 'objective': 220.0}","[0, 12, 13, 10, 9, 8, 7, 1, 2, 3, 4, 5, 6, 0]",23,csv,0
OP,OP,"Thereβs a freelance photographer trying to squeeze the most out of a single daylight walk: start at the hotel, visit a handful of landmarks (each only once), and return to the hotel before the light fades. The comparison between possible routes comes down to total artistic value β just add the value numbers for each visited landmark β and any route that goes over the available walking time or repeats a spot is out. The specific places, their scores, and time estimates are listed below.
There are 17 locations including the hotel (node 1); the entire round trip must not exceed 10.0.
| site_id | x_coordinate_map | y_coordinate_map | artistic_value_score |
|---|---|---|---|
| 1 | 4 | 7 | 0 |
| 2 | 4 | 12 | 20 |
| 3 | 2 | 14 | 30 |
| 4 | 3 | 10 | 15 |
| 5 | 3 | 9 | 15 |
| 6 | 4 | 8 | 10 |
| 7 | 7 | 11 | 20 |
| 8 | 8 | 9 | 20 |
| 9 | 7 | 8 | 20 |
| 10 | 6 | 7 | 15 |
| 11 | 5 | 6 | 10 |
| 12 | 6 | 5 | 25 |
| 13 | 13 | 13 | 40 |
| 14 | 11 | 13 | 30 |
| 15 | 9 | 16 | 30 |
| 16 | 9 | 18 | 50 |
| 17 | 4 | 16 | 30 |
Plan routes that start and end at node 1 and maximize summed artistic value without exceeding 10.0.
Also, when you give me the chosen route, please stick to this simple JSON shape so itβs easy to read and machine-friendly:
{
""solution"": [""hotel_id"", ""landmark_id"", ..., ""hotel_id""]
}
Think of this like a short form: ""solution"" is the ordered list of stops β start at the hotel, list each landmark you want to visit (each at most once), and finish back at the hotel. This JSON is just a sketch of the shape I expect, not the actual answer.
Please use the exact identifiers from the instance input β donβt rename them or invent new labels.
- for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'coordinates': [[4, 7], [4, 12], [2, 14], [3, 10], [3, 9], [4, 8], [7, 11], [8, 9], [7, 8], [6, 7], [5, 6], [6, 5], [13, 13], [11, 13], [9, 16], [9, 18], [4, 16]], 'prizes': [0, 20, 30, 15, 15, 10, 20, 20, 20, 15, 10, 25, 40, 30, 30, 50, 30], 'depot': 0, 'max_length': 10.0, 'route_length': 9.404918347287666, 'collected_prize': 70.0, 'objective': 70.0}","[0, 8, 9, 11, 10, 0]",70.0,"{'problem_type': 'OP', 'num_nodes': 17, 'nodes': [{'id': 1, 'x': 4, 'y': 7, 'prize': 0}, {'id': 2, 'x': 4, 'y': 12, 'prize': 20}, {'id': 3, 'x': 2, 'y': 14, 'prize': 30}, {'id': 4, 'x': 3, 'y': 10, 'prize': 15}, {'id': 5, 'x': 3, 'y': 9, 'prize': 15}, {'id': 6, 'x': 4, 'y': 8, 'prize': 10}, {'id': 7, 'x': 7, 'y': 11, 'prize': 20}, {'id': 8, 'x': 8, 'y': 9, 'prize': 20}, {'id': 9, 'x': 7, 'y': 8, 'prize': 20}, {'id': 10, 'x': 6, 'y': 7, 'prize': 15}, {'id': 11, 'x': 5, 'y': 6, 'prize': 10}, {'id': 12, 'x': 6, 'y': 5, 'prize': 25}, {'id': 13, 'x': 13, 'y': 13, 'prize': 40}, {'id': 14, 'x': 11, 'y': 13, 'prize': 30}, {'id': 15, 'x': 9, 'y': 16, 'prize': 30}, {'id': 16, 'x': 9, 'y': 18, 'prize': 50}, {'id': 17, 'x': 4, 'y': 16, 'prize': 30}], 'depot': 1, 'max_length': 10.0, 'route_length': 9.404918347287666, 'collected_prize': 70.0, 'objective': 70.0}","[1, 9, 10, 12, 11, 1]",24,markdown_table,1
OP,OP,"Out on the road with the bookmobile, the plan is to run one continuous loop from the depot and back, skipping any repeat visits to the same cluster and keeping the total miles within the daily cap. What matters most is the total number of books checked out along that loop β just add the expected checkouts at each visited cluster to get that score. The exact stops and their expected checkouts are listed below.
# total_locations_including_depot=16
# library_depot_id=1
# daily_mileage_cap=18.0
cluster_id,x_coordinate_miles,y_coordinate_miles,expected_checkouts
1,19,24,0
2,12,24,20
3,16,28,20
4,12,22,20
5,11,18,30
6,12,29,30
7,9,29,40
8,19,10,40
9,15,8,40
10,18,25,10
11,21,21,10
12,16,21,10
13,18,26,10
14,17,28,10
15,14,19,20
16,17,19,20
Oh β and when you send the chosen loop back, please use this simple JSON shape so it's easy to read by whatever's checking it:
{
""solution"": [""depot_id"", ""location_id"", ""..."", ""depot_id""]
}
Think of it like a little form: the solution array lists the stops in order, starting and ending at the depot, with any intermediate clusters in the middle (the ""..."" just stands in for however many stops you pick). This is just a sketch of the expected shape β not the actual route.
Please make sure to use the exact stop identifiers from the instance input β do not rename them or invent new labels.
- for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'coordinates': [[19, 24], [12, 24], [16, 28], [12, 22], [11, 18], [12, 29], [9, 29], [19, 10], [15, 8], [18, 25], [21, 21], [16, 21], [18, 26], [17, 28], [14, 19], [17, 19]], 'prizes': [0, 20, 20, 20, 30, 30, 40, 40, 40, 10, 10, 10, 10, 10, 20, 20], 'depot': 0, 'max_length': 18.0, 'route_length': 17.968071579779572, 'collected_prize': 70.0, 'objective': 70.0}","[0, 5, 2, 12, 9, 0]",70.0,"{'problem_type': 'OP', 'num_nodes': 16, 'nodes': [{'id': 1, 'x': 19, 'y': 24, 'prize': 0}, {'id': 2, 'x': 12, 'y': 24, 'prize': 20}, {'id': 3, 'x': 16, 'y': 28, 'prize': 20}, {'id': 4, 'x': 12, 'y': 22, 'prize': 20}, {'id': 5, 'x': 11, 'y': 18, 'prize': 30}, {'id': 6, 'x': 12, 'y': 29, 'prize': 30}, {'id': 7, 'x': 9, 'y': 29, 'prize': 40}, {'id': 8, 'x': 19, 'y': 10, 'prize': 40}, {'id': 9, 'x': 15, 'y': 8, 'prize': 40}, {'id': 10, 'x': 18, 'y': 25, 'prize': 10}, {'id': 11, 'x': 21, 'y': 21, 'prize': 10}, {'id': 12, 'x': 16, 'y': 21, 'prize': 10}, {'id': 13, 'x': 18, 'y': 26, 'prize': 10}, {'id': 14, 'x': 17, 'y': 28, 'prize': 10}, {'id': 15, 'x': 14, 'y': 19, 'prize': 20}, {'id': 16, 'x': 17, 'y': 19, 'prize': 20}], 'depot': 1, 'max_length': 18.0, 'route_length': 17.968071579779572, 'collected_prize': 70.0, 'objective': 70.0}","[1, 6, 3, 13, 10, 1]",25,csv,1
OP,OP,"Thereβs a simple challenge at the research cabin: figure out a circular route that starts and ends there, checks several plant plots without stopping at the same plot twice, and fits inside the teamβs fuel range. The measure of a good trip is the total rarity collected β sum up the rarity ratings of the visited plots, and the bigger that sum, the better the trip. The specific details (plots, distances, fuel cap, and rarity scores) appear below.
# total_locations_count=17
# research_cabin_id=0
# fuel_range_limit=14.0
plot_id,x_coordinate_on_map,y_coordinate_on_map,rarity_score
0,19,24,0
1,12,26,20
2,21,27,20
3,12,22,20
4,14,15,30
5,11,18,30
6,17,28,30
7,9,29,40
8,19,10,40
9,15,8,40
10,14,31,50
11,18,25,10
12,19,24,10
13,21,21,10
14,18,26,10
15,14,19,20
16,10,21,20
When you send the route back, just stick to a tiny JSON sketch like this so it's easy to read and parse:
{
""solution"": [cabin_id, plot_id, ..., cabin_id]
}
Think of that as a simple form: ""solution"" is the list that spells out the circular trip β start at the cabin_id, then list the plot_id values you visit in order (each plot at most once), and finish by returning to the same cabin_id. This block is only a sketch of the shape I expect, not the actual route.
Please use the exact identifiers from the instance input β do not rename them and don't invent new labels. For example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'coordinates': [[19, 24], [12, 26], [21, 27], [12, 22], [14, 15], [11, 18], [17, 28], [9, 29], [19, 10], [15, 8], [14, 31], [18, 25], [19, 24], [21, 21], [18, 26], [14, 19], [10, 21]], 'prizes': [0, 20, 20, 20, 30, 30, 30, 40, 40, 40, 50, 10, 10, 10, 10, 20, 20], 'depot': 0, 'max_length': 14.0, 'route_length': 13.580388135673635, 'collected_prize': 80.0, 'objective': 80.0}","[0, 2, 14, 6, 11, 12, 0]",80.0,"{'problem_type': 'OP', 'num_nodes': 17, 'nodes': [{'id': 0, 'x': 19, 'y': 24, 'prize': 0}, {'id': 1, 'x': 12, 'y': 26, 'prize': 20}, {'id': 2, 'x': 21, 'y': 27, 'prize': 20}, {'id': 3, 'x': 12, 'y': 22, 'prize': 20}, {'id': 4, 'x': 14, 'y': 15, 'prize': 30}, {'id': 5, 'x': 11, 'y': 18, 'prize': 30}, {'id': 6, 'x': 17, 'y': 28, 'prize': 30}, {'id': 7, 'x': 9, 'y': 29, 'prize': 40}, {'id': 8, 'x': 19, 'y': 10, 'prize': 40}, {'id': 9, 'x': 15, 'y': 8, 'prize': 40}, {'id': 10, 'x': 14, 'y': 31, 'prize': 50}, {'id': 11, 'x': 18, 'y': 25, 'prize': 10}, {'id': 12, 'x': 19, 'y': 24, 'prize': 10}, {'id': 13, 'x': 21, 'y': 21, 'prize': 10}, {'id': 14, 'x': 18, 'y': 26, 'prize': 10}, {'id': 15, 'x': 14, 'y': 19, 'prize': 20}, {'id': 16, 'x': 10, 'y': 21, 'prize': 20}], 'depot': 0, 'max_length': 14.0, 'route_length': 13.580388135673635, 'collected_prize': 80.0, 'objective': 80.0}","[0, 2, 14, 6, 11, 12, 0]",26,csv,0
OP,OP,"Lately Iβve been trying to plan a one-loop street-music route that starts and ends at my home base, plays at selected plazas a single time each, and never revisits a plaza after a performance. The choice thatβs better is the one that brings the highest total tips β you calculate that by summing the expected tips at each plaza you include in the loop. The entire walk must stay within my maximum walking-time budget so I can actually complete the loop. The exact list of plazas, their expected tips, and the walking times between them are listed below.
Here are the 24 locations (including my home base 0), and my max total walking time is 14.0.
| location_id | map_x_coordinate | map_y_coordinate | expected_tips |
|---|---|---|---|
| 0 | 10 | 14 | 0 |
| 1 | 18 | 13 | 10 |
| 2 | 14 | 13 | 5 |
| 3 | 16 | 13 | 5 |
| 4 | 16 | 17 | 5 |
| 5 | 16 | 19 | 10 |
| 6 | 15 | 20 | 10 |
| 7 | 13 | 20 | 10 |
| 8 | 11 | 6 | 15 |
| 9 | 8 | 5 | 15 |
| 10 | 7 | 9 | 10 |
| 11 | 11 | 12 | 5 |
| 12 | 11 | 17 | 5 |
| 13 | 10 | 18 | 5 |
| 14 | 11 | 20 | 10 |
| 15 | 10 | 22 | 10 |
| 16 | 9 | 23 | 10 |
| 17 | 10 | 26 | 15 |
| 18 | 7 | 24 | 15 |
| 19 | 8 | 19 | 15 |
| 20 | 8 | 17 | 10 |
| 21 | 5 | 11 | 10 |
| 22 | 4 | 18 | 10 |
| 23 | 7 | 18 | 10 |
Iβll use these details to pick the single-loop route that brings the highest total tips while staying within 14.0.
Oh, and when you send back the chosen loop, a tiny JSON layout makes it super easy to read β something like this:
{
""solution"": [depot_id, location_id, ..., depot_id]
}
Think of that as a simple form: ""solution"" is the ordered list of stops in the loop, starting at your home base (the depot), listing each plaza you play at once, and then returning to the home base to close the loop. The example above just shows the shape I need β not your actual tour.
Please use the exact identifiers from the instance input β don't rename them or invent new labels.
Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.","{'coordinates': [[10, 14], [18, 13], [14, 13], [16, 13], [16, 17], [16, 19], [15, 20], [13, 20], [11, 6], [8, 5], [7, 9], [11, 12], [11, 17], [10, 18], [11, 20], [10, 22], [9, 23], [10, 26], [7, 24], [8, 19], [8, 17], [5, 11], [4, 18], [7, 18]], 'prizes': [0, 10, 5, 5, 5, 10, 10, 10, 15, 15, 10, 5, 5, 5, 10, 10, 10, 15, 15, 15, 10, 10, 10, 10], 'depot': 0, 'max_length': 14.0, 'route_length': 13.246537600251445, 'collected_prize': 45.0, 'objective': 45.0}","[0, 20, 23, 19, 13, 12, 0]",45.0,"{'problem_type': 'OP', 'num_nodes': 24, 'nodes': [{'id': 0, 'x': 10, 'y': 14, 'prize': 0}, {'id': 1, 'x': 18, 'y': 13, 'prize': 10}, {'id': 2, 'x': 14, 'y': 13, 'prize': 5}, {'id': 3, 'x': 16, 'y': 13, 'prize': 5}, {'id': 4, 'x': 16, 'y': 17, 'prize': 5}, {'id': 5, 'x': 16, 'y': 19, 'prize': 10}, {'id': 6, 'x': 15, 'y': 20, 'prize': 10}, {'id': 7, 'x': 13, 'y': 20, 'prize': 10}, {'id': 8, 'x': 11, 'y': 6, 'prize': 15}, {'id': 9, 'x': 8, 'y': 5, 'prize': 15}, {'id': 10, 'x': 7, 'y': 9, 'prize': 10}, {'id': 11, 'x': 11, 'y': 12, 'prize': 5}, {'id': 12, 'x': 11, 'y': 17, 'prize': 5}, {'id': 13, 'x': 10, 'y': 18, 'prize': 5}, {'id': 14, 'x': 11, 'y': 20, 'prize': 10}, {'id': 15, 'x': 10, 'y': 22, 'prize': 10}, {'id': 16, 'x': 9, 'y': 23, 'prize': 10}, {'id': 17, 'x': 10, 'y': 26, 'prize': 15}, {'id': 18, 'x': 7, 'y': 24, 'prize': 15}, {'id': 19, 'x': 8, 'y': 19, 'prize': 15}, {'id': 20, 'x': 8, 'y': 17, 'prize': 10}, {'id': 21, 'x': 5, 'y': 11, 'prize': 10}, {'id': 22, 'x': 4, 'y': 18, 'prize': 10}, {'id': 23, 'x': 7, 'y': 18, 'prize': 10}], 'depot': 0, 'max_length': 14.0, 'route_length': 13.246537600251445, 'collected_prize': 45.0, 'objective': 45.0}","[0, 20, 23, 19, 13, 12, 0]",27,markdown_table,0
OP,OP,"On a typical morning the electrician plans a single run: depart the workshop, hit a handful of customers, then return, all before the driving window closes. The aim is to choose stops that make the largest total bill β add up each chosen jobβs fee to get that total β while never exceeding the available driving time and never visiting the same customer twice. The specific job list and timing details are shown below.
There are 19 locations including the workshop A, and the round trip must not exceed 14.0.
| location_id | x_coordinate | y_coordinate | job_fee |
|---|---|---|---|
| A | 19 | 24 | 0 |
| B | 12 | 24 | 20 |
| C | 14 | 28 | 20 |
| D | 16 | 28 | 20 |
| E | 20 | 28 | 20 |
| F | 12 | 26 | 20 |
| G | 12 | 22 | 20 |
| H | 22 | 17 | 30 |
| I | 17 | 28 | 30 |
| J | 9 | 29 | 40 |
| K | 10 | 32 | 40 |
| L | 13 | 33 | 40 |
| M | 15 | 8 | 40 |
| N | 14 | 31 | 50 |
| O | 7 | 36 | 50 |
| P | 21 | 21 | 10 |
| Q | 18 | 26 | 10 |
| R | 17 | 19 | 20 |
| S | 15 | 23 | 10 |
Select stops to maximize total collected fees while leaving from and returning to A within the 14.0 driving limit.
And when you want to tell me the chosen run, just hand it back in a tiny JSON snippet like this β super simple and friendly to read:
{
""solution"": [workshop_id, customer_id, ..., workshop_id]
}
Think of that as a little form: ""solution"" is the ordered list of stops β start at the workshop, go through each customer once in the given order, and finish back at the workshop. The placeholders there are just examples of the shape I expect, not real IDs.
Please use the exact identifiers from the instance input β no renaming and no new labels.
- for example: Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.","{'coordinates': [[19, 24], [12, 24], [14, 28], [16, 28], [20, 28], [12, 26], [12, 22], [22, 17], [17, 28], [9, 29], [10, 32], [13, 33], [15, 8], [14, 31], [7, 36], [21, 21], [18, 26], [17, 19], [15, 23]], 'prizes': [0, 20, 20, 20, 20, 20, 20, 30, 30, 40, 40, 40, 40, 50, 50, 10, 10, 20, 10], 'depot': 0, 'max_length': 14.0, 'route_length': 13.875260192432428, 'collected_prize': 80.0, 'objective': 80.0}","[0, 2, 3, 8, 16, 0]",80.0,"{'problem_type': 'OP', 'num_nodes': 19, 'nodes': [{'id': 'A', 'x': 19, 'y': 24, 'prize': 0}, {'id': 'B', 'x': 12, 'y': 24, 'prize': 20}, {'id': 'C', 'x': 14, 'y': 28, 'prize': 20}, {'id': 'D', 'x': 16, 'y': 28, 'prize': 20}, {'id': 'E', 'x': 20, 'y': 28, 'prize': 20}, {'id': 'F', 'x': 12, 'y': 26, 'prize': 20}, {'id': 'G', 'x': 12, 'y': 22, 'prize': 20}, {'id': 'H', 'x': 22, 'y': 17, 'prize': 30}, {'id': 'I', 'x': 17, 'y': 28, 'prize': 30}, {'id': 'J', 'x': 9, 'y': 29, 'prize': 40}, {'id': 'K', 'x': 10, 'y': 32, 'prize': 40}, {'id': 'L', 'x': 13, 'y': 33, 'prize': 40}, {'id': 'M', 'x': 15, 'y': 8, 'prize': 40}, {'id': 'N', 'x': 14, 'y': 31, 'prize': 50}, {'id': 'O', 'x': 7, 'y': 36, 'prize': 50}, {'id': 'P', 'x': 21, 'y': 21, 'prize': 10}, {'id': 'Q', 'x': 18, 'y': 26, 'prize': 10}, {'id': 'R', 'x': 17, 'y': 19, 'prize': 20}, {'id': 'S', 'x': 15, 'y': 23, 'prize': 10}], 'depot': 'A', 'max_length': 14.0, 'route_length': 13.875260192432428, 'collected_prize': 80.0, 'objective': 80.0}","['A', 'C', 'D', 'I', 'Q', 'A']",28,markdown_table,names
OP,OP,"Someone on the team is coordinating delivery routes: the van leaves the farm, visits chosen market spots one time only, and returns to the farm before running out of fuel. What makes one route better than another is how much money it brings in β add up the projected sales at every market on the route to get the total. Practical requirements are clear: start and finish at the farm, donβt visit the same market twice, and donβt blow past the vehicleβs fuel budget. The specific stop options and fuel details follow below.
# total_locations_including_farm=18
# farm_node_id=A
# max_route_distance=27.0
location_id,x_coord,y_coord,projected_sales
A,19,24,0
B,12,24,20
C,14,28,20
D,20,28,20
E,21,27,20
F,22,17,30
G,9,29,40
H,10,32,40
I,19,10,40
J,15,8,40
K,21,25,50
L,19,24,10
M,16,21,10
N,18,26,10
O,17,28,10
P,14,19,20
Q,17,19,20
R,10,21,20
Oh, and when you send the chosen route, please follow this simple JSON layout so whoeverβs reading it can parse it easily:
{
""solution"": [farm_id, market_id, ..., farm_id]
}
This just shows the shape I expect: ""solution"" is an ordered list of stops β start at the farm, list each market you plan to visit (once each), and finish back at the farm. Itβs just a sketch of the format, not the actual route.
Please use the exact identifiers from the instance input β donβt rename them or invent new labels.
- for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'coordinates': [[19, 24], [12, 24], [14, 28], [20, 28], [21, 27], [22, 17], [9, 29], [10, 32], [19, 10], [15, 8], [21, 25], [19, 24], [16, 21], [18, 26], [17, 28], [14, 19], [17, 19], [10, 21]], 'prizes': [0, 20, 20, 20, 20, 30, 40, 40, 40, 40, 50, 10, 10, 10, 10, 20, 20, 20], 'depot': 0, 'max_length': 27.0, 'route_length': 26.934941283619057, 'collected_prize': 160.0, 'objective': 160.0}","[0, 11, 10, 4, 3, 14, 12, 15, 16, 0]",160.0,"{'problem_type': 'OP', 'num_nodes': 18, 'nodes': [{'id': 'A', 'x': 19, 'y': 24, 'prize': 0}, {'id': 'B', 'x': 12, 'y': 24, 'prize': 20}, {'id': 'C', 'x': 14, 'y': 28, 'prize': 20}, {'id': 'D', 'x': 20, 'y': 28, 'prize': 20}, {'id': 'E', 'x': 21, 'y': 27, 'prize': 20}, {'id': 'F', 'x': 22, 'y': 17, 'prize': 30}, {'id': 'G', 'x': 9, 'y': 29, 'prize': 40}, {'id': 'H', 'x': 10, 'y': 32, 'prize': 40}, {'id': 'I', 'x': 19, 'y': 10, 'prize': 40}, {'id': 'J', 'x': 15, 'y': 8, 'prize': 40}, {'id': 'K', 'x': 21, 'y': 25, 'prize': 50}, {'id': 'L', 'x': 19, 'y': 24, 'prize': 10}, {'id': 'M', 'x': 16, 'y': 21, 'prize': 10}, {'id': 'N', 'x': 18, 'y': 26, 'prize': 10}, {'id': 'O', 'x': 17, 'y': 28, 'prize': 10}, {'id': 'P', 'x': 14, 'y': 19, 'prize': 20}, {'id': 'Q', 'x': 17, 'y': 19, 'prize': 20}, {'id': 'R', 'x': 10, 'y': 21, 'prize': 20}], 'depot': 'A', 'max_length': 27.0, 'route_length': 26.934941283619057, 'collected_prize': 160.0, 'objective': 160.0}","['A', 'L', 'K', 'E', 'D', 'O', 'M', 'P', 'Q', 'A']",29,csv,names
OP,OP,"Out on a shift, the plan is to start at the shelter, make a single loop through some of the mapped stray hotspots (no revisits allowed), and be back within the time allocated for the patrol. The choice is which hotspots to include and how to order them so the route stays inside the time window; routes are valued by the sum of the rescue-priority scores of the places visited β add those numbers up to see how good a route is β and the aim is to get as big a total as possible while keeping within the time. The full list of hotspots, their scores, and the time cap are below.
There are 18 mapped points including the shelter A; the entire loopβstarting and ending at the shelterβmust not exceed 26.0.
| location_node_id | map_x | map_y | rescue_priority_score |
|---|---|---|---|
| A | 4 | 7 | 0 |
| B | 5 | 11 | 20 |
| C | 2 | 14 | 30 |
| D | 3 | 10 | 15 |
| E | 4 | 8 | 10 |
| F | 7 | 11 | 20 |
| G | 8 | 9 | 20 |
| H | 7 | 8 | 20 |
| I | 6 | 7 | 15 |
| J | 5 | 8 | 10 |
| K | 5 | 6 | 10 |
| L | 6 | 5 | 25 |
| M | 13 | 13 | 40 |
| N | 14 | 14 | 40 |
| O | 11 | 13 | 30 |
| P | 9 | 16 | 30 |
| Q | 9 | 18 | 50 |
| R | 4 | 16 | 30 |
The choice is which hotspots to include and how to order them so the summed rescue-priority is as large as possible while the full loop from A back to A stays within 26.0.
Also, when you send the chosen loop back, please stick to a simple JSON layout so it's easy to parse. Something like this will do:
{
""solution"": [shelter_id, hotspot_id, ..., shelter_id]
}
This just means ""solution"" is the single patrol loop written as a list of location identifiers, starting and ending at the shelter. The names in the array are placeholders (shelter_id for the depot, hotspot_id for the places you visit) and the ""..."" just indicates other stops go in between. It's only a sketch of the shape I want β not the actual route.
Use the exact identifiers from the instance input when you fill that in β don't rename them or invent new ones. Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.","{'coordinates': [[4, 7], [5, 11], [2, 14], [3, 10], [4, 8], [7, 11], [8, 9], [7, 8], [6, 7], [5, 8], [5, 6], [6, 5], [13, 13], [14, 14], [11, 13], [9, 16], [9, 18], [4, 16]], 'prizes': [0, 20, 30, 15, 10, 20, 20, 20, 15, 10, 10, 25, 40, 40, 30, 30, 50, 30], 'depot': 0, 'max_length': 26.0, 'route_length': 25.885729815184085, 'collected_prize': 205.0, 'objective': 205.0}","[0, 4, 9, 5, 14, 13, 12, 6, 7, 8, 0]",205.0,"{'problem_type': 'OP', 'num_nodes': 18, 'nodes': [{'id': 'A', 'x': 4, 'y': 7, 'prize': 0}, {'id': 'B', 'x': 5, 'y': 11, 'prize': 20}, {'id': 'C', 'x': 2, 'y': 14, 'prize': 30}, {'id': 'D', 'x': 3, 'y': 10, 'prize': 15}, {'id': 'E', 'x': 4, 'y': 8, 'prize': 10}, {'id': 'F', 'x': 7, 'y': 11, 'prize': 20}, {'id': 'G', 'x': 8, 'y': 9, 'prize': 20}, {'id': 'H', 'x': 7, 'y': 8, 'prize': 20}, {'id': 'I', 'x': 6, 'y': 7, 'prize': 15}, {'id': 'J', 'x': 5, 'y': 8, 'prize': 10}, {'id': 'K', 'x': 5, 'y': 6, 'prize': 10}, {'id': 'L', 'x': 6, 'y': 5, 'prize': 25}, {'id': 'M', 'x': 13, 'y': 13, 'prize': 40}, {'id': 'N', 'x': 14, 'y': 14, 'prize': 40}, {'id': 'O', 'x': 11, 'y': 13, 'prize': 30}, {'id': 'P', 'x': 9, 'y': 16, 'prize': 30}, {'id': 'Q', 'x': 9, 'y': 18, 'prize': 50}, {'id': 'R', 'x': 4, 'y': 16, 'prize': 30}], 'depot': 'A', 'max_length': 26.0, 'route_length': 25.885729815184085, 'collected_prize': 205.0, 'objective': 205.0}","['A', 'E', 'J', 'F', 'O', 'N', 'M', 'G', 'H', 'I', 'A']",30,markdown_table,names
OP,OP,"Thereβs an artisan ice cream cart that needs to run one clean loop from the storage garage and back, hitting a selection of parks and events without repeating any stop. The decision is which stops to include so the cart stays within the allotted vending hours and travel time and brings in the most expected sales. The winner is the route with the highest total expected ice cream sales β you calculate that by adding together the expected sales for every stop visited β while making sure nothing is visited twice and the whole trip fits the time limit. The full list of places, their expected sales, and the time/travel numbers are shown below.
There are 20 total locations (including the storage garage A), and the single-loop route must fit within 20.0.
Location A at coordinates (19, 24) has expected ice cream sales 0.
Location B at coordinates (16, 28) has expected ice cream sales 20.
Location C at coordinates (12, 26) has expected ice cream sales 20.
Location D at coordinates (12, 22) has expected ice cream sales 20.
Location E at coordinates (22, 17) has expected ice cream sales 30.
Location F at coordinates (19, 15) has expected ice cream sales 30.
Location G at coordinates (14, 15) has expected ice cream sales 30.
Location H at coordinates (11, 18) has expected ice cream sales 30.
Location I at coordinates (12, 29) has expected ice cream sales 30.
Location J at coordinates (10, 32) has expected ice cream sales 40.
Location K at coordinates (15, 8) has expected ice cream sales 40.
Location L at coordinates (14, 31) has expected ice cream sales 50.
Location M at coordinates (7, 36) has expected ice cream sales 50.
Location N at coordinates (21, 25) has expected ice cream sales 50.
Location O at coordinates (18, 25) has expected ice cream sales 10.
Location P at coordinates (19, 24) has expected ice cream sales 10.
Location Q at coordinates (21, 21) has expected ice cream sales 10.
Location R at coordinates (17, 28) has expected ice cream sales 10.
Location S at coordinates (17, 19) has expected ice cream sales 20.
Location T at coordinates (10, 21) has expected ice cream sales 20.
The chosen loop must start and end at A, visit locations at most once, and maximize the sum of expected ice cream sales without exceeding 20.0.
Oh, and to keep things machine- and human-friendly, please return the chosen tour in this simple JSON shape β just the garage (depot), the stops in order, and the garage again at the end:
{
""solution"": [""garage_id"", ""park_id"", ..., ""garage_id""]
}
Think of ""solution"" as the ordered checklist: start at the garage, then the parks/events you plan to visit in order, and finish back at the garage. The quoted placeholders are just showing the shape I need β replace them with the actual IDs from the instance when you give the answer.
Important: use the exact identifiers as they appear in the instance input β do not rename them or invent new labels.
Valid identifiers look like plain numbers such as ""1"" or ""23"", single capital letters like ""A"" or ""B"", or a capital letter followed by digits like ""A1"" or ""X7"".","{'coordinates': [[19, 24], [16, 28], [12, 26], [12, 22], [22, 17], [19, 15], [14, 15], [11, 18], [12, 29], [10, 32], [15, 8], [14, 31], [7, 36], [21, 25], [18, 25], [19, 24], [21, 21], [17, 28], [17, 19], [10, 21]], 'prizes': [0, 20, 20, 20, 30, 30, 30, 30, 30, 40, 40, 50, 50, 50, 10, 10, 10, 10, 20, 20], 'depot': 0, 'max_length': 20.0, 'route_length': 19.76782893563237, 'collected_prize': 110.0, 'objective': 110.0}","[0, 15, 16, 13, 14, 17, 1, 0]",110.0,"{'problem_type': 'OP', 'num_nodes': 20, 'nodes': [{'id': 'A', 'x': 19, 'y': 24, 'prize': 0}, {'id': 'B', 'x': 16, 'y': 28, 'prize': 20}, {'id': 'C', 'x': 12, 'y': 26, 'prize': 20}, {'id': 'D', 'x': 12, 'y': 22, 'prize': 20}, {'id': 'E', 'x': 22, 'y': 17, 'prize': 30}, {'id': 'F', 'x': 19, 'y': 15, 'prize': 30}, {'id': 'G', 'x': 14, 'y': 15, 'prize': 30}, {'id': 'H', 'x': 11, 'y': 18, 'prize': 30}, {'id': 'I', 'x': 12, 'y': 29, 'prize': 30}, {'id': 'J', 'x': 10, 'y': 32, 'prize': 40}, {'id': 'K', 'x': 15, 'y': 8, 'prize': 40}, {'id': 'L', 'x': 14, 'y': 31, 'prize': 50}, {'id': 'M', 'x': 7, 'y': 36, 'prize': 50}, {'id': 'N', 'x': 21, 'y': 25, 'prize': 50}, {'id': 'O', 'x': 18, 'y': 25, 'prize': 10}, {'id': 'P', 'x': 19, 'y': 24, 'prize': 10}, {'id': 'Q', 'x': 21, 'y': 21, 'prize': 10}, {'id': 'R', 'x': 17, 'y': 28, 'prize': 10}, {'id': 'S', 'x': 17, 'y': 19, 'prize': 20}, {'id': 'T', 'x': 10, 'y': 21, 'prize': 20}], 'depot': 'A', 'max_length': 20.0, 'route_length': 19.76782893563237, 'collected_prize': 110.0, 'objective': 110.0}","['A', 'P', 'Q', 'N', 'O', 'R', 'B', 'A']",31,nl,names
OP,OP,"Thereβs a single-day promotion to plan: leave the publishing office, drop into a handful of indie bookshops (no repeats), and loop back to the office before the day runs out. Every shop has a publicity value β just add up the values for the shops on a given route to see how much publicity that route delivers; the higher the total, the better. The route must begin and end at the office, visit each shop at most once, and stay within the dayβs travel limit. Details about each shop and the travel limit are shown below.
# total_locations_including_office=19
# publishing_office_id=0
# day_travel_limit=18.0
location_id,x_coordinate,y_coordinate,publicity_score
0,10,14,0
1,18,15,10
2,18,13,10
3,14,13,5
4,16,13,5
5,16,17,5
6,13,20,10
7,14,5,10
8,11,6,15
9,8,5,15
10,7,9,10
11,11,17,5
12,10,18,5
13,11,20,10
14,10,22,10
15,9,23,10
16,8,17,10
17,5,11,10
18,7,18,10
When youβve picked the shops for the day, just send the route back in this simple JSON shape so itβs easy to check:
{
""solution"": [office_id, shop_id, ..., office_id]
}
""solution"" is just the ordered list of places youβll visit, starting and ending at the office; each item is either the office identifier or a shop identifier, listed in the order youβll travel. Think of it as a short itinerary β first is where you leave from, last is where you return. This is just a sketch of the shape I need, not the actual answer.
Please use the exact identifiers that appear in the instance input β donβt rename them or invent new labels.
- for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'coordinates': [[10, 14], [18, 15], [18, 13], [14, 13], [16, 13], [16, 17], [13, 20], [14, 5], [11, 6], [8, 5], [7, 9], [11, 17], [10, 18], [11, 20], [10, 22], [9, 23], [8, 17], [5, 11], [7, 18]], 'prizes': [0, 10, 10, 5, 5, 5, 10, 10, 15, 15, 10, 5, 5, 10, 10, 10, 10, 10, 10], 'depot': 0, 'max_length': 18.0, 'route_length': 17.469413449533647, 'collected_prize': 40.0, 'objective': 40.0}","[0, 11, 12, 13, 16, 18, 0]",40.0,"{'problem_type': 'OP', 'num_nodes': 19, 'nodes': [{'id': 0, 'x': 10, 'y': 14, 'prize': 0}, {'id': 1, 'x': 18, 'y': 15, 'prize': 10}, {'id': 2, 'x': 18, 'y': 13, 'prize': 10}, {'id': 3, 'x': 14, 'y': 13, 'prize': 5}, {'id': 4, 'x': 16, 'y': 13, 'prize': 5}, {'id': 5, 'x': 16, 'y': 17, 'prize': 5}, {'id': 6, 'x': 13, 'y': 20, 'prize': 10}, {'id': 7, 'x': 14, 'y': 5, 'prize': 10}, {'id': 8, 'x': 11, 'y': 6, 'prize': 15}, {'id': 9, 'x': 8, 'y': 5, 'prize': 15}, {'id': 10, 'x': 7, 'y': 9, 'prize': 10}, {'id': 11, 'x': 11, 'y': 17, 'prize': 5}, {'id': 12, 'x': 10, 'y': 18, 'prize': 5}, {'id': 13, 'x': 11, 'y': 20, 'prize': 10}, {'id': 14, 'x': 10, 'y': 22, 'prize': 10}, {'id': 15, 'x': 9, 'y': 23, 'prize': 10}, {'id': 16, 'x': 8, 'y': 17, 'prize': 10}, {'id': 17, 'x': 5, 'y': 11, 'prize': 10}, {'id': 18, 'x': 7, 'y': 18, 'prize': 10}], 'depot': 0, 'max_length': 18.0, 'route_length': 17.469413449533647, 'collected_prize': 40.0, 'objective': 40.0}","[0, 11, 12, 13, 16, 18, 0]",32,csv,0
OP,OP,"Many mornings the mobile bike tech wants to plan one route that starts and ends at the workshop, touches a selection of repair locations once each, and finishes within the technicianβs travel window. The decision is which customers to visit and the order to visit them; the better route is simply the one that brings in the most repair fees, calculated by adding up the fee at each visited stop. The whole loop has to fit inside the time/distance the tech has, and repeats arenβt allowed. The exact details are given below.
# total_locations_including_workshop=24
# workshop_location_id=0
# max_route_length_allowed=12.0
location_id,map_x_coordinate,map_y_coordinate,repair_fee_at_location
0,19,24,0
1,12,24,20
2,14,28,20
3,16,28,20
4,12,26,20
5,21,27,20
6,12,22,20
7,22,17,30
8,19,15,30
9,14,15,30
10,11,18,30
11,17,28,30
12,9,29,40
13,10,32,40
14,13,33,40
15,19,10,40
16,14,31,50
17,21,25,50
18,18,25,10
19,19,24,10
20,21,21,10
21,16,21,10
22,18,26,10
23,15,23,10
If you'd like the route back in a predictable shape, just send it in this simple layout:
{
""solution"": [workshop_id, customer_id, ..., workshop_id]
}
Think of ""solution"" as the ordered loop: the first entry is the workshop where the tech starts, the middle entries are the customers visited (each at most once), and the final entry is the workshop again. The ""..."" just means any number of customer stops in between. This is just a sketch of the shape I expect, not the actual route.
Please use the exact identifiers from the instance input β don't rename them or invent new ones.
For example: Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.","{'coordinates': [[19, 24], [12, 24], [14, 28], [16, 28], [12, 26], [21, 27], [12, 22], [22, 17], [19, 15], [14, 15], [11, 18], [17, 28], [9, 29], [10, 32], [13, 33], [19, 10], [14, 31], [21, 25], [18, 25], [19, 24], [21, 21], [16, 21], [18, 26], [15, 23]], 'prizes': [0, 20, 20, 20, 20, 20, 20, 30, 30, 30, 30, 30, 40, 40, 40, 40, 50, 50, 10, 10, 10, 10, 10, 10], 'depot': 0, 'max_length': 12.0, 'route_length': 11.886349517372675, 'collected_prize': 110.0, 'objective': 110.0}","[0, 19, 18, 22, 11, 17, 0]",110.0,"{'problem_type': 'OP', 'num_nodes': 24, 'nodes': [{'id': 0, 'x': 19, 'y': 24, 'prize': 0}, {'id': 1, 'x': 12, 'y': 24, 'prize': 20}, {'id': 2, 'x': 14, 'y': 28, 'prize': 20}, {'id': 3, 'x': 16, 'y': 28, 'prize': 20}, {'id': 4, 'x': 12, 'y': 26, 'prize': 20}, {'id': 5, 'x': 21, 'y': 27, 'prize': 20}, {'id': 6, 'x': 12, 'y': 22, 'prize': 20}, {'id': 7, 'x': 22, 'y': 17, 'prize': 30}, {'id': 8, 'x': 19, 'y': 15, 'prize': 30}, {'id': 9, 'x': 14, 'y': 15, 'prize': 30}, {'id': 10, 'x': 11, 'y': 18, 'prize': 30}, {'id': 11, 'x': 17, 'y': 28, 'prize': 30}, {'id': 12, 'x': 9, 'y': 29, 'prize': 40}, {'id': 13, 'x': 10, 'y': 32, 'prize': 40}, {'id': 14, 'x': 13, 'y': 33, 'prize': 40}, {'id': 15, 'x': 19, 'y': 10, 'prize': 40}, {'id': 16, 'x': 14, 'y': 31, 'prize': 50}, {'id': 17, 'x': 21, 'y': 25, 'prize': 50}, {'id': 18, 'x': 18, 'y': 25, 'prize': 10}, {'id': 19, 'x': 19, 'y': 24, 'prize': 10}, {'id': 20, 'x': 21, 'y': 21, 'prize': 10}, {'id': 21, 'x': 16, 'y': 21, 'prize': 10}, {'id': 22, 'x': 18, 'y': 26, 'prize': 10}, {'id': 23, 'x': 15, 'y': 23, 'prize': 10}], 'depot': 0, 'max_length': 12.0, 'route_length': 11.886349517372675, 'collected_prize': 110.0, 'objective': 110.0}","[0, 19, 18, 22, 11, 17, 0]",33,csv,0
OP,OP,"Recently the campus botanists decided to do a looped survey starting and ending at their lab, sampling several grassy and planted areas along the way. The planning question is which places to include on that loop so each gets visited at most once, the entire walk stays within the teamβs max distance, and the total ecological importance (simply the sum of the scores for the spots actually visited) is as high as it can be. The full list of sites and numbers is shown below.
# total_sites_including_lab=23
# lab_node_id=1
# max_survey_distance=6.0
site_id,x_coordinate,y_coordinate,ecological_importance_score
1,10,14,0
2,18,15,10
3,18,13,10
4,16,9,10
5,15,11,10
6,16,13,5
7,16,17,5
8,16,19,10
9,15,20,10
10,13,20,10
11,14,5,10
12,11,6,15
13,8,5,15
14,7,9,10
15,11,12,5
16,11,17,5
17,9,23,10
18,10,26,15
19,7,24,15
20,8,19,15
21,5,11,10
22,4,18,10
23,7,18,10
If you want to hand me the planned loop, just drop it into a little JSON snippet like this so it's easy to read and parse:
{
""solution"": [""lab_id"", ""site_id"", ""..."", ""lab_id""]
}
Here ""solution"" should be the tour: the first entry is the lab where you start, the last is the same lab (since it's a loop), and the things in between are the sites you visit in order. Think of it like filling in a simple form: list the lab, then the spots youβll walk to (each at most once), then back to the lab.
This is just the shape I expect β a sketch, not the actual answer. Please use the exact identifiers from the instance input; do not rename them or invent new labels. Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.","{'coordinates': [[10, 14], [18, 15], [18, 13], [16, 9], [15, 11], [16, 13], [16, 17], [16, 19], [15, 20], [13, 20], [14, 5], [11, 6], [8, 5], [7, 9], [11, 12], [11, 17], [9, 23], [10, 26], [7, 24], [8, 19], [5, 11], [4, 18], [7, 18]], 'prizes': [0, 10, 10, 10, 10, 5, 5, 10, 10, 10, 10, 15, 15, 10, 5, 5, 10, 15, 15, 15, 10, 10, 10], 'depot': 0, 'max_length': 6.0, 'route_length': 4.47213595499958, 'collected_prize': 5.0, 'objective': 5.0}","[0, 14, 0]",5.0,"{'problem_type': 'OP', 'num_nodes': 23, 'nodes': [{'id': 1, 'x': 10, 'y': 14, 'prize': 0}, {'id': 2, 'x': 18, 'y': 15, 'prize': 10}, {'id': 3, 'x': 18, 'y': 13, 'prize': 10}, {'id': 4, 'x': 16, 'y': 9, 'prize': 10}, {'id': 5, 'x': 15, 'y': 11, 'prize': 10}, {'id': 6, 'x': 16, 'y': 13, 'prize': 5}, {'id': 7, 'x': 16, 'y': 17, 'prize': 5}, {'id': 8, 'x': 16, 'y': 19, 'prize': 10}, {'id': 9, 'x': 15, 'y': 20, 'prize': 10}, {'id': 10, 'x': 13, 'y': 20, 'prize': 10}, {'id': 11, 'x': 14, 'y': 5, 'prize': 10}, {'id': 12, 'x': 11, 'y': 6, 'prize': 15}, {'id': 13, 'x': 8, 'y': 5, 'prize': 15}, {'id': 14, 'x': 7, 'y': 9, 'prize': 10}, {'id': 15, 'x': 11, 'y': 12, 'prize': 5}, {'id': 16, 'x': 11, 'y': 17, 'prize': 5}, {'id': 17, 'x': 9, 'y': 23, 'prize': 10}, {'id': 18, 'x': 10, 'y': 26, 'prize': 15}, {'id': 19, 'x': 7, 'y': 24, 'prize': 15}, {'id': 20, 'x': 8, 'y': 19, 'prize': 15}, {'id': 21, 'x': 5, 'y': 11, 'prize': 10}, {'id': 22, 'x': 4, 'y': 18, 'prize': 10}, {'id': 23, 'x': 7, 'y': 18, 'prize': 10}], 'depot': 1, 'max_length': 6.0, 'route_length': 4.47213595499958, 'collected_prize': 5.0, 'objective': 5.0}","[1, 15, 1]",34,csv,1
OP,OP,"We operate a soup-kitchen van that always starts and finishes at the kitchen, and on any run we decide which places to visit to hand out meals. Each stop gets served once and we donβt go back to the same spot later. The route has to fit into the outreach time weβve got β driving plus the serving time at each stop β and the better route is the one that results in the highest total number of meals delivered, adding up the meals at each chosen stop and giving more weight to locations with greater need. Concrete stop-by-stop details are listed below.
# total_locations_including_kitchen=19
# kitchen_node_id=0
# max_outreach_time=5.0
location_id,coord_x,coord_y,weighted_meals_at_location
0,10,14,0
1,18,13,10
2,15,11,10
3,14,13,5
4,16,13,5
5,16,17,5
6,15,17,5
7,16,19,10
8,15,20,10
9,14,15,5
10,8,5,15
11,7,9,10
12,11,17,5
13,10,18,5
14,11,20,10
15,9,23,10
16,7,24,15
17,8,13,10
18,4,18,10
Oh, and one more practical thing β when you send back the chosen route, please put it in this simple JSON layout so it's easy to read and process:
{
""solution"": [""kitchen_id"", ""stop_id"", ..., ""kitchen_id""]
}
This just shows the shape I need: ""solution"" holds the ordered list of place IDs starting and ending at the kitchen, with each stop listed once in the order we visit it. It's just a sketch of the expected shape, not the actual answer β replace the placeholders with the exact IDs from the instance.
Please make sure you use the identifiers exactly as they appear in the instance input β no renaming and no new labels.
- for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'coordinates': [[10, 14], [18, 13], [15, 11], [14, 13], [16, 13], [16, 17], [15, 17], [16, 19], [15, 20], [14, 15], [8, 5], [7, 9], [11, 17], [10, 18], [11, 20], [9, 23], [7, 24], [8, 13], [4, 18]], 'prizes': [0, 10, 10, 5, 5, 5, 5, 10, 10, 5, 15, 10, 5, 5, 10, 10, 15, 10, 10], 'depot': 0, 'max_length': 5.0, 'route_length': 4.47213595499958, 'collected_prize': 10.0, 'objective': 10.0}","[0, 17, 0]",10.0,"{'problem_type': 'OP', 'num_nodes': 19, 'nodes': [{'id': 0, 'x': 10, 'y': 14, 'prize': 0}, {'id': 1, 'x': 18, 'y': 13, 'prize': 10}, {'id': 2, 'x': 15, 'y': 11, 'prize': 10}, {'id': 3, 'x': 14, 'y': 13, 'prize': 5}, {'id': 4, 'x': 16, 'y': 13, 'prize': 5}, {'id': 5, 'x': 16, 'y': 17, 'prize': 5}, {'id': 6, 'x': 15, 'y': 17, 'prize': 5}, {'id': 7, 'x': 16, 'y': 19, 'prize': 10}, {'id': 8, 'x': 15, 'y': 20, 'prize': 10}, {'id': 9, 'x': 14, 'y': 15, 'prize': 5}, {'id': 10, 'x': 8, 'y': 5, 'prize': 15}, {'id': 11, 'x': 7, 'y': 9, 'prize': 10}, {'id': 12, 'x': 11, 'y': 17, 'prize': 5}, {'id': 13, 'x': 10, 'y': 18, 'prize': 5}, {'id': 14, 'x': 11, 'y': 20, 'prize': 10}, {'id': 15, 'x': 9, 'y': 23, 'prize': 10}, {'id': 16, 'x': 7, 'y': 24, 'prize': 15}, {'id': 17, 'x': 8, 'y': 13, 'prize': 10}, {'id': 18, 'x': 4, 'y': 18, 'prize': 10}], 'depot': 0, 'max_length': 5.0, 'route_length': 4.47213595499958, 'collected_prize': 10.0, 'objective': 10.0}","[0, 17, 0]",35,csv,0
OP,OP,"There's a small mobile charging kiosk that needs to do one round trip from its depot, plug in at selected festival zones, and return home, and it can't stop at the same zone more than once. What makes a route better is how much money it earns: add up the charging fees from every stop to get the total, and the plan must keep the total driving and swap time under the allowed limit. Concrete details follow below.
# total_locations=16
# depot_id=1
# max_allowed_trip_time=23.0
location_id,x_coordinate,y_coordinate,charging_fee
1,4,7,0
2,5,11,20
3,4,12,20
4,2,14,30
5,3,10,15
6,3,9,15
7,7,11,20
8,6,7,15
9,5,8,10
10,5,6,10
11,6,5,25
12,13,13,40
13,14,14,40
14,11,13,30
15,9,18,50
16,4,16,30
When you send back the chosen trip, please use a tiny JSON snippet like this so it's easy to read and plug into the schedule:
{
""solution"": [""depot_zone"", ""zone_1"", ""zone_3"", ""zone_2"", ""depot_zone""]
}
This just means: ""solution"" is the ordered list of stops for the round trip β the first and last entries are the depot, and everything in between are the festival zones you'll visit (none repeated). It's just a sketch of the shape I need, not the actual route you should send.
Please be sure to use the exact identifiers from the instance input β don't rename them or invent new labels.
- for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'coordinates': [[4, 7], [5, 11], [4, 12], [2, 14], [3, 10], [3, 9], [7, 11], [6, 7], [5, 8], [5, 6], [6, 5], [13, 13], [14, 14], [11, 13], [9, 18], [4, 16]], 'prizes': [0, 20, 20, 30, 15, 15, 20, 15, 10, 10, 25, 40, 40, 30, 50, 30], 'depot': 0, 'max_length': 23.0, 'route_length': 22.553347040600585, 'collected_prize': 170.0, 'objective': 170.0}","[0, 9, 10, 7, 6, 1, 2, 3, 4, 5, 0]",170.0,"{'problem_type': 'OP', 'num_nodes': 16, 'nodes': [{'id': 1, 'x': 4, 'y': 7, 'prize': 0}, {'id': 2, 'x': 5, 'y': 11, 'prize': 20}, {'id': 3, 'x': 4, 'y': 12, 'prize': 20}, {'id': 4, 'x': 2, 'y': 14, 'prize': 30}, {'id': 5, 'x': 3, 'y': 10, 'prize': 15}, {'id': 6, 'x': 3, 'y': 9, 'prize': 15}, {'id': 7, 'x': 7, 'y': 11, 'prize': 20}, {'id': 8, 'x': 6, 'y': 7, 'prize': 15}, {'id': 9, 'x': 5, 'y': 8, 'prize': 10}, {'id': 10, 'x': 5, 'y': 6, 'prize': 10}, {'id': 11, 'x': 6, 'y': 5, 'prize': 25}, {'id': 12, 'x': 13, 'y': 13, 'prize': 40}, {'id': 13, 'x': 14, 'y': 14, 'prize': 40}, {'id': 14, 'x': 11, 'y': 13, 'prize': 30}, {'id': 15, 'x': 9, 'y': 18, 'prize': 50}, {'id': 16, 'x': 4, 'y': 16, 'prize': 30}], 'depot': 1, 'max_length': 23.0, 'route_length': 22.553347040600585, 'collected_prize': 170.0, 'objective': 170.0}","[1, 10, 11, 8, 7, 2, 3, 4, 5, 6, 1]",36,csv,1
OP,OP,"I run a little farmstand and plan a single loop that leaves from and comes back to the stand, picking which neighborhood blocks to visit along the way. The choice is about which stops to include so the total expected sales from those stops β just add up the sales estimate for each block visited β is as large as possible, while the whole drive stays inside the dayβs mileage/time limit and no block is visited more than once. The exact blocks, distances, and sales estimates are shown below.
# total_locations_including_stand=21
# farmstand_node_id=1
# daily_distance_limit=21.0
block_node_id,block_x_coord,block_y_coord,expected_sales
1,10,14,0
2,18,15,10
3,15,11,10
4,14,13,5
5,16,13,5
6,15,17,5
7,16,19,10
8,15,20,10
9,13,20,10
10,14,15,5
11,14,5,10
12,11,6,15
13,8,5,15
14,7,9,10
15,11,12,5
16,10,22,10
17,10,26,15
18,7,24,15
19,8,17,10
20,8,13,10
21,7,18,10
Also, when you give me the route, a tiny JSON snippet like this works best β just an ordered list of stops, starting and ending at the stand.
{
""solution"": [""stand_id"", ""block_id"", ""..."", ""stand_id""]
}
This simply means: the array lists the stops in order (first item is the stand where you leave from, the last item is the same stand when you come back). ""stand_id"" is just the depot/stand placeholder and ""block_id"" stands in for any neighborhood block you visit; the ""..."" just shows there can be more stops in between. It's a sketch of the shape I need, not the actual route.
Please make sure to use the exact identifiers from the instance input β don't rename them or invent new labels. Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.","{'coordinates': [[10, 14], [18, 15], [15, 11], [14, 13], [16, 13], [15, 17], [16, 19], [15, 20], [13, 20], [14, 15], [14, 5], [11, 6], [8, 5], [7, 9], [11, 12], [10, 22], [10, 26], [7, 24], [8, 17], [8, 13], [7, 18]], 'prizes': [0, 10, 10, 5, 5, 5, 10, 10, 10, 5, 10, 15, 15, 10, 5, 10, 15, 15, 10, 10, 10], 'depot': 0, 'max_length': 21.0, 'route_length': 20.91773660502748, 'collected_prize': 45.0, 'objective': 45.0}","[0, 18, 8, 7, 6, 5, 0]",45.0,"{'problem_type': 'OP', 'num_nodes': 21, 'nodes': [{'id': 1, 'x': 10, 'y': 14, 'prize': 0}, {'id': 2, 'x': 18, 'y': 15, 'prize': 10}, {'id': 3, 'x': 15, 'y': 11, 'prize': 10}, {'id': 4, 'x': 14, 'y': 13, 'prize': 5}, {'id': 5, 'x': 16, 'y': 13, 'prize': 5}, {'id': 6, 'x': 15, 'y': 17, 'prize': 5}, {'id': 7, 'x': 16, 'y': 19, 'prize': 10}, {'id': 8, 'x': 15, 'y': 20, 'prize': 10}, {'id': 9, 'x': 13, 'y': 20, 'prize': 10}, {'id': 10, 'x': 14, 'y': 15, 'prize': 5}, {'id': 11, 'x': 14, 'y': 5, 'prize': 10}, {'id': 12, 'x': 11, 'y': 6, 'prize': 15}, {'id': 13, 'x': 8, 'y': 5, 'prize': 15}, {'id': 14, 'x': 7, 'y': 9, 'prize': 10}, {'id': 15, 'x': 11, 'y': 12, 'prize': 5}, {'id': 16, 'x': 10, 'y': 22, 'prize': 10}, {'id': 17, 'x': 10, 'y': 26, 'prize': 15}, {'id': 18, 'x': 7, 'y': 24, 'prize': 15}, {'id': 19, 'x': 8, 'y': 17, 'prize': 10}, {'id': 20, 'x': 8, 'y': 13, 'prize': 10}, {'id': 21, 'x': 7, 'y': 18, 'prize': 10}], 'depot': 1, 'max_length': 21.0, 'route_length': 20.91773660502748, 'collected_prize': 45.0, 'objective': 45.0}","[1, 19, 9, 8, 7, 6, 1]",37,csv,1
OP,OP,"Many people rely on these outreach stops, so the clinicβs schedule needs to be a single round trip: start at the clinic, visit some neighborhood centers (each at most once), and come back to the clinic without exceeding our travel-time budget. The aim is to maximize the overall screening impact β every center has a number of screenings and a need rating, and the total is the sum of each centerβs screenings multiplied by its need score for all stops on the route. The plan canβt include repeat visits or go over the travel-time cap. The exact locations, their need weights, and the travel-time limit are listed below.
Below are the 22 locations (clinic depot 0); any round trip must stay within our travel-time budget of 23.0.
| center_id | x_coordinate | y_coordinate | weighted_screenings |
|---|---|---|---|
| 0 | 19 | 24 | 0 |
| 1 | 12 | 24 | 20 |
| 2 | 16 | 28 | 20 |
| 3 | 20 | 28 | 20 |
| 4 | 21 | 27 | 20 |
| 5 | 22 | 17 | 30 |
| 6 | 19 | 15 | 30 |
| 7 | 11 | 18 | 30 |
| 8 | 17 | 28 | 30 |
| 9 | 9 | 29 | 40 |
| 10 | 10 | 32 | 40 |
| 11 | 13 | 33 | 40 |
| 12 | 14 | 31 | 50 |
| 13 | 7 | 36 | 50 |
| 14 | 19 | 24 | 10 |
| 15 | 21 | 21 | 10 |
| 16 | 18 | 26 | 10 |
| 17 | 17 | 28 | 10 |
| 18 | 14 | 19 | 20 |
| 19 | 17 | 19 | 20 |
| 20 | 10 | 21 | 20 |
| 21 | 15 | 23 | 10 |
Remember that every route must start and end at 0 and not exceed our travel-time cap of 23.0.
Oh, and when you give the final route, please stick to a tiny JSON sketch like this so it's easy to read and check:
{
""solution"": [clinic_id, center_id, ..., clinic_id]
}
This just shows the shape I need: the ""solution"" array lists the stops in order β start at the clinic, visit the neighborhood centers in the order you choose (each at most once), and come back to the clinic. It's only a template, not the actual answer.
Please be sure to use the exact identifiers from the instance input β don't rename or invent labels. For example: Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.","{'coordinates': [[19, 24], [12, 24], [16, 28], [20, 28], [21, 27], [22, 17], [19, 15], [11, 18], [17, 28], [9, 29], [10, 32], [13, 33], [14, 31], [7, 36], [19, 24], [21, 21], [18, 26], [17, 28], [14, 19], [17, 19], [10, 21], [15, 23]], 'prizes': [0, 20, 20, 20, 20, 30, 30, 30, 30, 40, 40, 40, 50, 50, 10, 10, 10, 10, 20, 20, 20, 10], 'depot': 0, 'max_length': 23.0, 'route_length': 22.98075273119127, 'collected_prize': 170.0, 'objective': 170.0}","[0, 14, 3, 4, 17, 2, 12, 8, 16, 0]",170.0,"{'problem_type': 'OP', 'num_nodes': 22, 'nodes': [{'id': 0, 'x': 19, 'y': 24, 'prize': 0}, {'id': 1, 'x': 12, 'y': 24, 'prize': 20}, {'id': 2, 'x': 16, 'y': 28, 'prize': 20}, {'id': 3, 'x': 20, 'y': 28, 'prize': 20}, {'id': 4, 'x': 21, 'y': 27, 'prize': 20}, {'id': 5, 'x': 22, 'y': 17, 'prize': 30}, {'id': 6, 'x': 19, 'y': 15, 'prize': 30}, {'id': 7, 'x': 11, 'y': 18, 'prize': 30}, {'id': 8, 'x': 17, 'y': 28, 'prize': 30}, {'id': 9, 'x': 9, 'y': 29, 'prize': 40}, {'id': 10, 'x': 10, 'y': 32, 'prize': 40}, {'id': 11, 'x': 13, 'y': 33, 'prize': 40}, {'id': 12, 'x': 14, 'y': 31, 'prize': 50}, {'id': 13, 'x': 7, 'y': 36, 'prize': 50}, {'id': 14, 'x': 19, 'y': 24, 'prize': 10}, {'id': 15, 'x': 21, 'y': 21, 'prize': 10}, {'id': 16, 'x': 18, 'y': 26, 'prize': 10}, {'id': 17, 'x': 17, 'y': 28, 'prize': 10}, {'id': 18, 'x': 14, 'y': 19, 'prize': 20}, {'id': 19, 'x': 17, 'y': 19, 'prize': 20}, {'id': 20, 'x': 10, 'y': 21, 'prize': 20}, {'id': 21, 'x': 15, 'y': 23, 'prize': 10}], 'depot': 0, 'max_length': 23.0, 'route_length': 22.98075273119127, 'collected_prize': 170.0, 'objective': 170.0}","[0, 14, 3, 4, 17, 2, 12, 8, 16, 0]",38,markdown_table,0
OP,OP,"On a busy morning a guide must stitch together one circular route from the visitor center, choosing different attractions to visit once each and making sure the total walking time doesnβt exceed the allowance. Each proposed routeβs worth is the total of its stopsβ guest satisfaction scores, so just add those scores to compare options; bigger totals mean happier guests. The concrete details are listed below.
# total_locations_including_visitor_center=20
# visitor_center_id=A
# max_walking_time=27.0
location_id,map_x,map_y,guest_satisfaction_score
A,19,24,0
B,12,24,20
C,14,28,20
D,16,28,20
E,20,28,20
F,12,26,20
G,12,22,20
H,22,17,30
I,19,15,30
J,9,29,40
K,10,32,40
L,13,33,40
M,19,10,40
N,15,8,40
O,14,31,50
P,18,25,10
Q,21,21,10
R,14,19,20
S,17,19,20
T,15,23,10
Also, when you send the final route, please use this simple JSON shape so it's easy to read and validate:
{
""solution"": [depot_id, location_id, ..., depot_id]
}
Here ""solution"" is just the ordered circular route: start with the visitor center's ID, list each attraction you plan to visit once (in order), and finish back at the visitor center. Think of the placeholders as blanks you fill in with the exact IDs from the instance.
This is only a sketch of the expected shape β not the actual answer.
Please make sure to use the identifiers exactly as they appear in the instance input β no renaming and no new labels.
- for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'coordinates': [[19, 24], [12, 24], [14, 28], [16, 28], [20, 28], [12, 26], [12, 22], [22, 17], [19, 15], [9, 29], [10, 32], [13, 33], [19, 10], [15, 8], [14, 31], [18, 25], [21, 21], [14, 19], [17, 19], [15, 23]], 'prizes': [0, 20, 20, 20, 20, 20, 20, 30, 30, 40, 40, 40, 40, 40, 50, 10, 10, 20, 20, 10], 'depot': 0, 'max_length': 27.0, 'route_length': 26.67728999204026, 'collected_prize': 180.0, 'objective': 180.0}","[0, 15, 3, 2, 10, 11, 14, 0]",180.0,"{'problem_type': 'OP', 'num_nodes': 20, 'nodes': [{'id': 'A', 'x': 19, 'y': 24, 'prize': 0}, {'id': 'B', 'x': 12, 'y': 24, 'prize': 20}, {'id': 'C', 'x': 14, 'y': 28, 'prize': 20}, {'id': 'D', 'x': 16, 'y': 28, 'prize': 20}, {'id': 'E', 'x': 20, 'y': 28, 'prize': 20}, {'id': 'F', 'x': 12, 'y': 26, 'prize': 20}, {'id': 'G', 'x': 12, 'y': 22, 'prize': 20}, {'id': 'H', 'x': 22, 'y': 17, 'prize': 30}, {'id': 'I', 'x': 19, 'y': 15, 'prize': 30}, {'id': 'J', 'x': 9, 'y': 29, 'prize': 40}, {'id': 'K', 'x': 10, 'y': 32, 'prize': 40}, {'id': 'L', 'x': 13, 'y': 33, 'prize': 40}, {'id': 'M', 'x': 19, 'y': 10, 'prize': 40}, {'id': 'N', 'x': 15, 'y': 8, 'prize': 40}, {'id': 'O', 'x': 14, 'y': 31, 'prize': 50}, {'id': 'P', 'x': 18, 'y': 25, 'prize': 10}, {'id': 'Q', 'x': 21, 'y': 21, 'prize': 10}, {'id': 'R', 'x': 14, 'y': 19, 'prize': 20}, {'id': 'S', 'x': 17, 'y': 19, 'prize': 20}, {'id': 'T', 'x': 15, 'y': 23, 'prize': 10}], 'depot': 'A', 'max_length': 27.0, 'route_length': 26.67728999204026, 'collected_prize': 180.0, 'objective': 180.0}","['A', 'P', 'D', 'C', 'K', 'L', 'O', 'A']",39,csv,names
OP,OP,"Many people do a quick mental puzzle every dinner shift: as the restaurantβs driver, choose a single round-trip that leaves from the kitchen, visits some customers exactly once, and returns before the eveningβs driving allowance is used up. Better choices are the ones that collect more in tips β you get that number by adding the tips from the customers you actually visit. The route must stay within the shiftβs distance limit, start and end at the kitchen, and never visit the same address twice; the concrete details are shown below.
{
""total_locations"": 22,
""nodes"": [
{
""location_id"": 0,
""x_coord"": 19,
""y_coord"": 24,
""tip_amount"": 0
},
{
""location_id"": 1,
""x_coord"": 14,
""y_coord"": 28,
""tip_amount"": 20
},
{
""location_id"": 2,
""x_coord"": 20,
""y_coord"": 28,
""tip_amount"": 20
},
{
""location_id"": 3,
""x_coord"": 21,
""y_coord"": 27,
""tip_amount"": 20
},
{
""location_id"": 4,
""x_coord"": 19,
""y_coord"": 15,
""tip_amount"": 30
},
{
""location_id"": 5,
""x_coord"": 14,
""y_coord"": 15,
""tip_amount"": 30
},
{
""location_id"": 6,
""x_coord"": 11,
""y_coord"": 18,
""tip_amount"": 30
},
{
""location_id"": 7,
""x_coord"": 12,
""y_coord"": 29,
""tip_amount"": 30
},
{
""location_id"": 8,
""x_coord"": 9,
""y_coord"": 29,
""tip_amount"": 40
},
{
""location_id"": 9,
""x_coord"": 10,
""y_coord"": 32,
""tip_amount"": 40
},
{
""location_id"": 10,
""x_coord"": 13,
""y_coord"": 33,
""tip_amount"": 40
},
{
""location_id"": 11,
""x_coord"": 19,
""y_coord"": 10,
""tip_amount"": 40
},
{
""location_id"": 12,
""x_coord"": 15,
""y_coord"": 8,
""tip_amount"": 40
},
{
""location_id"": 13,
""x_coord"": 14,
""y_coord"": 31,
""tip_amount"": 50
},
{
""location_id"": 14,
""x_coord"": 7,
""y_coord"": 36,
""tip_amount"": 50
},
{
""location_id"": 15,
""x_coord"": 18,
""y_coord"": 25,
""tip_amount"": 10
},
{
""location_id"": 16,
""x_coord"": 21,
""y_coord"": 21,
""tip_amount"": 10
},
{
""location_id"": 17,
""x_coord"": 18,
""y_coord"": 26,
""tip_amount"": 10
},
{
""location_id"": 18,
""x_coord"": 14,
""y_coord"": 19,
""tip_amount"": 20
},
{
""location_id"": 19,
""x_coord"": 17,
""y_coord"": 19,
""tip_amount"": 20
},
{
""location_id"": 20,
""x_coord"": 10,
""y_coord"": 21,
""tip_amount"": 20
},
{
""location_id"": 21,
""x_coord"": 15,
""y_coord"": 23,
""tip_amount"": 10
}
],
""kitchen_id"": 0,
""max_shift_distance"": 12.0
}
If you want the route written up in a machine-friendly way, just send it back in a tiny JSON shape like this β it's just a plain list showing the stops in order:
{
""solution"": [depot_id, location_id, ..., depot_id]
}
Think of that as a simple form: ""solution"" is the round-trip, the items in the array are the place IDs you visit in order (start at the kitchen/depot, visit each customer once, and come back to the kitchen). This is just the expected shape β not the actual answer.
Please make sure you use the exact identifiers from the instance input β don't rename them or invent new labels.
- for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'coordinates': [[19, 24], [14, 28], [20, 28], [21, 27], [19, 15], [14, 15], [11, 18], [12, 29], [9, 29], [10, 32], [13, 33], [19, 10], [15, 8], [14, 31], [7, 36], [18, 25], [21, 21], [18, 26], [14, 19], [17, 19], [10, 21], [15, 23]], 'prizes': [0, 20, 20, 20, 30, 30, 30, 30, 40, 40, 40, 40, 40, 50, 50, 10, 10, 10, 20, 20, 20, 10], 'depot': 0, 'max_length': 12.0, 'route_length': 10.262405524956371, 'collected_prize': 60.0, 'objective': 60.0}","[0, 3, 2, 17, 15, 0]",60.0,"{'problem_type': 'OP', 'num_nodes': 22, 'nodes': [{'id': 0, 'x': 19, 'y': 24, 'prize': 0}, {'id': 1, 'x': 14, 'y': 28, 'prize': 20}, {'id': 2, 'x': 20, 'y': 28, 'prize': 20}, {'id': 3, 'x': 21, 'y': 27, 'prize': 20}, {'id': 4, 'x': 19, 'y': 15, 'prize': 30}, {'id': 5, 'x': 14, 'y': 15, 'prize': 30}, {'id': 6, 'x': 11, 'y': 18, 'prize': 30}, {'id': 7, 'x': 12, 'y': 29, 'prize': 30}, {'id': 8, 'x': 9, 'y': 29, 'prize': 40}, {'id': 9, 'x': 10, 'y': 32, 'prize': 40}, {'id': 10, 'x': 13, 'y': 33, 'prize': 40}, {'id': 11, 'x': 19, 'y': 10, 'prize': 40}, {'id': 12, 'x': 15, 'y': 8, 'prize': 40}, {'id': 13, 'x': 14, 'y': 31, 'prize': 50}, {'id': 14, 'x': 7, 'y': 36, 'prize': 50}, {'id': 15, 'x': 18, 'y': 25, 'prize': 10}, {'id': 16, 'x': 21, 'y': 21, 'prize': 10}, {'id': 17, 'x': 18, 'y': 26, 'prize': 10}, {'id': 18, 'x': 14, 'y': 19, 'prize': 20}, {'id': 19, 'x': 17, 'y': 19, 'prize': 20}, {'id': 20, 'x': 10, 'y': 21, 'prize': 20}, {'id': 21, 'x': 15, 'y': 23, 'prize': 10}], 'depot': 0, 'max_length': 12.0, 'route_length': 10.262405524956371, 'collected_prize': 60.0, 'objective': 60.0}","[0, 3, 2, 17, 15, 0]",40,json,0
OP,OP,"Iβm the bookmobile librarian mapping out todayβs run: pick a single loop that leaves from the depot and brings the van back there at the end of the day, stop at neighborhood spots only once each, and keep the whole drive inside the dayβs mileage limit. The best route is the one that brings in the most loans and patron visits β youβd figure that by adding up the expected loans and visits at each stop you include. The route canβt hit the same neighborhood stop twice and the total miles driven canβt go over the allowance. The concrete stops, distances, and expected loan/visit numbers are shown below.
Iβve got 17 locations on todayβs map; Iβll start and end at depot 0, and my total loop must stay within 22.0 miles.
Stop 0 at (19, 24) β I expect 0 loans and patron visits if I include it.
Stop 1 at (20, 28) β I expect 20 loans and patron visits if I include it.
Stop 2 at (21, 27) β I expect 20 loans and patron visits if I include it.
Stop 3 at (12, 22) β I expect 20 loans and patron visits if I include it.
Stop 4 at (19, 15) β I expect 30 loans and patron visits if I include it.
Stop 5 at (14, 15) β I expect 30 loans and patron visits if I include it.
Stop 6 at (13, 33) β I expect 40 loans and patron visits if I include it.
Stop 7 at (19, 10) β I expect 40 loans and patron visits if I include it.
Stop 8 at (14, 31) β I expect 50 loans and patron visits if I include it.
Stop 9 at (7, 36) β I expect 50 loans and patron visits if I include it.
Stop 10 at (18, 25) β I expect 10 loans and patron visits if I include it.
Stop 11 at (19, 24) β I expect 10 loans and patron visits if I include it.
Stop 12 at (21, 21) β I expect 10 loans and patron visits if I include it.
Stop 13 at (16, 21) β I expect 10 loans and patron visits if I include it.
Stop 14 at (18, 26) β I expect 10 loans and patron visits if I include it.
Stop 15 at (17, 28) β I expect 10 loans and patron visits if I include it.
Stop 16 at (15, 23) β I expect 10 loans and patron visits if I include it.
Iβll pick the single loop that brings in the most loans and patron visits while staying within 22.0 miles.
Oh β and when you tell me which loop you picked, drop it into a tiny JSON snippet like this so I can read it easily:
{
""solution"": [depot_stop_id, stop_id, ..., depot_stop_id]
}
This just means ""solution"" holds the stops in order: start at the depot, list each neighborhood stop you visit (once each), and finish back at the depot. It's just a sketch of the shape I need, not the actual answer β I'll expect the real stop identifiers from the instance.
Please use the identifiers exactly as they appear in the instance input β don't rename them or invent new labels.
For example: Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.","{'coordinates': [[19, 24], [20, 28], [21, 27], [12, 22], [19, 15], [14, 15], [13, 33], [19, 10], [14, 31], [7, 36], [18, 25], [19, 24], [21, 21], [16, 21], [18, 26], [17, 28], [15, 23]], 'prizes': [0, 20, 20, 20, 30, 30, 40, 40, 50, 50, 10, 10, 10, 10, 10, 10, 10], 'depot': 0, 'max_length': 22.0, 'route_length': 21.945644030883926, 'collected_prize': 130.0, 'objective': 130.0}","[0, 11, 10, 14, 15, 8, 6, 0]",130.0,"{'problem_type': 'OP', 'num_nodes': 17, 'nodes': [{'id': 0, 'x': 19, 'y': 24, 'prize': 0}, {'id': 1, 'x': 20, 'y': 28, 'prize': 20}, {'id': 2, 'x': 21, 'y': 27, 'prize': 20}, {'id': 3, 'x': 12, 'y': 22, 'prize': 20}, {'id': 4, 'x': 19, 'y': 15, 'prize': 30}, {'id': 5, 'x': 14, 'y': 15, 'prize': 30}, {'id': 6, 'x': 13, 'y': 33, 'prize': 40}, {'id': 7, 'x': 19, 'y': 10, 'prize': 40}, {'id': 8, 'x': 14, 'y': 31, 'prize': 50}, {'id': 9, 'x': 7, 'y': 36, 'prize': 50}, {'id': 10, 'x': 18, 'y': 25, 'prize': 10}, {'id': 11, 'x': 19, 'y': 24, 'prize': 10}, {'id': 12, 'x': 21, 'y': 21, 'prize': 10}, {'id': 13, 'x': 16, 'y': 21, 'prize': 10}, {'id': 14, 'x': 18, 'y': 26, 'prize': 10}, {'id': 15, 'x': 17, 'y': 28, 'prize': 10}, {'id': 16, 'x': 15, 'y': 23, 'prize': 10}], 'depot': 0, 'max_length': 22.0, 'route_length': 21.945644030883926, 'collected_prize': 130.0, 'objective': 130.0}","[0, 11, 10, 14, 15, 8, 6, 0]",41,nl,0
OP,OP,"Recently the service office sent out a technician who had to decide on one clean loop: depart the office, visit selected customers without repeating any address, and come back before the shiftβs travel budget expires. Success is measured by how much billable repair income is gathered β simply total the fees from each visited customer β and the route must respect the no-repeat rule and the time cap. The detailed customer list, fees, and travel times are shown below.
# total_locations_including_office=19
# office_id=1
# max_travel_time=10.0
site_id,coord_x,coord_y,billable_fee
1,4,7,0
2,5,11,20
3,4,12,20
4,2,14,30
5,3,10,15
6,3,9,15
7,4,8,10
8,7,11,20
9,8,9,20
10,7,8,20
11,6,7,15
12,5,8,10
13,5,6,10
14,6,5,25
15,13,13,40
16,14,14,40
17,11,13,30
18,9,16,30
19,9,18,50
Oh, and when you send the chosen loop back, please use a tiny JSON layout so it's easy to read and machine-friendly. For example:
{
""solution"": [""office_id"", ""customer_id"", ..., ""office_id""]
}
That ""solution"" array is just the tour in order: start at the office, list each customer you plan to visit once (in the visiting order), and finish back at the office. Think of it like filling out a short form β which stops you visit and in what order. This JSON is only a sketch of the expected shape, not the actual route.
Please make sure to use the exact identifiers from the instance input β don't rename them or invent new labels.
- for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'coordinates': [[4, 7], [5, 11], [4, 12], [2, 14], [3, 10], [3, 9], [4, 8], [7, 11], [8, 9], [7, 8], [6, 7], [5, 8], [5, 6], [6, 5], [13, 13], [14, 14], [11, 13], [9, 16], [9, 18]], 'prizes': [0, 20, 20, 30, 15, 15, 10, 20, 20, 20, 15, 10, 10, 25, 40, 40, 30, 30, 50], 'depot': 0, 'max_length': 10.0, 'route_length': 9.65685424949238, 'collected_prize': 80.0, 'objective': 80.0}","[0, 12, 13, 10, 9, 11, 0]",80.0,"{'problem_type': 'OP', 'num_nodes': 19, 'nodes': [{'id': 1, 'x': 4, 'y': 7, 'prize': 0}, {'id': 2, 'x': 5, 'y': 11, 'prize': 20}, {'id': 3, 'x': 4, 'y': 12, 'prize': 20}, {'id': 4, 'x': 2, 'y': 14, 'prize': 30}, {'id': 5, 'x': 3, 'y': 10, 'prize': 15}, {'id': 6, 'x': 3, 'y': 9, 'prize': 15}, {'id': 7, 'x': 4, 'y': 8, 'prize': 10}, {'id': 8, 'x': 7, 'y': 11, 'prize': 20}, {'id': 9, 'x': 8, 'y': 9, 'prize': 20}, {'id': 10, 'x': 7, 'y': 8, 'prize': 20}, {'id': 11, 'x': 6, 'y': 7, 'prize': 15}, {'id': 12, 'x': 5, 'y': 8, 'prize': 10}, {'id': 13, 'x': 5, 'y': 6, 'prize': 10}, {'id': 14, 'x': 6, 'y': 5, 'prize': 25}, {'id': 15, 'x': 13, 'y': 13, 'prize': 40}, {'id': 16, 'x': 14, 'y': 14, 'prize': 40}, {'id': 17, 'x': 11, 'y': 13, 'prize': 30}, {'id': 18, 'x': 9, 'y': 16, 'prize': 30}, {'id': 19, 'x': 9, 'y': 18, 'prize': 50}], 'depot': 1, 'max_length': 10.0, 'route_length': 9.65685424949238, 'collected_prize': 80.0, 'objective': 80.0}","[1, 13, 14, 11, 10, 12, 1]",42,csv,1
OP,OP,"Thereβs a simple plan to make: start at the museumβs storage garage, drive a single circuit that returns to that same garage, and choose some stops along the way. The trick is to never visit an event more than once, keep the total distance under the vehicleβs limit, and collect as much money as possible β the score is just the sum of donations from the stops visited. The concrete event list, travel distances, and donation amounts are shown below.
{
""total_locations_including_garage"": 18,
""nodes"": [
{
""location_id"": ""A"",
""x_coordinate"": 10,
""y_coordinate"": 14,
""donation_amount"": 0
},
{
""location_id"": ""B"",
""x_coordinate"": 18,
""y_coordinate"": 13,
""donation_amount"": 10
},
{
""location_id"": ""C"",
""x_coordinate"": 16,
""y_coordinate"": 9,
""donation_amount"": 10
},
{
""location_id"": ""D"",
""x_coordinate"": 15,
""y_coordinate"": 11,
""donation_amount"": 10
},
{
""location_id"": ""E"",
""x_coordinate"": 14,
""y_coordinate"": 13,
""donation_amount"": 5
},
{
""location_id"": ""F"",
""x_coordinate"": 15,
""y_coordinate"": 20,
""donation_amount"": 10
},
{
""location_id"": ""G"",
""x_coordinate"": 14,
""y_coordinate"": 5,
""donation_amount"": 10
},
{
""location_id"": ""H"",
""x_coordinate"": 7,
""y_coordinate"": 9,
""donation_amount"": 10
},
{
""location_id"": ""I"",
""x_coordinate"": 10,
""y_coordinate"": 18,
""donation_amount"": 5
},
{
""location_id"": ""J"",
""x_coordinate"": 11,
""y_coordinate"": 20,
""donation_amount"": 10
},
{
""location_id"": ""K"",
""x_coordinate"": 10,
""y_coordinate"": 22,
""donation_amount"": 10
},
{
""location_id"": ""L"",
""x_coordinate"": 9,
""y_coordinate"": 23,
""donation_amount"": 10
},
{
""location_id"": ""M"",
""x_coordinate"": 10,
""y_coordinate"": 26,
""donation_amount"": 15
},
{
""location_id"": ""N"",
""x_coordinate"": 8,
""y_coordinate"": 17,
""donation_amount"": 10
},
{
""location_id"": ""O"",
""x_coordinate"": 8,
""y_coordinate"": 13,
""donation_amount"": 10
},
{
""location_id"": ""P"",
""x_coordinate"": 5,
""y_coordinate"": 11,
""donation_amount"": 10
},
{
""location_id"": ""Q"",
""x_coordinate"": 4,
""y_coordinate"": 18,
""donation_amount"": 10
},
{
""location_id"": ""R"",
""x_coordinate"": 7,
""y_coordinate"": 18,
""donation_amount"": 10
}
],
""garage_node_id"": ""A"",
""vehicle_max_range"": 13.0
}
When you're ready to give me the planned circuit, just use this tiny JSON shape so it's easy to parse:
{
""solution"": [garage_id, event_id, ..., garage_id]
}
Think of this as a simple form: ""solution"" holds the ordered list of stops for the one round trip β start at the storage garage, list each event you want to visit in the order you'll visit them, and finish back at the same garage. This block is only a sketch of the shape I expect, not the actual route.
Please make sure you use the exact identifiers from the instance input β don't rename them or invent new labels.
- for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'coordinates': [[10, 14], [18, 13], [16, 9], [15, 11], [14, 13], [15, 20], [14, 5], [7, 9], [10, 18], [11, 20], [10, 22], [9, 23], [10, 26], [8, 17], [8, 13], [5, 11], [4, 18], [7, 18]], 'prizes': [0, 10, 10, 10, 5, 10, 10, 10, 5, 10, 10, 10, 15, 10, 10, 10, 10, 10], 'depot': 0, 'max_length': 13.0, 'route_length': 12.650281539872886, 'collected_prize': 30.0, 'objective': 30.0}","[0, 17, 13, 14, 0]",30.0,"{'problem_type': 'OP', 'num_nodes': 18, 'nodes': [{'id': 'A', 'x': 10, 'y': 14, 'prize': 0}, {'id': 'B', 'x': 18, 'y': 13, 'prize': 10}, {'id': 'C', 'x': 16, 'y': 9, 'prize': 10}, {'id': 'D', 'x': 15, 'y': 11, 'prize': 10}, {'id': 'E', 'x': 14, 'y': 13, 'prize': 5}, {'id': 'F', 'x': 15, 'y': 20, 'prize': 10}, {'id': 'G', 'x': 14, 'y': 5, 'prize': 10}, {'id': 'H', 'x': 7, 'y': 9, 'prize': 10}, {'id': 'I', 'x': 10, 'y': 18, 'prize': 5}, {'id': 'J', 'x': 11, 'y': 20, 'prize': 10}, {'id': 'K', 'x': 10, 'y': 22, 'prize': 10}, {'id': 'L', 'x': 9, 'y': 23, 'prize': 10}, {'id': 'M', 'x': 10, 'y': 26, 'prize': 15}, {'id': 'N', 'x': 8, 'y': 17, 'prize': 10}, {'id': 'O', 'x': 8, 'y': 13, 'prize': 10}, {'id': 'P', 'x': 5, 'y': 11, 'prize': 10}, {'id': 'Q', 'x': 4, 'y': 18, 'prize': 10}, {'id': 'R', 'x': 7, 'y': 18, 'prize': 10}], 'depot': 'A', 'max_length': 13.0, 'route_length': 12.650281539872886, 'collected_prize': 30.0, 'objective': 30.0}","['A', 'R', 'N', 'O', 'A']",43,json,names
OP,OP,"Thereβs a day where the freelance photographer has a studio start and end point and a handful of shoot spots scattered around town; the task is to arrange one continuous loop that hits some of those spots once each and returns to the studio without exceeding the dayβs travel allowance. A better choice is simply the route that earns the highest total in booking fees β calculated by summing the fees for every location visited β provided the whole trip stays within the allowed travel limit. The exact addresses, fees, and travel times are shown below.
Below are the 25 locations (studio and shoot spots); the studio is 1 and the day's travel allowance is 12.0.
Location 1: at (19, 24) β booking fee 0.
Location 2: at (14, 28) β booking fee 20.
Location 3: at (16, 28) β booking fee 20.
Location 4: at (20, 28) β booking fee 20.
Location 5: at (12, 22) β booking fee 20.
Location 6: at (19, 15) β booking fee 30.
Location 7: at (14, 15) β booking fee 30.
Location 8: at (11, 18) β booking fee 30.
Location 9: at (17, 28) β booking fee 30.
Location 10: at (9, 29) β booking fee 40.
Location 11: at (10, 32) β booking fee 40.
Location 12: at (13, 33) β booking fee 40.
Location 13: at (19, 10) β booking fee 40.
Location 14: at (15, 8) β booking fee 40.
Location 15: at (14, 31) β booking fee 50.
Location 16: at (7, 36) β booking fee 50.
Location 17: at (21, 25) β booking fee 50.
Location 18: at (18, 25) β booking fee 10.
Location 19: at (21, 21) β booking fee 10.
Location 20: at (16, 21) β booking fee 10.
Location 21: at (18, 26) β booking fee 10.
Location 22: at (17, 28) β booking fee 10.
Location 23: at (14, 19) β booking fee 20.
Location 24: at (17, 19) β booking fee 20.
Location 25: at (15, 23) β booking fee 10.
Arrange a single loop that starts and ends at 1 and stays within 12.0 so the summed booking fees are maximized.
Oh, and when you send back the chosen loop, just pop it into a tiny JSON snippet like this so it's easy to read and machine-friendly:
{
""solution"": [studio_id, spot_id, ..., studio_id]
}
That's just a simple sketch β ""studio_id"" is the start/end (your photographer's studio) and the ""spot_id"" entries are the shoot locations in the order you'd visit them, finishing back at the studio. Think of it like filling in a little form: list the studio, then the spots you want to hit once each, and end with the studio again.
Please make sure you use the exact identifiers from the instance input when you fill this in β don't rename them or invent new labels.
- for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'coordinates': [[19, 24], [14, 28], [16, 28], [20, 28], [12, 22], [19, 15], [14, 15], [11, 18], [17, 28], [9, 29], [10, 32], [13, 33], [19, 10], [15, 8], [14, 31], [7, 36], [21, 25], [18, 25], [21, 21], [16, 21], [18, 26], [17, 28], [14, 19], [17, 19], [15, 23]], 'prizes': [0, 20, 20, 20, 20, 30, 30, 30, 30, 40, 40, 40, 40, 40, 50, 50, 50, 10, 10, 10, 10, 10, 20, 20, 10], 'depot': 0, 'max_length': 12.0, 'route_length': 11.886349517372675, 'collected_prize': 110.0, 'objective': 110.0}","[0, 16, 8, 21, 20, 17, 0]",110.0,"{'problem_type': 'OP', 'num_nodes': 25, 'nodes': [{'id': 1, 'x': 19, 'y': 24, 'prize': 0}, {'id': 2, 'x': 14, 'y': 28, 'prize': 20}, {'id': 3, 'x': 16, 'y': 28, 'prize': 20}, {'id': 4, 'x': 20, 'y': 28, 'prize': 20}, {'id': 5, 'x': 12, 'y': 22, 'prize': 20}, {'id': 6, 'x': 19, 'y': 15, 'prize': 30}, {'id': 7, 'x': 14, 'y': 15, 'prize': 30}, {'id': 8, 'x': 11, 'y': 18, 'prize': 30}, {'id': 9, 'x': 17, 'y': 28, 'prize': 30}, {'id': 10, 'x': 9, 'y': 29, 'prize': 40}, {'id': 11, 'x': 10, 'y': 32, 'prize': 40}, {'id': 12, 'x': 13, 'y': 33, 'prize': 40}, {'id': 13, 'x': 19, 'y': 10, 'prize': 40}, {'id': 14, 'x': 15, 'y': 8, 'prize': 40}, {'id': 15, 'x': 14, 'y': 31, 'prize': 50}, {'id': 16, 'x': 7, 'y': 36, 'prize': 50}, {'id': 17, 'x': 21, 'y': 25, 'prize': 50}, {'id': 18, 'x': 18, 'y': 25, 'prize': 10}, {'id': 19, 'x': 21, 'y': 21, 'prize': 10}, {'id': 20, 'x': 16, 'y': 21, 'prize': 10}, {'id': 21, 'x': 18, 'y': 26, 'prize': 10}, {'id': 22, 'x': 17, 'y': 28, 'prize': 10}, {'id': 23, 'x': 14, 'y': 19, 'prize': 20}, {'id': 24, 'x': 17, 'y': 19, 'prize': 20}, {'id': 25, 'x': 15, 'y': 23, 'prize': 10}], 'depot': 1, 'max_length': 12.0, 'route_length': 11.886349517372675, 'collected_prize': 110.0, 'objective': 110.0}","[1, 17, 9, 22, 21, 18, 1]",44,nl,1
OP,OP,"Someone who buys antiques on the road has to plan a single loop from the workshop that checks houses, buys items if worthwhile, and finishes back at the workshop without doubling back to any house. The aim is to bring home as much appraised value as possible β add up the appraised prices from each visited stop to measure that β but the trip must fit the planned distance limit and each house can only be checked one time. The specific stops, distances, and appraisals are given below.
# total_locations_including_workshop=16
# workshop_id=A
# max_trip_distance=19.0
location_id,x_coordinate,y_coordinate,appraised_value
A,4,7,0
B,4,12,20
C,3,10,15
D,3,9,15
E,4,8,10
F,7,11,20
G,8,9,20
H,6,7,15
I,5,8,10
J,5,6,10
K,6,5,25
L,13,13,40
M,14,14,40
N,11,13,30
O,9,16,30
P,4,16,30
If you want to hand me a candidate route, just drop it in a tiny JSON snippet like the one below β makes it easy to read and keeps everything tidy.
{
""solution"": [workshop_id, house_id, ..., workshop_id]
}
This little block is just a sketch of the shape I expect: ""solution"" is the whole loop, the list of stops starting and ending at the workshop. Use the workshop placeholder for your starting/ending spot and the house placeholders for any houses you check along the way; the ""..."" just stands for whatever other stops you want to include. It's only an example of the format, not the actual answer.
Please be sure to use the exact identifiers from the instance input (don't rename them or invent new labels).
- for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'coordinates': [[4, 7], [4, 12], [3, 10], [3, 9], [4, 8], [7, 11], [8, 9], [6, 7], [5, 8], [5, 6], [6, 5], [13, 13], [14, 14], [11, 13], [9, 16], [4, 16]], 'prizes': [0, 20, 15, 15, 10, 20, 20, 15, 10, 10, 25, 40, 40, 30, 30, 30], 'depot': 0, 'max_length': 19.0, 'route_length': 18.705481427033437, 'collected_prize': 150.0, 'objective': 150.0}","[0, 9, 10, 7, 6, 5, 1, 2, 3, 4, 0]",150.0,"{'problem_type': 'OP', 'num_nodes': 16, 'nodes': [{'id': 'A', 'x': 4, 'y': 7, 'prize': 0}, {'id': 'B', 'x': 4, 'y': 12, 'prize': 20}, {'id': 'C', 'x': 3, 'y': 10, 'prize': 15}, {'id': 'D', 'x': 3, 'y': 9, 'prize': 15}, {'id': 'E', 'x': 4, 'y': 8, 'prize': 10}, {'id': 'F', 'x': 7, 'y': 11, 'prize': 20}, {'id': 'G', 'x': 8, 'y': 9, 'prize': 20}, {'id': 'H', 'x': 6, 'y': 7, 'prize': 15}, {'id': 'I', 'x': 5, 'y': 8, 'prize': 10}, {'id': 'J', 'x': 5, 'y': 6, 'prize': 10}, {'id': 'K', 'x': 6, 'y': 5, 'prize': 25}, {'id': 'L', 'x': 13, 'y': 13, 'prize': 40}, {'id': 'M', 'x': 14, 'y': 14, 'prize': 40}, {'id': 'N', 'x': 11, 'y': 13, 'prize': 30}, {'id': 'O', 'x': 9, 'y': 16, 'prize': 30}, {'id': 'P', 'x': 4, 'y': 16, 'prize': 30}], 'depot': 'A', 'max_length': 19.0, 'route_length': 18.705481427033437, 'collected_prize': 150.0, 'objective': 150.0}","['A', 'J', 'K', 'H', 'G', 'F', 'B', 'C', 'D', 'E', 'A']",45,csv,names
OP,OP,"Many people on the expedition pitch in to plan one continuous circuit that departs and ends at base camp, visiting chosen sampling spots. The choice that counts is the one that brings in the largest total scientific value β just total up the scores of the sites visited β while avoiding duplicate sampling at any location and keeping the entire route inside our travel/time allowance. The concrete sites, their scores, and the allowable route length are detailed below.
# total_sites_including_base=19
# base_camp_id=A
# max_route_length=8.0
site_id,x_coord,y_coord,scientific_value
A,4,7,0
B,5,11,20
C,4,12,20
D,2,14,30
E,3,10,15
F,3,9,15
G,4,8,10
H,8,9,20
I,7,8,20
J,6,7,15
K,5,8,10
L,5,6,10
M,6,5,25
N,13,13,40
O,14,14,40
P,11,13,30
Q,9,16,30
R,9,18,50
S,4,16,30
When you're ready, just send back the chosen loop in a tiny JSON object like this:
{
""solution"": [""basecamp_id"", ""site_id"", ..., ""basecamp_id""]
}
Think of that as a simple form: ""solution"" is the ordered sequence of place IDs (start at base camp, visit each picked site once, and return to base camp). The example above is just a sketch of the shape I expect β it isn't the actual answer.
Please use the identifiers exactly as they appear in the instance input β do not rename them and do not invent new labels.
Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.","{'coordinates': [[4, 7], [5, 11], [4, 12], [2, 14], [3, 10], [3, 9], [4, 8], [8, 9], [7, 8], [6, 7], [5, 8], [5, 6], [6, 5], [13, 13], [14, 14], [11, 13], [9, 16], [9, 18], [4, 16]], 'prizes': [0, 20, 20, 30, 15, 15, 10, 20, 20, 15, 10, 10, 25, 40, 40, 30, 30, 50, 30], 'depot': 0, 'max_length': 8.0, 'route_length': 7.65685424949238, 'collected_prize': 60.0, 'objective': 60.0}","[0, 11, 12, 9, 10, 0]",60.0,"{'problem_type': 'OP', 'num_nodes': 19, 'nodes': [{'id': 'A', 'x': 4, 'y': 7, 'prize': 0}, {'id': 'B', 'x': 5, 'y': 11, 'prize': 20}, {'id': 'C', 'x': 4, 'y': 12, 'prize': 20}, {'id': 'D', 'x': 2, 'y': 14, 'prize': 30}, {'id': 'E', 'x': 3, 'y': 10, 'prize': 15}, {'id': 'F', 'x': 3, 'y': 9, 'prize': 15}, {'id': 'G', 'x': 4, 'y': 8, 'prize': 10}, {'id': 'H', 'x': 8, 'y': 9, 'prize': 20}, {'id': 'I', 'x': 7, 'y': 8, 'prize': 20}, {'id': 'J', 'x': 6, 'y': 7, 'prize': 15}, {'id': 'K', 'x': 5, 'y': 8, 'prize': 10}, {'id': 'L', 'x': 5, 'y': 6, 'prize': 10}, {'id': 'M', 'x': 6, 'y': 5, 'prize': 25}, {'id': 'N', 'x': 13, 'y': 13, 'prize': 40}, {'id': 'O', 'x': 14, 'y': 14, 'prize': 40}, {'id': 'P', 'x': 11, 'y': 13, 'prize': 30}, {'id': 'Q', 'x': 9, 'y': 16, 'prize': 30}, {'id': 'R', 'x': 9, 'y': 18, 'prize': 50}, {'id': 'S', 'x': 4, 'y': 16, 'prize': 30}], 'depot': 'A', 'max_length': 8.0, 'route_length': 7.65685424949238, 'collected_prize': 60.0, 'objective': 60.0}","['A', 'L', 'M', 'J', 'K', 'A']",46,csv,names
OP,OP,"Someone organizing outreach needs to map a single circuit that starts and ends at the health center, hits a selection of outreach points (each no more than once), and stays inside the teamβs travel budget for the day. The aim is straightforward: choose the stops that, when the patient counts at those stops are summed, give the highest total number of vaccinations possible without going over the travel allowance. The specific stops, patient counts, and travel constraints are listed below.
{
""total_locations_including_health_center"": 23,
""nodes"": [
{
""location_id"": 0,
""location_x_coordinate"": 10,
""location_y_coordinate"": 14,
""expected_patients_at_location"": 0
},
{
""location_id"": 1,
""location_x_coordinate"": 18,
""location_y_coordinate"": 15,
""expected_patients_at_location"": 10
},
{
""location_id"": 2,
""location_x_coordinate"": 18,
""location_y_coordinate"": 13,
""expected_patients_at_location"": 10
},
{
""location_id"": 3,
""location_x_coordinate"": 16,
""location_y_coordinate"": 9,
""expected_patients_at_location"": 10
},
{
""location_id"": 4,
""location_x_coordinate"": 14,
""location_y_coordinate"": 13,
""expected_patients_at_location"": 5
},
{
""location_id"": 5,
""location_x_coordinate"": 15,
""location_y_coordinate"": 17,
""expected_patients_at_location"": 5
},
{
""location_id"": 6,
""location_x_coordinate"": 16,
""location_y_coordinate"": 19,
""expected_patients_at_location"": 10
},
{
""location_id"": 7,
""location_x_coordinate"": 13,
""location_y_coordinate"": 20,
""expected_patients_at_location"": 10
},
{
""location_id"": 8,
""location_x_coordinate"": 14,
""location_y_coordinate"": 15,
""expected_patients_at_location"": 5
},
{
""location_id"": 9,
""location_x_coordinate"": 14,
""location_y_coordinate"": 5,
""expected_patients_at_location"": 10
},
{
""location_id"": 10,
""location_x_coordinate"": 11,
""location_y_coordinate"": 6,
""expected_patients_at_location"": 15
},
{
""location_id"": 11,
""location_x_coordinate"": 8,
""location_y_coordinate"": 5,
""expected_patients_at_location"": 15
},
{
""location_id"": 12,
""location_x_coordinate"": 11,
""location_y_coordinate"": 12,
""expected_patients_at_location"": 5
},
{
""location_id"": 13,
""location_x_coordinate"": 10,
""location_y_coordinate"": 18,
""expected_patients_at_location"": 5
},
{
""location_id"": 14,
""location_x_coordinate"": 11,
""location_y_coordinate"": 20,
""expected_patients_at_location"": 10
},
{
""location_id"": 15,
""location_x_coordinate"": 10,
""location_y_coordinate"": 22,
""expected_patients_at_location"": 10
},
{
""location_id"": 16,
""location_x_coordinate"": 9,
""location_y_coordinate"": 23,
""expected_patients_at_location"": 10
},
{
""location_id"": 17,
""location_x_coordinate"": 10,
""location_y_coordinate"": 26,
""expected_patients_at_location"": 15
},
{
""location_id"": 18,
""location_x_coordinate"": 7,
""location_y_coordinate"": 24,
""expected_patients_at_location"": 15
},
{
""location_id"": 19,
""location_x_coordinate"": 8,
""location_y_coordinate"": 19,
""expected_patients_at_location"": 15
},
{
""location_id"": 20,
""location_x_coordinate"": 8,
""location_y_coordinate"": 13,
""expected_patients_at_location"": 10
},
{
""location_id"": 21,
""location_x_coordinate"": 4,
""location_y_coordinate"": 18,
""expected_patients_at_location"": 10
},
{
""location_id"": 22,
""location_x_coordinate"": 7,
""location_y_coordinate"": 18,
""expected_patients_at_location"": 10
}
],
""health_center_id"": 0,
""max_travel_budget"": 24.0
}
You can send the answer in a very simple JSON shape like this β just to show the order of stops on the circuit:
{
""solution"": [""health_center_id"", ""outreach_point_id"", ""..."", ""health_center_id""]
}
Think of that as a little form: ""solution"" is the ordered list of places the team will visit, starting and ending at the health center. The placeholders in the example stand in for the actual identifiers you'll pick from the instance (start at the health center, list each outreach stop you plan to hit once in order, then return to the health center). This block is only a sketch of the expected shape, not the actual route.
Please make sure to use the exact identifiers from the instance input β don't rename them or invent new labels.
- for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'coordinates': [[10, 14], [18, 15], [18, 13], [16, 9], [14, 13], [15, 17], [16, 19], [13, 20], [14, 15], [14, 5], [11, 6], [8, 5], [11, 12], [10, 18], [11, 20], [10, 22], [9, 23], [10, 26], [7, 24], [8, 19], [8, 13], [4, 18], [7, 18]], 'prizes': [0, 10, 10, 10, 5, 5, 10, 10, 5, 10, 15, 15, 5, 5, 10, 10, 10, 15, 15, 15, 10, 10, 10], 'depot': 0, 'max_length': 24.0, 'route_length': 23.635650570838344, 'collected_prize': 75.0, 'objective': 75.0}","[0, 22, 19, 18, 16, 15, 14, 13, 0]",75.0,"{'problem_type': 'OP', 'num_nodes': 23, 'nodes': [{'id': 0, 'x': 10, 'y': 14, 'prize': 0}, {'id': 1, 'x': 18, 'y': 15, 'prize': 10}, {'id': 2, 'x': 18, 'y': 13, 'prize': 10}, {'id': 3, 'x': 16, 'y': 9, 'prize': 10}, {'id': 4, 'x': 14, 'y': 13, 'prize': 5}, {'id': 5, 'x': 15, 'y': 17, 'prize': 5}, {'id': 6, 'x': 16, 'y': 19, 'prize': 10}, {'id': 7, 'x': 13, 'y': 20, 'prize': 10}, {'id': 8, 'x': 14, 'y': 15, 'prize': 5}, {'id': 9, 'x': 14, 'y': 5, 'prize': 10}, {'id': 10, 'x': 11, 'y': 6, 'prize': 15}, {'id': 11, 'x': 8, 'y': 5, 'prize': 15}, {'id': 12, 'x': 11, 'y': 12, 'prize': 5}, {'id': 13, 'x': 10, 'y': 18, 'prize': 5}, {'id': 14, 'x': 11, 'y': 20, 'prize': 10}, {'id': 15, 'x': 10, 'y': 22, 'prize': 10}, {'id': 16, 'x': 9, 'y': 23, 'prize': 10}, {'id': 17, 'x': 10, 'y': 26, 'prize': 15}, {'id': 18, 'x': 7, 'y': 24, 'prize': 15}, {'id': 19, 'x': 8, 'y': 19, 'prize': 15}, {'id': 20, 'x': 8, 'y': 13, 'prize': 10}, {'id': 21, 'x': 4, 'y': 18, 'prize': 10}, {'id': 22, 'x': 7, 'y': 18, 'prize': 10}], 'depot': 0, 'max_length': 24.0, 'route_length': 23.635650570838344, 'collected_prize': 75.0, 'objective': 75.0}","[0, 22, 19, 18, 16, 15, 14, 13, 0]",47,json,0
OP,OP,"Many people think route planning is about going everywhere, but here the trick is to build one neat round trip from the press that never goes through the same block twice, only visits each non-press location once, and stays inside the permitted delivery distance. The route thatβs βbestβ is the one that gathers the largest total of subscriptions and single-issue sales when the numbers at each visited stop are added together. The detailed list of stops, distances and sales is right below.
There are 18 locations including the press at A, and the entire round trip must stay within 18.0 total distance.
| block_id | block_x_coordinate | block_y_coordinate | expected_sales_count |
|---|---|---|---|
| A | 19 | 24 | 0 |
| B | 16 | 28 | 20 |
| C | 20 | 28 | 20 |
| D | 21 | 27 | 20 |
| E | 14 | 15 | 30 |
| F | 11 | 18 | 30 |
| G | 12 | 29 | 30 |
| H | 9 | 29 | 40 |
| I | 13 | 33 | 40 |
| J | 14 | 31 | 50 |
| K | 21 | 25 | 50 |
| L | 18 | 25 | 10 |
| M | 19 | 24 | 10 |
| N | 21 | 21 | 10 |
| O | 16 | 21 | 10 |
| P | 17 | 28 | 10 |
| Q | 17 | 19 | 20 |
| R | 10 | 21 | 20 |
Use these entries to assemble the one neat round trip from the press that fits the 18.0 limit and maximizes total collected sales.
Also, when you send the route back, just stick to this simple JSON shape so itβs easy to read and check:
{
""solution"": [""press_id"", ""stop_id"", ..., ""press_id""]
}
Pretty straightforward: ""solution"" is the ordered list of stops on the round trip, with the first and last entry being the press (depot). The entries in the array are placeholders for the actual stop identifiers from the instance β think of them as the labels youβll replace with the real ones when you give the final route. This block is just a sketch of the expected shape, not the actual answer.
Please be sure to use the identifiers exactly as they appear in the instance input β do not rename them and donβt invent new labels.
For example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'coordinates': [[19, 24], [16, 28], [20, 28], [21, 27], [14, 15], [11, 18], [12, 29], [9, 29], [13, 33], [14, 31], [21, 25], [18, 25], [19, 24], [21, 21], [16, 21], [17, 28], [17, 19], [10, 21]], 'prizes': [0, 20, 20, 20, 30, 30, 30, 40, 40, 50, 50, 10, 10, 10, 10, 10, 20, 20], 'depot': 0, 'max_length': 18.0, 'route_length': 17.861384090800865, 'collected_prize': 140.0, 'objective': 140.0}","[0, 12, 10, 11, 1, 15, 2, 3, 0]",140.0,"{'problem_type': 'OP', 'num_nodes': 18, 'nodes': [{'id': 'A', 'x': 19, 'y': 24, 'prize': 0}, {'id': 'B', 'x': 16, 'y': 28, 'prize': 20}, {'id': 'C', 'x': 20, 'y': 28, 'prize': 20}, {'id': 'D', 'x': 21, 'y': 27, 'prize': 20}, {'id': 'E', 'x': 14, 'y': 15, 'prize': 30}, {'id': 'F', 'x': 11, 'y': 18, 'prize': 30}, {'id': 'G', 'x': 12, 'y': 29, 'prize': 30}, {'id': 'H', 'x': 9, 'y': 29, 'prize': 40}, {'id': 'I', 'x': 13, 'y': 33, 'prize': 40}, {'id': 'J', 'x': 14, 'y': 31, 'prize': 50}, {'id': 'K', 'x': 21, 'y': 25, 'prize': 50}, {'id': 'L', 'x': 18, 'y': 25, 'prize': 10}, {'id': 'M', 'x': 19, 'y': 24, 'prize': 10}, {'id': 'N', 'x': 21, 'y': 21, 'prize': 10}, {'id': 'O', 'x': 16, 'y': 21, 'prize': 10}, {'id': 'P', 'x': 17, 'y': 28, 'prize': 10}, {'id': 'Q', 'x': 17, 'y': 19, 'prize': 20}, {'id': 'R', 'x': 10, 'y': 21, 'prize': 20}], 'depot': 'A', 'max_length': 18.0, 'route_length': 17.861384090800865, 'collected_prize': 140.0, 'objective': 140.0}","['A', 'M', 'K', 'L', 'B', 'P', 'C', 'D', 'A']",48,markdown_table,names
OP,OP,"I run a one-person home repair shop and need to plan a single loop that leaves the workshop in the morning and comes back at the end of the day, stopping at a handful of clients along the way. The choice is which clients to visit so the day brings in the most cash β the total pay is just the sum of the service fees for every job actually completed on that loop. The route canβt go over the daily travel allowance, and once a clientβs job is done the crew doesnβt double back to that same address later, so each client can only be visited once. The exact list of clients, their fees and the distances are shown below.
# total_locations_including_workshop=16
# workshop_node=0
# daily_travel_limit=13.0
location_id,x_coordinate,y_coordinate,service_fee
0,10,14,0
1,18,15,10
2,15,11,10
3,14,13,5
4,16,13,5
5,15,17,5
6,15,20,10
7,11,6,15
8,8,5,15
9,7,9,10
10,11,17,5
11,11,20,10
12,10,22,10
13,10,26,15
14,8,17,10
15,5,11,10
Oh, and to keep things machine-friendly, please send the planned loop in a tiny JSON sketch like this:
{
""solution"": [workshop_id, client_id, ..., workshop_id]
}
Think of ""solution"" as the ordered list of stops for the day: the first and last entry are your workshop, and everything in between are the clients you visit in order. This is just the expected shape of the answer β a quick form, not the actual route.
Please be careful to use the exact identifiers from the instance input β don't rename them and don't invent new labels.
- for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'coordinates': [[10, 14], [18, 15], [15, 11], [14, 13], [16, 13], [15, 17], [15, 20], [11, 6], [8, 5], [7, 9], [11, 17], [11, 20], [10, 22], [10, 26], [8, 17], [5, 11]], 'prizes': [0, 10, 10, 5, 5, 5, 10, 15, 15, 10, 5, 10, 10, 15, 10, 10], 'depot': 0, 'max_length': 13.0, 'route_length': 12.19012549796275, 'collected_prize': 15.0, 'objective': 15.0}","[0, 2, 3, 0]",15.0,"{'problem_type': 'OP', 'num_nodes': 16, 'nodes': [{'id': 0, 'x': 10, 'y': 14, 'prize': 0}, {'id': 1, 'x': 18, 'y': 15, 'prize': 10}, {'id': 2, 'x': 15, 'y': 11, 'prize': 10}, {'id': 3, 'x': 14, 'y': 13, 'prize': 5}, {'id': 4, 'x': 16, 'y': 13, 'prize': 5}, {'id': 5, 'x': 15, 'y': 17, 'prize': 5}, {'id': 6, 'x': 15, 'y': 20, 'prize': 10}, {'id': 7, 'x': 11, 'y': 6, 'prize': 15}, {'id': 8, 'x': 8, 'y': 5, 'prize': 15}, {'id': 9, 'x': 7, 'y': 9, 'prize': 10}, {'id': 10, 'x': 11, 'y': 17, 'prize': 5}, {'id': 11, 'x': 11, 'y': 20, 'prize': 10}, {'id': 12, 'x': 10, 'y': 22, 'prize': 10}, {'id': 13, 'x': 10, 'y': 26, 'prize': 15}, {'id': 14, 'x': 8, 'y': 17, 'prize': 10}, {'id': 15, 'x': 5, 'y': 11, 'prize': 10}], 'depot': 0, 'max_length': 13.0, 'route_length': 12.19012549796275, 'collected_prize': 15.0, 'objective': 15.0}","[0, 2, 3, 0]",49,csv,0
OP,OP,"Many vendors face the same routine: start at the storage depot, do one loop of the neighborhood, and return before the shift is up. The job is to pick a list of vending spots and an order to visit them so each place is visited no more than once, the whole trip stays within the shiftβs travel allowance, and total revenue β the sum of money from all visited stops β is as large as possible. The exact data for the stops and travel limits are listed below.
{
""total_stops_including_depot"": 17,
""nodes"": [
{
""stop_id"": ""A"",
""x_coordinate"": 10,
""y_coordinate"": 14,
""expected_sales_revenue"": 0
},
{
""stop_id"": ""B"",
""x_coordinate"": 15,
""y_coordinate"": 11,
""expected_sales_revenue"": 10
},
{
""stop_id"": ""C"",
""x_coordinate"": 14,
""y_coordinate"": 13,
""expected_sales_revenue"": 5
},
{
""stop_id"": ""D"",
""x_coordinate"": 15,
""y_coordinate"": 17,
""expected_sales_revenue"": 5
},
{
""stop_id"": ""E"",
""x_coordinate"": 16,
""y_coordinate"": 19,
""expected_sales_revenue"": 10
},
{
""stop_id"": ""F"",
""x_coordinate"": 15,
""y_coordinate"": 20,
""expected_sales_revenue"": 10
},
{
""stop_id"": ""G"",
""x_coordinate"": 11,
""y_coordinate"": 6,
""expected_sales_revenue"": 15
},
{
""stop_id"": ""H"",
""x_coordinate"": 8,
""y_coordinate"": 5,
""expected_sales_revenue"": 15
},
{
""stop_id"": ""I"",
""x_coordinate"": 7,
""y_coordinate"": 9,
""expected_sales_revenue"": 10
},
{
""stop_id"": ""J"",
""x_coordinate"": 11,
""y_coordinate"": 12,
""expected_sales_revenue"": 5
},
{
""stop_id"": ""K"",
""x_coordinate"": 10,
""y_coordinate"": 18,
""expected_sales_revenue"": 5
},
{
""stop_id"": ""L"",
""x_coordinate"": 10,
""y_coordinate"": 22,
""expected_sales_revenue"": 10
},
{
""stop_id"": ""M"",
""x_coordinate"": 10,
""y_coordinate"": 26,
""expected_sales_revenue"": 15
},
{
""stop_id"": ""N"",
""x_coordinate"": 8,
""y_coordinate"": 19,
""expected_sales_revenue"": 15
},
{
""stop_id"": ""O"",
""x_coordinate"": 8,
""y_coordinate"": 13,
""expected_sales_revenue"": 10
},
{
""stop_id"": ""P"",
""x_coordinate"": 5,
""y_coordinate"": 11,
""expected_sales_revenue"": 10
},
{
""stop_id"": ""Q"",
""x_coordinate"": 7,
""y_coordinate"": 18,
""expected_sales_revenue"": 10
}
],
""storage_depot_id"": ""A"",
""shift_travel_allowance"": 8.0
}
If you want to hand me the chosen loop, a neat way is to put it in a tiny JSON snippet like this:
{
""solution"": [depot_id, location_id, ..., depot_id]
}
Pretty simple: ""solution"" holds the ordered list of stops (start at the depot, visit each chosen vending spot at most once, and come back to the depot). Think of it like filling out a short form β the array is the route in the order you'd drive it.
This JSON is just a sketch of the shape I expect, not the actual filled-in answer.
Please use the exact identifiers from the instance input when you fill it in β do not rename or invent labels.
- for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'coordinates': [[10, 14], [15, 11], [14, 13], [15, 17], [16, 19], [15, 20], [11, 6], [8, 5], [7, 9], [11, 12], [10, 18], [10, 22], [10, 26], [8, 19], [8, 13], [5, 11], [7, 18]], 'prizes': [0, 10, 5, 5, 10, 10, 15, 15, 10, 5, 5, 10, 15, 15, 10, 10, 10], 'depot': 0, 'max_length': 8.0, 'route_length': 7.63441361516796, 'collected_prize': 15.0, 'objective': 15.0}","[0, 9, 14, 0]",15.0,"{'problem_type': 'OP', 'num_nodes': 17, 'nodes': [{'id': 'A', 'x': 10, 'y': 14, 'prize': 0}, {'id': 'B', 'x': 15, 'y': 11, 'prize': 10}, {'id': 'C', 'x': 14, 'y': 13, 'prize': 5}, {'id': 'D', 'x': 15, 'y': 17, 'prize': 5}, {'id': 'E', 'x': 16, 'y': 19, 'prize': 10}, {'id': 'F', 'x': 15, 'y': 20, 'prize': 10}, {'id': 'G', 'x': 11, 'y': 6, 'prize': 15}, {'id': 'H', 'x': 8, 'y': 5, 'prize': 15}, {'id': 'I', 'x': 7, 'y': 9, 'prize': 10}, {'id': 'J', 'x': 11, 'y': 12, 'prize': 5}, {'id': 'K', 'x': 10, 'y': 18, 'prize': 5}, {'id': 'L', 'x': 10, 'y': 22, 'prize': 10}, {'id': 'M', 'x': 10, 'y': 26, 'prize': 15}, {'id': 'N', 'x': 8, 'y': 19, 'prize': 15}, {'id': 'O', 'x': 8, 'y': 13, 'prize': 10}, {'id': 'P', 'x': 5, 'y': 11, 'prize': 10}, {'id': 'Q', 'x': 7, 'y': 18, 'prize': 10}], 'depot': 'A', 'max_length': 8.0, 'route_length': 7.63441361516796, 'collected_prize': 15.0, 'objective': 15.0}","['A', 'J', 'O', 'A']",50,json,names
|