2022-09-27

Sep 28 In-Class Exercise.

Hey Everyone,
Please post your solutions to the Sep 28 In-Class Exercise to this thread.
Best,
Chris
Hey Everyone, Please post your solutions to the Sep 28 In-Class Exercise to this thread. Best, Chris

-- Sep 28 In-Class Exercise
 Our variables are X = {WC, NC, SC, EC, M, W, A, H}
 Our domain is D = {red, blue, yellow}
 Our constraints are C = {WC != NC, WC != SC, NC != SC, NC != W, NC != M, NC != EC, SC != M, SC != EC}
(Edited: 2022-09-28)
Our variables are X = {WC, NC, SC, EC, M, W, A, H} Our domain is D = {red, blue, yellow} Our constraints are C = {WC != NC, WC != SC, NC != SC, NC != W, NC != M, NC != EC, SC != M, SC != EC}

-- Sep 28 In-Class Exercise
Define names
Pop = Purple
Soda = Blue
Coke = Burgundy
Regions = West (W), South (S), North (N), Missouri (MI), Wisconsin (WI), Northeast (NE), Florida (FL), Alaska & Hawaii (AH)
Set of variables (regions) X = {W, S, N, NE, WI, NE, FL, AH}
Set of domains (possible names each region may call a carbonated beverage)
D = { {Purple, Blue, Burgundy}, {Purple, Blue, Burgundy}, {Purple, Blue, Burgundy}, {Purple, Blue, Burgundy}, {Purple, Blue, Burgundy}, {Purple, Blue, Burgundy}, {Purple, Blue, Burgundy}, {Purple, Blue, Burgundy} }
Set of Constraints: No two adjacent regions will use the same name
C = { {W != N}, {W != S}, {S != N}, {S != FL}, {S != NE}, {NE != N}, {WI != N}, {MI != N}, (MI != S) }
(Edited: 2022-09-28)
Define names Pop = Purple Soda = Blue Coke = Burgundy Regions = West (W), South (S), North (N), Missouri (MI), Wisconsin (WI), Northeast (NE), Florida (FL), Alaska & Hawaii (AH) Set of variables (regions) X = {W, S, N, NE, WI, NE, FL, AH} Set of domains (possible names each region may call a carbonated beverage) D = { {Purple, Blue, Burgundy}, {Purple, Blue, Burgundy}, {Purple, Blue, Burgundy}, {Purple, Blue, Burgundy}, {Purple, Blue, Burgundy}, {Purple, Blue, Burgundy}, {Purple, Blue, Burgundy}, {Purple, Blue, Burgundy} } Set of Constraints: No two adjacent regions will use the same name C = { {W != N}, {W != S}, {S != N}, {S != FL}, {S != NE}, {NE != N}, {WI != N}, {MI != N}, (MI != S) }

-- Sep 28 In-Class Exercise
 X = {W, MW, MIL, STL, MIA, S, NE, AL, HW}
 D = {{red, blue, yellow} for each variable}
 C = {W = AL, W = HW, W = NE, W = MIA, W = MIL, W = STL, W ≠ MW, W ≠ S, S ≠ MW}
(Edited: 2022-09-28)
X = {W, MW, MIL, STL, MIA, S, NE, AL, HW} D = {{red, blue, yellow} for each variable} C = {W = AL, W = HW, W = NE, W = MIA, W = MIL, W = STL, W ≠ MW, W ≠ S, S ≠ MW}

-- Sep 28 In-Class Exercise
 X = {West US, East US, Alaska, Hawaii, South US, North US, Missouri, Wisconsin}
 D = {Red, Yellow, Blue}
 C = {West US != North US, West US != South US, South US != Missouri, South US != East US, North US != Wisconsin, North US != East US, North US != South US}
(Edited: 2022-09-28)
X = {West US, East US, Alaska, Hawaii, South US, North US, Missouri, Wisconsin} D = {Red, Yellow, Blue} C = {West US != North US, West US != South US, South US != Missouri, South US != East US, North US != Wisconsin, North US != East US, North US != South US}

-- Sep 28 In-Class Exercise
 X={WA, NA,SA,NEA,SEA,CNA HA,AL}
 D={R,B,Y}
 C = {if term used most in X is coke = Y
	 elif tem = pop = B
	 elif term = soda = R
X={WA, NA,SA,NEA,SEA,CNA HA,AL} D={R,B,Y} C = {if term used most in X is coke = Y elif tem = pop = B elif term = soda = R

-- Sep 28 In-Class Exercise
 Regions:
 { The west, The South, New England, North Central,
   Hawaii, Alaska, Florida, Missouri, Wisconsin } 
 {W,S,NE,NC,H,Al,Fl,Mi,Wi}
 X = {W,S,NE,H,Al,Fl,Mi,Wi}
 D_i = {red,blue,yellow}
 C = { (W != NC), (W != S), (NC != Mi), (NC != Wi), 
       (NC != S), (NC != NE), (S != Mi), (S != Fl), 
       (S != NE) }
(Edited: 2022-09-28)
Regions: { The west, The South, New England, North Central, Hawaii, Alaska, Florida, Missouri, Wisconsin } {W,S,NE,NC,H,Al,Fl,Mi,Wi} X = {W,S,NE,H,Al,Fl,Mi,Wi} D_i = {red,blue,yellow} C = { (W != NC), (W != S), (NC != Mi), (NC != Wi), (NC != S), (NC != NE), (S != Mi), (S != Fl), (S != NE) }

-- Sep 28 In-Class Exercise
X = {WC, RM, MW, GC, NE, CA, LA, AH}
D = {red, yellow, blue}
Constraint = {WC != RM, WC != GC, RM != GC, RM != MW, GC != MW, GC != LA, MW != LA, MW != CA, LA != CA, CA != NE}
(Edited: 2022-09-28)
X = {WC, RM, MW, GC, NE, CA, LA, AH} D = {red, yellow, blue} Constraint = {WC != RM, WC != GC, RM != GC, RM != MW, GC != MW, GC != LA, MW != LA, MW != CA, LA != CA, CA != NE}

-- Sep 28 In-Class Exercise
 X = { West, Northwest, North, Top State, Central State, South, East, Alaksa / Hawaii }
 D = { soda, pop, coke }
 C = { West != Northwest, Northwest != North, Northwest != Central State, North != Top 
 State, North != Central State, North != Central State, North != East, Central State != 
 South, South != East }
X = { West, Northwest, North, Top State, Central State, South, East, Alaksa / Hawaii } D = { soda, pop, coke } C = { West != Northwest, Northwest != North, Northwest != Central State, North != Top State, North != Central State, North != Central State, North != East, Central State != South, South != East }

-- Sep 28 In-Class Exercise
X = {AL, HW, WC, NTH, STH, FL ,E ,SD} D = {red, blue, yellow} C = {WC != NTH, WC != STH, NTH != STH, NY = WC, FL = WC , SD !=WC, SD != NTH, SD != STH, AL = WC, HW = WC}
(Edited: 2022-09-28)
<nowiki>X = {AL, HW, WC, NTH, STH, FL ,E ,SD} D = {red, blue, yellow} C = {WC != NTH, WC != STH, NTH != STH, NY = WC, FL = WC , SD !=WC, SD != NTH, SD != STH, AL = WC, HW = WC} </nowiki>
[ Next ]
X