Algorithm-find schedule to obtain maximum amount of profit

Assignment Help Data Structure & Algorithms
Reference no: EM1366915

Suppose you have one machine and a set of n jobs a1 , a2 , · · · , an to process on that machine. Each job aj has a processing time tj , a pro?t pj , and a deadline dj . The machine can process only one job at a time, and job aj must run uninterruptedly for tj consecutive time units. If job aj is completed by its deadline dj , you receive a profit pj , but if it is completed after its deadline, you receive a profit of 0. Give an algorithm to find the schedule that obtains the maximum amount of profit, assuming that all processing times are integers between 1 and n.

Reference no: EM1366915

Questions Cloud

Observation of people with disabilities : Observe your immediate environment such as your community, workplace, school, etc and are you able to observe many people with disabilities
Determine the total two-year interest cost : Boatler Used Cadillac Corporation needs $80,000 in financing over the next 2-years. The company can borrow  funds for 2-years at 9% interest every year.
Computing minimum value of avc : Consider the price-taking firm in competitive industry for raw chocolate. The market demand and supply functions for raw chocolate are estimated to be
Explanation of core values and core values in action : Explain why might an organization really need core values? How might you really see core values "in action?
Algorithm-find schedule to obtain maximum amount of profit : Give an algorithm to find schedule which obtains maximum amount of profit, assuming that all processing times are integers between 1 and n.
Show the basic estimating problem : Your manager asks for the project costs by cost category as well as the total amount
Estimating supply and demand curve : Assume there are two services offered in economy: dance clubs and college education. Both require the use of limited resources, but not all of the resources used in each one can be readily transferred to the other.
Using a financial calculator for mortgage loans : Lucy wishes to buy a house and has approached a bank and been informed that a thirty year mortgage loan with monthly payments and compounding would have an APR of 5.4 percent.
Trade-offs academic medical center : Stanford Medical Center is a well-known and well-respected academic medical center. It has been approached by the government of Vietnam to develop an affiliation with its main national hospital in Saigon.

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Testing item in array of member using sequential search

Look up each test item in array of member items, by using sequential search. What is the worst-case running time of it. (asymptotically, in terms of n and k)?

  Determining hash value of modified file

Determine hash value of modified file look like, as compared with original hash value?

  Method singleparent returns number of nodes in binary tree

Write a method singleParent, which returns number of nodes in a binary tree that have only one child.

  Find shortest path tree by bellman-ford-dijkstra algorithm

Find the shortest path tree from every node to node 1for the graph of following figure using Bellman-Ford and Dijkstra algorithm.

  Algorithm to take input m constraints over n variables

For instance, the constraints x1 = x2, x2 = x3, x3 = x4, and x1 6= x4 cannot be satis fied. Give an efficient algorithm that takes as input m constraints over n variables and decides whether the constraints can be satis fied.

  Write down the algorithm to insert an item

Write down the sample code to create a Linked List and allocate storage space for a node Write down the algorithm to insert an item At the beginning of a linked list

  Write algorithm find intersection of two singly-linked list

Write an algorithm (pseudocode) to find the intersection of two singly-linked lists. Assume that the data in each list are in nondecreasing order.

  Devise algorithm to generate access control matrix

Devise an algorithm that generates an access control matrix A for any given history matrix H of the Chinese Wall model. A significant portion of the grade for this problem involves your justification of your algorithm.

  Primitives-remove ambiguities in algorithm-s representation

Describe how the use of primitives helps remove ambiguities in an algorithm's representation.

  Explain compression algorithms are often used in forensics

"Compression algorithms are often used in forensics. Suppose you are involved in a case and have been asked by the lawyer to explain, in general terms.

  Explain solution to recurrence-appealing to recursion tree

Solve the following recurrence relations by the method of your choiceT(n) = 1 for n = 4 and T(n) =pnT(pn) + n for n > 4. Argue that the solution to the recurrence T(n) = T(n=3) + T(2n=3) + cn is (n lg n) by appealing to the recursion tree.

  Write the selection sort algorithm

Write the selection sort algorithm

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd