Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Slove the Following Problems Given an array of jobs where every job has a deadline and associated profit if the job is finished before the

Slove the Following Problems
Given an array of jobs where every job has a deadline and associated profit if the job is finished before the deadline, we want to search for a set of jobs that maximize the total profit. We notice that only one job can be scheduled at a time, one processor is available for processing all the jobs, and the processor takes one unit of time to complete a job.
Give the steps of the greedy algorithm that can solve the job sequencing problem with deadlines.
Apply the algorithm to solve the problem presented in the following table
\table[[Index,0,1,2,3,4,5],[Job,J 1,J 2,J3,J4,J5,J6],[Profit,10,15,20,30,25,15],[Deadline,3,2,1,2,2,3]]
Consider the capacity of a fractional knapsack W=7 and the list of 5 items. Use the dynamic programming algorithm to find the maximum profit with the corresponding items.
\table[[Items,I1,I2,I3,I4,I5],[Profits,8,12,18,22,20],[weights,1,5,2,4,3]]
V[i,j]={0ifi=0orj=0V[i-1,j]ifj=w
?**** All the Best ?****
?1
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

Intelligent Information And Database Systems Asian Conference Aciids 2012 Kaohsiung Taiwan March 19 21 2012 Proceedings Part 3 Lnai 7198

Authors: Jeng-Shyang Pan ,Shyi-Ming Chen ,Ngoc-Thanh Nguyen

2012th Edition

3642284922, 978-3642284922

More Books

Students also viewed these Databases questions

Question

Brief the importance of span of control and its concepts.

Answered: 1 week ago

Question

What is meant by decentralisation?

Answered: 1 week ago

Question

Write down the Limitation of Beer - Lamberts law?

Answered: 1 week ago

Question

explain what is meant by experiential learning

Answered: 1 week ago

Question

identify the main ways in which you learn

Answered: 1 week ago