如此这样的机器人

原创 2006年06月16日 13:16:00
如下是一个编程人员与一个机器人的对话。
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...
Had enough?
Yes, I think I get your point.

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

一个人静静的看着电影《这个杀手不太冷》,一个普通的12岁的邻家女孩马蒂达这样问杀手莱昂“生活是否永远如此艰辛,还是仅仅童年才如此?”,“总是这样的艰辛”莱昂回答!是的,生活总是这么的艰辛,学会在生活中...
  • hittata
  • 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
  • yu_ch_sh
  • 2014年09月22日 15:22
  • 442

爱是如此神奇

每一天 我睁开了眼睛 你的倩影 就好似一道晨曦 轻轻照亮我的心 每一夜 当万物都宁静 只有我和你 在梦里 多么神奇 多么甜蜜 生命中有你 两手相系 两心相依 我为你什么都愿意 当我遇见你 爱是如此神奇...
  • icdlan
  • icdlan
  • 2006年05月27日 22:29
  • 544

疯狂的家庭(zz)

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

守夜人誓词(守望屁股版)

战争将至,我从今开始守望屁股!至疯方休,我将不搞基、不LOL、不撸管。我将不会装逼,不争第一。我将日夜吸毒、生死算屁!我是弓箭上的巨龙,花村里的村长。我是剑鞘上的锋芒,有基佬开我裤链!唤醒哥哥的愚蠢,...
  • liuyuntianxia_128
  • liuyuntianxia_128
  • 2016年12月22日 14:36
  • 410

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

使用JSON向服务器发送数据做了这么多,你已经能更顺手地使用JavaScript了,也许在考虑把更多的模型信息放在浏览器上。不过,看过前面的例子后(使用XML向服务器发送复杂的数据结构),你可能会改变...
  • lin49940
  • lin49940
  • 2007年08月13日 00:00
  • 9350

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

世界如此美好,我却如此暴躁,这样不好,不好
  • qq_39447313
  • qq_39447313
  • 2017年07月14日 20:53
  • 74

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

大海捞针 为何找个优秀的java程序员如此之难? Coman Hamilton July 23, 2014 Like needles in a haystack of bored progr...
  • q1177660557
  • q1177660557
  • 2014年07月25日 21:01
  • 612

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

你知道世界各个国家名字的含义么?优趣刚发现它们组成起来竟然都如此的浪漫。简直可以凑成一首唯美的情诗。中国的名字最给力有木有?不过其中有个例外,我把它放在最后了,怕影响你心情,当然你也可以选择无视。你...
  • fcjg
  • fcjg
  • 2011年05月17日 09:19
  • 4956

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

晨光书店(一家基督教书店)推荐了Marita Littauer和 Florence Littauer合著的《天生如此》Wired That Way——作者是母女关系,因为《天生如此》因为是基督教作品也...
  • jobchanceleo
  • jobchanceleo
  • 2013年12月06日 08:24
  • 1551
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:如此这样的机器人
举报原因:
原因补充:

(最多只允许输入30个字)