From: "Michael Elkin" <elkinm@cs.bgu.ac.il>
To: "Eitan Yanovsky" <eitanyan@gmail.com>
References: <4c7beb7a0701310442i2903e4dem6bb1033c9acabc48@mail.gmail.com> <00bf01c74536$6f3ae630$26294884@wincs.cs.bgu.ac.il> <4c7beb7a0701310501l3b859w6892670f2c4dd003@mail.gmail.com>
Subject: Re: Question about an exam
Date: Wed, 31 Jan 2007 17:19:34 +0200
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_0121_01C7455B.F9FDF8A0"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.3790.2663
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.2757

This is a multi-part message in MIME format.

------=_NextPart_000_0121_01C7455B.F9FDF8A0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi again,

   A simpler solution: consider a path v0,v1,...,v_{k}, with v0 being =
the root.
Initial distribution of items is v_k keeps {1,2,..,k},=20
v_{k-1} keeps {k+1,k+2,..,2k}, ...,
 v1 keeps {k(k-1)+1,...,k(k-1)+k}.

After k rounds this all shifts by 1 (assuming that the largest among k =
smallest items is sent):
v_{k-1} keeps  {1,2,..,k},=20
v_{k-2} keeps {k+1,k+2,..,2k}, ...,
 v1 keeps {k(k-2)+1,...,k(k-2)+k}.

Hence the root learns {1,2,..,k} after k^2 rounds.
Rad =3D k, Time =3D k^2.

Best,
Michael
  ----- Original Message -----=20
  From: Eitan Yanovsky=20
  To: Michael Elkin=20
  Sent: Wednesday, January 31, 2007 3:01 PM
  Subject: Re: Question about an exam


  Yes, my question is about the solution.
  The explanation there states what I've written and it seems wrong to =
me.

  =20
  On 1/31/07, Michael Elkin <elkinm@cs.bgu.ac.il> wrote:=20
    Hi,

       There is a link from the class webpage to solutions of last year =
exams. Did you try using them?

    Best,
    Michael
      ----- Original Message -----=20
      From: Eitan Yanovsky=20
      To: elkinm@cs.bgu.ac.il=20
      Sent: Wednesday, January 31, 2007 2:42 PM
      Subject: Question about an exam

      =20
      Hello,
      I've got a question about Moed a of 2005 question 3 section b.
      The algorithm that is stated there sends on each round a number =
upwards and it wont resend it again.
      I dont understand how in the solution you gave, if a path is of =
length sqrt(M) and it has sqrt(M) values on the edge of it it will take =
o(M) time to detain one value. It seems that it works as a pipeline =
converagecast simply with no order in which to send the values. each =
round one item will be sent up, then at the worst case the item with the =
lowest value will be sent upwards after Sqrt(M) rounds but now it can't =
be detailed another Sqrt(M) rounds because all the other items that were =
sent upwards before him have already been sent up.=20
      It seems like at the worst case, the item with the lowest value =
will reach the start of the path after Sqrt(M) rounds.

      Am I wrong?
      Thanks
      Eitan


------=_NextPart_000_0121_01C7455B.F9FDF8A0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.5730.11" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi again,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp; A simpler solution: =
consider a path=20
v0,v1,...,v_{k}, with v0 being the root.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Initial distribution of items is v_k =
keeps=20
{1,2,..,k}, </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>v_{k-1} keeps {k+1,k+2,..,2k}, =
...,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;v1 keeps=20
{k(k-1)+1,...,k(k-1)+k}.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>After k rounds this all shifts by 1 =
(assuming that=20
the largest among k smallest items is sent):</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>v_{k-1} keeps&nbsp;&nbsp;{1,2,..,k},=20
<DIV><FONT face=3DArial size=3D2>v_{k-2} keeps {k+1,k+2,..,2k},=20
...,</FONT></DIV></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2>&nbsp;v1 keeps=20
{k(k-2)+1,...,k(k-2)+k}.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>Hence the root learns {1,2,..,k} after k^2 rounds.</DIV>
<DIV>Rad =3D k, Time =3D k^2.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Best,</DIV>
<DIV>Michael</DIV></FONT></DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV=20
  style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
  <A title=3Deitanyan@gmail.com href=3D"mailto:eitanyan@gmail.com">Eitan =

  Yanovsky</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A =
