Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.electronics.design > #375725 > unrolled thread

OT: Another math problem

Started bybitrex <bitrex@de.lete.earthlink.net>
First post2015-09-05 09:01 -0400
Last post2015-09-08 13:42 -0400
Articles 20 on this page of 53 — 17 participants

Back to article view | Back to sci.electronics.design


Contents

  OT: Another math problem bitrex <bitrex@de.lete.earthlink.net> - 2015-09-05 09:01 -0400
    Re: OT: Another math problem Bill Sloman <bill.sloman@gmail.com> - 2015-09-05 06:41 -0700
      Re: OT: Another math problem bloggs.fredbloggs.fred@gmail.com - 2015-09-05 06:56 -0700
      Re: OT: Another math problem bitrex <bitrex@de.lete.earthlink.net> - 2015-09-05 10:24 -0400
        Re: OT: Another math problem John Larkin <jjlarkin@highlandtechnology.com> - 2015-09-05 07:51 -0700
          Re: OT: Another math problem bitrex <bitrex@de.lete.earthlink.net> - 2015-09-05 11:29 -0400
          Re: OT: Another math problem bitrex <bitrex@de.lete.earthlink.net> - 2015-09-05 11:34 -0400
            Re: OT: Another math problem John Larkin <jjlarkin@highlandtechnology.com> - 2015-09-05 14:37 -0700
              Re: OT: Another math problem bitrex <bitrex@de.lete.earthlink.net> - 2015-09-05 18:11 -0400
              Re: OT: Another math problem bloggs.fredbloggs.fred@gmail.com - 2015-09-07 09:52 -0700
                Re: OT: Another math problem rickman <gnuarm@gmail.com> - 2015-09-07 13:36 -0400
                  Re: OT: Another math problem Spehro Pefhany <speffSNIP@interlogDOTyou.knowwhat> - 2015-09-07 13:58 -0400
                    Re: OT: Another math problem rickman <gnuarm@gmail.com> - 2015-09-07 14:11 -0400
                    Re: OT: Another math problem DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2015-09-07 15:34 -0400
                      Re: OT: Another math problem bloggs.fredbloggs.fred@gmail.com - 2015-09-07 12:40 -0700
                        Re: OT: Another math problem DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2015-09-07 15:44 -0400
                  Re: OT: Another math problem bloggs.fredbloggs.fred@gmail.com - 2015-09-07 11:57 -0700
                Re: OT: Another math problem Nobody <nobody@nowhere.invalid> - 2015-09-08 06:14 +0100
                  Re: OT: Another math problem bloggs.fredbloggs.fred@gmail.com - 2015-09-08 09:49 -0700
                    Re: OT: Another math problem John S <Sophi.2@invalid.org> - 2015-09-08 22:28 -0500
                      Re: OT: Another math problem bloggs.fredbloggs.fred@gmail.com - 2015-09-09 08:20 -0700
      Re: OT: Another math problem Phil Allison <pallison49@gmail.com> - 2015-09-05 08:00 -0700
        Re: OT: Another math problem DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2015-09-05 11:16 -0400
          Re: OT: Another math problem bloggs.fredbloggs.fred@gmail.com - 2015-09-05 09:27 -0700
            Re: OT: Another math problem rickman <gnuarm@gmail.com> - 2015-09-05 13:13 -0400
              Re: OT: Another math problem DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2015-09-05 15:48 -0400
            Re: OT: Another math problem DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2015-09-05 15:47 -0400
    Re: OT: Another math problem Les Cargill <lcargill99@comcast.com> - 2015-09-05 12:00 -0500
      Re: OT: Another math problem rickman <gnuarm@gmail.com> - 2015-09-05 13:21 -0400
        Re: OT: Another math problem bitrex <bitrex@de.lete.earthlink.net> - 2015-09-05 14:22 -0400
          Re: Another math problem "Tim Williams" <tiwill@seventransistorlabs.com> - 2015-09-05 13:51 -0500
        Re: OT: Another math problem whit3rd <whit3rd@gmail.com> - 2015-09-05 14:47 -0700
        Re: OT: Another math problem Les Cargill <lcargill99@comcast.com> - 2015-09-05 18:02 -0500
          Re: OT: Another math problem rickman <gnuarm@gmail.com> - 2015-09-05 19:38 -0400
            Re: OT: Another math problem Les Cargill <lcargill99@comcast.com> - 2015-09-07 10:39 -0500
        Re: OT: Another math problem Martin Brown <|||newspam|||@nezumi.demon.co.uk> - 2015-09-06 09:21 +0100
          Re: OT: Another math problem rickman <gnuarm@gmail.com> - 2015-09-07 12:59 -0400
            Re: OT: Another math problem Les Cargill <lcargill99@comcast.com> - 2015-09-07 13:50 -0500
            Re: OT: Another math problem Martin Brown <|||newspam|||@nezumi.demon.co.uk> - 2015-09-08 12:04 +0100
              Re: OT: Another math problem DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2015-09-08 07:13 -0400
                Re: OT: Another math problem John Devereux <john@devereux.me.uk> - 2015-09-08 14:50 +0100
                  Re: OT: Another math problem George Herold <gherold@teachspin.com> - 2015-09-08 08:18 -0700
                    Re: OT: Another math problem John Devereux <john@devereux.me.uk> - 2015-09-08 17:53 +0100
                      Re: OT: Another math problem John S <Sophi.2@invalid.org> - 2015-09-08 22:33 -0500
                      Re: OT: Another math problem John S <Sophi.2@invalid.org> - 2015-09-08 22:36 -0500
                Re: OT: Another math problem JW <none@dev.null> - 2015-09-09 08:04 -0400
                  Re: OT: Another math problem DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2015-09-09 09:35 -0400
                    Re: OT: Another math problem JW <none@dev.null> - 2015-09-10 06:51 -0400
              Re: OT: Another math problem Phil Allison <pallison49@gmail.com> - 2015-09-08 06:54 -0700
                Re: OT: Another math problem DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2015-09-08 10:13 -0400
                  Re: OT: Another math problem John S <Sophi.2@invalid.org> - 2015-09-08 22:39 -0500
                Re: OT: Another math problem Martin Brown <|||newspam|||@nezumi.demon.co.uk> - 2015-09-08 15:22 +0100
              Re: OT: Another math problem rickman <gnuarm@gmail.com> - 2015-09-08 13:42 -0400

