2 votes 2 votes Algorithms algorithms greedy-algorithm job-scheduling numerical-answers test-series + – shreshtha5 asked Nov 22, 2015 • retagged Jul 16, 2022 by makhdoom ghaya shreshtha5 2.4k views answer comment Share Follow See 1 comment See all 1 1 comment reply pritika kundu commented Nov 23, 2015 reply Follow Share what is the ans? 0 votes 0 votes Please log in or register to add a comment.
Best answer 1 votes 1 votes DEADLINE 1 2 3 4 5 6 7 8 JOB J3 J7 J4 J5 J6 J1 J2 J8 PROFIT 15 29 17 16 24 21 0 0 max profit is(15+29 + 17+16+24+21 )=122 srestha answered Nov 22, 2015 • selected Nov 24, 2015 by shreshtha5 srestha comment Share Follow See all 5 Comments See all 5 5 Comments reply Show 2 previous comments Vikranth Inti commented Nov 23, 2015 reply Follow Share I got 107 =29+17+16+34+21. Deadline of j3 is 5 as seen from the question. Now sort the jobs with increasing deadlnes. Then, select the max profit for a particular deadline, sine only 1 job for 1 unit of timecan beexecuted. 0 votes 0 votes shreshtha5 commented Nov 24, 2015 reply Follow Share got it !! thank u sooo much _/\_ 1 votes 1 votes shreshtha5 commented Nov 24, 2015 reply Follow Share 122 is the correct answer check the link given by srestha :) 1 votes 1 votes Please log in or register to add a comment.
0 votes 0 votes Ans is 122 OO7 answered May 27, 2018 OO7 comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes maximaum profit = 122 Abhishek Agrawal 5 answered Sep 21, 2018 Abhishek Agrawal 5 comment Share Follow See all 0 reply Please log in or register to add a comment.