Shital's Icel logo Shital's Icel

 
My Weblog



    Home 

    Stuff 2 Do 

    Cool Books 

    Downloads 

    Geeks Only 

    Essays 

    Photo Albums 

    Share 

    Say Something 

    My Blog 

    About me 

    About Site 




Some blogs on Gizmos, music, science, math, physics, hikes, adventure outings, programming, books and such stuff...

Subscribe feeds: RSS 2.0 | Atom 1.0 | CDF

 Monday, March 14, 2005
Algorithm Puzzle - Sync'ing Big Lists And Nodes 3/14/2005 6:05:02 PM (Pacific Daylight Time, UTC-07:00)


Here's a mathematical algorithmic puzzle for all you bright challange-seeking minds:

I've my own big business contact list and so does my friends. One day we decide to call up with each other on phone (only 2 people on one line), talk to each other and have our lists sync'ed up with each other. That is to say, we add any contacts we didn't had already, update any outdated ones and delete anyone who has gone out of business. However, you will be pleased to know that content of any two contact lists are pretty much same with only few differences. Infect many of my friends have identical contact lists and so they don't need sync'ing at all (though they don't know if they do have identical lists). We'll let you arrange pairs of people calling each other any way and at any time you'd like. Eventually, we hope to end up with exactly identical one mega list. But we want you to be fair, i.e., schemes like appointing one "central person" and having everyone talk to him in turns and let him do all the sync work is not cool. That's not fair for him and that would take lot of time too because talking in turns uses only one phone line at a time. For us "fair" means each person only needs to talk with same number of people as every other person needs to. And yes, before I forget to mention, our contact lists are really big and so does the count of my friends - both currently running over a million - and of course, us busy tired souls want you to finish this exercise in as little time and effort as possible.

So how would you do that?

[UPDATE: I'd posted the answer in the off topic group. Excerpt is in comments. Enjoy!]

More : Mathematics | Programming Permanent Link: #
 



Back To Latest Entries

Past entries at...

Archive 1

Archive 2

   

~ Archives ~

Past entries:
(Since Oct 2002)

Archive 1

Archive 2



~ Search ~


~ Categories ~




Subscribe feeds: RSS 2.0 | Atom 1.0 | CDF


Get these blogs in your email:

I'm jotting down these blogs in real time and that means that content (the "soul") has more priority than grammatical accuracy and spellings (the "body").
I use newtelligence dasBlog 1.8.5223.2 as my blog engine. Its not perfact but hey its with source!
Sign In

  © Shital Shah, 1998-2007. You may freely copy and distribute material available on this site created by myself. All rights reserved. Please read the Copyright, Terms Of Use and Desclaimer