CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Threaded View

  1. #1
    Join Date
    May 2005
    Posts
    1

    Circular Reference Pattern/Algorithm

    I have a rather challenging problem (at least for me it is...)

    I have a circular reference in a datastructure that I need to trap for and so far, I haven't been able to figure it out using recursion or been able to find an existing algorithm or design pattern that addresses the issue.

    And example of the problem is that say we have 4 employees that each have a supervisor like this:

    1. Dan
    2. Kim
    3. Jay
    4. Bob

    and

    Kim reports to Dan
    Jay reports to Kim
    Bob reports to Jay
    and our data might say that:

    Dan reports to Bob, but that creates a circular reference that we want to trap for.

    So that's the problem.

    We're using C# in asp.net.

    Thanks.

    Doug.
    Attached Images Attached Images

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured