SW problem - vymyslite reseni?

franc@elsaco.cz franc
Středa Březen 17 11:49:40 CET 2004


Zdenek Dvorak wrote:
> 
> Toto je zpráva ve formátu MIME obsahující více částí.
> ------=_NextPart_000_000E_01C03F99.AB78F0F0
> Content-Type: text/plain;
>         charset="iso-8859-2"
> Content-Transfer-Encoding: 7bit
> 
> mam krasny problem na reseni, a momentalne me nenapada jak na to. Na prvni
> pohled se to zda malickost, ale cim vic na tom premyslim tak tim vic se v
> tom zamotavam. Treba vas napadne neco chytreho:
> 
> mate dva dvoustavove signaly o TEMER stejne freqenci se stridou 1:1. Ta
> freqence se ale prece jen o nemeritelne malicko lisi a tak se ty signaly
> vzajemne fazove posunuji. Kdyz je freqence B mensi nez A, tak se B opozduje
> (posunuje doprava) a opacne. Kazda hrana signalu B vyvola preruseni ve
> kterem se precte stav signalu A (vraci 1 nebo 0). Potrebuju algoritmus pro
> zjisteni ktery signal ma vyzsi freqenci (samozrejme vzhldem k pomalemu
> posunu pocitam, ze ten vypocet muze trvat dlouho).
> 
> diky chaos
> 
> Stav  pri zacatku mereni
> 
> A  _____~~~~~_____~~~~~_____
> 
> B  _____~~~~~_____~~~~~_____
> 
> Freq B < A
> 
> Cas T0+1
> 
> A  _____~~~~~_____~~~~~_____
> 
> B  ~_____~~~~~_____~~~~~____
> 
> Cas T0+2
> 
> A  _____~~~~~_____~~~~~_____
> 
> B  ~~_____~~~~~_____~~~~~___
> 
> Freq A < B
> 
> Cas T0+1
> 
> A  _____~~~~~_____~~~~~_____
> 
> B  ____~~~~~_____~~~~~_____~
> 
> Cas T0+2
> 
> A  _____~~~~~_____~~~~~_____
> 
> B  ___~~~~~_____~~~~~_____~~
> 
> ------=_NextPart_000_000E_01C03F99.AB78F0F0
> Content-Type: text/html;
>         charset="iso-8859-2"
> 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-2">
> <META content=3D"MSHTML 5.50.4134.600" name=3DGENERATOR>
> <STYLE></STYLE>
> </HEAD>
> <BODY bgColor=3D#ffffff>
> <DIV><FONT face=3DArial size=3D2><SPAN class=3D788214419-26102000>mam =
> krasny problem=20
> na reseni, a momentalne me nenapada jak na to. Na prvni pohled se to zda =
> 
> malickost, ale cim vic na tom premyslim tak tim vic se v tom zamotavam. =
> Treba=20
> vas napadne neco chytreho:</SPAN></FONT></DIV>
> <DIV><FONT face=3DArial size=3D2><SPAN=20
> class=3D788214419-26102000></SPAN></FONT>&nbsp;</DIV>
> <DIV><FONT face=3DArial size=3D2><SPAN class=3D788214419-26102000>mate=20
> dva&nbsp;dvoustavove signaly o TEMER stejne freqenci se stridou 1:1. Ta =
> freqence=20
> se ale prece jen o nemeritelne malicko lisi a tak se ty signaly&nbsp; =
> vzajemne=20
> fazove posunuji. Kdyz je freqence B mensi nez A, tak se B opozduje =
> (posunuje=20
> doprava) a opacne. Kazda hrana signalu B vyvola preruseni ve kterem se =
> precte=20
> stav signalu A (vraci 1 nebo 0). Potrebuju algoritmus pro zjisteni ktery =
> signal=20
> ma vyzsi freqenci (samozrejme vzhldem k pomalemu posunu pocitam, ze ten =
> vypocet=20
> muze trvat dlouho). </SPAN></FONT></DIV>
> <DIV><FONT face=3DArial size=3D2><SPAN=20
> class=3D788214419-26102000></SPAN></FONT>&nbsp;</DIV>
> <DIV><FONT face=3DArial size=3D2><SPAN class=3D788214419-26102000>diky =
> chaos=20
> </SPAN></FONT></DIV>
> <DIV><FONT face=3DArial size=3D2><SPAN=20
> class=3D788214419-26102000></SPAN></FONT>&nbsp;</DIV>
> <DIV><FONT face=3DArial size=3D2><SPAN=20
> class=3D788214419-26102000></SPAN></FONT>&nbsp;</DIV>
> <DIV><FONT face=3DArial size=3D2><SPAN =
> class=3D788214419-26102000>Stav&nbsp; pri=20
> zacatku mereni</SPAN></FONT></DIV>
> <DIV><FONT face=3DArial size=3D2><SPAN=20
> class=3D788214419-26102000></SPAN></FONT>&nbsp;</DIV>
> <DIV><FONT face=3DArial size=3D2><SPAN =
> class=3D788214419-26102000>A&nbsp;=20
> _____~~~~~_____~~~~~_____</SPAN></FONT></DIV>
> <DIV><FONT face=3DArial size=3D2><SPAN class=3D788214419-26102000>
> <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
> class=3D788214419-26102000></SPAN></FONT>&nbsp;</DIV>
> <DIV><FONT face=3DArial size=3D2><SPAN =
> class=3D788214419-26102000>B&nbsp;=20
> _____~~~~~_____~~~~~_____</SPAN></FONT></DIV>
> <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
> class=3D788214419-26102000></SPAN></FONT>&nbsp;</DIV>
> <DIV><FONT face=3DArial size=3D2><SPAN class=3D788214419-26102000>
> <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
> class=3D788214419-26102000></SPAN></FONT>&nbsp;</DIV>
> <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
> class=3D788214419-26102000></SPAN></FONT>&nbsp;</DIV>
> <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
> class=3D788214419-26102000></SPAN></FONT>&nbsp;</DIV>
> <DIV><FONT face=3DArial size=3D2><SPAN class=3D788214419-26102000>Freq B =
> &lt;=20
> A</SPAN></FONT></DIV>
> <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
> class=3D788214419-26102000></SPAN></FONT>&nbsp;</DIV>
> <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
> class=3D788214419-26102000></SPAN></FONT>&nbsp;</DIV>
> <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
> class=3D788214419-26102000>Cas=20
> T0+1</SPAN></FONT></DIV>
> <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
> class=3D788214419-26102000></SPAN></FONT>&nbsp;</DIV>
> <DIV><FONT face=3DArial size=3D2><SPAN =
> class=3D788214419-26102000>A&nbsp;=20
> _____~~~~~_____~~~~~_____&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
> &nbsp;&nbsp;&nbsp;=20
> </SPAN></FONT></DIV>
> <DIV><FONT face=3DArial size=3D2><SPAN class=3D788214419-26102000>
> <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
> class=3D788214419-26102000></SPAN></FONT>&nbsp;</DIV>
> <DIV><FONT face=3DArial size=3D2><SPAN =
> class=3D788214419-26102000>B&nbsp;=20
> ~_____~~~~~_____~~~~~____</SPAN></FONT></DIV>
> <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
> class=3D788214419-26102000><FONT=20
> face=3DArial size=3D2><SPAN=20
> class=3D788214419-26102000></SPAN></FONT></SPAN></FONT>&nbsp;</DIV>
> <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
> class=3D788214419-26102000><FONT=20
> face=3DArial size=3D2><SPAN=20
> class=3D788214419-26102000></SPAN></FONT></SPAN></FONT>&nbsp;</DIV>
> <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
> class=3D788214419-26102000><FONT=20
> face=3DArial size=3D2><SPAN=20
> class=3D788214419-26102000></SPAN></FONT></SPAN></FONT>&nbsp;</DIV>
> <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
> class=3D788214419-26102000><FONT=20
> face=3DArial size=3D2><SPAN class=3D788214419-26102000>Cas=20
> T0+2</SPAN></FONT></SPAN></FONT></DIV>
> <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
> class=3D788214419-26102000><FONT=20
> face=3DArial size=3D2><SPAN=20
> class=3D788214419-26102000></SPAN></FONT></SPAN></FONT>&nbsp;</DIV>
> <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
> class=3D788214419-26102000><FONT=20
> face=3DArial size=3D2><SPAN class=3D788214419-26102000>A&nbsp;=20
> _____~~~~~_____~~~~~_____</SPAN></FONT></DIV>
> <DIV>
> <DIV><FONT face=3DArial size=3D2><SPAN class=3D788214419-26102000>
> <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
> class=3D788214419-26102000></SPAN></FONT>&nbsp;</DIV>
> <DIV><FONT face=3DArial size=3D2><SPAN =
> class=3D788214419-26102000>B&nbsp;=20
> ~~_____~~~~~_____~~~~~___</SPAN></FONT></DIV>
> <DIV><FONT face=3DArial size=3D2><SPAN=20
> class=3D788214419-26102000></SPAN></FONT>&nbsp;</DIV>
> <DIV><FONT face=3DArial size=3D2><SPAN=20
> class=3D788214419-26102000></SPAN></FONT>&nbsp;</DIV>
> <DIV><FONT face=3DArial size=3D2><SPAN=20
> class=3D788214419-26102000></SPAN></FONT>&nbsp;</DIV>
> <DIV><FONT face=3DArial size=3D2><SPAN=20
> class=3D788214419-26102000></SPAN></FONT>&nbsp;</DIV>
> <DIV><FONT face=3DArial size=3D2><SPAN class=3D788214419-26102000>
> <DIV><FONT face=3DArial size=3D2><SPAN =
> class=3D788214419-26102000>Freq&nbsp;A &lt;=20
> B&nbsp;</SPAN></FONT></DIV>
> <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
> class=3D788214419-26102000></SPAN></FONT>&nbsp;</DIV>
> <DIV><FONT face=3DArial size=3D2><SPAN class=3D788214419-26102000>Cas=20
> T0+1</SPAN></FONT></DIV>
> <DIV><FONT face=3DArial size=3D2><SPAN=20
> class=3D788214419-26102000></SPAN></FONT>&nbsp;</DIV>
> <DIV><FONT face=3DArial size=3D2><SPAN =
> class=3D788214419-26102000>A&nbsp;=20
> _____~~~~~_____~~~~~_____</SPAN></FONT></DIV>
> <DIV><FONT face=3DArial size=3D2><SPAN class=3D788214419-26102000>
> <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
> class=3D788214419-26102000></SPAN></FONT>&nbsp;</DIV>
> <DIV><FONT face=3DArial size=3D2><SPAN =
> class=3D788214419-26102000>B&nbsp;=20
> ____~~~~~_____~~~~~_____~</SPAN></FONT></DIV>
> <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
> class=3D788214419-26102000><FONT=20
> face=3DArial size=3D2><SPAN=20
> class=3D788214419-26102000></SPAN></FONT></SPAN></FONT>&nbsp;</DIV>
> <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
> class=3D788214419-26102000><FONT=20
> face=3DArial size=3D2><SPAN=20
> class=3D788214419-26102000></SPAN></FONT></SPAN></FONT>&nbsp;</DIV>
> <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
> class=3D788214419-26102000><FONT=20
> face=3DArial size=3D2><SPAN class=3D788214419-26102000>Cas=20
> T0+2</SPAN></FONT></SPAN></FONT></DIV>
> <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
> class=3D788214419-26102000><FONT=20
> face=3DArial size=3D2><SPAN=20
> class=3D788214419-26102000></SPAN></FONT></SPAN></FONT>&nbsp;</DIV>
> <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
> class=3D788214419-26102000><FONT=20
> face=3DArial size=3D2><SPAN class=3D788214419-26102000>A&nbsp;=20
> _____~~~~~_____~~~~~_____</SPAN></FONT></DIV>
> <DIV>
> <DIV><FONT face=3DArial size=3D2><SPAN class=3D788214419-26102000>
> <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
> class=3D788214419-26102000></SPAN></FONT>&nbsp;</DIV>
> <DIV><FONT face=3DArial size=3D2><SPAN =
> class=3D788214419-26102000>B&nbsp;=20
> ___~~~~~_____~~~~~_____~~</SPAN></FONT></DIV>
> <DIV><FONT face=3DArial size=3D2><SPAN=20
> class=3D788214419-26102000></SPAN></FONT>&nbsp;</DIV>
> <DIV><FONT face=3DArial size=3D2><SPAN=20
> class=3D788214419-26102000></SPAN></FONT>&nbsp;</DIV>
> <DIV><FONT face=3DArial size=3D2><SPAN=20
> class=3D788214419-26102000></SPAN></FONT>&nbsp;</DIV></SPAN></FONT></DIV>=
> </SPAN></FONT></DIV></SPAN></FONT></DIV></SPAN></FONT></DIV></SPAN></FONT=
> ></DIV></SPAN></FONT></DIV></SPAN></FONT></DIV></SPAN></FONT></DIV></SPAN=
> ></FONT></DIV></BODY></HTML>
> 
> ------=_NextPart_000_000E_01C03F99.AB78F0F0--

dost bude záležet na tom, ojaké frekvence se jedná, takto je to problém teoreticky řešitelný, ale pro praktické zadání
nedostatečný
-- 
___________________________________________________________________
Jindřich Franc                    mailto:franc@elsaco.cz
ELSACO - Ing.Jindrich Franc       http://www.elsaco.cz
Jaselska 177, 280 00 Kolin 3      http://www.promos.cz
tel.: +420 321 727753
fax.: +420 321 727759             můžete mi psát i česky ISO-8859-2
___________________________________________________________________






Další informace o konferenci Hw-list