Page 2 of 3 — ← Prev page 1 [2] 3  Next page →


#376218

Frombloggs.fredbloggs.fred@gmail.com
Date2015-09-09 08:20 -0700
Message-ID<35d60251-3a5c-4398-8a2b-d4f5ccf4ee68@googlegroups.com>
In reply to#376181
On Tuesday, September 8, 2015 at 11:27:30 PM UTC-4, John S wrote:
> On 9/8/2015 11:49 AM, bloggs.fredbloggs.fred@gmail.com wrote:
> > On Tuesday, September 8, 2015 at 1:14:11 AM UTC-4, Nobody wrote:
> >> On Mon, 07 Sep 2015 09:52:39 -0700, bloggs.fredbloggs.fred wrote:
> >>
> >>> What are the last two digits of 3^1234 ?
> >>
> >> [All arithmetic is modulo 100]
> >>
> >> 81^n = (80+1)^n
> >>   = n*80+1 (80^n = 0 for n >= 2)
> >>   = n*(100-20)+1
> >>   = 1-20*n
> >>
> >> 81^n = [1, 81, 61, 41, 21, 1, ...]
> >>
> >> i.e. 81^n forms a cycle of length 5, 81 = 9^2 = 3^4
> >> => 3^n forms a cycle of length 20.
> >>
> >> 1234 = 1220 + 14
> >> => 3^1234
> >>   = 3^14
> >>   = 9^7
> >>   = 9^(2*3+1)
> >>   = (9^2)^3 * 9
> >>   = 81^3 * 9
> >>   = 41 * 9
> >>   = 69
> >
> > Excellent- a nice systematic solution.
> > I think they're looking for the same binomial expansion trick for the well known sum of digits divisibility by 3 result. so...or C(n,m)=combinatorial m out of n,
> > 3^1234=9^617=(10-1)^617= sigma C(617,n) x 10^(617-n) x (-1)^n, n=0...617, so modulo 100 is C(617,616) x 10^1 x(-1)^616 + C(617,617) x 10^0 x(-1)^617=
> > =6170-1=6169= 69 mod 100
> >
> 
> Try this one:
> 
> https://answers.yahoo.com/question/index?qid=20080108035737AADg0ah

Don't really care for Euler's Totient function approach since it's generally a table lookup. The strictly numerical "answers" are just hacks that happen to work out.

[toc] | [prev] | [next] | [standalone]


#375738

FromPhil Allison <pallison49@gmail.com>
Date2015-09-05 08:00 -0700
Message-ID<b2103ed0-9e0f-4eb3-8ebd-2b302d656e6b@googlegroups.com>
In reply to#375728
Bill Sloman wrote:

> 
> Who cares? Some math problems are entertaining, and some are 
> entertaining only for mathematicians.
> 


** Nevertheless, the Wiki on the " Infinite Monkey Theorem" is entertaining: 

https://en.wikipedia.org/wiki/Infinite_monkey_theorem


.... Phil 



[toc] | [prev] | [next] | [standalone]


#375739

FromDecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org>
Date2015-09-05 11:16 -0400
Message-ID<jm1muad3on1lp5ijptgcaq8tenv12ogfki@4ax.com>
In reply to#375738
On Sat, 5 Sep 2015 08:00:13 -0700 (PDT), Phil Allison
<pallison49@gmail.com> Gave us:

>Bill Sloman wrote:
>
>> 
>> Who cares? Some math problems are entertaining, and some are 
>> entertaining only for mathematicians.
>> 
>
>
>** Nevertheless, the Wiki on the " Infinite Monkey Theorem" is entertaining: 
>
>https://en.wikipedia.org/wiki/Infinite_monkey_theorem
>
>
>.... Phil 
>
  Use a computer to do it at GHz or even THz rates and you will still
very likely get not even a single sentence properly generated.

  The probability number is as near zero as it can get.

  BOOM!  Shaka laka laka.

[toc] | [prev] | [next] | [standalone]


#375749

Frombloggs.fredbloggs.fred@gmail.com
Date2015-09-05 09:27 -0700
Message-ID<38111b5c-8de0-4367-950c-99afa2f5e345@googlegroups.com>
In reply to#375739
On Saturday, September 5, 2015 at 11:16:28 AM UTC-4, DecadentLinuxUserNumeroUno wrote:
> On Sat, 5 Sep 2015 08:00:13 -0700 (PDT), Phil Allison
> <pallison49@gmail.com> Gave us:
> 
> >Bill Sloman wrote:
> >
> >> 
> >> Who cares? Some math problems are entertaining, and some are 
> >> entertaining only for mathematicians.
> >> 
> >
> >
> >** Nevertheless, the Wiki on the " Infinite Monkey Theorem" is entertaining: 
> >
> >https://en.wikipedia.org/wiki/Infinite_monkey_theorem
> >
> >
> >.... Phil 
> >
>   Use a computer to do it at GHz or even THz rates and you will still
> very likely get not even a single sentence properly generated.
> 
>   The probability number is as near zero as it can get.
> 
>   BOOM!  Shaka laka laka.

