由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - Question: Leader Selection
相关主题
General Interview Questions来道概率题?
Complete List of Behavioral Interview Questions (转载)USCIS Completes the H-1B Cap Random Selection Process for FY 2016
maybe screwed by the last personTopK nearest points为啥用heap不用selection sort?
收到G公司一个recruiter的来信请教一个数据库面试题
Interview question: how would your boss describe you?Google phone interview questions
问一个常见面试题,求讲解请教competency-based question
抽签结束了!!! USCIS Runs Random Selection Process For HSample questions for the code screening of Amazon's "hiring event"?
笔试题目求解[合集] 那个Google random generate 1-7的题怎么做啊?
相关话题的讨论汇总
话题: leader话题: question话题: answer话题: selection话题: time
进入JobHunting版参与讨论
1 (共1页)
b*****n
发帖数: 143
1
From MIT website
Question: Leader Election
Describe a technique to identify a
"leader" among a group of 10 identical
servers that are all connected to every
other server. There are no prior
distinguishing characteristics of any of
them and the same program to identify the
leader starts running on all of them at
the same time. After an answer is given,
ask how much network traffic it requires
and, if "ties" are possible, ask how you
can break ties.
Good Answer:
Have each server wait a random amount of
time and then say "I'm it." The "I'm it"
announcement is time‐stamped, and the
computer that time‐stamped its
announcement first is elected the leader.
This approach requires sending out 9
messages. If there is a tie, the
computers can repeat the procedure.
Note that other answers are possible, but
every correct answer will use randomness
in some way.
1 (共1页)
进入JobHunting版参与讨论
相关主题
[合集] 那个Google random generate 1-7的题怎么做啊?Interview question: how would your boss describe you?
请教一道题目问一个常见面试题,求讲解
randomized quick sort的最坏情况时间复杂度抽签结束了!!! USCIS Runs Random Selection Process For H
问一下shuffle card问题笔试题目求解
General Interview Questions来道概率题?
Complete List of Behavioral Interview Questions (转载)USCIS Completes the H-1B Cap Random Selection Process for FY 2016
maybe screwed by the last personTopK nearest points为啥用heap不用selection sort?
收到G公司一个recruiter的来信请教一个数据库面试题
相关话题的讨论汇总
话题: leader话题: question话题: answer话题: selection话题: time