last day (29 days later) » 
02:00 - 08:0008:00 - 19:00

user61230
8:01 AM
AHA
 
user61230
Two people are guaranteed to carry the message.
 
user61230
On the first night, you assign the person to your left as the second message carrier.
 
user61230
(This might run into the same problem as before)
 
user61230
Er, hm.
 
user61230
I'm just going to add that to the fact repository for now. If two people have a message, it is guaranteed to be able to get to a third person.
 
user61230
8:03 AM
In general, if $n$ people are carrying a message, you can guarantee that you can get it to $n+1$ people simply by having all $n$ broadcast it.
 
only as long as it is the same message
because of the scheme we're using
the warden can't stop everyone broadcasting the same number at once
and there is an upper limit
if you hear the message m m . 2 times, then you can be sure it's fully propagated and equals n
 
user61230
Hmmm.
 
which I'm sure I was arguing about earlier :D
not sure that shower helped at all
 
user61230
There's no way for the warden to stop $n$ people from attaining a $+1$th person.
 
yes
 
user61230
8:09 AM
That's important. What if everybody who has a number $m$ broadcasts at the same time?
 
if m == n, then by m.2 you will be getting the message consistently every cycle
 
user61230
sorry, I'm being unclear
 
but if m < n by a large quantity, the warden can easily fake it
 
user61230
$m$ starts at zero since nobody has heard any number
 
user61230
Except you; you start by broadcasting $1$.
 
8:10 AM
yeah
what does he broadcast next?
and what do you?
 
user61230
if he's heard a number before, he broadcasts 1; otherwise, he broadcasts 2
 
so, if new, + 1, otherwise repeat?
 
user61230
ah, nevermind, same trap as before
 
user61230
the counting method I'm going for is: everyone starts at zero; if you hear a number for the first time, add one to it
 
so, how about... if new, +1, otherwise rebroadcast the last you heard?
I think there's something fundamentally right to each node adding one once and only once
 
user61230
8:12 AM
that's the basic solution to counting problems
 
but then you have to deal with convergeances
 
user61230
so it's probably a good place to start, but yeah, how do we know if everyone has heard a number...
 
user61230
oh that's easy
 
user61230
oh nevermind, it's easy if you know $n$.
 
xD
that's exactly what I mean
 
user61230
8:13 AM
>__>
 
for any given n
there is a much bigger n with which the warden can simulate n
I wonder if there's a prime element to it
what if each nth node doesn't add 1, but a prime
that means each sum is a sum of primes
 
user61230
$2^n$ might be more identifying
 
no, because then you muddle nodes
if your sum is a sum of primes, you've encoded every node visited
it's the same as a hash function, kinda
when you're encoding seperate fields
you tend to use primes to give them different modulus
 
user61230
hm, yeah
 
if I say 35 to a node
you know I'm the result of visiting node 7 and 5
 
user61230
8:19 AM
how do nodes learn their number?
 
well, I act as a seeder of sorts
let's say I give out a new prime each cycle
so I give 2 to my first node
let's say the warden is cheeky and leaves that prisoner there
I give him 3
he 'gives up' 2, passes it onto another node, and takes on 3
but he also acts as the head of the 2x3 chain
so next turn he broadcasts 6
 
user61230
ahhhhh
 
user61230
each node can be given an identifying prime number
 
I think so
 
user61230
ohh
 
8:23 AM
I think we're starting to assemble sufficient elements to do it
 
user61230
okay, so each node broadcasts the products of all the primes it's heard (only one of each) up to this point
 
user61230
so let's say you've seeded 2, 3, and 5
 
user61230
you broadcast 7, and 3 hears it
 
user61230
now, 3 broadcasts 21
 
no
well, yes, if it only has 3
ultimately all nodes are going to collect a full set
and that full set will be of size n
but it will be encoded into the product of the first n primes
which is going to be a bloody huge number
and then we have to square that to get the mininum number of days to propagate it
and square it again to be sure
 
user61230
8:26 AM
hold on a sec, I'm not sure I follow the propagation method
 
user61230
let's say you've heard a set $p_i$ of primes, and hear a prime set $p_o$
 
user61230
that gives you a new node ID, and you broadcast $\Pi \{p_i...p_o\}$?
 
each prime is seeded once
 
user61230
in other words, if you are $2*3*7*11$ with node ID 11, and you hear $5*7*13$, you become $2*3*5*7*11*13$?
 
so any overlap/commonality means you've visited the same place twice
which is what happens when the warden mucks around
but we only care about unique visits
let's say the propagation is deliberately slow
 
user61230
8:30 AM
ahh, I see
 
user61230
by broadcasting 6, you're saying "I am node ID 3, and node ID 2 has passed through here."
 
yes
it's only the first new node that takes on a new prime
 
user61230
then you take on whatever ID was passed to you, and tack it onto your current product
 
that becomes its ID
everyone know the new prime because of the timing
so I 'seed' the prime, offering it up to node A
 
user61230
when node A broadcasts it, does node A give up that ID?
 
user61230
8:33 AM
in other words, node A receives $p_1$. on the next iteration, node A broadcasts $p_1$ and receives nothing; what does node A broadcast after that?
 
