主題
Search

原始遞迴函式


正如 Meyer 和 Ritchie (1967) 首次展示的那樣,do 迴圈(具有固定的迭代限制)是 while 迴圈的特例。僅使用 do 迴圈即可實現的函式稱為原始遞迴函式。(相比之下,可計算函式 可以使用 for 迴圈和 while 迴圈的組合,或僅使用 while 迴圈進行編碼。)原始遞迴函式的示例包括 最大公約數p_n(給出第 n素數 的函式)。

阿克曼函式良定義 全函式 的最簡單示例,它是 可計算的 但不是原始遞迴的,這為 1900 年代初期認為每個 可計算函式 也都是原始遞迴函式的觀點提供了反例 (Dötzel 1991; Wolfram 2002, p. 907)。


另請參閱

阿克曼函式, 可計算函式, 一般遞迴函式, 遞迴函式, 全函式

使用 探索

參考文獻

Dötzel, G. "A Function to End All Functions." Algorithm: Recreational Programming 2, 16-17, 1991.Meyer, A. and Ritchie, D. "The Complexity of Loop Programs." Proc. 22nd National ACM Conference. Washington, DC: pp. 465-470, 1967.Péter, R. Rekursive Funktionen in der Komputer-Theorie. Budapest: Akad. Kiado, 1951.Wolfram, S. A New Kind of Science. Champaign, IL: Wolfram Media, 907, 2002.

在 上被引用

原始遞迴函式

如此引用

Weisstein, Eric W. "原始遞迴函式。" 來自 Web 資源。 https://mathworld.tw/PrimitiveRecursiveFunction.html

主題分類