KBAI CS 4635, CS 7637, OMS 7637 Ashok Goel
Spring 2015
Final Examination
Assigned: Monday, April 13, 2015 (via T-square) Due: Sunday, April 19, 2015 (via T-square)
General Instructions
(i) This is a take-home examination. This means that you may consult any material from this class and beyond. However, you may not consult any other person on any aspect of the examination: the answers must be wholly your own work.
(ii) Please answer all questions. All questions carry equal weight.
(iii) The fifth question pertains to the story The Gift of the Magi by
OHenry. You already may have read the story, but I append it at
the end just in case.
(iv) Your answer may use one, more, or all of the lessons you learned in
the KBAI class in answering these questions. Note again, please use
KBAI concepts and methods in your answers as much as possible.
(v) Long essays in English will not count nearly as much as clear and
precise answers in the language of computing: computational processes and algorithms, knowledge representations and data structures, etc.
(vi) Please submit only computer printouts. However, it is okay to draw figures by hand and the scan them into your answers.
(vii) Please start your answer to each question on a new page. Please write your name on each page.
Q1 (25 points):
It is quite remarkable that the Piazza discussion forum for our KBAI class has more than 10,000 contributions from about 225 students and teaching staff in just about 14 weeks. This speaks to the high motivation and engagement of the students and the teaching staff alike.
However, as we have discussed on Piazza, the richness of the KBAI Piazza forum of also creates some difficulties. For example, students sometimes find it hard and time consuming to locate the answer to a specific question. Similarly, it takes significant time and effort to answer all the questions. A possible solution to these difficulties may lie in the observation that some (but not all) of the questions in the KBAI class repeat from semester to semester let us call them frequently asked routine (FAR) questions.
Design an AI agent that begins with knowledge of all Piazza questions and their answers in the KBAI class from Spring 2015, and automatically answers FAR questions in subsequent semesters. Note than this likely will involve memory, knowledge representation, natural language understanding, and learning. Note also that we will want ~100% accuracy in the question answering (or the AI agent will create confusion among students).
Make sure that your agent uses KBAI concepts and methods. Given details of the knowledge representations and the reasoning methods. Illustrate using an example.
Q2 (25 points):
According to some anthropologists, learning in humans is mostly social. Indeed, according to this view, one of the common forms of human learning is learning by imitation: humans learn by imitating their parents, siblings, friends, teachers, mentors, and models (especially parents).
As you may expect, AI too is very interested in learning by imitation. Consider, as an example, a robot watching a human pour hot coffee from a pot into a mug. Later, if asked to pour hot coffee from a pot into a mug, the robot may replicate the exact process. Develop a computational model for learning by imitation using the above scenario as an example. Show the knowledge representations and reasoning method.
Now if asked to pour iced tea from a jug into a cup, the robot may try to transfer its knowledge of pouring to the new situation. But will the same method still work given that some of the objects (coffee, tea) and their features (hot, cold) are different in the two situations? Modify the above method to work on this problem?
Now consider an even more dissimilar situation: pouring water from a large container into a pool. Will the same method still work given that some of the actions are still the same (grasp, lift, tilt, etc)? Modify the above method to work on this problem? When does this method break down?
Q3 (25 points):
In the introduction to his book The Emotion Machine Marvin Minsky writes
(see http://web.media.mit.edu/~minsky/Introduction.html):
So naturally, psychologists tried to imitate physicists by searching for compact sets of laws to explain what happens inside our brains. However, this book will argue that this quest will fail because no simple such set of laws exists Once we recognize that our brains contain such complicated machinery, this suggests that we need to do the opposite of what those physicists did: instead of searching for simple explanations, we need to find more complicated ways to explain our most familiar mental events.
You dont need to read Minskys book or even the introduction to answer this question in fact, we recommend not spending your time on the book right now. All you need right now is your knowledge of KBAI because some schools of AI also search for a universal method that would address all problems.
(a) In the KBAI class we discussed several different methods. Give an example of a universal method from KBAI, one that may in principle apply to most all problems. Illustrate the example with a simple problem. Please be specific: When I ask for an example, I am asking for details of the knowledge representation and the reasoning process.
(b) Give an example of multiple, specialized methods (or agents) cooperating to address a complex problem. Illustrate how the multiple methods work together to solve the problem. Again, be specific. Give the knowledge representations and the reasoning processes, for example.
(c) Given these examples, do you agree or disagree with Minsky in relation to AI? That is, do you think we need only a compact set of methods (say <10) for addressing all problems or do you think we will need a large collection of such methods (say >100)? Explain why.
Q4 (25 points):
As we discussed in the class, KBAI has many conundrums. Here are three:
1.While many interesting AI problems are computationally intractable, they require near real-time performance from intelligent agents that have only limited computational resources.
2.While many interesting AI problems have global constraints, computation is fundamentally local.
3.While many AI problems are abductive or inductive, computational logic is fundamentally deductive.
Describe what each conundrum means, using multiple examples from The Gift of the Magi to illustrate each conundrum. (More examples are better.)
Then, illustrate deduction, induction and abduction by examples from The Gift of Magi. (More examples are better.)
The Gift of The Magi
O Henry
One dollar and eighty-seven cents. That was all. And sixty cents of it was in pennies. Pennies saved one and two at a time by bulldozing the grocer and the vegetable man and the butcher until ones cheeks burned with the silent imputation of parsimony that such close dealing implied. Three times Della counted it. One dollar and eighty- seven cents. And the next day would be Christmas.
There was clearly nothing to do but flop down on the shabby little couch and howl. So Della did it. Which instigates the moral reflection that life is made up of sobs, sniffles, and smiles, with sniffles predominating.
While the mistress of the home is gradually subsiding from the first stage to the second, take a look at the home. A furnished flat at $8 per week. It did not exactly beggar description, but it certainly had that word on the lookout for the mendicancy squad.
In the vestibule below was a letter-box into which no letter would go, and an electric button from which no mortal finger could coax a ring. Also appertaining thereunto was a card bearing the name Mr. James Dillingham Young.
The Dillingham had been flung to the breeze during a former period of prosperity when its possessor was being paid $30 per week. Now, when the income was shrunk to $20, though, they were thinking seriously of contracting to a modest and unassuming D. But whenever Mr. James Dillingham Young came home and reached his flat above he was called Jim and greatly hugged by Mrs. James Dillingham Young, already introduced to you as Della. Which is all very good.
Della finished her cry and attended to her cheeks with the powder rag. She stood by the window and looked out dully at a gray cat walking a gray fence in a gray backyard. Tomorrow would be Christmas Day, and she had only $1.87 with which to buy Jim a present. She had been saving every penny she could for months, with this result. Twenty dollars a week doesnt go far. Expenses had been greater than she had calculated. They always are. Only $1.87 to buy a present for Jim. Her Jim. Many a happy hour she had spent planning for something nice for him. Something fine and rare and sterlingsomething just a little bit near to being worthy of the honor of being owned by Jim.
There was a pier-glass between the windows of the room. Perhaps you have seen a pierglass in an $8 flat. A very thin and very agile person may, by observing his reflection in a rapid sequence of longitudinal strips, obtain a fairly accurate conception of his looks. Della, being slender, had mastered the art.
Suddenly she whirled from the window and stood before the glass. her eyes were shining brilliantly, but her face had lost its color within twenty seconds. Rapidly she pulled down her hair and let it fall to its full length.
Now, there were two possessions of the James Dillingham Youngs in which they both took a mighty pride. One was Jims gold watch that had been his fathers and his grandfathers. The other was Dellas hair. Had the queen of Sheba lived in the flat across the airshaft, Della would have let her hair hang out the window some day to dry just to depreciate Her Majestys jewels and gifts. Had King Solomon been the janitor, with all his treasures piled up in the basement, Jim would have pulled out his watch every time he passed, just to see him pluck at his beard from envy.
So now Dellas beautiful hair fell about her rippling and shining like a cascade of brown waters. It reached below her knee and made itself almost a garment for her. And then she did it up again nervously and quickly. Once she faltered for a minute and stood still while a tear or two splashed on the worn red carpet.
On went her old brown jacket; on went her old brown hat. With a whirl of skirts and with the brilliant sparkle still in her eyes, she fluttered out the door and down the stairs to the street.
Where she stopped the sign read: Mne. Sofronie. Hair Goods of All Kinds. One flight up Della ran, and collected herself, panting. Madame, large, too white, chilly, hardly looked the Sofronie.
Will you buy my hair? asked Della.
I buy hair, said Madame. Take yer hat off and lets have a sight at the looks of it.
Down rippled the brown cascade.
Twenty dollars, said Madame, lifting the mass with a practised hand.
Give it to me quick, said Della.
Oh, and the next two hours tripped by on rosy wings. Forget the hashed metaphor. She was ransacking the stores for Jims present.
She found it at last. It surely had been made for Jim and no one else. There was no other like it in any of the stores, and she had turned all of them inside out. It was a platinum fob chain simple and chaste in design, properly proclaiming its value by substance alone and not by meretricious ornamentationas all good things should do. It was even worthy of The Watch. As soon as she saw it she knew that it must be
Jims. It was like him. Quietness and valuethe description applied to both. Twenty- one dollars they took from her for it, and she hurried home with the 87 cents. With that chain on his watch Jim might be properly anxious about the time in any company. Grand as the watch was, he sometimes looked at it on the sly on account of the old leather strap that he used in place of a chain.
When Della reached home her intoxication gave way a little to prudence and reason. She got out her curling irons and lighted the gas and went to work repairing the ravages made by generosity added to love. Which is always a tremendous task, dear friendsa mammoth task.
Within forty minutes her head was covered with tiny, close-lying curls that made her look wonderfully like a truant schoolboy. She looked at her reflection in the mirror long, carefully, and critically.
If Jim doesnt kill me, she said to herself, before he takes a second look at me, hell say I look like a Coney Island chorus girl. But what could I dooh! what could I do with a dollar and eighty- seven cents?
At 7 oclock the coffee was made and the frying-pan was on the back of the stove hot and ready to cook the chops.
Jim was never late. Della doubled the fob chain in her hand and sat on the corner of the table near the door that he always entered. Then she heard his step on the stair away down on the first flight, and she turned white for just a moment. She had a habit for saying little silent prayer about the simplest everyday things, and now she whispered: Please God, make him think I am still pretty.
The door opened and Jim stepped in and closed it. He looked thin and very serious. Poor fellow, he was only twenty-twoand to be burdened with a family! He needed a new overcoat and he was without gloves.
Jim stopped inside the door, as immovable as a setter at the scent of quail. His eyes were fixed upon Della, and there was an expression in them that she could not read, and it terrified her. It was not anger, nor surprise, nor disapproval, nor horror, nor any of the sentiments that she had been prepared for. He simply stared at her fixedly with that peculiar expression on his face.
Della wriggled off the table and went for him.
Jim, darling, she cried, dont look at me that way. I had my hair cut off and sold because I couldnt have lived through Christmas without giving you a present. Itll grow out againyou wont mind, will you? I just had to do it. My hair grows awfully fast. Say `Merry Christmas! Jim, and lets be happy. You dont know what a nice
what a beautiful, nice gift Ive got for you.
Youve cut off your hair? asked Jim, laboriously, as if he had not arrived at that patent fact yet even after the hardest mental labor.
Cut it off and sold it, said Della. Dont you like me just as well, anyhow? Im me without my hair, aint I?
Jim looked about the room curiously.
You say your hair is gone? he said, with an air almost of idiocy.
You neednt look for it, said Della. Its sold, I tell yousold and gone, too. Its Christmas Eve, boy. Be good to me, for it went for you. Maybe the hairs of my head were numbered, she went on with sudden serious sweetness, but nobody could ever count my love for you. Shall I put the chops on, Jim?
Out of his trance Jim seemed quickly to wake. He enfolded his Della. For ten seconds let us regard with discreet scrutiny some inconsequential object in the other direction. Eight dollars a week or a million a yearwhat is the difference? A mathematician or a wit would give you the wrong answer. The magi brought valuable gifts, but that was not among them. This dark assertion will be illuminated later on.
Jim drew a package from his overcoat pocket and threw it upon the table.
Dont make any mistake, Dell, he said, about me. I dont think theres anything in the way of a haircut or a shave or a shampoo that could make me like my girl any less. But if youll unwrap that package you may see why you had me going a while at first.
White fingers and nimble tore at the string and paper. And then an ecstatic scream of joy; and then, alas! a quick feminine change to hysterical tears and wails, necessitating the immediate employment of all the comforting powers of the lord of the flat.
For there lay The Combsthe set of combs, side and back, that Della had worshipped long in a Broadway window. Beautiful combs, pure tortoise shell, with jewelled rimsjust the shade to wear in the beautiful vanished hair. They were expensive combs, she knew, and her heart had simply craved and yearned over them without the least hope of possession. And now, they were hers, but the tresses that should have adorned the coveted adornments were gone.
But she hugged them to her bosom, and at length she was able to look up with dim eyes and a smile and say: My hair grows so fast, Jim!
And them Della leaped up like a little singed cat and cried, Oh, oh!
Jim had not yet seen his beautiful present. She held it out to him eagerly upon her open palm. The dull precious metal seemed to flash with a reflection of her bright and ardent spirit.
Isnt it a dandy, Jim? I hunted all over town to find it. Youll have to look at the time a hundred times a day now. Give me your watch. I want to see how it looks on it.
Instead of obeying, Jim tumbled down on the couch and put his hands under the back of his head and smiled.
Dell, said he, lets put our Christmas presents away and keep em a while. Theyre too nice to use just at present. I sold the watch to get the money to buy your combs. And now suppose you put the chops on.
The magi, as you know, were wise menwonderfully wise menwho brought gifts to the Babe in the manger. They invented the art of giving Christmas presents. Being wise, their gifts were no doubt wise ones, possibly bearing the privilege of exchange in case of duplication. And here I have lamely related to you the uneventful chronicle of two foolish children in a flat who most unwisely sacrificed for each other the greatest treasures of their house. But in a last word to the wise of these days let it be said that of all who give gifts these two were the wisest. O all who give and receive gifts, such as they are wisest. Everywhere they are wisest. They are the magi.
Reviews
There are no reviews yet.