Primitive recursive functions :mad:

novawildcat
Messages
1
Reaction score
0
Let f be a primitive recursive total function, and let A be the set of all n such that the value f(n) is 'new' in the sense of being different from f(m) for all m<n. Show that A is primitive recursive.


How in the world do I attack this problem? I am totally lost. Any help would be greatly appreciated. Thanks.


I know that to show a set is primitive recursive the characteristic function of the set must be primitive recursive. What in the world, however, would be a suitable characteristic function for this set described above?
 
Physics news on Phys.org
What in the world, however, would be a suitable characteristic function for this set described above?

<br /> \chi (n) := \left\{<br /> \begin{array}{ll}<br /> 1 \quad &amp; \forall m &lt; n: f(m) \neq f(n) \\<br /> 0 &amp; \exists m &lt; n: f(m) = f(n)<br /> \end{array}<br />

Sounds good, I think.

I think the better question to ask, though, is an algorithm for actually computing &chi;(n)... it doesn't even have to be a good algorithm, just an algorithm.
 
Hi all, I've been a roulette player for more than 10 years (although I took time off here and there) and it's only now that I'm trying to understand the physics of the game. Basically my strategy in roulette is to divide the wheel roughly into two halves (let's call them A and B). My theory is that in roulette there will invariably be variance. In other words, if A comes up 5 times in a row, B will be due to come up soon. However I have been proven wrong many times, and I have seen some...
Namaste & G'day Postulate: A strongly-knit team wins on average over a less knit one Fundamentals: - Two teams face off with 4 players each - A polo team consists of players that each have assigned to them a measure of their ability (called a "Handicap" - 10 is highest, -2 lowest) I attempted to measure close-knitness of a team in terms of standard deviation (SD) of handicaps of the players. Failure: It turns out that, more often than, a team with a higher SD wins. In my language, that...

Similar threads

Replies
5
Views
3K
Replies
1
Views
5K
Replies
6
Views
2K
Replies
11
Views
4K
Replies
18
Views
3K
Replies
2
Views
2K
Replies
16
Views
2K
Back
Top