Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Questions  >  We are given 9 tasks The execution of each ta... Start Learning for Free
We are given 9 tasks    The execution of each task requires one unit of time. We can execute one task at a time. Each task  Thas a profit Pi and a deadline di . Profit  Pis earned if the task is completed before the end of the dith unit of time. 
What is the maximum profit earned?
  • a)
    147
  • b)
    165
  • c)
    167
  • d)
    175
Correct answer is option 'A'. Can you explain this answer?
Verified Answer
We are given 9 tasks The execution of each task requires one unit of t...
The most important statement in question is
each task requires one unit of time
This shows that we can greedily choose the better task and that should give us the optimal solution. The best task would be the one with maximum profit. Thus we can sort the tasks based on deadline and then profit as follows:
0 --T7 -- 1 -- T2 -- 2 -- T9 -- 3 -- T5 -- 4 -- T3 -- 5 -- T8 -- 6 -- T1 -- 7
so we know that T4 and T6 are left
so profit will not include T4 and T6 = 15 + 20 +30 +18 + 16 + 23 + 25 = 147
 
View all questions of this test
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Question Description
We are given 9 tasks The execution of each task requires one unit of time. We can execute one task at atime. Each task Tihas a profit Piand a deadline di. ProfitPiis earned if the task is completed before the end of the dithunit of time.What is the maximum profit earned?a)147b)165c)167d)175Correct answer is option 'A'. Can you explain this answer? for Computer Science Engineering (CSE) 2025 is part of Computer Science Engineering (CSE) preparation. The Question and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus. Information about We are given 9 tasks The execution of each task requires one unit of time. We can execute one task at atime. Each task Tihas a profit Piand a deadline di. ProfitPiis earned if the task is completed before the end of the dithunit of time.What is the maximum profit earned?a)147b)165c)167d)175Correct answer is option 'A'. Can you explain this answer? covers all topics & solutions for Computer Science Engineering (CSE) 2025 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for We are given 9 tasks The execution of each task requires one unit of time. We can execute one task at atime. Each task Tihas a profit Piand a deadline di. ProfitPiis earned if the task is completed before the end of the dithunit of time.What is the maximum profit earned?a)147b)165c)167d)175Correct answer is option 'A'. Can you explain this answer?.
Solutions for We are given 9 tasks The execution of each task requires one unit of time. We can execute one task at atime. Each task Tihas a profit Piand a deadline di. ProfitPiis earned if the task is completed before the end of the dithunit of time.What is the maximum profit earned?a)147b)165c)167d)175Correct answer is option 'A'. Can you explain this answer? in English & in Hindi are available as part of our courses for Computer Science Engineering (CSE). Download more important topics, notes, lectures and mock test series for Computer Science Engineering (CSE) Exam by signing up for free.
Here you can find the meaning of We are given 9 tasks The execution of each task requires one unit of time. We can execute one task at atime. Each task Tihas a profit Piand a deadline di. ProfitPiis earned if the task is completed before the end of the dithunit of time.What is the maximum profit earned?a)147b)165c)167d)175Correct answer is option 'A'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of We are given 9 tasks The execution of each task requires one unit of time. We can execute one task at atime. Each task Tihas a profit Piand a deadline di. ProfitPiis earned if the task is completed before the end of the dithunit of time.What is the maximum profit earned?a)147b)165c)167d)175Correct answer is option 'A'. Can you explain this answer?, a detailed solution for We are given 9 tasks The execution of each task requires one unit of time. We can execute one task at atime. Each task Tihas a profit Piand a deadline di. ProfitPiis earned if the task is completed before the end of the dithunit of time.What is the maximum profit earned?a)147b)165c)167d)175Correct answer is option 'A'. Can you explain this answer? has been provided alongside types of We are given 9 tasks The execution of each task requires one unit of time. We can execute one task at atime. Each task Tihas a profit Piand a deadline di. ProfitPiis earned if the task is completed before the end of the dithunit of time.What is the maximum profit earned?a)147b)165c)167d)175Correct answer is option 'A'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice We are given 9 tasks The execution of each task requires one unit of time. We can execute one task at atime. Each task Tihas a profit Piand a deadline di. ProfitPiis earned if the task is completed before the end of the dithunit of time.What is the maximum profit earned?a)147b)165c)167d)175Correct answer is option 'A'. Can you explain this answer? tests, examples and also practice Computer Science Engineering (CSE) tests.
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Explore Courses
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev