http:^^www.cs.washington.edu^education^courses^421^96w^bboard.shtml
来自「This data set contains WWW-pages collect」· SHTML 代码 · 共 1,546 行 · 第 1/5 页
SHTML
1,546 行
In the beautiful city of Seattle | will honor you. Solomon*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* Only 182 days until my wedding! (8/25/96)<hr size=4><a name="825283302001">Date: 25 Feb 1996 13:12 PSTFrom: <b>Larry Ruzzo <ruzzo@quinault.cs.washington.edu></b>To: Eva Marie Allen <eallen@wolf.cs.washington.edu>Subject: <b>Re: last problem</b>Cc: Algorithms <cse421@cs.washington.edu></a> > ... we need to take the min of d(i,j) and d(i,k) + > d(k,j), well, if d(i,j) is zero, and the sum of the rest is positive, > then the min is zero. Right? So I can easily see creating an all zero > matrix. The implication of the algorithm is that if d(i,j) is 1, then > either d(i,k) or d(k,j) is one. I do not find this to be true. The book > SAYS it is true, so I assume that I am looking at this the wrong way. ^^^^ where?edge weights/distances can be positive, negative or zero. zeromeans a free trip from point i to point j; if that's cheaper thangoing via Kansas City, then that's what you should do. E.g., busfares between stops in downtown seattle would give a matrix full ofzero's. [Note that in the transitive closure algorithm on the samepage, zero means NO path from i to j, but it's not computed the sameway.]<hr size=4><a name="825355795001">To: cse421@geoduckSubject: <b>last problem</b>Date: Mon, 26 Feb 1996 09:29:39 PSTFrom: <b>Martin Tompa <tompa@geoduck.cs.washington.edu></b></a>To amplify on Larry's answer a bit, Floyd's algorithm (for shortest paths) andWarshall's algorithm (for transitive closure) are very similar in spirit, butnot at all identical. "It we need to take the min of d(i,j) and d(i,k) + d(k,j), well, if d(i,j) is zero, and the sum of the rest is positive, then the min is zero. Right? So I can easily see creating an all zero matrix." This is a statement about the shortest paths algorithm. What it says is that,once d(i,j) is zero, it will never go positive again. (Actually, this is truemore generally: no matter what value d(i,j) has, it will never laterincrease.) But it doesn't follow from this that the algorithm willnecessarily create an all zero matrix. In general, it won't. "The implication of the algorithm is that if d(i,j) is 1, then either d(i,k) or d(k,j) is one. This is a statement about the transitive closure algorithm, although it shouldsay "if d(i,j) changes from 0 to 1, then either d(i,k) or d(k,j) is one." Inclass we never talked about the transitive closure (Warshall's) variant.<hr size=4><a name="825358601001">Date: Mon, 26 Feb 1996 10:16:23 -0800 (PST)From: <b>Michael Clay <claym@wolf.cs.washington.edu></b>To: Martin Tompa <tompa@cs.washington.edu>cc: cse421@geoduck.cs.washington.eduSubject: <b>Re: HW6, #2 (Warning: this message contains a hint.)</b></a>Where the text says "describe an algorithm",how detailed a description are we supposed togive? Please specify _exactly_ what you doand do not expect in the description.Thanks, Michael (claym@wolf.cs.washington.edu)<hr size=4><a name="825359061001">To: cse421@geoduckSubject: <b>"describe an algorithm"</b>Date: Mon, 26 Feb 1996 10:24:10 PSTFrom: <b>Martin Tompa <tompa@geoduck.cs.washington.edu></b></a>Ideally this should be done in the style of the textbook: a precise algorithmdescribed in pseudocode (see e.g. Matrix-Chain-Order or LCS-Length), plus ashort English description of how the algorithm works in general and any trickyportions of it in particular. If correctness of your algorithm isn't obvious,part of this description should convince the reader of its correctness.------- Forwarded MessageDate: Mon, 26 Feb 1996 10:16:23 -0800From: Michael Clay <claym@wolf.cs.washington.edu>To: Martin Tompa <tompa@cs.washington.edu>cc: cse421@geoduck.cs.washington.eduSubject: Re: HW6, #2 (Warning: this message contains a hint.)Where the text says "describe an algorithm",how detailed a description are we supposed togive? Please specify _exactly_ what you doand do not expect in the description.Thanks, Michael (claym@wolf.cs.washington.edu)------- End of Forwarded Message<hr size=4><a name="825405471001">To: cse421Subject: <b>space</b>Date: Mon, 26 Feb 1996 23:17:43 PSTFrom: <b>Martin Tompa <tompa@june.cs.washington.edu></b></a>A student asked how to measure the space required by an algorithm.Generally, the space is the maximum number of words of memory neededby the algorithm at any one time. Most dynamic programming algorithmsneed much more space than the space used by the inputs and outputs.For instance, matrix-chain-order needs space Theta(n^2) for the m ands tables, even though the input and output only take up Theta(n)space.<hr size=4><a name="825407777001">To: cse421Subject: <b>HW6, #4</b>Date: Mon, 26 Feb 1996 23:56:02 PSTFrom: <b>Martin Tompa <tompa@june.cs.washington.edu></b></a>On problem 4 of the homework sheet, I gave the following useful bit ofadvice:"Note that what is computed in line 6 during iteration k is notexactly the value d_{ij}^(k)."One of the students has convinced me that this advice is ... uh... err ... not, strictly speaking, exactly, completely true.But no matter: if you believe the advice, you will be led to the proofthat I had in mind. If you don't believe the advice, you will be ledto the proof this student came up with.This is what is so great about teaching: no matter how often you teachone of these classical results, each time you learn something newabout it, often from students.<hr size=4><a name="825893064001">To: cse421@geoduckSubject: <b>details on Chapter 36 reading assignment</b>Date: Sun, 03 Mar 1996 14:44:14 PSTFrom: <b>Martin Tompa <tompa@geoduck.cs.washington.edu></b></a>You should read the whole chapter, but you can skim the followingparts:from Lemma 36.1 to the end of Section 36.1the proofs of Theorems 36.9 and 36.10The main technical meat that we want to cover is in Section 36.5, butyou need some of the motivation and definitions from earlier in thechapter to make sense of this. On a first reading, I would stronglyrecommend delaying the reading from Lemma 36.5 to the end of Section36.3 until you've finished the chapter. These are important resultsand proofs, but you will have trouble understanding them until you getmore experience with reducibilities in Section 36.5.<hr size=4><a name="825916218001">Date: 3 Mar 1996 21:03 PSTFrom: <b>Larry Ruzzo <ruzzo@quinault.cs.washington.edu></b>To: cse421@csSubject: <b>24-1(a)</b></a> > Please define a second best minimum spanning tree: suppose there are > two MSTs-- does one qualify as a 2'nd best? Or do you want to see the > one with the second-smallest DISTINCT weight?I'm willing to credit a good solution to the problem under eitherinterpretation. Howeverm, I think the book intended, and I think itwill be easier to prove, the first interpretation: if there happento be several spanning trees with weight equal to the minimum, thenT can be any of them, and any of the others can be taken as the "2ndbest".<hr size=4><a name="825917703001">Date: 3 Mar 1996 21:33 PSTFrom: <b>Larry Ruzzo <ruzzo@quinault.cs.washington.edu></b>Subject: <b>Re: 24-1(a)</b>To: cse421@cs</a>PS: In line with the previous message, you should change "thesecond-best" to "a second-best" in part (c), in the case where thesecond-best is not unique.<hr size=4><a name="825917904001">Date: 3 Mar 1996 21:36 PSTFrom: <b>Larry Ruzzo <ruzzo@quinault.cs.washington.edu></b>To: cse421@csSubject: <b>HW7, 17.2-4</b></a> > Could I make the assumption that the longest distance possible between > two gas stations is n miles, the same miles as the professor's car can run > with a full tank of gas? Yes, you may assume there is no section of road longer than n mileswithout a gas station.<hr size=4><a name="825969234001">Date: 4 Mar 1996 11:44 PSTFrom: <b>Larry Ruzzo <ruzzo@quinault.cs.washington.edu></b>To: cse421@csSubject: <b>HOMEWORK REVISION</b></a>Problem 24-1(a) is trickier than I had first realized. It's a goodtest of your understanding of min spanning trees, and not beyondwhat I think you can do, but the assignment seems meaty enoughwithout it. So I'm making part (a) EXTRA CREDIT. Parts (b) and (c)are STILL REQUIRED, and of course you can use the result stated inpart (a) even if you don't prove it.****** WARNING: HINT FOLLOWS *******In case you want a start on the extra credit part, here's a hint -- Let T1 be a min spanning tree.Let T2 be a 2nd best spanning tree with as many edges in common withT1 as possible.<hr size=4><a name="825992615001">Date: 4 Mar 1996 18:20 PSTFrom: <b>Larry Ruzzo <ruzzo@quinault.cs.washington.edu></b>To: cse421@csSubject: <b>OFFICE HOUR CHANGE</b></a>Unfortunately, I will be unavailable during my normal office hour,2:30-3:30 tomorrow, Tuesday 3/5. However, I should be in most ofthe morning, and from 1:30 to 2:30. Sorry for the inconvenience.<hr size=4><a name="826054579001">Date: 5 Mar 1996 10:59 PSTFrom: <b>Larry Ruzzo <ruzzo@quinault.cs.washington.edu></b>To: cse421@csSubject: <b>Re: HW 7, 17-2.2 (***CAUTION; HINT BELOW***)</b></a> > I am have some trouble coming up with an algorithm that runs in > O(nW) for this problem. I can see using variations of Floyd-Warshall or > Matrix Chain Order, but these seem to take O(n**3). I haven't been able > to come up with a variation of Longest Common Subsequence that works. Is > there something I am missing?(***CAUTION; HINT BELOW***)The key issue with dynamic programming is that an optimal solutionto the problem can be built out of optimal solutions to relatedsmaller problems. The smaller problems often arise by fixing invarious ways some of the choices that ultimately must be made.E.g., in matrix parenthesization, there was a choice as to where theoutermost parentheses go, and assuming they go at position k,certain subproblems arise. You don't know k, but can consider allpossibilities. In the string edit problem you did for homework,there's a choice as to the last edit operation used to build theoutput string from the input string, and assuming it was, say, acopy, then a certain subproblem arises; assuming it was a twiddle,a different subproblem arises, etc. Again, you don't know which isthe right choice to make for the last operation, so you considerthem all. LCS is similar. What are the choices in Knapsack? If you fix one, does it give riseto a smaller knapsack-like problem? Which choice should you fix?How many ways are there to fix it? Can you tell what the rightchoice is? If not, can you consider all possibilities in somesystematic way?If you're stuck, I always recommend playing with some examples.Make up some simple instances of the problem with 1 object; what'sit's solution? Vary W; how does the solution change? Add anotherobject or 3, etc. There's of course some danger that your exampleswill be too simple or too specialized or that you will leap to the wrong conclusion from them, but that's what proofs are for, andconcrete examples often help crystalize your thinking.<hr size=4><a name="826149018001">To: cse421@geoduckSubject: <b>evaluations Friday</b>Date: Wed, 06 Mar 1996 13:50:08 PSTFrom: <b>Martin Tompa <tompa@geoduck.cs.washington.edu></b></a>Don't forget your #2 pencils on Friday. We'll take the last 10 minutes ofclass to do student evaluations.<hr size=4><a name="826247983001">To: cse421@geoduckSubject: <b>HW8 (just kidding)</b>Date: Thu, 07 Mar 1996 17:19:16 PSTFrom: <b>Martin Tompa <tompa@geoduck.cs.washington.edu></b></a>Here are some exercises on Chapter 36 to help you study for the final. Youdon't need to turn these in.p. 923, 36.1-1p. 924, 36.1-4p. 929, 36.2-5p. 938, 36.3-1p. 960, 36.5-1<hr size=4><a name="826326241001">Date: Fri, 8 Mar 1996 15:03:37 -0800From: <b>aberman@hobbes (Andrew Berman)</b>To: cse421@
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?