Re:A Quine Puzzle
by JoshTriplett on Monday July 20, 2015 @04:48PM
(#9918961)
Variant that doesn't rely on potentially undefined behavior of asking "repeat" to repeat before the beginning:
cHJpbnQgMApwcmludCAyCnByaW50IDAKcHJpbnQgMgpwcmludCAwCnJlcGVhdCAzIDIKcHJpbnQgMgpyZXBlYXQgMyAyCnByaW50IDIKcmVwZWF0IDMgMgo=
Re:A Quine Puzzle
by daveloyall on Monday July 20, 2015 @06:16PM
(#9919478)
Re:A Quine Puzzle
by JoshTriplett on Monday July 20, 2015 @11:10PM
(#9920374)
Sure, but LZ doesn't necessarily allow that.
How do you use these strings?
Re:A Quine Puzzle
by JoshTriplett on Tuesday July 21, 2015 @02:02AM
(#9920753)
They're base64. Feed them to "base64 -d" on Linux, or one of the many base64 decoders on the web. See https://en.wikipedia.org/wiki/Base64
This is the shortest one of the solutions so far. Wonder if it's the shortest possible? (Other than empty = empty)
Yes. It is the unique shortest possible solution if you allow for a repeat at the beginning. OTOH if you disallow starting with a REPEAT, the shortest is length 10.
Re:A Quine Puzzle
by daveloyall on Tuesday July 21, 2015 @10:35AM
(#9922519)
Hm. Well, it was the first quine I arrived at. No special effort was made to make it short.
Re:A Quine Puzzle
by superobserver on Monday July 20, 2015 @04:31PM
(#9918846)
Another similar to your idea:
cmVwZWF0IDQgMw0KcHJpbnQgMg0KcmVwZWF0IDQgMw0KcHJpbnQgMg0KcmVwZWF0IDQgMw0KcHJpbnQgMg==
cmVwZWF0IDMgMgpwcmludCAyCnJlcGVhdCAzIDIKcHJpbnQgMgpyZXBlYXQgMyAyCg==