May 20, 2009

nice “puzzle”

Excerpt from Born, A., Hurkens, C.A.J., Woeginger, G. (2008). The Freudenthal problem and its ramifications (Part III). Bulletin of the European Association for Theoretical Computer Science, 95, 201-219.

Originally from G. Gamow and M. Stern (1958). Puzzle-Math. Macmillan, London.

During the Nazi occupation of France four passengers were riding
in a compartment of a train rolling from Paris to Marseille: A young
and very good-looking girl, an old lady, an officer of the German occupation
forces, and a middle-aged Frenchman of indefinite profession.
None of them knew any of the others, and no conversation was
started while the train was moving south. As the train entered a tunnel,
the electric lights in the car failed, and for several minutes the four
passengers were sitting in complete darkness. Suddenly there was the
sound of a kiss, followed by the sound of the impact of somebody’s
fist against somebody’s face.

When the train came out of the tunnel, the positions of the passengers
were unchanged, but the German officer had a large bruise
under his eye. The old lady thought: “Serves him right. French girls
know how to defend themselves against the Boches.” The young girl
thought: “This German has a strange taste. Instead of kissing me,
he kissed the old hag. Well, he got what he deserved.” The German
held his hand against his injured eye, and thought: “The Frenchman
tried to kiss the girl, and when she struck out in the darkness, she
accidentally hit me in the face.”

The problem is to find out what the Frenchman thought, and what
actually had happened.

January 11, 2009

为何

无节制的求知欲不像无节制的性欲那样让人感到羞耻?

September 7, 2008

你们最早的记忆是什么?

我的记性很差

记得最早的事是当年住20楼的时候-大概2,3岁吧-一只老鼠从我们家的一头堂而皇之的沿对角线晃到另外一头 而我正蹲在尿盆上做臭功。。。

接下来就是很小的时候回上海的记忆,完全没有高楼大厦,只记得火车和一片稻田

之后就是上幼儿园那天,哭着喊着不去的样子还有小bian的爸爸教我们吹口哨的样子

在后来就是小学时候我和奶奶吵架摔门的时候把她的手用门夹到鲜血淋淋的样子

。。。

如果有一天我把这些都忘了的话 我就不是我了

可是我确实在遗忘 每天每秒的遗忘

小学中学甚至大学的记忆也只剩有限的片段了

有时候显得如此冷血

想起那个电影 away from her

我老了也会成为那样的吧

如果失忆 性格也会变吗?

 

May 29, 2008

如果你能得到一个问题的答案

你会问什么样的问题?

我一直以来的都想问的是

“外星人来过地球没有?”

这听上去太幼稚

但是至少我不会听不懂答案。。

也确实是我最想知道的

我觉得知道这个问题的答案后

死了也没有啥遗憾了

(之所以不问“有没有上帝?”

是因为如果真有这个提问机会的话

那么我也应该见到上帝了。。。)

今天午饭和晚饭的时候也在和朋友们聊

如果真有特别可靠的证据证实有外星生物

那么我们的世界观真的会发生很大变化

我总觉得到那时候

我们还打什么仗啊

还什么钱

分什么手

读什么PhD啊。。。

那将是一个多么伟大的时代

像哥伦布发现新大陆

像中国人意识到自己的国家并非是世界的中心

像你突然发现你老公是gay。。。

但是肯定还震撼n倍

我确信这个时刻就快来了

另外我觉得我们的科幻片都太保守

说实话 如果外星人真在地球上晃了那么多年了

还没有正经交流过 或者说被发现过

那么我们差的不是一点半点

试想战前伊拉克和美国的差距可能就是二、三十年

百年前的地球文明和现在已经像是两个世界

别的文明和地球的差距很可能以万年或者数十万年记的

我们根本无法想象一万年后的人类社会会是什么样子

如果某个地外文明真的已经平稳发展了几万年

那么一旦他们想灭我们的话

根本就不会出现科幻电影里那些保卫地球的场景

因为真正的差距不会在人类可以理解的范围之内

当然最有可能的是他们的社会结构也是我们无法想像的先进

也许也有立法保护我们这样的弱小文明吧

另外很可能地外文明的居民根本就没有什么物质的载体

也许我们说的鬼就是他们中一些喜欢恶作剧的家伙吧。。。

总之我等待那个时刻的到来

重新定义我们的“世界”

PS 自然科学技术都还好幻想

但是社会形态 意识形态就基本上没法幻想

没法想象他们会怎么发展

由此可见我们的想象力是多有限

多可悲

May 26, 2008

如果火星上真有生物

那么我们的生活会有变化吗?

February 1, 2008

搬家翻出n把钥匙

大小各异 有的还残缺不全

而且最关键的是只有钥匙没有锁。。

有一个还是藏在某手镯的盒子里的

这叫什么隐喻。。。

总之我把他们都扔了

 

 

January 24, 2008

刚才

瞅了一眼电视 又一个青年才智比赛

其中有一项很有意思

参赛的男孩被告知要素描一个裸体女模特

