Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6947945
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:45:28+00:00 2026-05-27T13:45:28+00:00

What conditions does a programming problem need to meet in order to be solved

  • 0

What conditions does a programming problem need to meet in order to be solved trough dynamic programming? What reasoning do you do in order to find out?

Once you conclude that it indeed has a DP solution then how would you go on about creating a DP algorithm that solves it? What’s the logic behind creating such algorithms?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T13:45:29+00:00Added an answer on May 27, 2026 at 1:45 pm

    A problem must meet two conditions in order to be solved trough dynamic programming. Citing Introduction to Algorithms, chapter 15:

    Optimal substructure if an optimal solution to the problem contains within it optimal solutions to subproblems.

    When a recursive algorithm revisits the same problem repeatedly, we say that the optimization problem has overlapping subproblems.

    In The Algorithm Design Manual, chapter 8, the author describes the three steps involved in solving a problem by dynamic programming:

    1. Formulate the answer as a recurrence relation or recursive algorithm.
    2. Show that the number of different parameter values taken on by your recur- rence is bounded by a (hopefully small) polynomial.
    3. Specify an order of evaluation for the recurrence so the partial results you need are always available when you need them.

    As usual, the wikipedia contains an extensive discussion on the topic, if you want to dig deeper.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does the order of conditions in there where clause affect the speed of the
I am trying to solve one of the classic dynamic programming problems. The problem
With a LINQ-TO-SQL linq query - does the SQL generated respect the 'Where conditions'
Does anyone know under what conditions you can receive an 1146: Table '<database>.<table>' doesn't
Does anyone knows the limit of nested conditions (I mean conditions under another, several
What's the difference? Does seq guarantee more flow conditions?
I am working through a Parallel Programming example on Race conditions In the example
While doing variadic template programming in C++11 on GCC, once in a while I
i have to make an android application in which i need to find the
I have two conditions in a DELETE MySQL statement. But it does not delete

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.