title=3Delkinm@cs.bgu.ac.il=20
  href=3D"mailto:elkinm@cs.bgu.ac.il">Michael Elkin</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Wednesday, January 31, =
2007 3:01=20
  PM</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> Re: Question about an =
exam</DIV>
  <DIV><BR></DIV>
  <DIV>Yes, my question is about the solution.</DIV>
  <DIV>The explanation there states what I've written and it seems wrong =
to=20
  me.<BR><BR>&nbsp;</DIV>
  <DIV><SPAN class=3Dgmail_quote>On 1/31/07, <B =
class=3Dgmail_sendername>Michael=20
  Elkin</B> &lt;<A =
href=3D"mailto:elkinm@cs.bgu.ac.il">elkinm@cs.bgu.ac.il</A>&gt;=20
  wrote:</SPAN>=20
  <BLOCKQUOTE class=3Dgmail_quote=20
  style=3D"PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: =
#ccc 1px solid">
    <DIV bgcolor=3D"#ffffff">
    <DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
    <DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp; There is a link from =
the class=20
    webpage to solutions of last year exams. Did you try using=20
them?</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
    <DIV><FONT face=3DArial size=3D2>Best,</FONT></DIV><SPAN class=3Dsg>
    <DIV><FONT face=3DArial size=3D2>Michael</FONT></DIV></SPAN>
    <DIV><SPAN class=3De id=3Dq_11078339862d45df_2>
    <BLOCKQUOTE dir=3Dltr=20
    style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
      <DIV style=3D"FONT: 10pt arial">----- Original Message ----- =
</DIV>
      <DIV style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial"><B>From:</B> =
<A=20
      title=3Deitanyan@gmail.com=20
      onclick=3D"return top.js.OpenExtLink(window,event,this)"=20
      href=3D"mailto:eitanyan@gmail.com" target=3D_blank>Eitan =
Yanovsky</A> </DIV>
      <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A =
title=3Delkinm@cs.bgu.ac.il=20
      onclick=3D"return top.js.OpenExtLink(window,event,this)"=20
      href=3D"mailto:elkinm@cs.bgu.ac.il" =
target=3D_blank>elkinm@cs.bgu.ac.il</A>=20
      </DIV>
      <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Wednesday, January =
31, 2007=20
      2:42 PM</DIV>
      <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> Question about an =
exam</DIV>
      <DIV><BR>&nbsp;</DIV>
      <DIV>Hello,</DIV>
      <DIV>I've got a question about Moed a of 2005 question 3 section =
b.</DIV>
      <DIV>The algorithm that is stated there sends on each round a =
number=20
      upwards and it wont resend it again.</DIV>
      <DIV>I dont understand how in the solution you gave, if a path is =
of=20
      length sqrt(M) and it has sqrt(M) values on the edge of it it will =
take=20
      o(M) time to detain one value. It seems that it works as a =
pipeline=20
      converagecast simply with no order in which to send the values. =
each round=20
      one item will be sent up, then at the worst case the item with the =
lowest=20
      value will be sent upwards after Sqrt(M) rounds but now it can't =
be=20
      detailed another Sqrt(M) rounds because all the other items that =
were sent=20
      upwards before him have already been sent up. </DIV>
      <DIV>It seems like at the worst case, the item with the lowest =
value will=20
      reach the start of the path after Sqrt(M) rounds.</DIV>
      <DIV>&nbsp;</DIV>
      <DIV>Am I wrong?</DIV>
      <DIV>Thanks</DIV>
      =
<DIV>Eitan</DIV></BLOCKQUOTE></SPAN></DIV></DIV></BLOCKQUOTE></DIV><BR></=
BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0121_01C7455B.F9FDF8A0--

