CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: vsha041

Search: Search took 0.00 seconds.

  1. Re: Algorithm - Minimizing Equation - Dynamic Programming/Greedy

    Thanks nuzzle for thorough explanation. I actually implemented a greedy algorithm and it worked perfectly. Thanks for your time.
  2. Algorithm - Minimizing Equation - Dynamic Programming/Greedy

    Hi,

    If we are given an equation say 3x + 2y <= 10, we want to find the value of x and y such that
    x + y = maximum and 10 - 3x - 2y is minimized. How can this be done? I am thinking of it as a...
  3. Replies
    3
    Views
    1,481

    Re: Efficient Algorithm ?

    Thanks nuzzle ! The O(n) algorithm I used is exactly same as yours. Thanks for your time.
  4. Replies
    3
    Views
    1,481

    Re: Efficient Algorithm ?

    Don't worry guys ! I found out the O (n) algorithm.
  5. Replies
    3
    Views
    1,481

    Efficient Algorithm ?

    Hi,

    I am trying to find a O (n) algorithm for this problem but unable to do so even after spending 3 - 4 hours. The brute force method times out (O (n^2)). I am confused as to how to do it ? Does...
  6. Replies
    1
    Views
    2,535

    String Permutation - Fast Algorithm ?

    Hi,

    I have written an inefficient program for string matching. In this program we are suppose to tell whether it is possible to have all possible permutations of the first string (all distinct...
  7. Replies
    2
    Views
    1,954

    C++: Convert Jumple Word to Possible Words

    Hi,

    I have written a program, in which it will ask the user to enter a string of length exactly 9. I have got a dictionary file with me which contains over two hundred thousand words. My job is to...
Results 1 to 7 of 7



HTML5 Development Center

Click Here to Expand Forum to Full Width