We help IT Professionals succeed at work.
Get Started

C++ Graphs (Logic)

List244
List244 asked
on
363 Views
Last Modified: 2013-12-14
Please do not post links, code, algorithms, or copy another reference unless directly related to my question. I am looking to understand a certain aspect, and this aspect only.

I am trying to fully understand graphs in C++. I am trying to understand how to get the shortest distance from point A in a graph to point B. However, let's say our graph is a graph of a city, or country, or bigger. Now if we want to get the shortest distance from point A to point B we have a problem. The problem is that there are billions of streets and different ways to go and the user wants a response quickly, what can we do?

Do graphs have to be created in a way that basic assumptions can be made? For example south-west to north-east, would you want to assume north over south west over east?

Can you ever get THE shortest way or do you have to settle?

I think from this you can understand where my confusion lies, I do not require specific answers to specific questions, simply see my confusion and guide me if you can, please.
Comment
Watch Question
This problem has been solved!
Unlock 2 Answers and 5 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE