Wrox Programmer Forums Infinite Loop Detection
 |
 Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
 Welcome to the p2p.wrox.com Forums. You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com

October 14th, 2003, 05:32 PM
 jtdang77 Registered User Join Date: Oct 2003 Posts: 2 Thanks: 0 Thanked 0 Times in 0 Posts
Infinite Loop Detection

Hi All,

New to this forum and I am looking for help to write an
algorithm to detect infinite loop. Below is the situation:

Data
-----------------------
Field A Field B
joe reuben
reuben dave
dave josh
row man
john row
row john
-----------------------

In this situation all data in FIELD A will go to FIELD B.
Here field A can mean like an email alias and field
B is the email address to forward to within a 1 domain (@domain.com).

So from here can see that there is an infinite loop
at john -> row -> john or vice versa row->john->row
where as joe->reuben->dave->josh is not an infinite loop
because whoever alias josh belongs to will receive the
email (assuming a different box, and josh does not forward to
anyone else)

So given this two fields from a db table, how can I
write an algorithm to ensure all aliases and email forward
does not create and infinite loop and stop keep forwarding in
circle.

Thanks for your help,

John

 Similar Threads Thread Thread Starter Forum Replies Last Post infinite loop smilesmita Pro PHP 1 December 21st, 2007 10:44 AM problem of infinite loop sarah lee ASP.NET 1.0 and 1.1 Basics 19 December 14th, 2006 09:26 AM problem getting out of infinite loop and incremtin method VB How-To 0 April 28th, 2006 11:45 PM Infinite timer? acdsky VBScript 1 June 17th, 2004 02:59 PM How to Write a Infinite Loop Detection jtdang77 Classic ASP Professional 1 October 15th, 2003 03:44 AM

 Contact Us - Wrox - Privacy Statement - Top