Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: Java Equation

  1. #1
    Regular Coder
    Join Date
    Dec 2004
    Posts
    202
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Java Equation

    Ok this may sound weird but i need a equation for java that can calculate for a robot the best possible way to get from point a to b . now than so far all i need to do is calculate it in the ms-dos style window java uses by default. it isn't going to send signals just display the variables than do some calculating. I preferable want it to be human in like motion and i am not to good with physics just wondering if anyone on this site is smart enough for a equation like that.

  • #2
    JPM
    JPM is offline
    Regular Coder
    Join Date
    Mar 2004
    Location
    Norway
    Posts
    204
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Are thinking about something like this(just look at the picture), and trying to find the best way from one point to another?
    <JPM />

  • #3
    New Coder
    Join Date
    Feb 2005
    Posts
    27
    Thanks
    0
    Thanked 0 Times in 0 Posts
    It's not an equation, it's an algorithm. See my post on Djikstra's Shortest Path, assuming, of course, that you can somehow represent the universe of the robot's travel as a graph with vertices and points that are known before a decision is made. Otherwise, your problem seems ill-specified to me.
    I hope this helps, and I stress that understanding the algorithm first before you implement it is crucial.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •