如此这样的机器人

Programmer: I want you to tell me if you see any apples.
Robot: Describe this thing you call "apple."
Apples are apple-shaped. Look for something that's apple-shaped.
What do you mean by "apple-shaped"?
Well, sort-of round with a dimple at the top and a little stem.
This "stem" is always at the top of an apple?
Not necessarily. The apple might be upside-down or sideways. You must look for stems in all directions.
What if the stem is hidden behind the apple so I can't see it? And what is a stem anyway?
Good point. Forget about stems. Let's start with color. Most apples are red, but then again some are green. I guess a bad apple might even be brown.
Are all things red, green or brown apples?
No! Apples are other things too. For example, most apples are a little bit shiny.
What do you mean by shiny, and how shiny is "a little bit shiny"?
They reflect light well, but not as well as a mirror.
Great. What is a mirror? And what do you mean by "reflect"?
A mirror is something that shows an image of you and what's behind you when you look into it.
I don't know what I look like, or what's behind me - I only have one camera.
Ok, forget about the mirror. You asked what "reflecting" means. Reflecting is when light bounces off of something. If there's a bright light on the apple, you will see a small white reflection off of it.
Got it. So wherever I can find red, green, or brown, and a white spot inside (if it's bright), there's an apple. How can I tell if the light is bright enough that it would make a reflection?
Argh! Never mind! Let's try something else - size. Apples are about 3 inches across.
What do you mean by "about"? If it's 4 inches across could it be an apple? How about if it's 27 inches across?
Let's say all apples are between 3 and 5 inches across.
Is a quarter of an apple still an apple?
Yes, but let's pretend it's not.
What if in front of me there's a red apple sitting on a red table? How can I tell where the apple ends and the table begins? If I can't do that, I couldn't possibly find an apple.
Well, you can see the edge of the apple, right?
Maybe. How do I do that?
The edge is darker than the rest of the apple if there's a shadow, or lighter if there's no shadow and the table is lighter than the edge of the apple, but the apple isn't necessarily a perfectly solid color - I mean there could be dark spots on the apple that aren't edges, and - oh no - there could be photographs of apples on the table which aren't actually apples, or even a wax model of an apple which looks exactly like an apple but isn't, or the apple could have a bite taken out of it, or be really far away so it looks too tiny or too close so it looks really big, or, or... um...
Yes, I think I get your point.
• 本文已收录于以下专栏：

生活是否永远如此艰辛，还是仅仅童年才如此

• hittata
• 2010年07月13日 23:05
• 9282

NYOJ 题目1053 Alice and Bob (N)（博弈）

Alice and Bob (N) 时间限制：1000 ms  |  内存限制：65535 KB 难度：2 描述 也不知道是谁规定的，Alice 和 Bob总是有一堆做...
• yu_ch_sh
• 2014年09月22日 15:22
• 442

爱是如此神奇

• icdlan
• 2006年05月27日 22:29
• 544

疯狂的家庭(zz)

January 28, 2008 – 5:58 pmJanuary 28, 2008 – 5:58 pm 一个名叫Sid的男人，狂热地爱好拍摄、保存和整理照片。Sid的妻子名叫Debbie，他们有三个...
• kdnuggets
• 2008年02月27日 10:29
• 927

守夜人誓词（守望屁股版）

• liuyuntianxia_128
• 2016年12月22日 14:36
• 410

Ajax - 使用JSON向服务器发送数据

• lin49940
• 2007年08月13日 00:00
• 9350

世界如此美好，我却如此暴躁，这样不好，不好

• qq_39447313
• 2017年07月14日 20:53
• 74

为何找个优秀的java程序员如此之难？

• q1177660557
• 2014年07月25日 21:01
• 612

原来国家名字也可以如此浪漫，除了日本！

• fcjg
• 2011年05月17日 09:19
• 4956

基于信仰之下的努力——Leo鉴书38

• jobchanceleo
• 2013年12月06日 08:24
• 1551

举报原因： 您举报文章：如此这样的机器人 色情 政治 抄袭 广告 招聘 骂人 其他 (最多只允许输入30个字)