Search:

Type: Posts; User: anirban

Page 1 of 12 1 2 3 4

Search: Search took 0.01 seconds.

  1. Floyd-Warshall algorithm on undirected graphs

    I am referring to the algorithm described in Wikipedia. Will the same following condition

    if dist[i][j] > dist[i][k] + dist[k][j]
    dist[i][j] = dist[i][k] + dist[k][j]

    work for...
  2. Replies
    3
    Views
    1,370

    Thanks. Why is it so that if I write int...

    Thanks.

    Why is it so that if I write


    int temp = temp;

    the value of temp is 0.
  3. Replies
    3
    Views
    1,370

    Macro Expansion

    Can anyone please explain the output of the following code. I failed to explain myself.


    #include <stdio.h>

    #define SWAP(x,y) { int temp = x; printf("%d %d\n",x,y); x = y; printf("%d...
  4. Replies
    0
    Views
    957

    Suggestion on Applet

    I am working on geometric algorithms. For my experiment demonstrations I would like to build some applet which would support dynamic functionalities. For example if I click some points in an area and...
  5. Replies
    10
    Views
    5,298

    Finally it seems to work from Code Blocks. We...

    Finally it seems to work from Code Blocks. We need to include the following flags.


    -lCGAL -lgmp -frounding-math
  6. Replies
    10
    Views
    5,298

    Yes you are right. I wish if you could help...

    Yes you are right.
    I wish if you could help exactly on the linking. :(
    Thanks though for helping so much.
  7. Replies
    10
    Views
    5,298

    Well, that is what I have tried and I got the...

    Well, that is what I have tried and I got the above coded error messages. :)
  8. Replies
    10
    Views
    5,298

    I am trying with the following code. ...

    I am trying with the following code.


    #include <iostream>
    #include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
    #include <CGAL/convex_hull_2.h>

    typedef...
  9. Replies
    10
    Views
    5,298

    Thanks. I shall try! :)

    Thanks. I shall try! :)
  10. Replies
    10
    Views
    5,298

    Thanks. But how shall I browse and add the...

    Thanks. But how shall I browse and add the library in CodeBlocks.
    I am confused about the path, name etc.
  11. Replies
    10
    Views
    5,298

    CGAL in Ubuntu 12.04

    I would like to use CGAL from Code Blocks. I am using Ubuntu 12.04.
    I have installed CGAL packages. Now how could I create a CGAL project.
    Any help shall be greatly appreciated.
  12. Replies
    1
    Views
    1,048

    Prolog Confusion

    I have the following Prolog program.


    male(jim).
    male(pat).
    male(bob).
    female(alice).
    female(diane).

    single(jim).
  13. Thread: Java finalize

    by anirban
    Replies
    5
    Views
    1,517

    Okay thanks a lot! Let me check out. :) EDIT :...

    Okay thanks a lot! Let me check out. :)

    EDIT : Seen the links but could not make out somehow exactly how to make my program work! :(
  14. Thread: Java finalize

    by anirban
    Replies
    5
    Views
    1,517

    Java finalize

    I am getting no output from finalize function.


    class A
    {
    public static int c = 5;
    int i,j;

    void showij()
    {
  15. Thread: Lisp Help

    by anirban
    Replies
    1
    Views
    976

    Lisp Help

    In CLISP, how to detect whether an object is a string or not?
  16. Replies
    3
    Views
    2,317

    Yes exactly. I was trying to implement CFG in Lex...

    Yes exactly. I was trying to implement CFG in Lex which is very foolish to think about.
  17. Replies
    3
    Views
    2,317

    Lex Recursive Rule not Possible?

    I am trying to implement one Lex program that accepts input of the following forms.


    (NOT(NOT(NOT(P))))
    (NOT(P))
    (NOT(NOT(NOT(NOT(P)))))

    And I wrote the following code.
  18. Thread: Lex Help

    by anirban
    Replies
    2
    Views
    1,943

    Thanks it worked! :)

    Thanks it worked! :)
  19. Thread: Lex Help

    by anirban
    Replies
    2
    Views
    1,943

    Lex Help

    I am trying to implement a simple program in LEX but it is giving error.
    I am doing it in Ubuntu.



    %{
    #include <stdio.h>
    %}

    digit [0-9]
  20. Replies
    1
    Views
    3,510

    Reversi Game Tree

    In Reversi, at each step what can be the maximum number of moves possible? I want to implement Min-Max Tree.
    Also, what would be the case if I want to implement NxN reversi.
  21. Replies
    1
    Views
    1,214

    AI Project Suggestion

    I need help in choosing a topic for doing a AI term project. I have 20 days to work on. Can anyone please suggest topics to work on?
  22. Thread: C++ stl

    by anirban
    Replies
    5
    Views
    1,004

    Any syntax help for implementing min heap please?...

    Any syntax help for implementing min heap please?
    I am new to this and need to know the syntax.
  23. Thread: C++ stl

    by anirban
    Replies
    5
    Views
    1,004

    C++ stl

    I want to implement priority queue using STL.
    Basically I want to use it for storing states(array of size k) sorted according cost.
    Which standard template is useful for me?

    I want to implement...
  24. Replies
    35
    Views
    7,721

    Why is that so? It would be helpful if you throw...

    Why is that so? It would be helpful if you throw some light on this.



    Thanks for helping! but read my previous question out carefully. The 2 questions are different.
  25. Replies
    35
    Views
    7,721

    I see! So you need proof for approach! Okay! Here...

    I see! So you need proof for approach! Okay! Here it is..

    I tried to solve it using XOR approach, from where I could not conclude anything fruitful.
    Also, I cannot apply sorting as O(nlogn)...
Results 1 to 25 of 278
Page 1 of 12 1 2 3 4