请输入您要查询的字词:

 

单词 TakeuchiFunction
释义

Takeuchi function


The Takeuchi function is a triply recursive 3-parameter function originally defined by Ichiro Takeuchi in 1978 as t(x,y,z)=y if xy and t(x,y,z)=t(t(x-1,y,z),t(y-1,z,x),t(z-1,x,y)) otherwise. Later John McCarthy simplified the definition of the function as t(x,y,z)=y if xy, t(x,y,z)=z if yz and t(x,y,z)=x in all other cases.

For example, t(194,13,5)=194 since 194 is not less than 13, and 13 is not less than 5. The return value of the function “is on no practical significance,” but the function itself “is useful for benchmark testing of programming languages.” (Finch, 2003) The function T(x,y,z) is the number of times t calls itself to obtain the return value. A properly optimized implementation of the function in a given programming language should not require more recursion than T indicates.

References

  • 1 Steven R. Finch Mathematical Constants New York: Cambridge University Press (2003): 321
随便看

 

数学辞典收录了18232条数学词条,基本涵盖了常用数学知识及数学英语单词词组的翻译及用法,是数学学习的有利工具。

 

Copyright © 2000-2023 Newdu.com.com All Rights Reserved
更新时间:2025/5/4 23:06:07