Due Thursday, April 1st in class.
Problem 1 (Search)
The Right Residency
Every year, thousands of medical school graduates head off to residency programs to earn their stripes. Graduates are assigned to residencies through a national matching program which works as follows (with a few liberties in the accuracy of the description). Each graduate applies to various residency programs at hospitals throughout the country. The programs (generally in large teaching hospitals) invite the most promising candidates to come for a visit and interview. After all the interviews have concluded the residency programs and the graduating students rank each other. For example, Janet Tibia might rank her choices (in a Rank Order List, as it's called) as follows:
Meanwhile, the residency programs rank their choices as well, also in a Rank Order List. For example, the soon-to-be Dr. Tibia might be ranked 39th at Brigham and Women's, 4th at University of Virginia and 6th at University of California, San Francisco. The national matching program then considers all the graduates and all the programs and assigns residents-to-be to programs.
How the Matching Algorithm Works
The process starts off with an attempt to place an applicant into the program indicated as most preferred on that applicant's list. If the applicant cannot be matched to this first choice program, an attempt is then made to place the applicant into the second choice program, and so on, until the applicant obtains a tentative match, or all the applicant's choices have been exhausted.
An applicant can be tentatively matched to a program in this process if the program also ranks the applicant on its Rank Order List, and either:
When an applicant is removed from a previously made tentative match, an attempt is made to re-match this applicant, starting from the top of his/her list. This process is carried out for all applicants, until each applicant has either been tentatively matched to the most preferred choice possible, or all choices submitted by the applicant have been exhausted. When all applicants have been considered, the match is complete and all tentative matches become final.
How Big a Problem is It?
In 1998, the match enrolled 3,814 programs, which altogether offered 22,451 positions. A total of 35,823 applicants participated in the match.
Problem 2 (Propositional Logic)
Suppose we have a 5x5 Wumpus world with the usual rules, as shown below in Figures 1 and 2 (on the next page).
Pit |
|
|||
Pit |
|
Pit |
||
Pit |
Pit |
|||
|
Figure 1 — A 5x5 Wumpus world
Pit |
|
|||
Pit |
|
Pit |
||
|
Pit |
Pit |
||
Figure 2 — Another 5x5 Wumpus world
Problem 3 (Knowledge Representation)
a) Write a representation for the following story. Your representation should include the background knowledge, as well as the specifics of the story. For each of the questions below (and answers), show how your inferencing procedure and representation would generate the appropriate answers.
Yesterday I needed to drop off Billy at day care by 8, but the car wouldn’t start. I called AAA, and they finally showed at ten to eight. We got him there 5 minutes late.
Questions:
b) Suppose we now we add the sentence:
Billy fidgeted anxiously throughout the entire car ride, and sang along when his favorite song came on.
Describe the mechanism for representing this new sentence, and apply it.
c) Suppose the next sentence read:
If he’s late one more time, he’ll be fired.
How would your representation change? Would your answers to questions 1-3 change?
Problem 4 (Inference in First-Order Logic)
Wile E. Coyote is hungry, and would very much like to dine on freshly grilled roadrunner. Wile E. only lives near one roadrunner, The Roadrunner. Roadrunners are too fast for coyotes to catch without help. The Acme Corporation make several roadrunner-catching devices. No Acme product works as intended.
Problem 5 (Resolution)
Military officers are gentlemen.
Gentlemen don’t poison each other.
Only gentlemen and ladies are members of royalty.
Colonel Mustard was in the library.
Ms. Scarlett was in the den.
Either Ms. Scarlett or someone in the library poisoned Prince Horatio.
Either Ms. Scarlett or someone in the library poisoned Prince Horatio.
Problem 6 (Frame-based Systems)
Suppose we wish to represent the categories of exotic birds in a semantic network. We might have a top-level category for birds, and then distinguish exotic birds from others.
a) Create a graphical, frame-based version of the relationships suggested in the figure below.
b) Suppose that parrots can talk — how would this be represented in your frame–based system?
c) Next, suppose that Toucan Sam (the Froot Loops mascot), who is a toucan, can talk. Furthermore, Toucan Sam is the only toucan who can talk. Represent this in your frame-based knowledge base.
d) How would you conclude that Molly can’t talk? Show the reasoning using the representation from your frame-based knowledge base?