Jump to content


Welcome to BrainDen.com - Brain Teasers Forum

Welcome to BrainDen.com - Brain Teasers Forum. Like most online communities you must register to post in our community, but don't worry this is a simple free process. To be a part of BrainDen Forums you may create a new account or sign in if you already have an account.
As a member you could start new topics, reply to others, subscribe to topics/forums to get automatic updates, get your own profile and make new friends.

Of course, you can also enjoy our collection of amazing optical illusions and cool math games.

If you like our site, you may support us by simply clicking Google "+1" or Facebook "Like" buttons at the top.
If you have a website, we would appreciate a little link to BrainDen.

Thanks and enjoy the Den :-)
Guest Message by DevFuse
 

Photo
- - - - -

Synchronizing clock


  • Please log in to reply
7 replies to this topic

#1 Anza Power

Anza Power

    Junior Member

  • Members
  • PipPip
  • 80 posts

Posted 10 July 2013 - 08:49 PM

You want to set your computer's clock to be synchronized with the clock of a distant server.

 

You communicate with the server by sending packets (messages) the time it takes for a packet to travel from your computer to the server is t1 which is consistent(but unknown) and the time it takes from the server to your computer is t2 also consistent and unknown, t1 isn't necessarily equal to t2.

 

Assuming you can write any code you want on your computer and the server, can you think of a way to synchronize your clocks?


Edited by Anza Power, 10 July 2013 - 08:50 PM.

  • 0

#2 James33

James33

    Junior Member

  • Members
  • PipPip
  • 38 posts

Posted 11 July 2013 - 01:16 AM

I'm tired so my reasoning is probably flawed:

 

Spoiler for


  • 0

#3 gavinksong

gavinksong

    Advanced Member

  • Members
  • PipPipPip
  • 222 posts

Posted 11 July 2013 - 12:09 PM

I'm tired so my reasoning is probably flawed:

 

Spoiler for

Spoiler for flaw?


  • 0

#4 DeGe

DeGe

    Advanced Member

  • Members
  • PipPipPip
  • 128 posts
  • Gender:Male
  • Location:Paris

Posted 11 July 2013 - 01:05 PM

Spoiler for Its all about the timing

  • 0

#5 Anza Power

Anza Power

    Junior Member

  • Members
  • PipPip
  • 80 posts

Posted 11 July 2013 - 03:19 PM

Spoiler for Its all about the timing

 

Spoiler for


  • 0

#6 Anza Power

Anza Power

    Junior Member

  • Members
  • PipPip
  • 80 posts

Posted 11 July 2013 - 03:26 PM

Ok now here's what I think:

 

Spoiler for


  • 0

#7 plasmid

plasmid

    Senior Lolcat

  • VIP
  • PipPipPipPip
  • 1461 posts
  • Gender:Male

Posted 11 July 2013 - 03:52 PM

It's not impossible.


  • 0

#8 plasmid

plasmid

    Senior Lolcat

  • VIP
  • PipPipPipPip
  • 1461 posts
  • Gender:Male

Posted 12 July 2013 - 02:09 AM

I take that back, it probably is impossible. The three equations with three unknowns I could set up turned out to be degenerate.  :duh:


  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users