Maybe, but you succeeded in typing that post...

[toc] | [prev] | [next] | [standalone]


#375752

Fromrickman <gnuarm@gmail.com>
Date2015-09-05 13:13 -0400
Message-ID<msf7p7$5u6$1@dont-email.me>
In reply to#375749
On 9/5/2015 12:27 PM, bloggs.fredbloggs.fred@gmail.com wrote:
> On Saturday, September 5, 2015 at 11:16:28 AM UTC-4, DecadentLinuxUserNumeroUno wrote:
>> On Sat, 5 Sep 2015 08:00:13 -0700 (PDT), Phil Allison
>> <pallison49@gmail.com> Gave us:
>>
>>> Bill Sloman wrote:
>>>
>>>>
>>>> Who cares? Some math problems are entertaining, and some are
>>>> entertaining only for mathematicians.
>>>>
>>>
>>>
>>> ** Nevertheless, the Wiki on the " Infinite Monkey Theorem" is entertaining:
>>>
>>> https://en.wikipedia.org/wiki/Infinite_monkey_theorem
>>>
>>>
>>> .... Phil
>>>
>>    Use a computer to do it at GHz or even THz rates and you will still
>> very likely get not even a single sentence properly generated.
>>
>>    The probability number is as near zero as it can get.
>>
>>    BOOM!  Shaka laka laka.
>
> Maybe, but you succeeded in typing that post...

I know it was meant to be snarky, but that was actually pretty funny 
given the context.  lol

-- 

Rick

[toc] | [prev] | [next] | [standalone]


#375765

FromDecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org>
Date2015-09-05 15:48 -0400
Message-ID<tnhmuahfashsocdapojqbuur0crmml1usp@4ax.com>
In reply to#375752
On Sat, 5 Sep 2015 13:13:49 -0400, rickman <gnuarm@gmail.com> Gave us:

>On 9/5/2015 12:27 PM, bloggs.fredbloggs.fred@gmail.com wrote:
>> On Saturday, September 5, 2015 at 11:16:28 AM UTC-4, DecadentLinuxUserNumeroUno wrote:
>>> On Sat, 5 Sep 2015 08:00:13 -0700 (PDT), Phil Allison
>>> <pallison49@gmail.com> Gave us:
>>>
>>>> Bill Sloman wrote:
>>>>
>>>>>
>>>>> Who cares? Some math problems are entertaining, and some are
>>>>> entertaining only for mathematicians.
>>>>>
>>>>
>>>>
>>>> ** Nevertheless, the Wiki on the " Infinite Monkey Theorem" is entertaining:
>>>>
>>>> https://en.wikipedia.org/wiki/Infinite_monkey_theorem
>>>>
>>>>
>>>> .... Phil
>>>>
>>>    Use a computer to do it at GHz or even THz rates and you will still
>>> very likely get not even a single sentence properly generated.
>>>
>>>    The probability number is as near zero as it can get.
>>>
>>>    BOOM!  Shaka laka laka.
>>
>> Maybe, but you succeeded in typing that post...
>
>I know it was meant to be snarky, but that was actually pretty funny 
>given the context.  lol

  Whereas you have to get your monkey slut mother to make posts for you.

[toc] | [prev] | [next] | [standalone]


#375764

FromDecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org>
Date2015-09-05 15:47 -0400
Message-ID<slhmualjke6dsm7qbnt4qj9eqh42ql3lut@4ax.com>
In reply to#375749
On Sat, 5 Sep 2015 09:27:45 -0700 (PDT),
bloggs.fredbloggs.fred@gmail.com Gave us:

>On Saturday, September 5, 2015 at 11:16:28 AM UTC-4, DecadentLinuxUserNumeroUno wrote:
>> On Sat, 5 Sep 2015 08:00:13 -0700 (PDT), Phil Allison
>> <pallison49@gmail.com> Gave us:
>> 
>> >Bill Sloman wrote:
>> >
>> >> 
>> >> Who cares? Some math problems are entertaining, and some are 
>> >> entertaining only for mathematicians.
>> >> 
>> >
>> >
>> >** Nevertheless, the Wiki on the " Infinite Monkey Theorem" is entertaining: 
>> >
>> >https://en.wikipedia.org/wiki/Infinite_monkey_theorem
>> >
>> >
>> >.... Phil 
>> >
>>   Use a computer to do it at GHz or even THz rates and you will still
>> very likely get not even a single sentence properly generated.
>> 
>>   The probability number is as near zero as it can get.
>> 
>>   BOOM!  Shaka laka laka.
>
>Maybe, but you succeeded in typing that post...

  Nice try, punk.

[toc] | [prev] | [next] | [standalone]


#375751

FromLes Cargill <lcargill99@comcast.com>
Date2015-09-05 12:00 -0500
Message-ID<msf6r3$1rs$1@dont-email.me>
In reply to#375725
bitrex wrote:
> The Library of Babel is a library which contains an infinite number of
> hexagonal rooms, each with four exits and four walls containing
> bookshelves full of 410 page books, each page with 40 lines of 80
> characters.  These books contain random permutations of the 25 basic
> characters.
>
> https://en.wikipedia.org/wiki/The_Library_of_Babel
>
> Suppose the number of books in all rooms of the library is the same and
> is N.  One starts in a random room in the library, and selects X books
> at random from a uniform distribution on N, i.e. X <= N.  One looks at
> the books, and then makes a random move with a uniform distribution
> through one of the room's four exits, i.e. a random walk on Z^2.
>
> What is the expected value of the number of moves required before one of
> the books selected from a room in the library contains the correct text
> of the short story "The Library of Babel"?

