Question

In: Computer Science

Describe a task that can be solved using constraints. Distinguish between the hard constraints and the...

  1. Describe a task that can be solved using constraints.
    1. Distinguish between the hard constraints and the soft constraints of the system.
    2. Develop a model of the constraint based solution using a table or a diagram.

Solutions

Expert Solution

a.)

Hard constraints Soft constraints
Absolutely non-negotiable Negotiable if necessary
Always respected by the scheduler Usually respected by the scheduler
Exceptions are never made Exceptions are made if it's the difference between generating a schedule and not generating one
Usually make the scheduler run slower No impact on scheduler speed
Decrease likelihood that the scheduler will find any schedules Likelihood of finding schedules not affected
Too many hard constraints may mean not getting any schedules No penalty for having lots and lots of soft constraints

b.) Task that can be solved using constraints :- consider the Sudoku problem again. Suppose that a row, column and block already have 3, 5 and 7 filled in. Then the domain for all the variables in that row, column and block will be {1, 2, 4, 6, 8, 9}.

Flow chart of Constraint based programming  solving process.


Related Solutions

Describe a problem that can be solved by using the shortest-route model. Give a detailed mathematical...
Describe a problem that can be solved by using the shortest-route model. Give a detailed mathematical example.
This task is solved in Python 3. Develop a program that can change the phone number...
This task is solved in Python 3. Develop a program that can change the phone number of a person in phone.txt (hint: the easiest thing is probably to make a new version of the file, and then delete the old one before the new is renamed to phone.txt) Name: John Old phone number: 99776612 New number: 99889999 >>> phone.txt Replaced by ------> phone.txt Mary 98654321 June 99776655 Chris 99112233 Viv 98554455 John 99776612 Joe 97888776 Rick 99455443 Susan 98122134 Jill...
This task is solved in Python 3. Develop a program that can, among other things, manage...
This task is solved in Python 3. Develop a program that can, among other things, manage your courses and course results. It must also be able to calculate the average grade, for all grades or for a selection of grades limited to a certain subject area and / or course level (100, 200 or 300 level). NB! All courses are worth the same amount of credits. The program should have two global collections Courses is a list that contains the...
Approaching the task as a "judgement to be made" instead of a "problem to be solved"...
Approaching the task as a "judgement to be made" instead of a "problem to be solved" can reduce the Common Information Effect. True False Conflict is harmful to a team. True False Highly feasible ideas that are high value result in: breakthrough disruption foolishness radical Teams that engage in after-action review are more likely to have the following, EXCEPT Better team performance. Stronger processes to begin with. Enhanced communication. Higher team cohesion. Which of the following is effective in reducing...
Describe an example of a problem that could be solved using the Coase theorem. Do this...
Describe an example of a problem that could be solved using the Coase theorem. Do this by defining a hypothetical situation where one individual is causing a negative externality on another individual. Describe whether it matters who holds property rights. Define the three necessary conditions for Coase theorem to work completely. Describe why a failure of these conditions will likely cause Coasian bargaining to fail.
I saw that this was solved already, but it's hard to learn it without an explanation...
I saw that this was solved already, but it's hard to learn it without an explanation on how the figures were calculated. Using the following information you are to prepare a comprehensive budget for River City Micro Systems, Inc. The Company assembles a specialized device used in airports to detect certain types of explosives to prevent terrorist attacks. Arrangements have been made for the component parts (bundled in packets, one per unit) to be produced in Indonesia, shipped to Boise,...
Describe in detail (you can use a sketch with numbers) how you could distinguish between the...
Describe in detail (you can use a sketch with numbers) how you could distinguish between the ISOMERS of diisopropyl ether and dipropyl ether using HNMR AND CNMR.
In software development, we can distinguish between Waterfall and Agile approaches. Describe these different approaches and...
In software development, we can distinguish between Waterfall and Agile approaches. Describe these different approaches and critically discuss the pros and cons of both types of approaches.(Use examples and theories)
Create a project schedule based on task dependencies and resource constraints
Create a project schedule based on task dependencies and resource constraints
Describe the constraints on admitted insurers that create the need for a supplementary market that can...
Describe the constraints on admitted insurers that create the need for a supplementary market that can accommodate special risks.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT