Search:

Type: Posts; User: lios1984

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    4,106

    And before you mention that there is no edge...

    And before you mention that there is no edge x0x3, I should say that the description of the problem doesn't point it out technically as an edge (hence the picture of the graph) but it does exist...
  2. Replies
    4
    Views
    4,106

    I see. Quite impressive that you chose distance...

    I see. Quite impressive that you chose distance of cities as an example as it is right this thing that I am working on.
    I have a graph exactly as shown in this pdf (page 3):...
  3. Replies
    4
    Views
    4,106

    Noone can help me?

    Noone can help me?
  4. Replies
    4
    Views
    4,106

    Bellman Ford algorithm - unknown weight

    Hi to everyone!!! I have the following problem:
    I have a directed graph and I want to find out whether there are any negative cycles using Bellman Ford algorithm. I know the weight of all of the...
  5. Replies
    5
    Views
    945

    Thank you very much for your help Zuk!!!!

    Thank you very much for your help Zuk!!!!
  6. Replies
    5
    Views
    945

    You mean use realloc?? Give me an example please!!

    You mean use realloc?? Give me an example please!!
  7. Replies
    5
    Views
    945

    Dynamic array and trouble with variables

    Hi to everyone. I have a problem with populating a dynamic array I have. Although it seems that the variables of the Vertex are populated correctly, when I try an overall check (the last lines of the...
  8. Replies
    4
    Views
    3,002

    What do you mean "plus the larger from each...

    What do you mean "plus the larger from each subtree"?
  9. Replies
    4
    Views
    1,123

    I want to call quickselect (or partitioning)...

    I want to call quickselect (or partitioning) before the heapsort.

    And the aim of all that is to change the complecity of the algorithm from nlogn to n+clogn.

    What do you think? Am I stretching...
  10. Replies
    4
    Views
    1,123

    Question about sorting algorithms

    Question about sorting algorithms:

    If I call quickselection function within heapsort algorithm, does that mean that the complexity will me smaller?
  11. Replies
    4
    Views
    3,002

    Anyone??

    Anyone??
  12. Replies
    4
    Views
    3,002

    Adding node values of binary tree

    Hello to everyone..

    I have made a function in order to add the values of the nodes on each path of the tree. For example if I enter numbers 7, 8, 9, 4, 1 then for the path (7>4>1) the cost must be...
  13. Replies
    23
    Views
    3,003

    At last!!!!!! Now it works. Sorry if I tired you...

    At last!!!!!!
    Now it works. Sorry if I tired you so. I admit reading the links you gave me rather quickly and may have missed some key points. I apologize for that. I really want to thank you for...
  14. Replies
    23
    Views
    3,003

    Disregard "i=0;"

    Disregard "i=0;"
  15. Replies
    23
    Views
    3,003

    Check this: circularly linked list...

    Check this: circularly linked list . Why does it work for him and not for me? I took the code and modified the variable names, added the one about word and read it.

    Mine keeps giving me error...
  16. Replies
    23
    Views
    3,003

    Treat me like a kid please. I guess I need it...

    Treat me like a kid please. I guess I need it spelled out.

    1. So I should malloc "first"?
    2. What should i return in that piece of code?
  17. Replies
    23
    Views
    3,003

    1. I added the mallocing error check. 2. ...

    1. I added the mallocing error check.
    2.
    How can I make sure that first is really added?
    3. I haved a printf("test") in order to see if addnode is called. It never gets printed so I guess...
  18. Replies
    23
    Views
    3,003

    !!!! I got only 2 warnings whenever I compiled....

    !!!!
    I got only 2 warnings whenever I compiled. I use wx-Dev-C++. Maybe that's because I don't get all these warnings? Or are they turned off? I can't find any settings.

    How do I turn them on?
    ...
  19. Replies
    23
    Views
    3,003

    1. Did it. 2. I am looking it up right now. 3....

    1. Did it.
    2. I am looking it up right now.
    3. What do you mean?
    4. Theoretically I get it but practically...
    5. When I use char *letter it runs but leads to the error message (The circularly...
  20. Replies
    23
    Views
    3,003

    Guys, don't even ask!! I am trying to complete a...

    Guys, don't even ask!! I am trying to complete a course. So far I have managed to get by regarding C. But now with malloc and linked lists, I am way over my head. What I would really appreciate is a...
  21. Replies
    23
    Views
    3,003

    I have isolated the problem to the part )if...

    I have isolated the problem to the part )if (list==NULL). I realize that I can't get to fill the first node of the list. But why? Please consider that you are talking to a C illiterate. :)

    What...
  22. Replies
    23
    Views
    3,003

    What should I do about these things mentioned...

    What should I do about these things mentioned above?
  23. Replies
    23
    Views
    3,003

    I must be so inexperienced or so "bad" at C that...

    I must be so inexperienced or so "bad" at C that I still don't understand what I must do in order to get the list to fill itself with what I want. Please show me the way!!

    Btw, I totally get the...
  24. Replies
    23
    Views
    3,003

    Thx for your reply but I have to admit that...

    Thx for your reply but I have to admit that although i see your point, I can't exactly make it happen. Please consider that I have been essentially working on C for about one month (and not that...
  25. Replies
    23
    Views
    3,003

    Help guys with circluarly linked list

    I want to make a circularly linked list taking data from a text file.
    It keeps saying that my list is Empty when i try to print it. Is it really empty or is something wrong with the printlist...
Results 1 to 25 of 25