Job sequencing with deadlines-
The sequencing of jobs on a single processor with deadline constraints is named as job sequencing with deadlines.
Problem-
You are given a set of jobs where each job has a defined deadline and some profit associated with it. The profit of that job is given only when that job is completed within its deadline.
The problem is-
“How can the total profit be maximized if only one job can be completed at a time?”
Constraints-
Solution-
For the given problem,
Job Sequencing with deadlines Greedy Algorithm-
We adopt a greedy algorithm to determine how the next job is selected for an optimal solution. The greedy algorithm described below always gives an optimal solution to the job sequencing problem.
Step-01:
Sort all the given jobs in the decreasing order of their profits.
Step-02:
Check the value of maximum deadline. Then, draw a Gantt chart where maximum time on Gantt chart is the value of maximum deadline.
Step-03:
Pick up the jobs one by one and then put them on the Gantt chart as far as possible from 0 (starting point) such that the job gets completed before its deadline.
The following practice problem illustrates these steps in detail.
PRACTICE PROBLEM BASED ON JOB SEQUENCING WITH DEADLINES
Problem-
Given the following jobs, their deadlines and associated profits as shown-
| Jobs | J1 | J2 | J3 | J4 | J5 | J6 |
| Deadlines | 5 | 3 | 3 | 2 | 4 | 2 |
| Profits | 200 | 180 | 190 | 300 | 120 | 100 |
Answer the following questions-
Solution-
Step-01:
Sort all the given jobs in the decreasing order of their profits-
| Jobs | J4 | J1 | J3 | J2 | J5 | J6 |
| Deadlines | 2 | 5 | 3 | 3 | 4 | 2 |
| Profits | 300 | 200 | 190 | 180 | 120 | 100 |
Step-02:
Value of maximum deadline = 5
So, draw a Gantt chart with maximum time on Gantt chart = 5 units as shown-

Step-03:
Now, we will take each job one by one in the order they appear in step-01 and place them on Gantt chart as far as possible from 0 (starting point)





Now,
Now, the given questions may be answered as-
Part-01:
The optimal schedule is-
J2 , J4 , J3 , J5 , J1
This is the required order in which the jobs must be completed in order to obtain the maximum profit.
Part-02:
Part-03:
Maximum earned profit
= Sum of profits of all jobs in optimal schedule
= Profit of job J2 + Profit of job J4 + Profit of job J3 + Profit of job J5 + Profit of job J1
= 180 + 300 + 190 + 120 + 200
= 990 units
A greedy solution for the Job Sequencing with Deadlines problem is to sort the jobs by...
Consider the following greedy algorithm for the knapsack problem: each time we pick the item with the highest value to weight ratio to the bag. Skip items that will make the total weight exceeded the capacity of the bag. Find a counterexample to show that this approach will not work, and the result could be 100 times worse than the optimal solution. That is, construct a table of set of items with weight and values and find a bag capacity...
Solve the following Job Sequencing problem. Draw Gantt chart. Find total time elapsed to complete the jobs and idle time for machines. Job/Machine M1 M2 M3 1 5 9 8 2 3 6 7 3 4 7 6 4 2 8 9 5 6 7 5 6 4 6 9
Consider the following greedy strategies for this problem: 1. Select the earliest finishing interval and discard overlapping intervals. Keep doing this until all intervals have been eliminated (either selected or discarded). 2. Select the earliest starting interval and discard overlapping intervals. Keep doing this until all intervals have been eliminated (either selected or discarded). 3. Select the pair of non-overlapping intervals that have the smallest gap between them: find a pair of intervals i # j such that s; -...
3. Consider the following seven-job problem. Each job must be processed by two ma chines A and B, first on machine A and then machine B. The operation processing times at machine A and B are as follows: Job i 1 2 3 5 6 Processing time on machine A (a9 8 5 10 6 8 5 Processing time on machine B (b) 6 5 7912 11 4 a. Suppose jobs arrived in their natural order (i.e, job before job...
Show your solution
62 manufactures pipes amd uses a job order were started (no other jobs 69. Maganda company system. During May, the following were in process) and the following costs were incurred Total P10,000 P20,000 P15,000 P45,000 11,500 2,500 Materials Direct labor 4,000 5,000 P15,000 P24,000 P17,500 P56,50 In addition, estimated overhead of P300,000 and direct labor costs of P150,000 were estimated to be incurred during the year. Actual over- head of P24,000 was incurred in May; overhead is...
Let's say you are given a sequence of distinct positive numbers. We want to find a subsequence with the maximum possible sum, with the restriction that we are not allowed to take three consecutive elements from the original sequence. For example, for input 1, 6, 5, 2, 7, 9, 3, 4, the subsequence with the maximum possible sum is 6, 5, 7, 9, 4 (we have two pairs of consecutive elements 6, 5 and 7, 9 but not three consecutive...
ACCT 2113 Chapter 2 Job Order Cost Problem Hi Gloss Printing Company uses a job order cost system. The following data summarize the operations related to production for June, the first month of operations: a. (Pts. 4) Materials purchased on account, $43,500. b. (Pts. 18) Materials requisitioned and factory labor used, use one entry for materials and a separate entry for factory labor: Materials Factory Labor Job 101 $9,000 $5,700 Job 102 3,175 2,890 Job 103 5,200 3.100 Job 104...
Problem 15-01A a-h (Video) (Part Level Submission) Bonita Company uses a job order cost system and applies overhead to production on the basis of direct labor costs. On January 1, 2020, Job 50 was the only job in process. The costs incurred prior to January 1 on this job were as follows: direct materials $21,200, direct labor $12,720, and manufacturing overhead $16,960. As of January 1, Job 49 had been completed at a cost of $95,400 and was part of...
Chapter 2 Job Order Cost Problem Hi Gloss Printing Company uses a job order cost system. The following data summarize the operations related to production for June, the first month of operations: a. (Pts. 4) Materials purchased on account, $43,500. b. (Pts. 18) Materials requisitioned and factory labor used, use one entry for materials and a separate entry for factory labor Materials Factory Labor Job 101 $9.000 $5,700 2,890 Job 103 3,100 Job 104 2,240 Job 105 8,500 4,060 Job...
Problem 3 Consider a possible solution to Maxwell's equations in vacuum given by A(x, t) = Ao exp(i(kx - wt)), V(x, t) = 0 where A is the vector potential and V is the scalar potential. Suppose Ao, k and w are constants in space and time. a) Compute the time-dependent electric and magnetic fields from the given potentials. Show your work. b) Give the contraints, if any, on Ao, k and w imposed by the following two Maxwell's equations...