You can shorten this to "randomly draw a book from an infinite
library of books." All the other furniture in the description is just 
noise.

This implies that there is a one-to-one and onto map from each book
to the natural numbers.

The probabiliity of drawing at random a number from an infinite set is 
still zero - lim(p(x)) at p(x)=1/N as N->infinity.

So the number of moves is - surprise! - N.

"Infinity is just a mechanism for reasoning about limits." - Euler.

-- 
Les Cargill

[toc] | [prev] | [next] | [standalone]


#375754

Fromrickman <gnuarm@gmail.com>
Date2015-09-05 13:21 -0400
Message-ID<msf88b$7sn$1@dont-email.me>
In reply to#375751
On 9/5/2015 1:00 PM, Les Cargill wrote:
> bitrex wrote:
>> The Library of Babel is a library which contains an infinite number of
>> hexagonal rooms, each with four exits and four walls containing
>> bookshelves full of 410 page books, each page with 40 lines of 80
>> characters.  These books contain random permutations of the 25 basic
>> characters.
>>
>> https://en.wikipedia.org/wiki/The_Library_of_Babel
>>
>> Suppose the number of books in all rooms of the library is the same and
>> is N.  One starts in a random room in the library, and selects X books
>> at random from a uniform distribution on N, i.e. X <= N.  One looks at
>> the books, and then makes a random move with a uniform distribution
>> through one of the room's four exits, i.e. a random walk on Z^2.
>>
>> What is the expected value of the number of moves required before one of
>> the books selected from a room in the library contains the correct text
>> of the short story "The Library of Babel"?
>
> You can shorten this to "randomly draw a book from an infinite
> library of books." All the other furniture in the description is just
> noise.
>
> This implies that there is a one-to-one and onto map from each book
> to the natural numbers.
>
> The probabiliity of drawing at random a number from an infinite set is
> still zero - lim(p(x)) at p(x)=1/N as N->infinity.
>
> So the number of moves is - surprise! - N.
>
> "Infinity is just a mechanism for reasoning about limits." - Euler.

Really?  The probability has nothing to do with the number of values in 
the character set or the length of the text being matched?  N is just 
the number of books in each room.  Your mapping is wrong BTW.  The 
library of books may be infinite, but they are not all unique.  There 
are 25^(410*40*80) possible unique books.

BTW, did no one notice there are hexagonal rooms with only four exits 
and only four walls of books?  How does that work exactly?  Not your 
typical XY grid.  Maybe they are the kind of libraries with bookshelves 
built into the doors?

-- 

Rick

[toc] | [prev] | [next] | [standalone]


#375757

Frombitrex <bitrex@de.lete.earthlink.net>
Date2015-09-05 14:22 -0400
Message-ID<55eb32d2$0$8772$4c5ecfc7@frugalusenet.com>
In reply to#375754
On 9/5/2015 1:21 PM, rickman wrote:
> On 9/5/2015 1:00 PM, Les Cargill wrote:
>> bitrex wrote:
>>> The Library of Babel is a library which contains an infinite number of
>>> hexagonal rooms, each with four exits and four walls containing
>>> bookshelves full of 410 page books, each page with 40 lines of 80
>>> characters.  These books contain random permutations of the 25 basic
>>> characters.
>>>
>>> https://en.wikipedia.org/wiki/The_Library_of_Babel
>>>
>>> Suppose the number of books in all rooms of the library is the same and
>>> is N.  One starts in a random room in the library, and selects X books
>>> at random from a uniform distribution on N, i.e. X <= N.  One looks at
>>> the books, and then makes a random move with a uniform distribution
>>> through one of the room's four exits, i.e. a random walk on Z^2.
>>>
>>> What is the expected value of the number of moves required before one of
>>> the books selected from a room in the library contains the correct text
>>> of the short story "The Library of Babel"?
>>
>> You can shorten this to "randomly draw a book from an infinite
>> library of books." All the other furniture in the description is just
>> noise.
>>
>> This implies that there is a one-to-one and onto map from each book
>> to the natural numbers.
>>
>> The probabiliity of drawing at random a number from an infinite set is
>> still zero - lim(p(x)) at p(x)=1/N as N->infinity.
>>
>> So the number of moves is - surprise! - N.
>>
>> "Infinity is just a mechanism for reasoning about limits." - Euler.
>
> Really?  The probability has nothing to do with the number of values in
> the character set or the length of the text being matched?  N is just
> the number of books in each room.  Your mapping is wrong BTW.  The
> library of books may be infinite, but they are not all unique.  There
> are 25^(410*40*80) possible unique books.
>
> BTW, did no one notice there are hexagonal rooms with only four exits
> and only four walls of books?  How does that work exactly?  Not your
> typical XY grid.  Maybe they are the kind of libraries with bookshelves
> built into the doors?
>

I don't know the arrangement exactly as I haven't read the original 
novella.  You could call it octagonal if you want - the four exits were 
just such that it's an equal graph in two dimensions.

Yes, the solution is not so simple.  As you say, while the number of 
books is infinite there is a finite number of _unique_ books.  Also, it 
can be shown from the theory of random walks that a random walk on Z^2 
will "almost certainly" self intersect itself at some point, so there's 
the problem that the walker will eventually come across rooms where he 
has already selected some books and discarded them.

[toc] | [prev] | [next] | [standalone]


#375760 — Re: Another math problem