最后评比谁画的好

之后的素描过程中

那个女模特多少有点喋喋不休

最后的“大作们”花样百出

大家都相尽办法 力求出新

有正经的素描 有各部位的特写集锦

还有一个华裔男孩就画了一个乳房

周围点缀了一些小男人。。。 

但是评委的话却让所有人都大跌眼镜:

“我们要比的其实不是画画

我昨天晚上就跟你们说了

作为一个男人 要倾听女性说话”

那几个家伙立时醒悟了

纷纷捶胸顿足 

紧接着真正的比赛开始了

主持人会问一些和刚刚那个女模特有关的问题

其实在那个女孩的话里都有答案

就看有谁认真的听了

之后的过程很简单

主持人先问那个女孩叫什么

竟然有一半的人答错 

而第二个问题是女孩昨天看得是什么电影

只有一个人答对。。。游戏到此结束

我个人很喜欢这个多少有点坑人的小测试

虽然比较小聪明

但是确实反应了一定问题

那个华裔男生实在是太ws了

傻笑着说就注意人家的胸了

如果换了我至少也得注意人家的脸啊 呵呵

但是这里想问问各位女同胞

你们真的经常遇到谈话的对象(男性)忽略你们说话的内容吗?

或者说那种十分敷衍的应付?

 

January 22, 2008

为啥

中文歌mv都带歌词

英文的就都没有

是因为中文同音太多吗?

January 9, 2008

两蛋相碰

在昨天的ready steady cook里

有现场观众问厨师怎么打鸡蛋能防止蛋皮也掉下来

那个意大利厨师说

他每次都是把两个蛋摆成十字交叉的position互相磕

只有一个蛋会碎(他保证)

最后轻轻掰开就好了

我们的问题是凭什么只碎一个?! emoticon

November 14, 2007

How to do an online competition draw

excerpts from my emails :

ACSSNL-Amsterdam will organize an inter-city badminton competition on 25th. There will be 8 teams. We want to divide them into 2 groups(A,B) in advance for some reason. Here is a very concrete problem we need to solve:

Given 8 participants, we want to find a fair way of randomly assigning them exclusively with the labels : A1,A2,A3,A4 or B1,B2,B3,B4. The condition is that these 8 participants can’t meet each other in advance and we need to do the "lottery" in a fair and observable/checkable way(preferably online).

Thanks to Fangyue(VU) Jens(CWI) and Mengxiao(CWI)

We have now 3 "solutions" (all involve Trusted Third Party, in the following call it TTP).

Let’s recall our requirements first:
a. Fairness: people get equal chance to get each label.
b. Verifiable: The procedure is checkable by public later.

We assume that TTP is trustworthy. And every team wants to win (to compete with weaker team and get to the final). There could be coalitions among teams given the above goal e.g Amsterdam and Groningen might want to be in different groups at the first round. We assume the knowledge of the capability of teams is known to all (there is a commonly known partial/total order of strongness.)

Please roughly verify the following procedures against the above assumptions and requirements.

"Solution" I. Time stamp by email(Fang yue, revised by Yanjing):

1 Select an email address which is only accessible to TTP, e.g. the email address of Chinese embassy.

2 Fix a time interval e.g. 12:00-12:10 on 16th, 2007 Amsterdam time.

3 The 8 team leaders have to send an unique empty email to the above email address within the above interval (if someone failed to do so
then redo the procedure).

4 After completing the above procedure. order the emails by time (checkable later by showing the email records of TTP) First will be
assigned A1, second A2…. last B4.

5 TTP release the original emails.

"Solution" II Random number guessing (By Jens)

1. TTP generate a random number X in an big interval of reals e.g.(1,1000000) and keep it secret.

2. for all i in [1,8], team i should send their own random guess of this number X_i to TTP’s private email address.

3. We order the absolute values of (X-X_i) and assign i with A1 if |X-X_i| is the smallest number and assign j with A2 if |X-X_j| is the second closest number etc…

4. TTP will release the email record to public later.

Solution III (By Mengxiao and his colleague) Use a publicly acessible random generator(website)

1 Fix a time interval  e.g. 12:00-12:05 on 16th, 2007 Amsterdam time.

2 Within the time interval, each team should generate a random integer in [11,99] and send to all the others.

e.g. 26 34  47  86  12  32  23 98

3 We order the teams by their numbers according to <= e.g. the team which submitted 12 is team 1, and… the team which submitted 98 is team 8
We then cancatenate them as a sequence: 1223263234478698

4 We go to this page http://www.random.org/sequences/?mode=advanced set smallest value 1 largest value 8 and use the above seqence number
as the persistent identifier to generate a random sequence of 1…8: e.g. input the above number we get 3 4 1 5 8 7 2 6

6 you can verify the generated number by redo the generation on the webpage.

The website has a secret algorithm to compute the sequenceand it is functional: with same input you get same result.

 

When I have time I will try to design a protocol on this issue, since it is highly related to my research…

Next Page »