Jump to content

Map-solving script


php_joe

Recommended Posts

You would have to develop some sort of alogrthim that would say from any point (x,y) you can get to any other point (x1,y1) in a straight line path.  If that path leads to a path that is pointless it will not work.  Like I said a quality structure for each point would need to be developed to rate a point.

Link to comment
Share on other sites

that is the differential aspect to it.  Differentials and calculus have stayed away from consumer level computers because of the large amount of processing needed, however I have seen programs handle the inifinte idea (using differentials) such as maple mathematics lab.  The distance as I said is an integration of the sum of each weighted value (in this case an area of dx/dy or dy/dx depending on our summing mechanics) however since the weight of each node is equal (a 1x1 square of area) we can solve using a finite number of points.

Link to comment
Share on other sites

What exactly are you integrating here?  We have a set V of vertexes, E of edges (equal weighted).  We can find sums of paths, sure.  And we can think about directions, since we're on a grid. Where does integration come into that?

 

The direct distance from one point to another is always sqrt(abs(x1-x2)^2 + abs(y1-y2)^2), the high school algorithm.  The actual distance is what we are calculating.  No shortcuts there.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.