From"Tim Williams" <tiwill@seventransistorlabs.com>
Date2015-09-05 13:51 -0500
SubjectRe: Another math problem
Message-ID<msfdhc$th7$1@dont-email.me>
In reply to#375757
"bitrex"  wrote in message 
news:55eb32d2$0$8772$4c5ecfc7@frugalusenet.com...
> I don't know the arrangement exactly as I haven't read the original 
> novella.  You could call it octagonal if you want - the four exits were 
> just such that it's an equal graph in two dimensions.
>


This reminds me of a scene from a game:
http://seventransistorlabs.com/Images/HnSLibrary.jpg
As you explore this area, you find floors containing books relating to 
objects and environments of the game itself.  Which you can read, and 
rewrite (in a very limited way), modifying the game from within.

(And yes, it's easy to make it crash, if you know what you're doing. :-p )

Tim

-- 
Seven Transistor Labs, LLC
Electrical Engineering Consultation and Contract Design
Website: http://seventransistorlabs.com 

[toc] | [prev] | [next] | [standalone]


#375772

Fromwhit3rd <whit3rd@gmail.com>
Date2015-09-05 14:47 -0700
Message-ID<e4d52bd5-2119-4e50-a314-822e45ebb46b@googlegroups.com>
In reply to#375754
On Saturday, September 5, 2015 at 10:22:09 AM UTC-7, rickman wrote:
> On 9/5/2015 1:00 PM, Les Cargill wrote:
> > bitrex wrote:
> >> The Library of Babel is a library which contains an infinite number of
> >> hexagonal rooms, each with four exits and...

> BTW, did no one notice there are hexagonal rooms with only four exits 
> and only four walls of books?  How does that work exactly? 

The full short story (it was anthologized in _Labyrinths_
by Jorge Borges) goes into more detail.   There are stairs to other
floors, and water fountains, and restrooms.  Alas, no provision is
made to resupply the premises with toilet paper...  no entrances, no exits.

[toc] | [prev] | [next] | [standalone]


#375774

FromLes Cargill <lcargill99@comcast.com>
Date2015-09-05 18:02 -0500
Message-ID<msfs29$kvj$1@dont-email.me>
In reply to#375754
rickman wrote:
> On 9/5/2015 1:00 PM, Les Cargill wrote:
>> bitrex wrote:
>>> The Library of Babel is a library which contains an infinite number of
>>> hexagonal rooms, each with four exits and four walls containing
>>> bookshelves full of 410 page books, each page with 40 lines of 80
>>> characters.  These books contain random permutations of the 25 basic
>>> characters.
>>>
>>> https://en.wikipedia.org/wiki/The_Library_of_Babel
>>>
>>> Suppose the number of books in all rooms of the library is the same and
>>> is N.  One starts in a random room in the library, and selects X books
>>> at random from a uniform distribution on N, i.e. X <= N.  One looks at
>>> the books, and then makes a random move with a uniform distribution
>>> through one of the room's four exits, i.e. a random walk on Z^2.
>>>
>>> What is the expected value of the number of moves required before one of
>>> the books selected from a room in the library contains the correct text
>>> of the short story "The Library of Babel"?
>>
>> You can shorten this to "randomly draw a book from an infinite
>> library of books." All the other furniture in the description is just
>> noise.
>>
>> This implies that there is a one-to-one and onto map from each book
>> to the natural numbers.
>>
>> The probabiliity of drawing at random a number from an infinite set is
>> still zero - lim(p(x)) at p(x)=1/N as N->infinity.
>>
>> So the number of moves is - surprise! - N.
>>
>> "Infinity is just a mechanism for reasoning about limits." - Euler.
>
> Really?  The probability has nothing to do with the number of values in
> the character set or the length of the text being matched?  N is just
> the number of books in each room.  Your mapping is wrong BTW.  The
> library of books may be infinite, but they are not all unique.

Actually, neither you nor Borges says this directly. But it can be 
inferred in that "... the library also must contain, somewhere, every 
coherent book ever written, or that might ever be written, and every 
possible permutation or slightly erroneous version of every one of those 
books" that the books are indeed unique.


>  There
> are 25^(410*40*80) possible unique books.
>

This does not form a constraint on the number of books nor whether they 
are unique or not.


> BTW, did no one notice there are hexagonal rooms with only four exits
> and only four walls of books?  How does that work exactly?  Not your
> typical XY grid.  Maybe they are the kind of libraries with bookshelves
> built into the doors?
>

-- 
Les Cargill

[toc] | [prev] | [next] | [standalone]


#375775

