Java + kruskal

chocotof -  
 chocotof -
Bonjour, bonjour!

I need to implement Kruskal's algorithm in Java. The algorithm itself isn't the problem, but I don’t know anything about Java since I've only worked with C++ and Pascal (and just the basics). I'm a bit lost because we don’t have exercises; we're supposed to understand everything from the theoretical course! :-( If anyone could help me or share part of the code for Kruskal's algorithm, that would be really great because I'm kind of panicking!

Thank you so much in advance,
xxx
Configuration: Windows XP Internet Explorer 7.0

3 answers

  1. ray_fab
     
    Hello,
    I can't remember the Kruskal algorithm, it's been a while since I did operational research, but if you want, write it in C++ or Pascal and I'll rewrite it in Java for you.
    Good luck!
    0
    1. chocotof
       
      Thank you very much! By the way, do you know how to initialize a class in general? I would need a class of elements that represents the value of the edge (of a graph) and its 2 corresponding nodes.
      Thank you!
      xxx
      0
  2. chiguvara Posted messages 10 Registration date   Status Member
     
    Salut tout le monde
    I would like to know how to connect a database from Visual J++ via JDBC
    There is not much time left, I still have a month before my defense date
    Please connect me to my email box (amir_mizou@yahoo.fr)
    Thank you and have a nice day.
    0