RE: Here's a simple programming problem for you to solve
April 27, 2016 at 4:35 am
(This post was last modified: April 27, 2016 at 4:36 am by ErGingerbreadMandude.)
(April 27, 2016 at 4:09 am)Little lunch Wrote:(April 27, 2016 at 2:11 am)pool the great Wrote: No guys! Not my homework!
I was just fascinated by the idea of inserting "abcdefghijklmnopqrstuvwxyz" as input- output all the result into a text file , then run my computer till I turn 40, and then I can open the text file and all the words in the dictionary and all the words that will be in the dictionary in the future will be in my text file. So technically, I'll have all the words anyone can ever make up -in my text file!!
@K, So when you look at it from the text files perspective, it's living in the past, present and the future simultaneously because all the words in the past, present and even the future is in the text file..
Have you looked up the Library of Babel yet?
It's pretty cool.
Yes it's very cool! I actually made a program that does exactly that. If I run my program for a few minutes it'll contain names of everyone I know (not long names). It's just that my program create lots of duplications and isn't at the very least efficient,this means bigger text file size, longer time to open the file and even longer time to search inside the file for very little trade off.
I remember leaving my computer on without my mom knowing (a few years back when I first made this thing) and we went out. After some hours we returned and the text file size was some 6 GB, I was so glad but unfortunately I couldn't open a text file as big as that.