Fromrickman <gnuarm@gmail.com>
Date2015-09-05 19:38 -0400
Message-ID<msfu9t$qqk$1@dont-email.me>
In reply to#375774
On 9/5/2015 7:02 PM, Les Cargill wrote:
> rickman wrote:
>> On 9/5/2015 1:00 PM, Les Cargill wrote:
>>> bitrex wrote:
>>>> The Library of Babel is a library which contains an infinite number of
>>>> hexagonal rooms, each with four exits and four walls containing
>>>> bookshelves full of 410 page books, each page with 40 lines of 80
>>>> characters.  These books contain random permutations of the 25 basic
>>>> characters.
>>>>
>>>> https://en.wikipedia.org/wiki/The_Library_of_Babel
>>>>
>>>> Suppose the number of books in all rooms of the library is the same and
>>>> is N.  One starts in a random room in the library, and selects X books
>>>> at random from a uniform distribution on N, i.e. X <= N.  One looks at
>>>> the books, and then makes a random move with a uniform distribution
>>>> through one of the room's four exits, i.e. a random walk on Z^2.
>>>>
>>>> What is the expected value of the number of moves required before
>>>> one of
>>>> the books selected from a room in the library contains the correct text
>>>> of the short story "The Library of Babel"?
>>>
>>> You can shorten this to "randomly draw a book from an infinite
>>> library of books." All the other furniture in the description is just
>>> noise.
>>>
>>> This implies that there is a one-to-one and onto map from each book
>>> to the natural numbers.
>>>
>>> The probabiliity of drawing at random a number from an infinite set is
>>> still zero - lim(p(x)) at p(x)=1/N as N->infinity.
>>>
>>> So the number of moves is - surprise! - N.
>>>
>>> "Infinity is just a mechanism for reasoning about limits." - Euler.
>>
>> Really?  The probability has nothing to do with the number of values in
>> the character set or the length of the text being matched?  N is just
>> the number of books in each room.  Your mapping is wrong BTW.  The
>> library of books may be infinite, but they are not all unique.
>
> Actually, neither you nor Borges says this directly. But it can be
> inferred in that "... the library also must contain, somewhere, every
> coherent book ever written, or that might ever be written, and every
> possible permutation or slightly erroneous version of every one of those
> books" that the books are indeed unique.
>
>
>>  There
>> are 25^(410*40*80) possible unique books.
>>
>
> This does not form a constraint on the number of books nor whether they
> are unique or not.

The number of books is *not* constrained, they are infinite.  The number 
of unique books is constrained by the number a characters in a book and 
the possible values of the characters.  No different than the possible 
numbers constructed of a finite number of digits with a finite number of 
possible values for each digit.  Clearly not infinite and in fact 
countable.

-- 

Rick

[toc] | [prev] | [next] | [standalone]


#375952

FromLes Cargill <lcargill99@comcast.com>
Date2015-09-07 10:39 -0500
Message-ID<mskasc$3tt$1@dont-email.me>
In reply to#375775
rickman wrote:
> On 9/5/2015 7:02 PM, Les Cargill wrote:
>> rickman wrote:
>>> On 9/5/2015 1:00 PM, Les Cargill wrote:
>>>> bitrex wrote:
>>>>> The Library of Babel is a library which contains an infinite number of
>>>>> hexagonal rooms, each with four exits and four walls containing
>>>>> bookshelves full of 410 page books, each page with 40 lines of 80
>>>>> characters.  These books contain random permutations of the 25 basic
>>>>> characters.
>>>>>
>>>>> https://en.wikipedia.org/wiki/The_Library_of_Babel
>>>>>
>>>>> Suppose the number of books in all rooms of the library is the same
>>>>> and
>>>>> is N.  One starts in a random room in the library, and selects X books
>>>>> at random from a uniform distribution on N, i.e. X <= N.  One looks at
>>>>> the books, and then makes a random move with a uniform distribution
>>>>> through one of the room's four exits, i.e. a random walk on Z^2.
>>>>>
>>>>> What is the expected value of the number of moves required before
>>>>> one of
>>>>> the books selected from a room in the library contains the correct
>>>>> text
>>>>> of the short story "The Library of Babel"?
>>>>
>>>> You can shorten this to "randomly draw a book from an infinite
>>>> library of books." All the other furniture in the description is just
>>>> noise.
>>>>
>>>> This implies that there is a one-to-one and onto map from each book
>>>> to the natural numbers.
>>>>
>>>> The probabiliity of drawing at random a number from an infinite set is
>>>> still zero - lim(p(x)) at p(x)=1/N as N->infinity.
>>>>
>>>> So the number of moves is - surprise! - N.
>>>>
>>>> "Infinity is just a mechanism for reasoning about limits." - Euler.
>>>
>>> Really?  The probability has nothing to do with the number of values in
>>> the character set or the length of the text being matched?  N is just
>>> the number of books in each room.  Your mapping is wrong BTW.  The
>>> library of books may be infinite, but they are not all unique.
>>
>> Actually, neither you nor Borges says this directly. But it can be
>> inferred in that "... the library also must contain, somewhere, every
>> coherent book ever written, or that might ever be written, and every
>> possible permutation or slightly erroneous version of every one of those
>> books" that the books are indeed unique.
>>
>>
>>>  There
>>> are 25^(410*40*80) possible unique books.
>>>
>>
>> This does not form a constraint on the number of books nor whether they
>> are unique or not.
>
> The number of books is *not* constrained, they are infinite.  The number
> of unique books is constrained by the number a characters in a book and
> the possible values of the characters.  No different than the possible
> numbers constructed of a finite number of digits with a finite number of
> possible values for each digit.  Clearly not infinite and in fact
> countable.
>

It looks that way, but I have to wonder if this mechanism isn't
equivalent to a Turing tape; all the books taken together form
one Turing tape. That's probably a dead end and the permutation
constraint you mentioned is the relevant one.

"Countable" also means "infinite in an aleph-sub-0 way" as a way
of saying "it's not on a one-to-one and onto map of the reals."


-- 
Les Cargill

[toc] | [prev] | [next] | [standalone]


#375843

FromMartin Brown <|||newspam|||@nezumi.demon.co.uk>
Date2015-09-06 09:21 +0100
Message-ID<msgt34$udg$1@speranza.aioe.org>
In reply to#375754
On 05/09/2015 18:21, rickman wrote:
> On 9/5/2015 1:00 PM, Les Cargill wrote:
>> bitrex wrote:
>>> The Library of Babel is a library which contains an infinite number of
>>> hexagonal rooms, each with four exits and four walls containing
>>> bookshelves full of 410 page books, each page with 40 lines of 80
>>> characters.  These books contain random permutations of the 25 basic
>>> characters.
>>>
>>> https://en.wikipedia.org/wiki/The_Library_of_Babel
>>>
>>> Suppose the number of books in all rooms of the library is the same and
>>> is N.  One starts in a random room in the library, and selects X books
>>> at random from a uniform distribution on N, i.e. X <= N.  One looks at
>>> the books, and then makes a random move with a uniform distribution
>>> through one of the room's four exits, i.e. a random walk on Z^2.
>>>
>>> What is the expected value of the number of moves required before one of
>>> the books selected from a room in the library contains the correct text
>>> of the short story "The Library of Babel"?
>>
>> You can shorten this to "randomly draw a book from an infinite
>> library of books." All the other furniture in the description is just
>> noise.

