CS2004_Applications_TSP_BinPacking_Clustering_Flashcards

(11 cards)

1
Q

What is the Travelling Salesperson Problem (TSP)?

A

TSP asks for the shortest possible tour that visits each city exactly once and returns to the starting point.

✅ It is NP-Complete and commonly used in routing problems.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How is a TSP solution represented?

A

As a list or array of city indices indicating the order of visits.

✅ Example: [0, 2, 3, 1] means visit city 0, then 2, then 3, then 1.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the fitness function for TSP?

A

The fitness is the total length of the tour. Shorter tours have better fitness.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the small change operator for RMHC in TSP?

A

Swapping two cities in the tour to create a neighbour solution.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is Bin Packing?

A

Bin Packing is an optimisation problem where the goal is to pack items into the fewest number of fixed-capacity bins.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the First-Fit Decreasing (FFD) algorithm?

A

FFD sorts items in decreasing order and places each into the first bin it fits in. If none fit, a new bin is opened.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Give a real-world example of Bin Packing.

A

Fitting files onto DVDs, loading boxes into shipping containers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is Data Clustering?

A

Clustering is the task of grouping similar data points into clusters based on similarity or distance.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is K-Means Clustering?

A

An algorithm that partitions data into k clusters by assigning each point to the nearest centroid, then updating centroids iteratively.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How is clustering quality evaluated?

A

Using metrics like intra-cluster distance (compactness) and inter-cluster separation (separation).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is a 1D cluster vector representation?

A

An array where each index represents a data point and the value indicates its assigned cluster.

✅ Example: [1, 2, 1, 3] means point 0 is in cluster 1, point 1 in cluster 2, etc.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly