Go back to previous page
Forum URL: http://www.cut-the-knot.org/cgi-bin/dcforum/forumctk.cgi
Forum Name: This and that
Topic ID: 137
Message ID: 8
#8, RE: Exchanging information between n persons
Posted by alexb on Aug-08-01 at 10:43 PM
In response to message #7
LAST EDITED ON Aug-08-01 AT 10:52 PM (EST)

>My
>gut feel tells me that
>it could have something to
>do with the range of
>the given number ie

Right

><=4,
><=16, <=64 <=256 and a
>div()/mod() in the resultant formula.
>But then I may be
>totally wrong.

You are, but not totally.

The relevant ranges are 4, 8, 16, 32, ...

>For eg: if <=4 then seems
>to be 2*n-3
>
>For 4<n<=16 seems to be 2n-4

For 8, it's 11. How does it fit with your formula?

You can prove by induction that for N = 2n, n > 1, that 3N/2 - 1 is a sufficient number of calls. Whether it's minimal I do not know. Whether you can interpolate between the powers of 2, I do not know either.