Working with Java

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shakespeareinlove
    New Member
    • Mar 2010
    • 2

    Working with Java

    I don't know how to start coding for my "shortest path" homework. I have to read files and do some algorithms so that my code can calculate the shortest path. I found some codes about reading files with arrays but i can't implement the algorithm code( which is dijkstra algorithm). Anyway hope someone can help me????
  • RedSon
    Recognized Expert Expert
    • Jan 2007
    • 4980

    #2
    Is this an introductory course?

    Don't you have a text book or a computer lab to get some help at?

    Comment

    • shakespeareinlove
      New Member
      • Mar 2010
      • 2

      #3
      well i took the introductory course last semester, now we have projects like these. I have a text book but it doesn't help really :/

      Comment

      • RedSon
        Recognized Expert Expert
        • Jan 2007
        • 4980

        #4
        Just to give you an example, when I was in college courses discussing shortest path and dijkstra were 300 level. If this is a 200 level class I doubt that your 100 level classes gave you enough training to be prepared for implementing a shortest path algorithim.

        You may want to discuss this with your professor and tell him/her how you are struggling with it.

        Comment

        • jkmyoung
          Recognized Expert Top Contributor
          • Mar 2006
          • 2057

          #5
          Try breaking the problem down. Don't even worry about the algorithm yet, just try and set the problem up to be solved.

          How are you getting your input? Is a set of edges or an array of edge costs?

          Comment

          Working...