int Minimum-Cost( X[a..d], person )
min ← ∞
if person = d then return cost(X) -- Bottom of space, d has been assigned
elsefor Job ∈ {1, 2, 3, 4 } doif not assigned(X, Job)
X[person+1] ← Job
tempmin ← Minimum-Cost( X[a..d], person+1 )
if tempmin < min then min ← tempmin
X[person+1] ← ∅
return min
cost( X ) returns cost of assigning Job 1..4 to person a..d
assigned( X, Job ) returns trueif Job is assigned person a..d
the First parameter is an array right? can i ask that what is the person type will be? possible ?