Except it *isn't* an infinite set of books just a very large (and very 
tedious) finite one with 25^N unique volumes of which only one is 
correct. The question is uninteresting but that is another matter.
>>
>> This implies that there is a one-to-one and onto map from each book
>> to the natural numbers.
>>
>> The probabiliity of drawing at random a number from an infinite set is
>> still zero - lim(p(x)) at p(x)=1/N as N->infinity.
>>
>> So the number of moves is - surprise! - N.
>>
>> "Infinity is just a mechanism for reasoning about limits." - Euler.
>
> Really?  The probability has nothing to do with the number of values in
> the character set or the length of the text being matched?  N is just
> the number of books in each room.  Your mapping is wrong BTW.  The
> library of books may be infinite, but they are not all unique.  There
> are 25^(410*40*80) possible unique books.
>
> BTW, did no one notice there are hexagonal rooms with only four exits
> and only four walls of books?  How does that work exactly?  Not your
> typical XY grid.  Maybe they are the kind of libraries with bookshelves
> built into the doors?

Octagonal hexagons maybe?

You could arrange to have such a configuration with hexagons but you 
would need triangular dead spaces to make it a regular XY grid.

The simplest close packed tiling pattern is in rows with two exits on 
the faces which connect only to adjacent rows.

The original question is singularly uninteresting.

One of more practical import is how large does a binary attachment have 
to be before it falls foul of naive net nannies for containing at least 
one four letter Anglosaxon swear word. The answer is surprisingly small.

Residents in the UK towns of Penistone and Scunthorpe have encountered a 
fair amount of difficulty with US net nanny software filters.

-- 
Regards,
Martin Brown

[toc] | [prev] | [next] | [standalone]


#375972

Fromrickman <gnuarm@gmail.com>
Date2015-09-07 12:59 -0400
Message-ID<mskfls$nrn$2@dont-email.me>
In reply to#375843
On 9/6/2015 4:21 AM, Martin Brown wrote:
> On 05/09/2015 18:21, rickman wrote:
>> On 9/5/2015 1:00 PM, Les Cargill wrote:
>>> bitrex wrote:
>>>> The Library of Babel is a library which contains an infinite number of
>>>> hexagonal rooms, each with four exits and four walls containing
>>>> bookshelves full of 410 page books, each page with 40 lines of 80
>>>> characters.  These books contain random permutations of the 25 basic
>>>> characters.
>>>>
>>>> https://en.wikipedia.org/wiki/The_Library_of_Babel
>>>>
>>>> Suppose the number of books in all rooms of the library is the same and
>>>> is N.  One starts in a random room in the library, and selects X books
>>>> at random from a uniform distribution on N, i.e. X <= N.  One looks at
>>>> the books, and then makes a random move with a uniform distribution
>>>> through one of the room's four exits, i.e. a random walk on Z^2.
>>>>
>>>> What is the expected value of the number of moves required before
>>>> one of
>>>> the books selected from a room in the library contains the correct text
>>>> of the short story "The Library of Babel"?
>>>
>>> You can shorten this to "randomly draw a book from an infinite
>>> library of books." All the other furniture in the description is just
>>> noise.
>
> Except it *isn't* an infinite set of books just a very large (and very
> tedious) finite one with 25^N unique volumes of which only one is
> correct. The question is uninteresting but that is another matter.

How is this description not of an infinite number of books...?

> The Library of Babel is a library which contains an infinite number of
> hexagonal rooms, each with four exits and four walls containing
> bookshelves full of 410 page books, each page with 40 lines of 80
> characters.

Infinite number of rooms each containing books.  That is an infinite 
number of books, no?


>>> This implies that there is a one-to-one and onto map from each book
>>> to the natural numbers.
>>>
>>> The probabiliity of drawing at random a number from an infinite set is
>>> still zero - lim(p(x)) at p(x)=1/N as N->infinity.
>>>
>>> So the number of moves is - surprise! - N.
>>>
>>> "Infinity is just a mechanism for reasoning about limits." - Euler.
>>
>> Really?  The probability has nothing to do with the number of values in
>> the character set or the length of the text being matched?  N is just
>> the number of books in each room.  Your mapping is wrong BTW.  The
>> library of books may be infinite, but they are not all unique.  There
>> are 25^(410*40*80) possible unique books.
>>
>> BTW, did no one notice there are hexagonal rooms with only four exits
>> and only four walls of books?  How does that work exactly?  Not your
>> typical XY grid.  Maybe they are the kind of libraries with bookshelves
>> built into the doors?

-- 

Rick

[toc] | [prev] | [next] | [standalone]


#375998

