Here is the optimization problem for the soft-margin SVM:
Minimize ||w||^2 + C * Σξ
Subject to y((w^T * x) + b) ≥ 1 - ξ
ξ ≥ 0
where w is the weight vector, x is the input vector, b is the bias term, y is the class label, and C is a constant.
How many slack variables are there? The answer should be a function of n and d.