Is the Computer a Genius or a Fool? Unlocking the Communication Secrets of "Instructions" & "Programming"

電腦是天才還是笨蛋?「表達程序」單元導言:為什麼電腦需要精確的指令、什麼是程式與程式設計。串起藏寶圖自動機與指令遊戲兩個不插電活動,適合家長與老師導讀。

When children watch an iPad answer questions or play videos instantly, they usually think: "Wow! Computers are so smart, they know everything!"

But as guides in Computer Science, we have to tell children a shocking truth: "Actually, computers aren't smart at all. They are just incredibly fast."

電腦就像一個擁有超能力的巨人,它一秒鐘可以做幾十億個動作,但它有一個致命的缺點:它非常「死腦筋」,完全不懂什麼叫「常識」。

In this unit, we won't just be playing games; we will learn how to communicate with this "Literal-Minded Giant." We will guide children to switch from "Human Language" to "Computer Logic," experiencing what it means to give precise instructions.

1. What is "Literal-Mindedness"? (Literal Interpretation)

If I say to you, "Please walk through that door," what would you do?

You would definitely reach out, turn the handle, push the door open, and then walk through. This is human "Common Sense."

But if you tell a robot that hasn't been specially programmed: "Walk through that door."

It might walk straight forward and—BANG!—crash right into the door panel, maybe even breaking it.

Why? Because you didn't give it the instructions to "Reach out hand," "Grasp handle," "Turn," and "Push." Computers only obediently follow the literal meaning of words. They cannot think, and they cannot adapt.

2. What Will We Learn?

To prevent the robot from smashing the front door, engineers must learn to speak in a way the computer understands. In the upcoming activities, we will enter two mysterious realms:

  1. 尋找藏寶圖的密碼(有限狀態自動機):我們會認識一種專門用來辨識單字、數字或符號的「機器」。它的名字很長,叫做「有限狀態自動機 (Finite-state automata)」。聽起來很難?別擔心,其實它就像一張特別的藏寶圖:照著圖上的路線走,只有「對的路線」才能走到寶藏。我們將用紙筆遊戲來破解它的路徑。
  2. 機器人指揮官(程式設計):我們會學習如何當一個好的指揮官。我們會用一套固定的指令當作詞彙,把它們排列組合來告訴電腦該怎麼做。排出來的這一串指令就是「程式(program)」,設計這串指令的過程就叫「程式設計(programming)」。我們將使用一種簡單到連電腦都不需要的語言,讓孩子親身體驗如何精確地控制夥伴的動作。

Are you ready? Let's switch our brains to "Engineer Mode" and challenge ourselves to tame this super-fast machine that needs you to teach it step-by-step!

延伸閱讀