Printer Friendly
Dictionary, Encyclopedia and Thesaurus - The Free Dictionary
1,812,235,113 visitors served.
forum mailing list For webmasters
?
New: Language forums
Dictionary/
thesaurus
Medical
dictionary
Legal
dictionary
Financial
dictionary
Acronyms
 
Idioms
Encyclopedia
Wikipedia
encyclopedia
?

tupling

    0.07 sec.
tupling - A program transformation where several results are returned from a single traversal of a data structure. E.g.

mean l = sum l / length l

==>

mean l = s/n where (s,n) = sumLen l

sumLen [] = (0,0) sumLen (x:xs) = (s+x, n+1) where (s,n) = sumLen xs

In procedural languages this technique is known as horizontal loop combination because it uses one loop to calculate several results.

Another form of tupling transformation is used to avoid repeated evaluation where a function generates several identical calls to itself. By analysing the pattern of recursion (see descent function) it is possible to arrange for these identical calls to share results. E.g.

fib 0 = 1 fib 1 = 1 fib n = fib (n-1) + fib (n-2)

==>

fib n = v where (_,v) = fibt n fibt 0 = (1,1) fibt n = (u+v,u) where (u,v) = fibt (n-1)


How to thank TFD for its existence? Tell a friend about us, add a link to this page, add the site to iGoogle, or visit webmaster's page for free fun content.
?Page tools
Printer friendly
Cite / link
Email
Feedback
? Mentioned in ? References in periodicals archive
 
These include the Parental Bonding Index (PBI; Parker, Tupling, & Brown, 1979), the Inventory of Family Feelings (IFF; Lowman, 1980), and the O'Leary-Porter Scale (OPS; Porter & O'Leary, 1980).
The recruitment interview included an Informed Consent Form, the Adult-Adolescent Parenting Inventory-2 (AAPI-2) (Bavolek, 1984), the Parental Bonding Inventory (PBI) (Parker, Tupling & Brown, 1979), and extensive tracking data to facilitate follow-up.
The PBI (Parker, Tupling, & Brown, 1979) contains 50 statements describing parental behaviors that tap adults' memories of their parents' emotional responsiveness (measured on the Care subscale), and intrusive control (measured on the Overprotection subscale).
 
Encyclopedia browser? ? Full browser
 
 
Encyclopedia
?

Disclaimer | Privacy policy | Feedback | Copyright © 2009 Farlex, Inc.
All content on this website, including dictionary, thesaurus, literature, geography, and other reference data is for informational purposes only. This information should not be considered complete, up to date, and is not intended to be used in place of a Terms of Use.