Jump to content
Server Maintenance This Week. ×

Recursive Data Structure - HOW TO or Have TO


This topic is 4393 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hello everyone;

i have been searching this forum and have come across a few of what i am facing now Issues! They have to do with manufacturing and database design.

Heard a few talks about recursive structure, but i have been unable to figure out what that means in its entirety via Google and books that i know where to look.

Can someone please describe or provide links where to find more information/articles in relation to recursive data structures and possible manufacturing db models?

TIA:

-i

Link to comment
Share on other sites

You will probably won't get useful responses until you state your application more specifically.

You may be right that you need a recursive structure; but what exactly do you think you need to model recursively?

That said, if you want to get some serious books on data modeling then I suggest something like "The Data Modeling Reource Book, Vol 3" by Silverston and Agnew.

Link to comment
Share on other sites

Recursive functions are kind-of like looping scripts: it's a feature that allows the function to keep processing the data or expression until it recognises it's done the job.

A simple example is a function to reverse the order of text:

Reverse( "the order of the text" ) = "txet eht fo redo eht"

A way to do this recursively is to:

start at the right-most character

add this character to the left of a new string

add the previous character to the new string

keep going until the left-most character s reached

return the new string

The recursive nature makes it easy to program, and solves the "I have no way of knowing how long the text input will be" problem because it keeps calling itself and processing until it's all done.

Check this out, by Queue:

http://www.briandunning.com/cf/160

It's pretty minimal. :D

Look for the step where the function calls itself: that's the recursion. Also look for the bit where the function checks whether it's finished the processing and returns the result. In this function it's hard to see, because it's the OTHER part of the case function that isn't there. Generally recursive functions have something like

Case(

check whether the work is done ;

Function( remaining work ) ;

return result

)

There is a 50,000 recursion limit with FMP (a bit less with FM Go) so clever programming is often needed to prevent the limit from being reached.

Link to comment
Share on other sites

I was talking of recursive data structures & thank you BCooney for pointing out to just contact Jonathan Stark.

Here is the article;

http://jonathanstark.com/fm/recursive-data-structures.php

  • Like 1
Link to comment
Share on other sites

This topic is 4393 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.