Re: borges' library



mensanator@xxxxxxx wrote:

each book is 410 pages each page has 40 lines and each line 80
characters.

Wait a minute, 80 is more than 25! Or did you originally
mean 80 character words from a 25 character alphabet?
Or maybe all the 25 character words run together and
broken at 80 character intervals?

You've seen a book, yes ? If so then surely you can guess the guy's
meaning without all this blather.

Anyway, for the OP. Here's one way:

Start with a book of all 'a's.

aaaa ... 1311992 chars elided ... aaaa

"Increment" the character at the last position:

aaaa ... 1311992 chars elided ... aaab

That's your second book. Repeat, incrementing that character, until

aaaa ... 1311992 chars elided ... aaaz

(or maybe the last character is ' ', space -- doesn't matter). At that
point you wrap around at that postion, and "carry" into the next column

aaaa ... 1311992 chars elided ... aaba

Keep on incrementing the last position until it wraps again, at which
time you carry again:

aaaa ... 1311992 chars elided ... aabb
....
aaaa ... 1311992 chars elided ... aabz
aaaa ... 1311992 chars elided ... aaca

Keep going, and eventually you'll wrap in the second-last column, so
carry again:

aaaa ... 1311992 chars elided ... abaa

Keep going for another 2e1834097 or so iterations, until you reach:

zzzz ... 1311992 chars elided ... zzzz

Then stop.

-- chris
.



Relevant Pages

  • Re: Origin of Chinese spoken languages
    ... >>The following example of shell and bone inscribed bone fragment shows ... That your idea that having one character for the idea of "today" is wrong. ... This means that you don't need to seek one character words for things, ...
    (sci.lang)
  • Re: What coding standard are you using for C?The
    ... Despite C, being free format, avoid too much free format, remembering ... very interestingly, if they wrap. ... restrictive and demands either less indentation of cyptically short ... There is a 64 character limit to the width ...
    (comp.arch.embedded)
  • Re: Number sequence
    ... it is incrementing each *character* in the string ... incrementing the dash to the next Ascii character, ... database, you may end up with conflicting data at some point. ... '{increments a digit in a sequence field. ...
    (microsoft.public.access.forms)
  • Re: Number sequence
    ... it is incrementing each *character* in the string ... incrementing the dash to the next Ascii character, ... the suggestion posted by UpRider would solve your immediate problem, ... database, you may end up with conflicting data at some point. ...
    (microsoft.public.access.forms)
  • Re: Logic failure..
    ... > I've been writting a HTML parser and ran into pretty much ... > single buffer and scanning the text 1 character at a time. ... I need to find me a good point to wrap".. ... I end up with extra <url tags> as resizing events occur and ...
    (borland.public.delphi.non-technical)