Giter Club home page Giter Club logo

dynamic-programming---project-selection-algorithm's Introduction

Dynamic-Programming---Project-Selection-Algorithm

This is an optimization algorithm that selects the best projects based on a given profit and cost for each

As the chief project manager of the team, one task of yours is to select a set of projects for the team. Suppose each project i is associated to a pair of values ci and ri, where ci is the cost to work on project i and ri is the revenue of project i after completion. Assume your team start with a capital value c, and you can only select one project with its cost not exceeding your team’s capital. Upon completion of the project i, your team’s capital will increase by the profit of that project, which is ri-ci . You may also assume your team only work on one project at a time, and projects are all valid with ri ≥ ci ≥ 1 . Given the set of projects, an initial capital value c, and k the number of projects to be selected. You are to work out a selection plan such that the final capital is maximized.

Why this exercise?

  1. To learn more about Dynamic Programming algorithms
  2. To be able to use and optimize the solution of a problem
  3. DP is used in many optimization problems in the real world. This case help in cost minimization and improve results for projects involving selection.

dynamic-programming---project-selection-algorithm's People

Contributors

anushk97 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.