473,395 Members | 1,484 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Route planning

Hi all,

I have the following problem on a project I am working on. Right now,
I am in the planning stage, which is where I want the help.

I have to calculate a route between two different points on a map. An
example of the map is shown below (it should show a pyramid with A-L
and lines joining them). The user specifies a point to start and a
point to finish and the program calculates a route between them. The
user can only go down, not up. e.g. Route B to J is valid, but not D
to B. Also, the program has to respect the lines between the points
e.g. B to J is valid but not B to K.
OK, so my first problem is how to store the map as data. I cannot use
a DB engine like SQL Server or MySQL so I am hoping to be able to
represent the map using an XML file. My idea is to store information
about each junction on the map along with who it connects to, e.g. A
connects to B and C, B connects to D and E.

To make matters worse, there are some routes that might be forbidden
because they are a out of access to a particular user. for example, a
level 1 user cannot pass through B to E but can through C to E.
However, a level 2 user can.

A
/ \
B C
/ \ / \
D E F G
/ \ / \ / \ / \
H I J K L
So, my question is this, can anyone help me with how I should store the
information in the XML file? Later on, I will be asking for help with
searching for routes but right now I want to concentrate on the
planning of storing the data in the best format/method.

How this makes sense and that someone can help!

TIA,
Hugh

Aug 7 '06 #1
1 1821
Hugh

This may or may not help you but your 'route' looks very much like a
decision tree to me so you may want to look at XML schemas for decision
trees
(here's one:
http://groups.google.co.uk/group/mic...8e394864f1d5fc)

As for restricting certain user groups, I suppose it depends on how
you're structuring your groups - ie. as far as 'rights' goes then group
1 < group 2 < group 3 < group 4 etc then you can just store the
'minimum' group required to access that path.

Hope that helps
Martin

Hugh Janus wrote:
Hi all,

I have the following problem on a project I am working on. Right now,
I am in the planning stage, which is where I want the help.

I have to calculate a route between two different points on a map. An
example of the map is shown below (it should show a pyramid with A-L
and lines joining them). The user specifies a point to start and a
point to finish and the program calculates a route between them. The
user can only go down, not up. e.g. Route B to J is valid, but not D
to B. Also, the program has to respect the lines between the points
e.g. B to J is valid but not B to K.
OK, so my first problem is how to store the map as data. I cannot use
a DB engine like SQL Server or MySQL so I am hoping to be able to
represent the map using an XML file. My idea is to store information
about each junction on the map along with who it connects to, e.g. A
connects to B and C, B connects to D and E.

To make matters worse, there are some routes that might be forbidden
because they are a out of access to a particular user. for example, a
level 1 user cannot pass through B to E but can through C to E.
However, a level 2 user can.

A
/ \
B C
/ \ / \
D E F G
/ \ / \ / \ / \
H I J K L
So, my question is this, can anyone help me with how I should store the
information in the XML file? Later on, I will be asking for help with
searching for routes but right now I want to concentrate on the
planning of storing the data in the best format/method.

How this makes sense and that someone can help!

TIA,
Hugh
Aug 7 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Logu | last post by:
Hi Any Ideas and Inputs on Cost Estimation/Planning stage of .NET Projects, i.e. things like Function point Analysis, COCOMO and on full planning stages etc etc. Any Frameworks, feasible...
1
by: Jothi | last post by:
Hi All, I implemented source to notify any changes in route table using "NotifyRouteChange". ie., I am monitoring the route table, if any change in PC. If any body(process/application) changes...
1
by: markus r. | last post by:
Hi together, I am trying to add a new network route to the system with C# (like the dos command "route add ...."). But I can't find a suitable class in the framework. Perhaps can somebody help...
7
by: ezusbo | last post by:
Hi I have implemented this AJAX enabled route finder for getting from A to B on the London Underground network, with built in Google Maps for each station along the way. The AJAX piece allows...
3
by: cyberco | last post by:
I've posted this question in 'microsoft.public.dotnet.framework.compactframework' as well, but despite the great help I still haven't solved the problem. So before going the C++ route I would like...
1
by: Andre Meyer | last post by:
Hi all Just a very simple question: where can I find a module for route planning? I have looked around and found some implementations of graph theory, e.g....
5
Banfa
by: Banfa | last post by:
Attached is a map of the Scriptsville Metro. Produce an algorithm that given a starting station and a finishing station will produce 2 routes: 1. The route that passes through the fewest...
3
parshupooja
by: parshupooja | last post by:
Hey All, I am working on webapplication where I am suppose to route a delievery guy from his home to 100 of delievery locations. So I am looking of web service which can provide facility of route...
1
by: Glenton | last post by:
Hi All Here is a very simple little class for finding a shortest route on a network, following Dijkstra's Algorithm: #!/usr/bin/env python #This is meant to solve a maze with Dijkstra's...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.