- 
            
            
as seen on Stack Overflow
            - Search for 'Stack Overflow' 
            
I have this massive array of ints from 0-4 in this triangle.  I am trying to learn dynamic programming with Ruby and would like some assistance in calculating the number of paths in the triangle that meet three criterion:
You must start at one of the zero points in the row with 70 elements.
Your…
            >>> More
            
         
    
        - 
            
            
as seen on Stack Overflow
            - Search for 'Stack Overflow' 
            
the input to this problem is a sequence S of integers(not necessarily positive). the problem is to find consecutive subsequence of S with maximum sum using dynamic programming. consecutive means that you are not allowed to skip numbers. for example: if the input was 12,-14,1,23,-6,22,-34,-13. the…
            >>> More
            
         
    
        - 
            
            
as seen on Stack Overflow
            - Search for 'Stack Overflow' 
            
I have the following problem : I am given a tree with N apples, for each apple I am given it's weight and height,I can pick apples up to a given height H,each time I pick an apple the height of every apple is increased with U(also given).I have to find out the maximum weight of apples I can pick.…
            >>> More
            
         
    
        - 
            
            
as seen on Stack Overflow
            - Search for 'Stack Overflow' 
            
Im learning dynamic programming now, and while I know the theory well, designing DP algorithms for new problems is still difficult. 
This is what i would really like now- A book or a website, which poses a problem which can be solved by dynamic programming. Also there is the solution with an explanation…
            >>> More
            
         
    
        - 
            
            
as seen on Stack Overflow
            - Search for 'Stack Overflow' 
            
I have two very large strings and I am trying to find out their Longest Common Substring.
One way is using suffix trees (supposed to have a very good complexity, though a complex implementation), and the another is the dynamic programming method (both are mentioned on the Wikipedia page linked above)…
            >>> More
            
         
    
        - 
            
            
as seen on Super User
            - Search for 'Super User' 
            
I'm just wonder, what the differences are between creating a BMP file algorithm and JPG file algorithm ?
If you know the others images' format algorithm, please post them.
Thanks.
            >>> More
            
         
    
        - 
            
            
as seen on Stack Overflow
            - Search for 'Stack Overflow' 
            
Hii..
Can anybody help me to find an algorithm in Java code to find synonyms of a search word based on the context and I want to implement the algorithm with WordNet database. 
For example, "I am running a Java program". From the context, I want to find the synonyms for the word "running", but the…
            >>> More
            
         
    
        - 
            
            
as seen on Stack Overflow
            - Search for 'Stack Overflow' 
            
Hello,
Im doing a Java application and Im facing some doubts in which concerns performance.
I have a PriorityQueue which guarantees me the element removed is the one with greater priority. That PriorityQueue has instances of class Event (which implements Comparable interface). Each Event is associated…
            >>> More
            
         
    
        - 
            
            
as seen on Stack Overflow
            - Search for 'Stack Overflow' 
            
So I have Image like this 
I want to get something like this (I hevent drawn all lines I want but I hope you can get my idea)
I need algorithm for finding all straight lines on it by just reading colors of pixels. No hard math, no Haar, no Hough. Some algorithm which would be based on points…
            >>> More
            
         
    
        - 
            
            
as seen on Game Development
            - Search for 'Game Development' 
            
So i implemented a Quad tree in Java for my 2D game and everything works fine except for when i run my collision detection algorithm, which checks if a object has hit another object and which side it hit.My problem is 80% of the time the collision algorithm works but sometimes the objects just go…
            >>> More