QIWEI MAO

Algorithms - TSP & Knapsack ApproximationQIWEI MAO, A Geotechnical Engineer's Journey into IoT.

  • Home
  • Blog
  • About
  • Search

Algorithms - TSP & Knapsack Approximation

Qiwei Mao

Qiwei Mao

 / 
Jan 19, 2025

Algorithm

date
Jan 19, 2025
type
Post
AI summary
slug
algorithm-tsp
status
Published
tags
Algorithm
summary
Read this page for the TSP Problem.
Travelling salesman problem
In the theory of computational complexity, the travelling salesman problem (TSP) asks the following question: "Given a list of cities and the distances between each pair of cities, what is the shortest possible route that visits each city exactly once and returns to the origin city?" It is an NP-hard problem in combinatorial optimization, important in theoretical computer science and operations research.
Travelling salesman problem
https://en.wikipedia.org/wiki/Travelling_salesman_problem
Travelling salesman problem
 
Read the following chapter for the fully polynomial time approximation scheme (FPTAS) for the knapsack problem.
Knapsack problem
The knapsack problem is the following problem in combinatorial optimization:Given a set of items, each with a weight and a value, determine which items to include in the collection so that the total weight is less than or equal to a given limit and the total value is as large as possible.
Knapsack problem
https://en.wikipedia.org/wiki/Knapsack_problem#Fully_polynomial_time_approximation_scheme
Knapsack problem
 

© Qiwei Mao 2024 - 2025