Unformatted Document Excerpt
Coursehero >>
California >>
Stanford >>
CS 221
Course Hero has millions of student submitted documents similar to the one
below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.
Course Hero has millions of student submitted documents similar to the one
below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.
Section CS221 7
1
CS 221 Section 7: Bayesian Networks
1. Chocolate Bayesian Networks Suppose you have nally graduated and have your dream job of supervising the labeling chocolate that is being produced in a factory. There are two levers controlling production, one that controls whether the chocolate is plain or almond, and another that controls whether there is coconut or not. The levers are faulty, and will randomly switch to the other position occasionally. The levers stay in the position theyre in with probability .7 and switch to the other setting .3, with each of the two lever switching independently. At the start of the day, the lever is in either setting with equal probability. You are working at the nal conveyor belt and you cannot see what the levers are set to from your vantage point. You can only tell what color the chocolate is from seeing it on the converyor belt. Fortunately you do have the following table of probabilities for the color given whats inside. Inside Plain (N) Almond (A) Coconut (C) Almond + Coconut (B) P(Color=Light (L) |Inside) 0.1 0.3 0.8 0.9 P(Color=Dark (D) |Inside) 0.9 0.7 0.2 0.1
You would like to know the probability that the chocolate is a certain avor based on what you observe its color to be. In this problem we will show how a Bayesian Network can be used to help you in your task. We will let Xi represent the state of the two levers at time step i, and Yi represent the observation at time step i. So, the domain of Xi is {Plain (N), Almond (A), Coconut, Almond + Coconut (B)} and the domain of Yi is {Light (L), Dark (D)}. (a) Draw a Bayes Net corresponding to this situation Answer: The avor of the chocolate at time i (Yi ) depends only upon the position of the levers at time i (Xi ). The position of the levers at time i depends upon the position of the levers at time i 1, if i > 1. If i = 1, then each position is equally likely. We can capture this in the following network
CS221 Section 7
2
(b) Suppose the rst chocolate that you observe is Dark (Y1 = D). What is the probability that this chocolate is coconut avored (i.e. what is P (X1 = C |Y1 = D))? Answer: We begin by using Bayes Rule to rewrite what we want in terms of what we have. P (X1 = C |Y1 = D) = P (Y1 = D|X1 = C )P (X1 = C ) P (Y1 = D)
The terms in the numerator can be read o of our chart, but the term on the denominator takes a little more work.
P (Y1 = D) =
x1 X1
P (X1 = x1 , Y1 = D) P (X1 = x1 )P (Y1 = D|X1 = x1 )
x1 X1
= = 0.25
P (Y1 = D|X1 = x1 )
x1 X1
= 0.25 (0.9 + 0.7 + 0.2 + 0.1) = 0.25 (1.9)
Thus, the answer we want is 0.2 0.25 P (Y1 = D|X1 = C )P (X1 = C ) = = 0.2/1.9 = 0.105 P (Y1 = D) 1.9 0.25
CS221 Section 7
3
(c) Suppose that you now observe that the next chocolate is light (Y2 = L). What is the probability that this chocolate is coconut avored? Calculate P (X2 = C |Y1 = D, Y2 = L)? Answer: =D X1 ) First, we need P (X1 |Y1 = D) = P (Y1 P (Y|1 =DP (X1 ) . Note that P (X1 ) = .25 for all X1 . ) X1 P A C A+C So, P (Y1 = D|X1 )P (X1 ) .225 .175 .05 .025 P (X1 |D) .474 .368 .105 .053
P (X2 = C |Y1 = D, Y2 = L) P (X2 = C, Y1 = D, Y2 = L) = P (Y1 = D, Y2 = L) P (Y1 = D)P (X2 = C |Y1 = D)P (Y2 = L|X2 = C, Y1 = D) = P (Y1 = D)P (Y2 = L|Y1 = D) P (Y2 = L|X2 = C )P (X2 = C |Y1 = D) = P (Y2 = L|Y1 = D) P (Y2 = L|X2 = C ) xX1 P (X2 = C |X1 = x)P (X1 = x|Y1 = D) = P (Y2 = L|Y1 = D) The numerator P (Y2 = L|X2 = C ) xX1 P (X2 = C |X1 = x)P (X1 = x|Y1 = D) is equal to .8 (.21 .474 + .09 .368 + .49 .105 + .21 .053) = .156. To normalize, we need to do the same calculation for the other possible values of X2 , which are .034, .090, and .132. So, P (X2 = C |Y1 = D, Y2 = L) = .156/.412 = .379. 2. Bayes Net Inference: Asia network Consider the Asia network considered in lecture:
Visit to Asia
Smoking
Tuberculosis
Lung Cancer Bronchitis
Abnormality in Chest
X-ray
Dyspnea
CS221 Section 7
4
(a) Perform variable elimination for this network, in order to get the probability distribution P (D). You can pick any order to eliminate variables. Answer: We have that P (D) =
A,B,L,T,S,X,V
P (V )P (T | V )P (S )P (L | S )P (B | S )P (A | L, T )P (X | A)P (D | A, B )
where we eliminate according to the order in the summation. Our computation proceeds from the inside out. We rst eliminate V . Thus, we rst compute, for each pair of values t and v , the product P (t | v )P (v ), and then sum out to obtain f1 (T ) = P (T | V )P (V )
V
For example, if T (Tuberculosis) has the values {no, mild, severe}, this process would end up computing three numbers, one for every value of T . The next phase would compute, f2 (A) = X P (X | A), which is a function that has a value for each value of A. The third phase would compute, f3 (B, L) = S P (B | S )P (L | S )P (S ), which is a factor that contains a value for every pair of values b and l for the variables B and L. Thus, if Bronchitis has three values and lung cancer has four, then this would be a total of 12 values. The fourth phase is to sum out T . For that, we need to multiply everything that mentions T . We need to multiply P (A | T, L) with f1 (T ): f4 (A, L) =
T
P (A | T, L)f1 (T )
The fth phase is to sum out L: f5 (A, B ) =
L
f3 (B, L) f4 (A, L)
The nal phase is to sum out A and B . This would involve multiplying everything thats left, and summing out A and B . Thus, we would have P (D | A, B )f5 (A, B )f2 (A)
A,B
The result is a factor over D, which gives us the distribution over the possible values of D. (b) Now we introduce evidence into the picture. Assume we observe s1 (the person smokes) and x0 (the X-ray came out negative). Perform variable elimination with evidence, in order to get P (D, s1 , x0 ). Show how to get P (D | s1 , x0 ) from that. Answer: First, we reduce this problem to computing P (D, s1 , x0 ), i.e., P (d, s1 , x0 ) for every value d of D. We can use that as follows: P (d | s1 , x0 ) = P (d, s1 , x0 ) = P (s1 , x0 ) P (d, s1 , x0 1 ) 0 d P (d, s , x )
In other words, once we compute a factor over D that represents the joint probability P (D, s1 , x0 ), we simply renormalize it to get the desired conditional probability.
CS221 Section 7
5
How do we compute P (D, s1 , x0 )? Let us go back to the joint distribution. To compute any individual value P (d, s1 , x0 ), we want to sum out only those entries in the joint where the values D, S, X take on these particular values. In other words: P (d, s1 , x0 ) =
A,B,L,T,V
P (V )P (T | V )P (s1 )P (L | s1 ) P (B | s1 )P (A | L, T )P (x0 | A)P (d | A, B )
We can execute this computation in exactly the same way, by eliminating the unnecessary variables all except D, S, X in the usual way. We do not eliminate D because we are interested in getting a factor over its values; we do not eliminate S and X because their values are xed. Let us use the same elimination ordering that we used in our rst computation before (the one that generated the f factors rather than the g factors): i. ii. iii. iv. v. Eliminating V : This phase is unchanged; it generates the same f1 (T ). Eliminating X : This phase now involves no operations. Eliminating S : This phase also involves no operations. Eliminating T : This phase is unchanged; it generates the same f4 (A, L). Eliminating L: This phase is now dierent. Note that, before, the summation over S in phase (3) caused us to sum out various factors into a single factor f3 (B, L). In this computation, this did not happen. In our case, the summation looks like: f5 (A) =
L
f4 (A, L)P (L | s1 )
Note that this term doesnt depend on S , because only one value of S is involved; i.e., P (L | s1 ) has exactly one number for every value of L. Also note that f5 , unlike f5 , does not depend on B . Intuitively, observing S decorrelates B and L, rendering them conditionally independent. From the algorithms perspective, we never compute f3 (B, L), which forced us to introduce the dependence on B . vi. Eliminating B : f6 (A) = P (B | s1 )P (D | A, B )
B
vii. Eliminating A: f7 ( D ) =
A 1 0
f6 (A)P (x0 | A)f5 (A)
viii. The result: To get P (D, s , x ), the result needs to be multiplied by the remaining term P (s1 ). (Note that, for getting the conditional P (D | s1 , x0 ), this last multiplication by a constant factor is irrelevant.) (c) What can you say about the values in the factor generated by summing out X-ray? Answer: The factor for X-ray is f (X, A). Its equal to P (X | A). Summing out X-ray gives X P (X | A) = 1. So the value of the factor f (A) generated by summing out X is always 1 for all values of A. (d) Suppose all the variables are binary, except for A, which has a domain of size 3. For each node in the network, write down the number of independent parameters in the CPD, and the total. Answer: At each node n, the number of independent parameters = (N umV alues(n) 1) n P a(n) N umV alues(n )
CS221 Section 7
6
V = 1, T = 2 (2 1) = 2, S = 1, L = 2, B = 2, A = 2 2 (3 1) = 8, X = 3 (2 1) = 3, D = 3 2 (2 1) = 6. Total = 25. 3. Learning using Naive Bayes Classiers One very common technique for classication is the Naive Bayes classier. Most simply, assume that our feature space consists of the binary-valued features X1 , . . . , Xn , and that we want to classify each instance into two classes, d0 or d1 . Use x0 to denote the false i value (0) of Xi and x1 to denote its true value (1). The Naive Bayes classier uses a i Bayesian network of the following structure to do the classication:
D X1 X2 X3 ... Xk
It learns the parameters for the network from the training set, and then classies a new instance into the most likely class. (a) Write down a formula for deciding whether a new instance x1 , . . . , xn belongs to d1 . Your formula should be written directly in terms of the CPD entries in the network: P (dl ) (l = 0, 1), and P (xij | dl ) (i = 1, . . . , n, l, j = 0, 1). Answer: We need P (d1 | x1 , . . . , xn ) >1 P (d0 | x1 , . . . , xn ) If we apply Bayes rule, P (d1 | x1 , . . . , xn ) = = And likewise P (d0 | x1 , . . . , xn ) = P (x1 | d0 )P (x2 | d0 ) . . . P (xn | d0 )P (d0 ) P (x1 , . . . , xn ) P (x1 , . . . , xn | d1 )P (d1 ) P (x1 , . . . , xn ) P (x1 | d1 )P (x2 | d1 ) . . . P (xn | d1 )P (d1 ) P (x1 , . . . , xn )
When we take the ratio of the above two probabilities, the denominators cancel: P (x1 | d1 )P (x2 | d1 ) . . . P (xn | d1 )P (d1 ) P (d1 | x1 , . . . , xn ) = P (d0 | x1 , . . . , xn ) P (x1 | d0 )P (x2 | d0 ) . . . P (xn | d0 )P (d0 ) Therefore, we prefer class d1 to d0 if P (x1 | d1 )P (x2 | d1 ) . . . P (xn | d1 )P (d1 ) >1 P (x1 | d0 )P (x2 | d0 ) . . . P (xn | d0 )P (d0 ) (b) Show that your classier from (a) is equivalent to a linear separator between the d0 instances and the d1 instances. In other words, show that we can construct weights
CS221 Section 7
7
w0 , w1 , . . . , wn using the CPT entries such that an instance x is classied as d0 if n hw (x) = w0 + i=1 wi xi < 0, and as d1 if hw (x) > 0 . You can ignore ties where both d0 and d1 are equally likely. (Hint: Consider a transformation to your formula from (a) that would result in a summation.) Answer: First we transform the equation above by taking the log of both sides: log( P (x1 | d1 )P (x2 | d1 ) . . . P (xn | d1 )P (d1 ) > log(1) P (x1 | d0 )P (x2 | d0 ) . . . P (xn | d0 )P (d0 ) log(P (xi | d1 )) log(P (xi | d0 )) > 0
i
log(P (d1 )) log(P (d0 )) + Then a good choice for weights is: w0 wi
= log(P (d1 )) log(P (d0 )) +
i
log(P (x0 | d1 )) log(P (x0 | d0 )) i i
= log(P (x1 | d1 )) log(P (x1 | d0 )) (log(P (x0 | d1 )) log(P (x0 | d0 ))) i i i i
where i = 1, . . . , n. Intuitively, the idea is that when xi = 0, the dierence log(P (x0 | i d1 )) log(P (x0 )) must be introduced into the equation, so the only way to do that is to i place it in w0 . But when xi = 1, the above dierence must be replaced by log(P (x1 | i d1 )) log(P (x1 )). i
Find millions of documents on Course Hero - Study Guides, Lecture Notes, Reference Materials, Practice Exams and more.
Course Hero has millions of course specific materials providing students with the best way to expand
their education.
Below is a small sample set of documents:
Stanford - CS - 221
Markov Decision ProcessesCS 221 Section 6October 30, 2009Today we will discuss several sample MDP problems. The solutions are included here, so you can work through them on your own if you like. 1. MDPs with Random Stopping Times Suppose we have a Mark
Stanford - CS - 221
Decision TreesCS 221 Section 5October 23, 2009Today we will work through an example problem of creating a decision tree. Time permitting, we will also work an example problem about AdaBoost.1Creating a decision treeConsider the criteria for acceptin
Stanford - CS - 221
Logistic Regression and Decision TreesCS 221 Section 4October 16, 2009Today we will derive the gradient descent update rule for logistic regression using maximum likelihood and also go over an example of creating decision trees.1Maximum likelihoodMa
Stanford - CS - 221
Probability Review CS 221 Section 3Olga Russakovsky October 12, 20091Random variablesConsider running a probabilistic experiment, e.g., tossing a coin. Let be the set of all possible outcomes of this experiment, called the sample space. In this case,
Stanford - CS - 221
% CS221, Fall 2009-10 % Matlab Review Session % % % % % % % % % % % To run matlab, first login to one of the clusters (such as myth.stanford.edu) using SecureCRT on Windows or typing from the command line: > ssh username@myth.stanford.edu -X Then, to run
Stanford - CS - 221
Basic SearchCS 221 Section 1September 25, 20091IntroductionToday we will discuss some basic blind search algorithms and work some example problems involving them. These algorithms should be a review for most of you, as you have probably seen them in
Stanford - CS - 221
CS221:LittleDog RobotProjectZicoKolter,PaulBaumstarckLittleDogRobotLittleDogRobotLittleDogRobotSimulatorGettingtheSimulator LittleDogsimulatorandcodeavailableat: /afs/ir/class/cs221/code/LittleDog Ignorecompilationwarnings make&./mainpath Shouldbui
Stanford - CS - 221
CS221 Challenge Problem: Robot Dog1CS 221, Autumn 2009 Robot DogYou may work in teams of up to 3 students for this project. Some important dates: You must form a team by Friday, October 9, 11:59pm. Send us an email with your team details, as described
Rutgers - PHILOSOPHY - 730:201
Rutgers - PHILOSOPHY - 730:201
Rutgers - PHILOSOPHY - 730:201
Aberystwyth University - SCI - 001
Chapter 38 Angiosperm Reproduction and BiotechnologyLecture OutlineOverview: To Seed or Not to SeedSexual reproduction is not the sole means by which flowering plants reproduce. Many species can also reproduce asexually, creating offspring that are gen
Aarhus Universitet - ACCT - ACCT2
18.Because of unseasonably cold weather, the supply of oranges has substantially decreased. This statement indicates that: CA.the equilibrium quantity of oranges will rise.B.the demand for oranges will necessarily rise.C.the amount of oranges that
UIllinois - 942 - cs
AlgorithmsLecture 0: IntroductionWe should explain, before proceeding, that it is not our object to consider this program with reference to the actual arrangement of the data on the Variables of the engine, but simply as an abstract question of the natu
UIllinois - 942 - cs
AlgorithmsOur life is frittered away by detail. Simplify, simplify.Lecture 1: Recursion Henry David Thoreau The control of a large force is the same principle as the control of a few men: it is merely a question of dividing up their numbers. Sun Zi, Th
UIllinois - 942 - cs
AlgorithmsNon-Lecture C: Advanced Dynamic Programming TricksNinety percent of science ction is crud. But then, ninety percent of everything is crud, and its the ten percent that isnt crud that is important. [Theodore] Sturgeons Law (1953)CAdvanced Dyn
UIllinois - 942 - cs
AlgorithmsLecture 5: Randomized AlgorithmsThe rst nuts and bolts appeared in the middle 1400s. The bolts were just screws with straight sides and a blunt end. The nuts were hand-made, and very crude. When a match was found between a nut and a bolt, they
UIllinois - 942 - cs
AlgorithmsNon-Lecture E: Tail InequalitiesIf you hold a cat by the tail you learn things you cannot learn any other way. Mark TwainETail InequalitiesThe simple recursive structure of skip lists made it relatively easy to derive an upper bound on the
UIllinois - 942 - cs
AlgorithmsLecture 6: Treaps and Skip ListsI thought the following four [rules] would be enough, provided that I made a rm and constant resolution not to fail even once in the observance of them. The rst was never to accept anything as true if I had not
UIllinois - 942 - cs
AlgorithmsNon-Lecture F: Randomized Minimum CutJaques: But, for the seventh cause; how did you nd the quarrel on the seventh cause? Touchstone: Upon a lie seven times removed:bear your body more seeming, Audrey:as thus, sir. I did dislike the cut of a c
UIllinois - 942 - cs
AlgorithmsLecture 9: Scapegoat and Splay TreesEverything was balanced before the computers went off line. Try and adjust something, and you unbalance something else. Try and adjust that, you unbalance two more and before you know whats happened, the shi
UIllinois - 942 - cs
AlgorithmsNon-Lecture G: String MatchingWhy are our days numbered and not, say, lettered? Woody AllenGG.1String MatchingBrute ForceThe basic object that were going to talk about for the next two lectures is a string, which is really just an array.
UIllinois - 942 - cs
AlgorithmsNon-Lecture H: More String MatchingPhilosophers gathered from far and near To sit at his feat and hear and hear, Though he never was heard To utter a word But Abracadabra, abracadab, Abracada, abracad, Abraca, abrac, abra, ab! Twas all he had,
UIllinois - 942 - cs
AlgorithmsE pluribus unum (Out of many, one)Lecture 10: Disjoint Sets Ofcial motto of the United States of America John: Whos your daddy? Cmon, you know who your daddy is! Whos your daddy? DArgo, tell him who his daddy is!" DArgo: Im your daddy. Farsca
UIllinois - 942 - cs
AlgorithmsLecture 11: Basic Graph PropertiesObie looked at the seein eye dog. Then at the twenty-seven 8 by 10 color glossy pictures with the circles and arrows and a paragraph on the back of each one. . . and then he looked at the seein eye dog. And th
UIllinois - 942 - cs
AlgorithmsLecture 13: Shortest PathsWell, ya turn left by the re station in the village and take the old post road by the reservoir and. . . no, that wont do. Best to continue straight on by the tar road until you reach the schoolhouse and then turn lef
UIllinois - 942 - cs
AlgorithmsLecture 14: All-Pairs Shortest PathsThe tree which lls the arms grew from the tiniest sprout; the tower of nine storeys rose from a (small) heap of earth; the journey of a thousand li commenced with a single step. Lao-Tzu, Tao Te Ching, chapte
UIllinois - 942 - cs
AlgorithmsLecture 15: Maximum Flows and Minimum CutsCol. Hogan: One of these wires disconnects the fuse, the other one res the bomb. Which one would you cut, Shultz? Sgt. Schultz: Dont ask me, this is a decision for an ofcer. Col. Hogan: All right. Whic
UIllinois - 942 - cs
AlgorithmsLecture 16: Max-Flow AlgorithmsA process cannot be understood by stopping it. Understanding must move with the ow of the process, must join it and ow with it. The First Law of Mentat, in Frank Herberts Dune (1965) Theres a difference between k
UIllinois - 942 - cs
On the history of combinatorial optimization (till 1960)Alexander Schrijver11. IntroductionAs a coherent mathematical discipline, combinatorial optimization is relatively young. When studying the history of the eld, one observes a number of independent
UIllinois - 942 - cs
AlgorithmsLecture 17: Applications of Maximum FlowFor a long time it puzzled me how something so expensive, so leading edge, could be so useless, and then it occurred to me that a computer is a stupid machine with the ability to do incredibly smart thin
UIllinois - 942 - cs
AlgorithmsLecture 18: Extensions of Maximum FlowWho are you?" said Lunkwill, rising angrily from his seat. What do you want?" I am Majikthise!" announced the older one. And I demand that I am Vroomfondel!" shouted the younger one. Majikthise turned on V
UIllinois - 942 - cs
AlgorithmsNon-Lecture J: Linear Programming AlgorithmsSimplicibus itaque verbis gaudet Mathematica Veritas, cum etiam per se simplex sit Veritatis oratio. [And thus Mathematical Truth prefers simple words, because the language of Truth is itself simple.
UIllinois - 942 - cs
AlgorithmsLecture 20: Adversary ArgumentsAn adversary means opposition and competition, but not having an adversary means grief and loneliness. Zhuangzi (Chuang-tsu) c. 300 BC It is possible that the operator could be hit by an asteroid and your $20 cou
UIllinois - 942 - cs
AlgorithmsLecture 21: NP-Hard ProblemsThe wonderful thing about standards is that there are so many of them to choose from. Real Admiral Grace Murray Hopper If a problem has no solution, it may not be a problem, but a fact not to be solved, but to be co
UIllinois - 942 - cs
AlgorithmsNon-Lecture K: Approximation AlgorithmsLe mieux est lennemi du bien. [The best is the enemy of the good.] Voltaire, La Bgueule (1772) Who shall forbid a wise skepticism, seeing that there is no practical question on which any thing more than a
UIllinois - 942 - cs
AlgorithmsNon-Lecture M: Number-Theoretic AlgorithmsAnd its one, two, three, What are we ghting for? Dont tell me, I dont give a damn, Next stop is Vietnam; [or: This time well kill Saddam] And its ve, six, seven, Open up the pearly gates, Well there ai
UIllinois - 942 - cs
AlgorithmsNon-Lecture N: Convex HullsNN.1Convex HullsDenitionsWe are given a set P of n points in the plane. We want to compute something called the convex hull of P . Intuitively, the convex hull is what you get by driving a nail into the plane at
UIllinois - 942 - cs
AlgorithmsAppendix: Solving Recurrences. . . O Zarathustra, who you are and must become behold you are the teacher of the eternal recurrence that is your destiny! That you as the rst must teach this doctrine how could this great destiny not be your grea
UIllinois - 942 - cs
CS 373Homework 1 (due 2/9/99)Spring 1999CS 373: Combinatorial Algorithms, Spring 1999http:/www-courses.cs.uiuc.edu/~cs373 Homework 1 (due February 9, 1999 by noon)Name: Net ID:Alias:Everyone must do the problems marked . Problems marked are for 1-u
UIllinois - 942 - cs
CS 373Homework 2 (due 2/18/99)Spring 1999CS 373: Combinatorial Algorithms, Spring 1999http:/www-courses.cs.uiuc.edu/~cs373 Homework 2 (due Thu. Feb. 18, 1999 by noon)Name: Net ID:Alias:Everyone must do the problems marked . Problems marked are for
UIllinois - 942 - cs
CS 373Homework 3 (due 3/11/99)Spring 1999CS 373: Combinatorial Algorithms, Spring 1999http:/www-courses.cs.uiuc.edu/~cs373 Homework 3 (due Thu. Mar. 11, 1999 by noon)Name: Net ID:Alias:Everyone must do the problems marked . Problems marked are for
UIllinois - 942 - cs
CS 373Homework 0 (due 1/26/99)Spring 1999CS 373: Combinatorial Algorithms, Spring 1999http:/www-courses.cs.uiuc.edu/ cs373 Homework 0 (due January 26, 1999 by the beginning of class)Name: Net ID:Alias:Neatly print your name (rst name rst, with no c
UIllinois - 942 - cs
AlgorithmsNon-Lecture L: Fibonacci HeapsA little and a little, collected together, become a great deal; the heap in the barn consists of single grains, and drop and drop makes an inundation. Saadi (11841291) The trees that are slow to grow bear the best
UIllinois - 942 - cs
AlgorithmsNon-Lecture O: Line Segment IntersectionSpengler: Theres something very important I forgot to tell you. Venkman: What? Spengler: Dont cross the streams. Venkman: Why? Spengler: It would be bad. Venkman: Im fuzzy on the whole good/bad thing. Wh
UIllinois - 942 - cs
AlgorithmsNon-Lecture P: Polygon TriangulationIf triangles had a god, they would give him three sides. Charles Louis de Secondat Montesquie (1721) Down with Euclid! Death to triangles! Jean Dieudonn (1959)PP .1Polygon TriangulationIntroductionRecal
UIllinois - 942 - cs
CS 373: Combinatorial Algorithms, Fall 2000Homework 0, due August 31, 2000 at the beginning of className: Net ID:Alias:Neatly print your name (rst name rst, with no comma), your network ID, and a short alias into the boxes above. Do not sign your name
UIllinois - 942 - cs
CS 373: Combinatorial Algorithms, Spring 1999Final Exam (May 7, 1999)Name: Net ID:Alias:This is a closed-book, closed-notes exam!If you brought anything with you besides writing instruments and your two 8 1 11 cheat sheets, please leave it at the fro
UIllinois - 942 - cs
CS 373: Combinatorial Algorithms, Fall 2000Homework 0, due August 31, 2000 at the beginning of className: Net ID:Alias:Neatly print your name (rst name rst, with no comma), your network ID, and a short alias into the boxes above. Do not sign your name
UIllinois - 942 - cs
CS 373Homework 5 (due 4/22/99)Spring 1999CS 373: Combinatorial Algorithms, Spring 1999http:/www-courses.cs.uiuc.edu/~cs373 Homework 5 (due Thu. Apr. 22, 1999 by noon)Name: Net ID:Alias:Everyone must do the problems marked . Problems marked are for
UIllinois - 942 - cs
CS 373: Combinatorial Algorithms, Spring 1999Midterm 1 (February 23, 1999)Name: Net ID:Alias:This is a closed-book, closed-notes exam!If you brought anything with you besides writing instruments and your 8 1 11 cheat sheet, please leave it at the fro
UIllinois - 942 - cs
CS 373: Combinatorial Algorithms, Spring 1999Midterm 2 (April 6, 1999)Name: Net ID:Alias:This is a closed-book, closed-notes exam!If you brought anything with you besides writing instruments and your 8 1 11 cheat sheet, please leave it at the front o
UIllinois - 942 - cs
CS 373: Combinatorial Algorithms, Fall 2000Homework 1 (due September 12, 2000 at midnight)Name: Net ID: Name: Net ID: Name: Net ID:Alias:U 3/4 1Alias:U 3/4 1Alias:U 3/4 1Starting with Homework 1, homeworks may be done in teams of up to three peop
UIllinois - 942 - cs
CS 373: Combinatorial Algorithms, Fall 2000Homework 4 (due October 26, 2000 at midnight)Name: Net ID: Name: Net ID: Name: Net ID:Alias:U 3/4 1Alias:U 3/4 1Alias:U 3/4 1Homeworks may be done in teams of up to three people. Each team turns in just
UIllinois - 942 - cs
CS 373: Combinatorial Algorithms, Fall 2000Homework 1 (due November 16, 2000 at midnight)Name: Net ID: Name: Net ID: Name: Net ID:Alias:U 3/4 1Alias:U 3/4 1Alias:U 3/4 1Starting with Homework 1, homeworks may be done in teams of up to three peopl
UIllinois - 942 - cs
CS 373 1. True, False, or MaybeFinal Exam (December 15, 2000)Fall 2000Indicate whether each of the following statments is always true, sometimes true, always false, or unknown. Some of these questions are deliberately tricky, so read them carefully. Ea
UIllinois - 942 - cs
CS 373: Combinatorial Algorithms, Spring 2001Homework 0, due January 23, 2001 at the beginning of className: Net ID:Alias:Neatly print your name (rst name rst, with no comma), your network ID, and a short alias into the boxes above. Do not sign your n
UIllinois - 942 - cs
CS 373: Combinatorial Algorithms, Spring 2001Homework 1 (due Thursday, February 1, 2001 at 11:59:59 p.m.)Name: Net ID: Name: Net ID: Name: Net ID:Alias:U 3/4 1Alias:U 3/4 1Alias:U 3/4 1Starting with Homework 1, homeworks may be done in teams of u
UIllinois - 942 - cs
CS 373Midterm 2 (October 31, 2000)Fall 20001. Using any method you like, compute the following subgraphs for the weighted graph below. Each subproblem is worth 3 points. Each incorrect edge costs you 1 point, but you cannot get a negative score for any
UIllinois - 942 - cs
CS 373: Combinatorial Algorithms, Spring 2001http:/www-courses.cs.uiuc.edu/~cs373 Homework 6 (due Tue. May 1, 2001 at 11:59.99 p.m.)Name: Net ID: Name: Net ID: Name: Net ID:Alias:U 3/4 1Alias:U 3/4 1Alias:U 3/4 1Starting with Homework 1, homework
UIllinois - 942 - cs
CS 373Midterm 1 Questions (February 20, 2001)Spring 2001Write your answers in the separate answer booklet.1. Multiple Choice: Each question below has one of the following answers. (a) (1) (b) (log n) (c) (n) (d) (n log n) (e) (n2 )For each question,