Skip to content
OneKitly

Traveling Salesman Solver

Solve the Traveling Salesman Problem from coordinates or a distance matrix: exact Held–Karp for up to 12 cities, nearest-neighbor + 2-opt beyond, with the tour order, total distance and a plot.

Karnaugh Map (K-Map) SolverMinimize a boolean function with the Quine–McCluskey algorithm: enter minterms, maxterms or a truth table and get the minimal SOP or POS, prime implicants and literal count.Absolute Value Equation SolverSolve absolute-value equations like |x+3| = 5, 3|x+2| = 12 or |x+1| = |x−3| with step-by-step case analysis and exact solutions.Absolute Value Inequality SolverSolve absolute-value inequalities such as |x+3| < 5 or |x−2| > 3 and get the solution as an interval, with AND/OR reasoning explained step by step.Bernoulli ODE SolverSolves y′ + P(x)y = Q(x)yⁿ by showing the substitution v = y^(1−n) that turns it into a linear equation, then integrating. The two degenerate cases are handled explicitly: n = 0 is already linear, n = 1 is separable.Cubic Equation SolverSolve ax³ + bx² + cx + d = 0 for all three roots (real and complex), with the discriminant, the nature of the roots and steps.Exponential Equation SolverSolve exponential equations of six types — basic, coefficient, linear exponent, two bases, quadratic-in-a^x and shifted — with logarithms and a full step-by-step solution.First-Order ODE SolverSolves dy/dx = f(x, y) from an initial condition with RK4, integrating outward in both directions, and plots the solution curve. Growth, decay, Newton cooling, logistic and separable cases are one click away.General Triangle SolverSolve any triangle from 3 known values (SSS, SAS, ASA/AAS, SSA) with the laws of sines and cosines: all sides and angles, area, perimeter and type, handling the ambiguous SSA case (0, 1 or 2 triangles).

Open Traveling Salesman Solver and you get an answer straight away, with no account to create. It covers exact Held–Karp for up to 12 cities, nearest-neighbor + 2-opt beyond, with the tour order, total distance and a plot — adjust any of them and the result follows immediately.

How to use it

  1. Open the tool — no signup or install needed.
  2. Enter your input or adjust the available options.
  3. Get your result instantly, then copy or download it.

Frequently asked questions

What does Traveling Salesman Solver do?

Solve the Traveling Salesman Problem from coordinates or a distance matrix: exact Held–Karp for up to 12 cities, nearest-neighbor + 2-opt beyond, with the tour order, total distance and a plot.

What does it take into account?

It factors in exact Held–Karp for up to 12 cities, nearest-neighbor + 2-opt beyond, with the tour order, total distance and a plot. Change any of them and the output follows immediately.

When would I actually use this?

Anything modelled as points and connections: a shortest route, a network's capacity, a schedule with dependencies, or a circuit reduced to its logic.

What is the most common mistake?

Assuming a shortest path stays shortest when a weight changes sign. Negative edges break the greedy argument Dijkstra rests on, and the algorithm returns a confident wrong answer rather than an error.

How is Traveling Salesman Solver different from Karnaugh Map (K-Map) Solver?

They sit next to each other but answer different questions: Karnaugh Map (K-Map) Solver is the one to open when you need it to minimize a boolean function with the Quine–McCluskey algorithm: enter minterms, maxterms or a truth table and get the minimal SOP or POS, prime implicants and literal count. Pick whichever matches what you're starting from — both are free.

Is there a tool for the next step?

Absolute Value Equation Solver is the closest one after this: Solve absolute-value equations like |x+3| = 5, 3|x+2| = 12 or |x+1| = |x−3| with step-by-step case analysis and exact solutions.

What else is worth having open alongside it?

Absolute Value Inequality Solver and Bernoulli ODE Solver — they come up in the same task often enough to be worth a second tab.

Where do the figures come from?

The algorithms are the textbook ones and their results are exact for the graph you enter. What varies is cost: several of these problems have no known efficient solution, so large inputs are answered by heuristic and the tool says when that is the case.

Further reading

All guides