Recursive (Total) and Partial Recursive Functions Flashcards
How does the boundedness between Floop and BlooP programs differ?
‘Free loops’
Will Floop programs always terminate?
No …
Bounded minimization for FlooP?
For BlooP: h is a primitive recursive function then f is obtained from h by bounded minimization if “the least y > n, such that the projection of h(x, n) = 0 there is one; n otherwise”
Therefore, f yields the minimal value for y (up to bound n( for which h holds.
For FlooP: REMOVE the upper bound:
Problem: Some cases get undefined = partial function
What is the least-searched operator?
How to impliment the u-operator using a TM:
Recursive Definition
Define Partial Recursive Functions:
The partial recursive function are the smallest class containing:
- The zero,
- successor,
- projection functions,
And closed under
4. Composition
5. Primitive recursion, and
6. the u-operator
Note: “smallest class” satisfying certain conditions = smallest case corresponds to the final clause
What are (total) recursive functions?
Partial recursive functions need not be undefined, because u might always yield a value
What is the halting problem for partial recursive functions?
Let φ1, φ2, φ3 be an enumeration of all partial recursive functions
Question: Maybe there is a way of constructing a recursive fucntion that determines whether φx(x) is undefined and then returns some value
Answer: There is no recursive function which can tell us wether φx(x) s defined for all x