Building Bridges – Dynamic Programming Solutions

This is a C++ Program that Solves Building Bridges Problem using Dynamic Programming technique. Problem Description There is a river. There are n cities on both sides of the river (not necessarily in the same order). Bridges are to be built on the river for every city (from one end of the river to the … Read more

advertisement

Box Stacking Problem using Dynamic Programming

This is a C++ Program that Solves Box Stacking Problem using Dynamic Programming technique. Problem Description There are n cuboidal boxes. The dimensions of these boxes(length, breadth and height) are given. The objective is to stack the boxes to achieve maximum height. But you can place a box on top of another box only if … Read more

advertisement

Longest Increasing Subsequence using Dynamic Programming

This is a C++ Program that Solves Longest Increasing Subsequence Problem using Dynamic Programming technique. Problem Description Given a sequence of n real numbers A(1) … A(n), determine a subsequence (not necessarily contiguous) of maximum length in which the values in the subsequence form a strictly increasing sequence. Problem Solution This Problem can be solved … Read more

advertisement

Making Change Problem using Dynamic Programming

This is a C++ Program that Solves Change Making Problem using Dynamic Programming technique. Problem Description There are infinite number of coins of n different values. These values are given. Using these coins, you have to make change for Rs. Sum. Find the minimum number of coins required to change Rs. Sum. Note that the … Read more

advertisement

Kadane’s Algorithm using Dynamic Programming

This is a C++ Program that Solves Kadane’s Algorithm using Dynamic Programming technique. Problem Description Maximum Subarray Problem Given a sequence of n real numbers A(1) … A(n), determine a contiguous subsequence A(i) … A(j) for which the sum of elements in the subsequence is maximized. Problem Solution We will proceed in a linear fashion … Read more

advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.