Question

In: Computer Science

Section C. Arc Consistency Consider the following constraint network. 10. If the variables A, B and...

Section C. Arc Consistency

Consider the following constraint network.

10. If the variables A, B and C each have the domain {1,2,3,4} before arc consistency is run, indicate what their domains will be after arc consistency has finished:

A = {               }

B = {    }

C = {                         }

11. If we have just considered the edge <B, A < B> and reduce the domain of B as a result, do we need to add any arcs back to the To-Do Arcs list? If not, why not? If so, which edges?

Solutions

Expert Solution

assuming the constraint network as (as it is not provided):

  • dom(A) = {1, 2, 3, 4}; dom(B) = {1, 2, 3, 4}; dom(C) = {1, 2, 3, 4}
  • Suppose you first select the arc <A, A < B>.
    • Remove A = 4 from the domain of A.
    • Add nothing to To-Do Arcs list.
  • Suppose that <B, B < C> is selected next.
    • Prune the value 4 from the domain of B.
    • Add <A, A < B> back into the To-Do Arcs list.
  • Suppose that <B, A < B> is selected next.
    • Prune 1 from the domain of B.
    • Add no element to To-Do Arcs list.
  • Suppose the arc hA, A < Bi is selected next.
    • The value A = 3 can be pruned from the domain of A.
    • Add no element to To-Do Arcs list.
  • Select <C, B < C> next.
    • Remove 1 and 2 from the domain of C.
    • Add <B, B < C> back into the To-Do Arcs list.

The other two edges are arc consistent, so the algorithm terminates with

dom(A) = {1, 2},

dom(B) = {2, 3},

dom(C) = {3, 4}.


Related Solutions

Consider a Class C network 200.100.100.0. and divide it into 10 subnets, according the following requirements...
Consider a Class C network 200.100.100.0. and divide it into 10 subnets, according the following requirements of number of hosts on each subnet. Draw a diagram clearing labelling each subnet with its name (i.e. A, B, C etc.) and subnet ID. (Use variable length subnet mask) 30 Hosts 12 Hosts 28 Hosts 10 Hosts 25 Hosts 25 Hosts 30 Hosts 5 Hosts 15 Hosts 10 Hosts
Consider the following activity-on-arc project network, wherethe 12 arcs (arrows) represent the 12 activities (tasks)...
Consider the following activity-on-arc project network, where the 12 arcs (arrows) represent the 12 activities (tasks) that must be performed to complete the project and the network displays the order in which the activities need to be performed. The number next to each arc (arrow) is the time required for the corresponding activity. Consider the problem of finding the longest path (the largest total time) through this network from start (node 1) to finish (node 9), since the longest path...
Q2). Distinguish between the following: a) Unbiasedness and Consistency b) R-squared and Adjusted R-squared c) The...
Q2). Distinguish between the following: a) Unbiasedness and Consistency b) R-squared and Adjusted R-squared c) The error term and residuals d) Type I and Type II errors Q3). Explain the term BLUE in ordinary least square (OLS) analysis.
Consider a network with network ID. 192.168.56.0/24: Split the network into two subnets, A and B...
Consider a network with network ID. 192.168.56.0/24: Split the network into two subnets, A and B and provide the IP range, network ID, and broadcast of each. Show your work What is TCP three-step handshake? What happens if the handshake is not successfully completed? What technological development led to the CSMA/CD protocols becoming obsolete? Give an example of a networking protocol that we have discussed in class that utilizes UDP over TCP. Provide two pros and two cons to switiching...
Consider an experiment with four independent variables: A, B, C, and D. Factor A has 3...
Consider an experiment with four independent variables: A, B, C, and D. Factor A has 3 levels and is a between-subjects variable; Factor B has 2 levels and is a within-subjects variable; Factor C has 2 levels and is a between-subjects variable; Factor D has 3 levels and is a within-subjects variable. 1. How many “cells” or “conditions” or “groups” are there in this experiment? 2. If you want to test 10 participants per cell, how many TOTAL participants will...
Suppose that the double variables a, b and c contain the values -10, 0 1 and2...
Suppose that the double variables a, b and c contain the values -10, 0 1 and2 1 respectively, and the boolean variables b1, b2 and b3 contain the values true, false and false respectively Is each of the following expressions legal or illegal and what will the result be? a) a> b || b>c b) b1 | | b2 && b3
Consider the following propositional formula: (((A ^ B) -> C) ^ ((A ^ C) -> D))...
Consider the following propositional formula: (((A ^ B) -> C) ^ ((A ^ C) -> D)) -> ((A ^ B) -> D) Perform the following tasks for this formula: Convert this formula into CNF form and write a numbered list of all clauses obtained from this formula.
Provide the following parameter values for each of the IPv4 network classes, A, B, and C,...
Provide the following parameter values for each of the IPv4 network classes, A, B, and C, respectively. Ignore any reserved addresses. a. Class id b. Number of bits in network portion of address, including the class id c. Number of bits in host portion of address d. Number of distinct networks allowed e. Number of distinct hosts allowed per network
Consider a Class B network 180.60.0.0, subdivide this network into 4 subnets, and find A IP...
Consider a Class B network 180.60.0.0, subdivide this network into 4 subnets, and find A IP address on each Subnet B Subnet Mask for each Subnet C Broadcast address for each Subnet. D Maximum possible number of hosts in the whole network
5.   Discuss the key elements to developing a successful relationship: a.   Respect   b. Consistency   c. Confidentiality  ...
5.   Discuss the key elements to developing a successful relationship: a.   Respect   b. Consistency   c. Confidentiality   d. Loyalty 6.   Discuss communication approaches through stages of grief: a.   Denial          b. Anger   c. Bargaining      d. Depression    e. Acceptance 7.   List and discuss the 5 ‘Rights’ of Delegation. 8.   Name barriers to effective delegation.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT