160 likes | 308 Views
Initial domains (domain consistent) 1A: { ant big bus car has } 1D: { book buys hold lane year } 2D: { symbol syntax search ginger } 3A: { book buys hold lane year} 4A: { ant big bus car has } beast. D omains 1A: { ant big bus car has }
E N D
Initial domains (domain consistent) 1A: { ant big bus car has } 1D: { book buys hold lane year } 2D: { symbol syntax search ginger } 3A: { book buys hold lane year} 4A: { ant big bus car has } beast
Domains 1A: { ant big bus car has } 1D: { book buys hold lane year } 2D: { symbol syntax ginger search } 3A: { book buys hold lane year} 4A: { ant big bus car has } TDA = { (1A, 1A[1] = 1D[1]), (1A, 1A[3] = 2D[1]), (1D, 1D[3] = 3A[1]), (2D, 2D[3] = 3A[3]), (1D, 1A[1] = 1D[1]), (2D, 1A[3] = 2D[1]), (3A, 1D[3] = 3A[1]), . . . What are implications of constraint on 1A
Domains 1A: { ant big bus car has } 1D: { book buys hold lane year } 2D: { symbol syntax ginger search } 3A: { book buys hold lane year} 4A: { ant big bus car has } TDA = { (1A, 1A[1] = 1D[1]), (1A, 1A[3] = 2D[1]), (1D, 1D[3] = 3A[1]), (2D, 2D[3] = 3A[3]), (1D, 1A[1] = 1D[1]), (2D, 1A[3] = 2D[1]), (3A, 1D[3] = 3A[1]), . . .
Domains 1A: { ant big bus car has } 1D: { book buys hold lane year } 2D:{ symbol syntax ginger search } 3A: { book buys hold lane year} 4A: { ant big bus car has } TDA = { (1A, 1A[1] = 1D[1]), (1A, 1A[3] = 2D[1]), (1D, 1D[3] = 3A[1]), (2D, 2D[3] = 3A[3]), (1D, 1A[1] = 1D[1]), (2D, 1A[3] = 2D[1]), (3A, 1D[3] = 3A[1]), . . . No change
Domains 1A: { antbig bus car has } 1D: { book buys hold laneyear } 2D: { symbol syntax ginger search } 3A: { book buys hold lane year} 4A: { ant big bus car has } TDA = { (1A, 1A[1] = 1D[1]), (1A, 1A[3] = 2D[1]), (1D, 1D[3] = 3A[1]), (2D, 2D[3] = 3A[3]), (1D, 1A[1] = 1D[1]), (2D, 1A[3] = 2D[1]), (3A, 1D[3] = 3A[1]), . . . 1D changed, so reactivate
Domains 1A: { antbig bus car has } 1D: { book buys hold laneyear } 2D: { symbol syntax ginger search } 3A: { book buys hold lane year} 4A: { ant big bus car has } TDA = { (1A, 1A[1] = 1D[1]), (1A, 1A[3] = 2D[1]), (1D, 1D[3] = 3A[1]), (2D, 2D[3] = 3A[3]), (1D, 1A[1] = 1D[1]), (2D, 1A[3] = 2D[1]), (3A, 1D[3] = 3A[1]), . . . reactivate
Domains 1A: { antbig bus car has } 1D: { book buys hold laneyear } 2D: { symbol syntax ginger search } 3A: { book buys hold lane year} 4A: { ant big bus car has } TDA = { (1A, 1A[1] = 1D[1]), (1A, 1A[3] = 2D[1]), (1D, 1D[3] = 3A[1]), (2D, 2D[3] = 3A[3]), (1D, 1A[1] = 1D[1]), (2D, 1A[3] = 2D[1]), (3A, 1D[3] = 3A[1]), . . . No change
Domains 1A: { antbig bus car has } 1D: { book buys hold laneyear } 2D: { symbol syntax ginger search } 3A: { book buys hold lane year} 4A: { ant big bus car has } TDA = { (1A, 1A[1] = 1D[1]), (1A, 1A[3] = 2D[1]), (1D, 1D[3] = 3A[1]), (2D, 2D[3] = 3A[3]), (1D, 1A[1] = 1D[1]), (2D, 1A[3] = 2D[1]), (3A, 1D[3] = 3A[1]), . . . already active
Domains 1A: { antbig bus car has } 1D: { book buys hold laneyear } 2D: { symbol syntax ginger search } 3A: { bookbuyshold lane year} 4A: { ant big bus car has } TDA = { (1A, 1A[1] = 1D[1]), (1A, 1A[3] = 2D[1]), (1D, 1D[3] = 3A[1]), (2D, 2D[3] = 3A[3]), (1D, 1A[1] = 1D[1]), (2D, 1A[3] = 2D[1]), (3A, 1D[3] = 3A[1]), . . . reactivate reactivate
Domains 1A: { antbig bus car has } 1D: { book buys hold laneyear } 2D: { symbolsyntax ginger search} 3A: { bookbuyshold lane year} 4A: { ant big bus car has } TDA = { (1A, 1A[1] = 1D[1]), (1A, 1A[3] = 2D[1]), (1D, 1D[3] = 3A[1]), (2D, 2D[3] = 3A[3]), (1D, 1A[1] = 1D[1]), (2D, 1A[3] = 2D[1]), (3A, 1D[3] = 3A[1]), (3A, 2D[3] = 3A[3]) (2D, 2D[5] = 4A[1]) (4A, 2D[5] = 4A[1]))
Domains 1A: { antbig bus car has } 1D: { book buys hold laneyear } 2D: { symbolsyntax ginger search} 3A: { bookbuyshold lane year} 4A: { ant big bus car has } TDA = { (1A, 1A[1] = 1D[1]), (1A, 1A[3] = 2D[1]), (1D, 1D[3] = 3A[1]), (2D, 2D[3] = 3A[3]), (1D, 1A[1] = 1D[1]), (2D, 1A[3] = 2D[1]), (3A, 1D[3] = 3A[1]), (3A, 2D[3] = 3A[3]), (2D, 2D[5] = 4A[1]) (4A, 2D[5] = 4A[1])) No change No change
Domains 1A: { antbig bus car has } 1D: { book buys hold laneyear } 2D: { symbolsyntax ginger search} 3A: { bookbuyshold lane year} 4A: { ant bigbus car has } TDA = { (1A, 1A[1] = 1D[1]), (1A, 1A[3] = 2D[1]), (1D, 1D[3] = 3A[1]), (2D, 2D[3] = 3A[3]), (1D, 1A[1] = 1D[1]), (2D, 1A[3] = 2D[1]), (3A, 1D[3] = 3A[1]), (3A, 2D[3] = 3A[3]), (2D, 2D[5] = 4A[1]) (4A, 2D[5] = 4A[1])) reactivate
Domains 1A: { antbig bus car has } 1D: { book buys hold laneyear } 2D: { symbolsyntax ginger search} 3A: { bookbuyshold lane year} 4A: { ant bigbus car has } TDA = { (1A, 1A[1] = 1D[1]), (1A, 1A[3] = 2D[1]), (1D, 1D[3] = 3A[1]), (2D, 2D[3] = 3A[3]), (1D, 1A[1] = 1D[1]), (2D, 1A[3] = 2D[1]), (3A, 1D[3] = 3A[1]), (3A, 2D[3] = 3A[3]), (2D, 2D[5] = 4A[1]) (4A, 2D[5] = 4A[1])) No change No change No change No change No change
Domains 1A: { bus has } 1D: { buys hold } 2D: { syntax search } 3A: { lane year } 4A: { ant car } TDA = { (1A, 1A[1] = 1D[1]), (1A, 1A[3] = 2D[1]), (1D, 1D[3] = 3A[1]), (2D, 2D[3] = 3A[3]), (1D, 1A[1] = 1D[1]), (2D, 1A[3] = 2D[1]), (3A, 1D[3] = 3A[1]), (3A, 2D[3] = 3A[3]), (2D, 2D[5] = 4A[1]) (4A, 2D[5] = 4A[1])) final result of GAC alg Start with this to get final solutions to the constraint satisfaction problem TDA is empty
Domains 1A: { bus has } 1D: { buys hold } 2D: { syntax search } 3A: { lane year } 4A: { ant car } b u s u e y e a r One solution r s c a r h