FromLes Cargill <lcargill99@comcast.com>
Date2015-09-07 13:50 -0500
Message-ID<mskm1t$jfm$2@dont-email.me>
In reply to#375972
rickman wrote:
> On 9/6/2015 4:21 AM, Martin Brown wrote:
>> On 05/09/2015 18:21, rickman wrote:
>>> On 9/5/2015 1:00 PM, Les Cargill wrote:
>>>> bitrex wrote:
>>>>> The Library of Babel is a library which contains an infinite number of
>>>>> hexagonal rooms, each with four exits and four walls containing
>>>>> bookshelves full of 410 page books, each page with 40 lines of 80
>>>>> characters.  These books contain random permutations of the 25 basic
>>>>> characters.
>>>>>
>>>>> https://en.wikipedia.org/wiki/The_Library_of_Babel
>>>>>
>>>>> Suppose the number of books in all rooms of the library is the same
>>>>> and
>>>>> is N.  One starts in a random room in the library, and selects X books
>>>>> at random from a uniform distribution on N, i.e. X <= N.  One looks at
>>>>> the books, and then makes a random move with a uniform distribution
>>>>> through one of the room's four exits, i.e. a random walk on Z^2.
>>>>>
>>>>> What is the expected value of the number of moves required before
>>>>> one of
>>>>> the books selected from a room in the library contains the correct
>>>>> text
>>>>> of the short story "The Library of Babel"?
>>>>
>>>> You can shorten this to "randomly draw a book from an infinite
>>>> library of books." All the other furniture in the description is just
>>>> noise.
>>
>> Except it *isn't* an infinite set of books just a very large (and very
>> tedious) finite one with 25^N unique volumes of which only one is
>> correct. The question is uninteresting but that is another matter.
>
> How is this description not of an infinite number of books...?
>


He may have gotten tangled in whether or not it's an
infinite set of *non-unique* books, which is... weird.

I did the same.

<snip>

-- 
Les Cargill

[toc] | [prev] | [next] | [standalone]


#376101

FromMartin Brown <|||newspam|||@nezumi.demon.co.uk>
Date2015-09-08 12:04 +0100
Message-ID<msmfb7$fba$1@speranza.aioe.org>
In reply to#375972
On 07/09/2015 17:59, rickman wrote:
> On 9/6/2015 4:21 AM, Martin Brown wrote:
>> On 05/09/2015 18:21, rickman wrote:
>>> On 9/5/2015 1:00 PM, Les Cargill wrote:
>>>> bitrex wrote:
>>>>> The Library of Babel is a library which contains an infinite number of
>>>>> hexagonal rooms, each with four exits and four walls containing
>>>>> bookshelves full of 410 page books, each page with 40 lines of 80
>>>>> characters.  These books contain random permutations of the 25 basic
>>>>> characters.
>>>>>
>>>>> https://en.wikipedia.org/wiki/The_Library_of_Babel
>>>>>
>>>>> Suppose the number of books in all rooms of the library is the same
>>>>> and
>>>>> is N.  One starts in a random room in the library, and selects X books
>>>>> at random from a uniform distribution on N, i.e. X <= N.  One looks at
>>>>> the books, and then makes a random move with a uniform distribution
>>>>> through one of the room's four exits, i.e. a random walk on Z^2.
>>>>>
>>>>> What is the expected value of the number of moves required before
>>>>> one of
>>>>> the books selected from a room in the library contains the correct
>>>>> text
>>>>> of the short story "The Library of Babel"?
>>>>
>>>> You can shorten this to "randomly draw a book from an infinite
>>>> library of books." All the other furniture in the description is just
>>>> noise.
>>
>> Except it *isn't* an infinite set of books just a very large (and very
>> tedious) finite one with 25^N unique volumes of which only one is
>> correct. The question is uninteresting but that is another matter.
>
> How is this description not of an infinite number of books...?

The total number of books in the library is infinite but the number of 
*unique* books is distinctly finite and determined by the combination of 
the 25 interchangeable symbols and the fixed length of the book. IOW

25^(40x80x410) = 5^2624000 ~ 10^(2624000log(5)) ~ 1.95 x 10^1834097

It is a very large number but it is still small when compared to any of 
the countable infinities. To put it into context there are estimated to 
be fewer than 10^90 hydrogen atoms in the entire observable universe

There are incidentally an infinite number of copies of every unique book 
in the infinite library as specified in the problem!

>> The Library of Babel is a library which contains an infinite number of
>> hexagonal rooms, each with four exits and four walls containing
>> bookshelves full of 410 page books, each page with 40 lines of 80
>> characters.
>
> Infinite number of rooms each containing books.  That is an infinite
> number of books, no?

It is an infinite number of books from a very large but still finite set 
of books. There are an infinite number of every possible book from the 
finite set somewhere in the infinite library. That is the great 
advantage of having a countably infinite number of rooms available.

The "paradox" of the Grand Hilbert Hotel might help you to understand 
the distinction.



https://en.wikipedia.org/wiki/Hilbert%27s_paradox_of_the_Grand_Hotel#The_paradox


-- 
Regards,
Martin Brown

[toc] | [prev] | [next] | [standalone]


#376102

FromDecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org>
Date2015-09-08 07:13 -0400
Message-ID<qmgtuatu5jlgqr79vtaum1e2nmuie43l0c@4ax.com>
In reply to#376101
On Tue, 8 Sep 2015 12:04:08 +0100, Martin Brown
<|||newspam|||@nezumi.demon.co.uk> Gave us:

> To put it into context there are estimated to 
>be fewer than 10^90 hydrogen atoms in the entire observable universe


  More like 10^900.  Each star...  (trillions OF STARS) Each gas
giant.... (tens of trillions of GAS GIANTS)  etc.  Each containing an
uncountable number.  Hell, the largest known star probably has that many
in it.

  There are likely 10^90 in just interstellar gasses and nebulae.

[toc] | [prev] | [next] | [standalone]


Page 2 of 3 — ← Prev page 1 [2] 3  Next page →

Back to top | Article view | sci.electronics.design


csiph-web