Computers and Technology
Computers and Technology, 04.06.2021 02:00, Kaesy24

Give a decision problem corresponding to each of the search problems given below. (a) • Input: A set of classes to be scheduled. A list of pairs of the classes which can not be scheduled during the same period.
• Output: The largest set of classes that can all be scheduled during the same period.
Solution
• Input: A set of classes to be scheduled. A list of pairs of the classes which can not be scheduled during the same period. An integer k.
• Output: "Yes" if there is a set of k classes that can be all scheduled during the same period. "No" if there is no set of k classes that can all be scheduled at the same time.
b) • Input: A set of classes to be scheduled. A list of pairs of the classes which can not be scheduled during the same period.
• Output: A schedule for the classes that uses the smallest number of periods.
c) • Input: A list of items, each with a value and a weight. The values and weights of the items are positive integers. A positive integer W.
• Output: A subset of the items whose total weight is at most W and whose total value is as large as possible.
Solution
• Input: A list of items, each with a value and a weight. The values and weights of the items are positive integers. A positive integer W. A positive integer V.
• Output: "Yes" if there is a subset of the items whose total value is at least V and whose total weight is at most W. Output "No", otherwise.

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 16:00, kebo63
Page orientation can be either landscape or
Answers: 1
image
Computers and Technology, 22.06.2019 08:40, baue4431
What are the three parts to physical security standards for various types of army equipment and the risk level
Answers: 2
image
Computers and Technology, 23.06.2019 14:00, ava5015
What is html ? give a small description about html
Answers: 2
image
Computers and Technology, 23.06.2019 16:30, rileysndr1782
Monica and her team have implemented is successfully in an organization. what factor leads to successful is implementation? good between different departments in an organization leads to successful is implementation.
Answers: 1
Do you know the correct answer?
Give a decision problem corresponding to each of the search problems given below. (a) • Input: A se...

Questions in other subjects: