subject
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.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:00
Lisa’s company, abc ltd., lost its biggest client and is now facing a financial crunch. most of her colleagues have resigned, but lisa decides to stay with the company and assist the management in overcoming the financial situation. which quality is lisa demonstrating? a. self-management b. cooperativeness c. responsibility d. loyalty
Answers: 2
question
Computers and Technology, 22.06.2019 19:20
Amedian in the road will be marked with a white sign that has a black arrow going to the left of the median. true false
Answers: 1
question
Computers and Technology, 22.06.2019 23:30
The next button in the review section shows the next available comment. next slide with no comment. previous comment. edited comment.
Answers: 1
question
Computers and Technology, 24.06.2019 13:00
Why should you evaluate trends when thinking about a career path?
Answers: 1
You know the right answer?
Give a decision problem corresponding to each of the search problems given below. (a) • Input: A se...
Questions
question
Mathematics, 01.07.2021 20:20
question
Mathematics, 01.07.2021 20:20
question
Mathematics, 01.07.2021 20:20
question
Chemistry, 01.07.2021 20:20