Giter Site home page Giter Site logo

wataridori / dynamic-programming Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 7.0 41 KB

Problems that can be solved by Dynamic Programming & the Solutions in different Programming Languages

License: MIT License

C++ 78.83% Python 10.86% Java 10.30%
algorithms dynamic-programming hacktoberfest hacktoberfest-accepted competitive-programming code-challenges code-challenge-practice hacktoberfest2022

dynamic-programming's Introduction

About Dynamic Programming

Dynamic Programming is a problem-solving technique for solving a problem by breaking it into similar subproblems, solving each of those subproblems just once, and storing their solutions using a memory-based data structure. Each of the subproblem solutions is indexed in some way, typically based on the values of its input parameters, so as to facilitate its lookup. So the next time the same subproblem occurs, instead of recomputing its solution, one simply looks up the previously computed solution, thereby saving computation time. This technique of storing solutions to subproblems instead of recomputing them is called memoization.

There are two key attributes that a problem must have in order for dynamic programming to be applicable: optimal substructure and overlapping sub-problems. If a problem can be solved by combining optimal solutions to non-overlapping sub-problems, the strategy is called divide and conquer instead. This is why merge sort and quick sort are not classified as dynamic programming problems.

Contributions

This repository contains some famous Problems that can be solved by Dynamic Programming. Any Contributions about Problems and Solutions in any Programming Languages are welcome.

You can send a new Pull Request about:

  • Contributing a new Problem that can be solved by Dynamic Programming
    • Create a new Folder for it. The folder name must be the name of the Problem
    • Inside the folder, create a file named problem.md, and write the content of the Problem here
  • Contributing a Solution for a Problem which is written by Dynamic Programming
    • Your file must be put inside the correct folder that the Solution belongs to
    • Your file must be named as solution. For example: solution.py, solution.cpp, solution.php ...
  • Re-implement an existing Solution in anothor Programming Language
  • Improve the Solution, or add more Comments into it

dynamic-programming's People

Contributors

developer-nobita avatar dolamanee6122 avatar gupta-niharika avatar harsh-modi278 avatar nikita9604 avatar samruddhideode avatar sneaky-potato avatar wataridori avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

dynamic-programming's Issues

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.