Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Q - 2 ) ( 2 0 pts . ) You are given an array of jobs where every job takes single ( i .

Q-2)(20 pts.) You are given an array of jobs where every job takes single (i.e.1)
unit of time. Also, every job has a deadline (i.e. latest time or date by which
something should be completed) and an associated profit if the job is finished
before the deadline. Thus, the minimum possible deadline for any job is 1. If
only one job can be scheduled at a time, the job sequencing problem is to
maximize total profit. Below is an example optimal solution for the given job
list:
Input: Five jobs with the following deadlines and profits
Output: The
maximum profit Job
sequence of jobs is
a,c,e.
a)(10 pts.) Describe, in words, a greedy algorithm for the job sequencing
problem.
b)(10 pts.) Prove that your greedy choice is optimal (e.g. proof by
contradiction).
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Hands On Database

Authors: Steve Conger

1st Edition

013610827X, 978-0136108276

More Books

Students also viewed these Databases questions