subject

For each 1 <= i<= njob jiis given by two numbers diandpi, where diis the deadline and piis the penalty. The length of each job is equal to 1 minuteand once the job starts it cannot be stopped until completed. We want to schedule all jobs, but only one job can run at any given time. If job i does not complete on orbefore its deadline, we willpay its penalty pi. a)Design a greedy algorithm to find a schedule such that all jobs are completed and the sum of all penaltiesis minimized. Provide averbal description and pseudocode. b)What is the running time of your algorithm?

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 08:30
On the loan worksheet in cell c9 enter pmt function to calculate the monthly payment for the altamonte springs 2018 facilities loan. ensure that the function returns a positive value and set the reference to cells b5 and b6 as absolute references.
Answers: 2
question
Computers and Technology, 22.06.2019 11:00
Lisa’s company, abc ltd., lost its biggest client and is now facing a financial crunch. most of her colleagues have resigned, but lisa decides to stay with the company and assist the management in overcoming the financial situation. which quality is lisa demonstrating? a. self-management b. cooperativeness c. responsibility d. loyalty
Answers: 2
question
Computers and Technology, 22.06.2019 21:50
Given int variables k and total that have already been declared, use a while loop to compute the sum of the squares of the first 50 counting numbers, and store this value in total. thus your code should put 11 + 22 + 33 + + 4949 + 50*50 into total. use no variables other than k and total.
Answers: 2
question
Computers and Technology, 23.06.2019 03:30
Many everyday occurrences can be represented as a binary bit. for example, a door is open or closed, the stove is on or off, and the fog is asleep or awake. could relationships be represented as a binary value? give example.
Answers: 1
You know the right answer?
For each 1 <= i<= njob jiis given by two numbers diandpi, where diis the deadline and piis the...
Questions
question
Mathematics, 11.02.2021 01:00
question
Biology, 11.02.2021 01:00
question
Mathematics, 11.02.2021 01:00
question
Computers and Technology, 11.02.2021 01:00
question
Mathematics, 11.02.2021 01:00
question
Mathematics, 11.02.2021 01:00