Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7915675
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T14:32:11+00:00 2026-06-03T14:32:11+00:00

I am designing a flight simulation program and I am looking for ideas on

  • 0

I am designing a flight simulation program and I am looking for ideas on how to properly
implement such requirement.

Kindly look at my picture below. The points represents location.

enter image description here

The idea is this, I wanted to properly create a data structure to best represent such scenario
in java such that

  • when I am in Point 1, how far I am from the last point which is Point 8?

    • Points 2, 3 and 5 are at the same distance from Point 8
    • From Point 1, I could traverse to Point 3 to Point 6 then 7 then eight that would equate to 4 Steps.
  • when I am in Point 0

    • I could traverse to Point 4 then 5 then 7 then reach point 8 which would equate to 4 steps also.

I just wanted to assist user to help them find different route.

Is this possible and which java data structure should best fit this requirement? Also any design ideas how to implement this?

Sorry if my question might be vague, I am just trying to get as much information as I can to properly handle such requirement.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T14:32:13+00:00Added an answer on June 3, 2026 at 2:32 pm

    What you have is a weighted graph where the weights represent the distance between the nodes (which is very common). You could easily implement this yourself (and it’s a great way to learn!), but there are lots of java source code for this out there.

    Of course, this is not a java data structure. It’s simply a data structure (or a concept), used by everyone, everywhere.

    Calculating steps and distances is very easy once you’ve implemented a weighted graph.

    There are massive amounts of documentation on all of this, especially here on Stackoverflow.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When designing an rdlc report using the VS 2010 report designer, report items such
Designing a simple HTML table that I am going to implement alternate-row coloring on...
When designing a collection class, is there any reason not to implement locking privately
Designing forms has always been fun, but getting them to send email on the
When designing a C API for configuring a library/utility, I have a co-worker who
Im designing a website, and often I need to present information in a nice
while designing my user control, i encountered the following problem: i would like to
When designing a stock management database system for sales and purchases what would be
While designing a new WPF application I noticed exceptions not being thrown during data
Im designing my school's website and I kind of want to do like a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.