|
|
|
МакКарти (отец ЛИСПа) и его функция f91()
|
|||
|---|---|---|---|
|
#18+
Кто в курсе, зачем он придумал эту дурацкую функцию: = McCarthy is a famous theorician of computer science. In his work, he defined a recursive function, called f91, that takes as input a positive integer N and returns a positive integer defined as follows: If N ≤ 100, then f91(N) = f91(f91(N + 11)); If N ≥ 101, then f91(N) = N - 10. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.11.2009, 00:33:12 |
|
||
|
МакКарти (отец ЛИСПа) и его функция f91()
|
|||
|---|---|---|---|
|
#18+
wiki : The 91 function was chosen for having a complex recursion pattern (contrasted with simple patterns, such as defining f(n) by means of f(n − 1)). вроде все понятно сказано ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.11.2009, 07:58:18 |
|
||
|
|

start [/forum/topic.php?fid=16&fpage=114&tid=1344125]: |
0ms |
get settings: |
8ms |
get forum list: |
13ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
67ms |
get topic data: |
9ms |
get forum data: |
2ms |
get page messages: |
38ms |
get tp. blocked users: |
1ms |
| others: | 225ms |
| total: | 367ms |

| 0 / 0 |
