Decision trees

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Daniel

    #1

    Decision trees


    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
    ---------------------------------------------------
    To contact me you need to clean up my email address. It should be fairly
    obvious...


  • Spam Catcher

    #2
    Re: Decision trees

    Daniel <idontlikejunk. oxley.daniel@gm ail.comwrote in
    news:574310528d 948c8c4023684fd be@news.microso ft.com:
    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 :-)

    Comment

    Working...