Hints for the Challenge:
Below, you can find another hint for the
Challenge.
You should only get here after reading, digesting, and applying the
.
Hint
Putting the definition of copy() in the program is not hard:
This outputs
():
There are still two things that need to be taken care of:
- The definition of S still appeared on a single line
and needs to be put in the same form as the program now produces.
- The string S needs to include the definition and invocation
of the new function copy().
The first thing is easy, because the program can do that itself.
That is,
after incorporating copy() in the definition of S,
the output will be a program which produces itself as output!
Can you do that?
Try your program in the
machine,
and see if you can extend it to a complete solution.
Apply the Hint
It is your turn ...
Need Another Hint?
If you tried this hint, or do not see how it helps,
then you are ready for the
.
Copyright ©2009, Tom Verhoeff,
T.Verhoeff@TUE.NL