Decision trees

D

Daniel

Hello,

I am writing an app that requires me to follow certain paths based on decisions
made. The paths are defined using a paper diagram decision tree which, of
course, i want to automate. The tree (much simplified but always a top down
tree. note that some points don't connect e.g. B to E) looks something like
this:

A
/ \
B C
/ \
D E F
\ / / \
G H I J


I want to say, "what is the path from C to J?" and I want a string returned
that says "C-F-J". Sometimes, 2 routes might be available, but I would only
ever be interested in the first route.

I have been trying to get my head around the code but I am totally stumped.
So, is there anyone that can help out?

Thanks in advance.


Daniel
 
G

Guest

I have been trying to get my head around the code but I am totally
stumped.
So, is there anyone that can help out?

Take a look at Windows Workflow - seems to do exactly what you need :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top