On Nov 16, 2005, at 5:25 PM, Kevin Toppenberg wrote:
Really, all you're doing is traversing a tree. I think the simplest and most elegant approach is to write your code recursively. Alternatively, you can think of the DA array (or its equivalent) as a stack. Iterate through all the DA values until you reach the end (of the deepest subfile). When you do, move up to DA(1) and advance it to the next subentry. Move down a level and run through every DA again Repeat until DA(1) cannot be advanced and then advance DA(2), then for each DA(1) below that subrecord, run through every DA. Keep going until you can't move DA(2) any further, advance DA(3), etc. But this is just unfolding the recursion. An explicitly recursive solution is easier to follow (and code). === Gregory Woodhouse "The whole of science is nothing more than a refinement of everyday thinking." -- Albert Einstein |
- Re: [Hardhats-members] Finding all pointers to bad ... James Gray
- Re: [Hardhats-members] Finding all pointers to... Greg Woodhouse
- Re: [Hardhats-members] Finding all pointer... James Gray
- Re: [Hardhats-members] Finding all poi... Kevin Toppenberg
- Re: [Hardhats-members] Finding all... James Gray
- Re: [Hardhats-members] Finding all pointer... Kevin Toppenberg
- Re: [Hardhats-members] Finding all poi... Greg Woodhouse
- Re: [Hardhats-members] Finding all pointers to... Kevin Toppenberg
- Re: [Hardhats-members] Finding all pointer... Greg Woodhouse
- Re: [Hardhats-members] Finding all poi... Kevin Toppenberg
- Re: [Hardhats-members] Finding all... Gregory Woodhouse
- RE: [Hardhats-members] Finding all pointers to... Doug Martin
- RE: [Hardhats-members] Finding all pointers to... Holloway, Thomas (EDS)
- RE: [Hardhats-members] Finding all pointer... Greg Woodhouse
- Re: [Hardhats-members] Finding all poi... Kevin Toppenberg
- RE: [Hardhats-members] Finding all pointers to... Doug Martin
- RE: [Hardhats-members] Finding all pointers to... Holloway, Thomas (EDS)
