Search:

Type: Posts; User: viblic

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    2,237

    Thanks camel-man

    Thanks camel-man
  2. Replies
    2
    Views
    2,237

    Time complexity of algorithm

    Hello,

    I need to gain some basic knowledge on time complexities of algorithms ... Could anyone of you please recommend some resource (book, article, website) on computational complexity. I don't...
  3. Replies
    8
    Views
    3,168

    Adak, thank you very much for your replies, time...

    Adak, thank you very much for your replies, time and effort. I appreciate this and I mean it.

    Certainly, I posted this because there was a problem with it, however, the above program does what it...
  4. Replies
    8
    Views
    3,168

    Yeah right but the loop only iterates from 1 to...

    Yeah right but the loop only iterates from 1 to 16-1.

    for
    (i=arrayLen-1; i>=1; i--)

    Moreover if I reach the outside bounds, it means I should divide it into valid array bounds such as 15+1,...
  5. Replies
    8
    Views
    3,168

    Consider the indices as if they were coins and...

    Consider the indices as if they were coins and the contents as if they were objects you can buy.

    So
    0 coins --> 0 objects
    1 coins --> 4 objects
    2 coins --> 5 objects

    If I had 2 coins I...
  6. Replies
    8
    Views
    3,168

    I know the description was not the best possible,...

    I know the description was not the best possible, however I'll try to give a smaller instance of the problem, so that you can help me out.

    I have a table like this

    0 1 2 (indices of the...
  7. Replies
    8
    Views
    3,168

    Knapsack problem

    I have a problem like this (knapsack type of problem): I have an array of these values.


    table [16] = { 0, 1, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 53 }

    Given an index, I have to divide that...
  8. Replies
    1
    Views
    2,318

    Area of a polygon

    I have some x and y coordinates that make a convex polygon. I need to connect 2 of these coordinates such that they cut the polygon into 2 new polygons and the respective areas of these 2 polygons...
Results 1 to 8 of 8