hrrrm
each node must rebroadcast each cycle
 
user61230
but that means multiple people could take on the same node ID
 
yeah, that's what I'm thinking of trying to avoid
 
user61230
it's possible to indicate which position is your current ID using powers of two, but for large $n$ you're going to end up with $2^{2n}$ iterations
 
I mean, you can still use powers of primes
they still result in unique numbers
 
user61230
8:35 AM
hmm
 
problem is, if I tell a 7 '21'
 
user61230
how about this: 2 is reserved to indicate whether the maximum number is your current ID?
 
does it know if the 7 was itself or not?
yeeah
 
user61230
in other words, if you receive $3*7$, you know that the node before you has seen 3 and 7, but doesn't currently have an ID
 
we can have a 'new' flag
 
user61230
8:36 AM
but if you see $2*3*7$, then you know that the node before you had ID 7, so you're now ID 7
 
that still doesn't stop duplicates, though
 
user61230
sure does
 
user61230
someone can't become a node without the person behind them telling them to become that node
 
user61230
and only one person has that power at a time
 
then the warden traps it
I broadcasts new 11 to node A
 
user61230
8:37 AM
warden can't trap who's been seen
 
warden moves node A to broadcast to me
I get new 11
 
user61230
ah, but on the next step, both you and A are broadcasting that you've seen 11
 
user61230
it doesn't matter who 11 actually is, just that you've both seen it
 
we haven't, 11 doesn't exist yet
and the warden could arrange for both of us to create a new 11
or one of us
but we can never tell which
however it cannot only ever be 1 of us
 
user61230
I thought only the first person could create new prime IDs?
 
8:39 AM
yeah, but if you're old, you can't swallow it
 
user61230
?
 
in order to prevent trapping, the prime must be broadcast an extra 1 time per cycle
so that's once from me, every cycle
 
user61230
nope!
 
user61230
wait hm
 
user61230
shoot, yep
 
8:40 AM
otherwise the warden traps the rebroadcast
hot damn, I'm late for work
deadly puzzle, this
 
user61230
hrrrrrng, we're so close
 
user61230
8:53 AM
okay, so we might be able to solve this by introducing a checksum step
 
user61230
which might be necessary anyway in order to detect if the puzzle is solved
 
user61230
there is an algorithm to generate the highest prime
 
user61230
hrrrrrng
 
user61230
9:25 AM
periodically, you send out a stop signal
 
user61230
Someone who does not have an ID must hear it after $q$ iterations, where $q$ is the number of primes currently out in the wild
 
user61230
If they hear it, they issue an abort command, which must come back to you in.... dammit, you don't know how many iterations
 
user61230
GOT IT I think
 
user61230
On prime-sending steps, follow the above rules
 
user61230
Wait $k$ days after sending out the $k$th prime. (i.e. let $p_1$ out for one day, so that at most one person knows about it)
 
user61230
9:33 AM
After that, enter a checksum step.
 
user61230
During the checksum, everyone broadcasts the number of primes they've seen.
 
user61230
If they receive a number different from their own, then they instead broadcast an abort signal.
 
user61230
Because there are $k+1$ days in the checksum step, the abort signal must come back to you if it is going to at all.
 
user61230
However, if the abort signal doesn't come back, then $k$ is the number of other people in the circle.
 
user61230
If it does come back, broadcast $p_{k+1}$ and start over.
 
user61230
9:35 AM
Boom. Solved.
 
user61230
Er, wait, crap.
 
user61230
10:01 AM
Okay, here's the core of the problem: ensure that $k$ people have heard a number on day $k$. It doesn't even matter what that number is; it could just be 3.
 
user61230
Hell, it doesn't even have to be a specific number.
 
user61230
I have the verification algorithm down; you just need to know how many people should have heard something, and let one more than that quantity tell you what they've heard. If someone tells you "crap, this thing is screwed up," you jump onto the next iteration.
 
user61230
It's ensuring $k$ on iteration $k$ that's the problem.
 
10:26 AM
Did you find a solution at the end?
 
 
6 hours later…
user61230
4:13 PM
I passed out >_>
 
5:05 PM
heh
someone posted a solution..
 
user61230
there is still room! it's a random solution
 
5:18 PM
I have a concrete solution that will finish in, well, not a fixed time, but a fixed function of n
no, wait, the warden screws with it
.... actually, it still works. I think :D
lemme ponder a little more
yeah, it works
it's actually quite simple, when you think about it. bet someone will beat me to writing it up :3
 
user61230
5:38 PM
How does it work?
 
magic!
I'm typing it up now
 
user61230
Ahhhh, of course.
 
user61230
Magic. I should have known!
 
6:07 PM
hmmm
given a ring of size k
and every prisoner turning on their light if they saw their light on the night before
and you leaving your light on permanently...
what's the fastest you can turn on all the lights?
log2 k, right?
 
user61230
$\lceil\log_2 k\rceil$, yeah
 
6:27 PM
actually the warden does screw with it
grr.
 
user61230
6:53 PM
hm
 
02:00 - 08:0008:00 - 19:00

  last day (29 days later) »