There is no actual way to specify an infinite string and if there was such a way I could use that as a criterion measure.Univalence wrote: ↑Sat May 25, 2019 4:21 pmHow?PeteOlcott wrote: ↑Sat May 25, 2019 4:06 pmThey are excluded from consideration.Univalence wrote: ↑Sat May 25, 2019 2:49 pm
Infinities..... OK.
How do you parse an infinitely-long string?
How do you make sure that one of the strings in your infinite set aren’t infinite-length?
How do you check that the length of a string is infinite?
A junior high school level of understanding of logic
-
PeteOlcott
- Posts: 1597
- Joined: Mon Jul 25, 2016 6:55 pm
Re: A junior high school level of understanding of logic
-
Univalence
- Posts: 492
- Joined: Sun May 12, 2019 6:28 pm
Re: A junior high school level of understanding of logic
Nonsense. A string is a character array. A set.PeteOlcott wrote: ↑Sat May 25, 2019 4:40 pm There is no actual way to specify an infinite string and if there was such a way I could use that as a criterion measure.
If you have an infinite set of strings, you have an infinite set of characters also. Pick the first element of every string.
Code: Select all
a = ['abc', 'def', 'ghi','jkl', 'mno']
print(''.join([ x[0] for x in a ]))
>>> adgjm
How? For the sake of argument - you have an infinite string. cat /dev/randomPeteOlcott wrote: ↑Sat May 25, 2019 4:40 pm and if there was such a way I could use that as a criterion measure.
Show me the algorithm which determines that it's an infinite string.