9 Pages

l20_handouts_4up

Course: ECE 3140, Spring 2008
School: Cornell
Rating:
 
 
 
 
 

Word Count: 1479

Document Preview

Memory Advanced Topics Online Course Evals (DO IT, DO IT, DO IT): Wed 23 Apr Weds 7 May (FLEXGRADE!) http://www.engineering.cornell.edu/courseeval We listen to your feedback, so you can help next years students Homework 6 available now, due Tuesday, April 15 (tax day), 10p.m. Project 4b due Thursday, April 17, 10p.m. Prelim2 April 22, 7:30, Uris Hall Auditorium Copyright Sally A. McKee 2006 The Unnecessary but...

Register Now

Unformatted Document Excerpt

Coursehero >> New York >> Cornell >> ECE 3140

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.
Memory Advanced Topics Online Course Evals (DO IT, DO IT, DO IT): Wed 23 Apr Weds 7 May (FLEXGRADE!) http://www.engineering.cornell.edu/courseeval We listen to your feedback, so you can help next years students Homework 6 available now, due Tuesday, April 15 (tax day), 10p.m. Project 4b due Thursday, April 17, 10p.m. Prelim2 April 22, 7:30, Uris Hall Auditorium Copyright Sally A. McKee 2006 The Unnecessary but Well Meant Slide (AGAIN) Plan your time carefully for the final project Work out any team conflicts or miscommunications ASAP Organize together with your team to make sure you can work on things TOGETHER and AT THE SAME TIME Otherwise, if you divide stuff up into portions, youre going to miss out on the learning of doing the other persons portion Think about the industrial perspective: remember that its just as important to VALIDATE as to DESIGN, so switch roles amongst teammates Copyright Sally A. McKee 2006 Hennessy & Patterson Read 7.4 (its long, alas) Read 8.1-8.7 for next week Our Canonical Vector Example vec_add(int x[16], int y[16], int s[16]) { int i; for (i = 0; i < 16; i++) { s[i] = x[i] + y[i]; s[i] x[i] y[i]; } for (i = 0; i < 16; i++) { s[i] = s[i] + 1; s[i] s[i] } } // simple, direct-mapped cache: direct// 128 byte cache, 16 byte (4 word) blocks/lines Copyright Sally A. McKee 2006 Copyright Sally A. McKee 2006 1 Array Addresses byte offset hex divisions word offset index tag Usually put separately so that tag array is smaller, enjoys faster tag lookup 0 1 2 3 4 5 6 7 Step by Step data 1 x[0] x[1] x[2] x[3] Address index = 4 Copyright Sally A. McKee 2006 Copyright Sally A. McKee 2006 Our Direct Mapped Cache tag 0 1 2 3 Step by Step data 4 y[0] y[1] y[2] y[3] Address index = 0 Addresses: x (tag = 1, index = 4) y (tag = 4, index = 0) s (tag = 5, index = 2) At end of 1st loop this is the cache state Copyright Sally A. McKee 2006 4 What if all vars had same index? 1 x[0] x[1] x[2] x[3] 5 6 7 Copyright Sally A. McKee 2006 2 Step by Step tag 0 1 2 3 4 5 6 7 Copyright Sally A. McKee 2006 Step by Step tag data data 4 5 1 y[0] s[0] x[0] y[1] s[1] x[1] y[2] s[2] x[2] y[3] s[3] x[3] Address index = 2 0 1 2 3 4 5 6 7 4 4 5 1 1 y[0] y[4] s[0] x[0] x[4] y[1] y[5] s[1] x[1] x[5] y[2] y[6] s[2] x[2] x[6] y[3] y[7] s[3] x[3] x[7] Address index = 1 Copyright Sally A. McKee 2006 Step by Step tag 0 1 2 3 4 5 6 7 Copyright Sally A. McKee 2006 Step by Step tag data data 4 5 1 1 y[0] s[0] x[0] x[4] y[1] s[1] x[1] x[5] y[2] s[2] x[2] x[6] y[3] s[3] x[3] x[7] 0 1 2 3 4 Address index = 5 5 6 7 4 4 5 5 1 1 y[0] y[4] s[0] s[4] x[0] x[4] y[1] y[5] s[1] s[5] x[1] x[5] y[2] y[6] s[2] s[6] x[2] x[6] y[3] y[7] s[3] s[7] x[3] x[7] next iteration starts overwriting data Copyright Sally A. McKee 2006 3 Same Example, Different Cache vec_add(int x[16], int y[16], int s[16]) { int i; for (i = 0; i < 16; i++) { s[i] = x[i] + y[i]; s[i] x[i] y[i]; } for (i = 0; i < 16; i++) { s[i] = s[i] + 1; s[i] s[i] } } The Way I Draw It Different from H&P Works for me pick what that works for you Index indicates SET, LRU indicates WAY SET, Word Offset indicates which word, Byte Offset, etc. word, Set 0 Set 1 Set 2 Breakdown of a block or line word and a word is 4 bytes for MIPS Way 0 block Way 1 or line Way N-1 // 4-way associative cache: // 128 byte cache, 16 byte (4 word) blocks/lines Copyright Sally A. McKee 2006 Copyright Sally A. McKee 2006 Associative Caches Keep this for exams Trust this Four-way associative means: FourFOUR WAYS (numbered 0-3) 0NUMBER OF SETS undetermined need to know block size (16B here), and total cache size (128B here) so in this case 128B/16B blocks/4 ways gives number of sets (or #entries per way) Calculating Cache Parameters You have to know block size You have to know associativity if problem doesnt say how many ways: assume direct-mapped if cache is large directassume fully associative if cache is (very) small Two-way associative means: TwoTWO WAYS NUMBER OF SETS undetermined need to know block size (16B here), and total cache size (128B here) Total cache size in Bytes/block size (in Bytes) will Give you a place to start, then Divide by #ways to get #sets Copyright Sally A. McKee 2006 Direct-mapped means 1-WAY ASSOCIATIVE: DirectASSOCIATIVE: N is # sets, which here is same as # blocks in cache (jlike indexing an array) sets, Only one index possible for any given block of memory (based on address) Fully associative means single set, N ways, where N is # blocks set, ways, Copyright Sally A. McKee 2006 4 Addresses (Correct!) Address of x is 0x0C0 tag 000000000000000000000000110 index 0 00 00 word offset 0 00 00 S0 x[0] S1 byte offset tag 6 Four-Way Associative Cache tag tag 21 16 tag v v v v X 1110 0000 x[3] y[0] y[3] S0 S1 s[0] 3 LRU info 2 1 0 What happens here for the first three iterations? Address of y is 0x200 000000000000000000000010000 s[3] way0 way1 way2 way3 Address of s is 0x2a0 000000000000000000000010101 0 00 00 Anybody see a performance problem coming here? Copyright Sally A. McKee 2006 Addresses: x (tag = 6, index = 0) y (tag = 16, index = 0) s (tag = 21, index = 0) Request: load x[0], y[1]; store s[0] Copyright Sally A. McKee 2006 Same for iterations i=0 through i=3 Whats the allocateon-write policy? Four-Way Associative Cache Addresses: x (tag = 6, index = 0) y (tag = 16, index = 0) s (tag = 21, index = 0) Request: load x[0] Request: load y[0] Request: store s[0] Four-Way Associative Cache Addresses: x (tag = 6, index = 1) y (tag = 16, index = 1) s (tag = 21, index = 1) Request: load x[4] Were changing sets now Request: load y[4] Request: store s[4] (allocate on write, so read in s[4]-s[7], then write) Copyright Sally A. McKee 2006 Copyright Sally A. McKee 2006 5 Four-Way Associative Cache tag 6 6 S0 x[0] S1 x[4] tag tag 21 16 21 16 x[3] x[7] Virtual Memory How do we fit several programs in memory at once? How does the assembler/compiler know what addresses are OK to use? Multiprogramming allows >1 program to run at the same time (weve been over this one) Who keeps track of whats where? tag v v v v 1110 1110 y[0] y[4] y[3] y[7] S0 S1 s[0] s[4] 3 3 LRU info 2 1 2 1 s[3] s[7] 0 0 way0 way1 way2 way3 Addresses: x (tag = 6, index = 1) y (tag = 16, index = 1) s (tag = 21, index = 1) Request: load x[4], y[4]; store s[4] Copyright Sally A. McKee 2006 Same for iterations i=4 through i=7 Copyright Sally A. McKee 2006 What Happens for x[8]? tag 6 6 S0 x[0] S1 x[4] tag tag 21 16 21 16 x[3] x[7] Virtual Memory tag v v v v 7 1111 1110 y[0] y[4] y[3] y[7] S0 S1 s[0] s[4] 4 3 LRU info 3 2 2 1 s[3] s[7] 1 0 x[8] x[11] way0 way1 way2 way3 x[], y[], and s[] would have been in one of these places, so would have had different addrs Why? Addresses: x (tag = 7, index = 0) y (tag = 17, index = 0) 17, s (tag = 22, index = 0) 22, Request: load x[8], y[8]; store s[8] y[8]; Copyright Sally A. McKee 2006 After load x[8], now it gets interesting: Where does y[8] go? Where does x[12] go? 0x00001000 Copyright Sally A. McKee 2006 6 Pages Divide memory into chunks For caches, lines or blocks For main memory, pages Virtual to Physical Mapping virtual address 0x00001000 physical address 0x0000C000 00000000000000000001 00000000 00 00 page number translation page offset Assume virtual == physical page size 4KByte pages for now 0x00000000 is invalid (remember why?) 0x00001000 0x00002000, . . . Copyright Sally A. McKee 2006 00000000000000001101 00000000 00 00 page number page offset page offset doesnt change! Copyright Sally A. McKee 2006 Virtual to Physical Mapping 0x40000000 Page Table virtual page number page offset V DRXK page table holds: physical page numbers bookkeeping info valid dirty read-only/writeable executable OS kernel access only 0x00000000 0x00000000 virtual memory Copyright Sally A. McKee 2006 physical memory (DRAM) physical page number page offset Copyright Sally A. McKee 2006 7 Page Table What if the page table entry is invalid? Page misses (Fig 7.22 greatly oversimplifies) Code Static variables Stack Heap Page table? Translation Lookaside Buffer Why TLB? Cache for PTEs (Page Table Entries) Looks a lot like a little page table Usually fully associative May have two levels (like regular caches) Virtual page number tag physical page v dr x k Swapping (need replacement policy, probably LRU) Copyright Sally A. McKee 2006 Copyright Sally A. McKee 2006 Page Table Each processs page table is in memory But memory is SLOW! What can we do? TLBs Size: 16-512 entries 16Tag is virtual page number Need to track LRU information (this is the ref bit in the book) TLB lookup takes place in parallel with cache access Typically high hit rates (miss < 1% of time) L1 cache indexed by virtual addresses L2 can be virtual or physical (if TLB hit, well have physical address in time for lookup) Copyright Sally A. McKee 2006 Copyright Sally A. McKee 2006 8 TLBs Its just cache for our current working set of Page Table Entries Replacement can be hardware or software Simple TLB hardware replacement easy Can have other associativities, multiple levels When entry evicted, bookkeeping bits must be updated in page table Copyright Sally A. McKee 2006 TLB What if entry is invalid? Not present? TLB misses If present, get PTE from memory If not present, OS handles page fault Can be very expensive! Many memory accesses Need to transfer control to OS Possibly disk accesses or network accesses Copyright Sally A. McKee 2006 9
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:

Cornell - ECE - 3140
More (Oh YES!) on MemoryOnline Course Evals (DO IT, DO IT, DO IT): Wed 23 Apr Weds 7 May (FLEXGRADE!) http:/www.engineering.cornell.edu/courseeval We listen to your feedback, so you can help next years students Mistake in Lecture 15 slides Were tak
Cornell - ECE - 3140
TodayMemory HierarchiesMore Advanced TopicsQuick review Tags what they are, how they work Assume word-addressed memory, or that word size is a byteCopyright Gary S. Tyson 2003 Copyright Sally A. McKee 2005Copyright Gary S. Tyson 2003, Copyr
Cornell - ECE - 3140
Announcements Homework 2 due Tuesday 2/19 Project 2 due Tuesday 2/26 Homework 2, problem 2 clarification boo is NOT foo Sorry about the boo-boo, foo-boo?, boofoo? foo-foo? foo?, foo-foo?Hennessy and Patterson Read supplemental docs Notes on
Cornell - ECE - 3140
Announcements Project 2 due Tuesday 2/26 Homework 3 will be posted 2/26 Project 3 will be posted 2/26Endianness Review A 32-bit HEX value W1W0X1X0Y1Y0Z1Z0 is to be stored at address A Memory is byte addressable so this 32-bit value is stored a
Cornell - ECE - 3140
Announcements Project 2 due Today H Homework 3 will b posted t d k ill be t d today Due Tue., Mar 4, 10:00pmAcademic Integrity Academic Conduct (from Syllabus) Refer to Cornell Universitys Code of Academic University s Integrity when in doubt.
Cornell - ECE - 3140
Announcements Homework 3 has been posted Due Tue Mar 4 10:00pm Tue., 4,Hennessy and Patterson Read CD Read Appendix B.1-B-5 (Done) Read Appendix B 6 B 11 (Done) B.6-B.11 Read (again) Appendix B.6 for Tuesday Project 3 has been posted Due T
Cornell - ECE - 3140
Announcements Homework 3 has been posted Due Tue Mar 4 10:00pm Tue., 4, Verilog option (hw3b), problems 3,4,6 may be handed in Tue., Mar 11, 10:00pmAnnouncements HKN tutoring Monday 7-9pm Tuesday 7-9pm NEW! Homework 4 to be posted today Du
Cornell - ECE - 3140
Announcements Homework 3b (Verilog option) Due Tue Mar 11 10:00pm Tue., 11, Verilog problems 3,4,6Hennessy and Patterson Read Chapter 5 Read 5.1-5.5 for (DONE) Read 5 6 5 9 5 11 for fun 5.6, 5.9-5.11 Homework 4 Due Tue., Mar 11, 10:00pm
Cornell - ECE - 3140
ECE/CS 314 Spring 2008 Section 1Lab Account and Support To create an account and gain access to the lab machines we will be using in ECE/CS 314 you need to go to https:/accounts.ece.cornell.edu For help regarding account creation and account mai
Cornell - ECE - 3140
ECE/CS 314 Spring 2008 Section Notes #21. Assembler DirectivesIn addition to assembly code, your assembly-language program needs some extra information to properly create an executable. This extra information is supplied via assembler directives.
Cornell - ECE - 3140
Announcements Homework 3b (Verilog option) Due Today Mar 11 10:00pm Today, 11, Verilog problems 3,4,6Announcements If you asked for a make-up exam and did not receive an email from me this morning Contact morning, me ASAP! Prelim will cover L
Cornell - ECE - 3140
Announcements80Prelim 170 60 Homework 5 Due Tuesday Apr 1 10:00pm Tuesday, 1, Project 3 Due Today, 10:00pm50 Project 4a Due Thu., Apr 3, 1:25pm, in class and via CMS4030 Prelim 1 Mean: 82.88%2010 Prelim 2 April 22 @ 7:30p
Cornell - ECE - 3140
Announcements Homework 5 Due Tuesday Apr 8 10:00pm Tuesday, 8, But you are encouraged to do it before Project 4aHennessy and Patterson Read Chapter 5 Read 5.1-5.5 for (DONE) Read 5 6 5 9 5 11 for fun 5.6, 5.9-5.11 Project 4a Due Thu., Apr
Cornell - ECE - 3140
Announcements Project 4a Due Thu., Apr 3, Due 1:25pm, in class and via CMSNext Several Lectures Caches Memory Hierarchies Virtual Memory Prelim 1 Mean: 82.88% (~83%) Nice job! Prelim 2 April 22 @ 7:30pm, Uris Hall AuditoriumECE/CS 31
Cornell - ECE - 3140
Announcements Sections start THIS week Dont miss them! Theyre important! First project available today (we wont have covered all the material you need to finish, but youll be able to get started) Due in two weeks!Announcements Got CMS? If you
Cornell - ECE - 3140
Announcements Homework 1 due at 10pm Tuesday Reminder: submit questions to newsgroup FIRST (or ask in Section or TA/Consulting hours) Not in CMS? Post to newsgroup Goto https:/accounts.ece.cornell.edu for info on how to get and use Xwin32 g Home
Cornell - ECE - 3140
ECE/CS314 Computer Organization Build a Computer in Three Months Learn How to Program It Instructors Prof. Douglas Long dll26@cornell.edu Regular office hours T/R 3:00-4:00 PH 207 Other hours by appointment if necessaryCMS Were in the proces
Cornell - ECE - 3140
ECE/CS 314 Spring 2007 Homework 4Due Tuesday, April 17, 2007 before 10:00pm EST Homework Submission Policies 1. Show your work where appropriate. 2. Homework Assignments are done individually without calculators. 3. Homework must be typed and submit
Cornell - ECE - 3030
School of Electrical and Computer Engineering, Cornell University ECE 303: Electromagnetic Fields and Waves Fall 2007 Homework 1 Due on Aug. 31, 2007 by 5:00 PMReading Assignments:i) Review the material on cartesian, cylindrical, and spherical co-
Cornell - BEE - 5330
Cornell - BEE - 5330
Cornell - CS - 381
CS 381 Assignment 1 due Friday, Sept. 1, 2006 1. a) Prove that {0,1} * is countably infinite. b) Prove that the set of all subsets of {0,1} * is not countably infinite. c) Can we assign a unique name to each subset of {0,1} * ? Explain your answer. 2
Cornell - CS - 381
Solutions for Homework 1 of COM S 381Fall 2006 September 4, 2006Problem 1(a)We want to give a one-one on-to mapping f from {0, 1} to the set of natural numbers. Dene f () = 1, f (0) = 2, f (1) = 3, f (00) = 4, f (01) = 5, f (10) = 6, f (11) = 7
Cornell - CS - 381
CS 381 Assignment 2 due Friday, Sept. 8, 2006 Please write your name and net id on all pages turned in. We need net id to record your grade. If you turn in each problem on a separate sheet we will grade your problems in parallel and get your assignme
Cornell - CS - 381
CS482ProblemSet2Solutions DanFitzGerald,dpf7 Question1: Describetheset {0 n 10 2n 1n1}intersect 01{0 n 102n 1n1}01 .Arethereanystringswithan oddnumberofblocksofzeros? Solution:Sincewearedealingwithsetintersection,anelementisinthesetiffitisinbothsetsb
Cornell - CS - 381
CS 381 Assignment 3 due Friday, Sept. 15, 2006 Please write your name and net id on all pages turned in. We need net id to record your grade. If you turn in each problem on a separate sheet we will grade your problems in parallel and get your assignm
Cornell - CS - 381
CS381Homework#3Solutions September15,2006 1.{010010000102n1|n&gt;=0} Thisisverysimilartothesetfromlastweeksproblem#1,exceptthislanguagecanhavean evenoroddnumberofblocks. 2.Anylanguagewiththecorrecttransitiondiagramreceivesfullcredit. 3.Manydifferentsolu
Cornell - CS - 381
CS 381 Assignment 4 due Friday, Sept. 22, 2006 Please write your name and net id on all pages turned in. We need net id to record your grade. If you turn in each problem on a separate sheet we will grade your problems in parallel and get your assignm
Cornell - CS - 381
Ans 1) Its the set consisting of 0s and 1 where the number of ones is equal to the number of blocks of zeroes. Ones are never consecutive. All strings end with 1 and begin with 0. There can be odd as well as even blocks of zeroes. The relationship be
Cornell - CS - 381
CS 381 Assignment 5 due Friday, Sept. 29, 2006Please write your name and net id on all pages turned in. We need net id to record your grade. If you turn in each problem on a separate sheet we will grade your problems in parallel and get your assign
Cornell - CS - 381
CS 381 Homework 5 SolutionsFall 2006September 29, 2006 1:The set consists of strings of blocks of 0s and 1s where each block is separated by a 2; each block can have any combination of 0s and 1s; the length of each successive block is one greater
Cornell - CS - 381
CS 381 Assignment 6 Solutions Please note that there are many possible solutions for each of the CFGs. 1. {xxRwwR | x{a,b}*,w{a,b}*} S -&gt; EE E -&gt; | aEa | bEb 2. {anbmcn+m | n,m 0} S -&gt; aSc | T T -&gt; bTc | 3. {aibj | i = j or i = 2j} S -&gt; T | U T -&gt;
Cornell - CS - 381
CS 381 Assignment 6 due Friday, Oct. 6, 2006Please write your name and net id on all pages turned in. We need net id to record your grade. If you turn in each problem on a separate sheet we will grade your problems in parallel and get your assignme
Cornell - CS - 381
CS 381 Assignment 7 due Friday, Oct. 20, 2006Please write your name and net id on all pages turned in. We need net id to record your grade. If you turn in each problem on a separate sheet we will grade your problems in parallel and get your assignm
Cornell - CS - 381
Com S 381 Homework 7 Solutions 1. L : { wwR | w (a+b)* } is not a regular set. Suppose L is regular. Then there exists a constant n such that for every string w in L such that |w| n, we can break w into three strings w = xyz such that: y |xy| n Fo
Cornell - CS - 381
CS 381 Assignment 8 due Friday, Nov. 3, 2006 Please write your name and net id on all pages turned in. We need net id to record your grade. If you turn in each problem on a separate sheet we will grade your problems in parallel and get your assignmen
Cornell - CS - 381
CS 381 HW 8 SolutionsDan FitzGerald, dpf7@cornell.edu November 1, 20061. Convert the following CFG to a one state PDA:S bA S aB A a A bAA A aS B b B bS B aBBThe main idea of this problem is summarized on page 238 of the text. Basically,
Cornell - CS - 381
CS 381 Assignment 9 due Friday, Nov. 10, 2006 Please write your name and net id on all pages turned in. We need net id to record your grade. If you turn in each problem on a separate sheet we will grade your problems in parallel and get your assignme
Cornell - CS - 381
CS 381 HW 9 Fall 2006 Solution to Problem 1 1. We construct a turing machine that lists all possible strings in the alphabet in order and simulates the turing machine M on each of the possible strings; the machine lists each string accepted by M. Sin
Cornell - CS - 381
CS 381 Assignment 10 due Friday, Nov. 17, 2006 Please write your name and net id on all pages turned in. We need net id to record your grade. If you turn in each problem on a separate sheet we will grade your problems in parallel and get your assignm
Cornell - CS - 381
CS 381 Assignment 11 due Friday, Dec. 1, 2006 Please write your name and net id on all pages turned in. We need net id to record your grade. If you turn in each problem on a separate sheet we will grade your problems in parallel and get your assignme
Cornell - CS - 280
Solutions to Homework 1February 10, 2007Note: If you dont understand how a question was graded then (1) rst read the solutions, (2) check with the grader who graded it, and then (and only then) see Prof. Halpern. There is no statute of limitation
Cornell - CS - 280
Solutions to Homework 2February 9, 2007General Comments: This problem set will probably end up being the hardest in the course for many of you. Your score will, in all likelihood, be signicantly lower than on the previous homeworks. If you are frus
Cornell - CS - 280
Solutions to Homework 3February 27, 2007The following exercises are from Rosen. 2.4: 6 Suppose that a | c and b | d. Then there exists k, m such that c = ka, d = mb. That means cd = kmab, so ab | cd. 2.4: 12 (a) 39 = 3 13. (b) 81 = 34 . 2.4: 14
Cornell - CS - 280
Solutions to Homework 4March 4, 2007The following exercises are from Rosen. 2.4: 44 Since a b mod m, it follows that m | (a b). Thus, there is a d such that (a b) = dm. It follows that (a b)c = dmc. Thus, mc | (a b)c = ac bc. So ac bc mod m
Cornell - CS - 280
Solutions to Homework 5March 30, 20064.2: 3 (a) By the product rule, the number of dierent meals is 5 6 20 3 = 1800. (b) Here are two ways of doing this: one is to repeatedly apply the sum and product rules as shown below: main dish only: 20
Cornell - CS - 280
Solutions to Homework 6April 4, 20074.3: 35 (b) 40 students play eld hockey, and 1 of those swims, so 39 play eld hockey but dont swim. (d) This question is asking how many students do not play eld hockey. Since there are 1400 students and 40 play
Cornell - CS - 280
Solutions to Homework 7April 7, 20076.1: 2 There are 5 choices here, so guessing right on one of them will increase the score. Hence, the probability of increasing the score from one guess is 1 . The probability 5 of guessing a question wrong is
Cornell - CS - 280
Solutions to Homework 9May 1, 20076.6: 2 Z = X + Y , where X, Y are independent binary variables with p = 1/2. Thus 1 E(Z) = 2( 2 ) = 1, and so by denition, 1 1 1 1 Var(Z) = E([Z 1]2 ) = (0 1)2 + (1 1)2 + (2 1)2 = 4 2 4 2 Finally, 2 =1 2 .
Cornell - CS - 280
Solutions to Homework 10May 1, 20077.2: 3 The truth table for exclusive-or () and not is shown below. P Q P Q P Q (P Q) TT F T F TF T F T FT T F T FF F T F Nearly everyone received full credit here. 7.2: 10 This problem was perhaps a little u
Cornell - CS - 280
Solutions to Homework 11May 10, 20073.1, 3 We dene a state as a possible conguration of the puzzle, e.g., reading clockwise from top left corner, {1, 2, 3, , where is the empty slot. Thus, for example, the initial conguration (shown on the left
Cornell - CS - 381
CS381 Fall 2005Second Mid Term Olin 155Friday Nov 4, 2005 9:05-9:55This is a 50-minute in class closed book exam. All questions are straightforward and you should have no trouble doing them. Please show all work and write legibly. Thank you. 1.
University of Texas - EM - 306
t.'fer,ur Ylcorzaf L terApe. T,ffu/s,osn A.lats#*&amp;.auas',ir* /;4 *t&amp;%rf ue n&lt;-d nerrea*&gt;lqtiqlatto*A+f,ey A.re %&quot;- s&amp;e+a/A ah.*';r0he-t ue, Jo sf*;q: io{ .hf-a'hebe,U.e y.;rc/ o{ qf/,U/-;'-.,l, ;/.k/,-' p
University of Texas - EM - 306
-TI -rlm 1m6kNDe.le-^ir.e- 44r=bnt aL u4/'Ilol_2lu m*-F-t*-*-l*IIi m,ro{ 4-/,e- Azrc m*nbet=.llrifrr&quot; a'Ly o( ? rtt*'zLJ=f4,- {-a.ru bepa%,Lz- {p,eze-rA'r= s{.&quot;'ro*-re tt 1,); a&amp; a^a lysls &quot;1 f/e ? l/&quot;{- ,ea/y, gield
University of Texas - EM - 306
beLrn;*. +1* benirr- *t-ob* DK.fkeFFb + o.'v.ly&lt;is o(t/r-&quot;*r*.sl-,r-e-['r-,27= u{n vt -T=\2F*= 0, = oQ- t)tG-z':1 -1'sz+Vf:tr-o Zil:='_&gt;W=4 r' -)^Je{f we can*&gt;K d'j *rlyk,7s+= 3L;Ps' 5t k)e u; il,o'ab I cnf'att&quot;'ln-f
University of Texas - EM - 306
,/i,q-t/* itc atbs kn d &quot;j*t h-%a +-&quot;y T/,t-&quot; o,'- g ucr.l,o't ati*/&quot; n Ur/ a,ob;rnJ a&quot;,;ytr*.f a.EdtJ.W&amp;*q*/.f={r;-A-n, ui&quot;( */.assu.n,ry TLl,u&quot;/h*nerna.l 4;-1.5'l O.5{ r,{ l'/* boy *a- */,c c^bs ,-t l6,nte, def,e-u;,nfl&quot;- *1a/
University of Texas - EM - 306
3-DTi /(&quot;rrr&quot;rr*(-x.a- 4&quot;'-*lsJ*&quot;n=a-l&quot;ot a.L ahbTI,r4-r,.-&quot;/t o Ure.-(tr6o-!-b. i a-|&quot;*p */^e efs rtE io L uenJn, ft*Jh 14,-+ 4-iy* *e/ ot't-/+ /&quot;e b F o( 4-/; ^*rr*Ns,.\'ab*t ryp'ir,* *&quot; l/&quot;ein /'/,= teh*.o{tfu e*;6.ll
University of Texas - EM - 306
EllZOb_Sfa{,.esfLis &amp;ou=e p; ll Go,n tu V* er*c&quot;+* &quot; ,A-e a^/ *onaot ?ln;. /a.A,a. kXt-), &quot;tt&quot;*rt&quot;-=, a-ud ma'til-er'rz*-u / ch&quot;* ;4&gt;,. as L #,e arLa/yttt u{ #e Lppl;caho. #,2;r eAd /i Jn'i'o o{ tJ.h e&quot; /y deLiro i'na/t lb'nlor-nusIIl.-
University of Texas - EM - 306
t rLgse&lt;A 1rrcss is L sLrrrol-,u.u ^artbu-= j&quot;;r'el at#*7t.c-Lr,b e,-&quot;,o'-d&quot;^&amp; +'&amp;-rnrif I t#'&quot;&lt;f ,= c*fa-ale o s*;p&quot;-L^7 /e/s , &quot;_ T-t 14* a-ra/ysis ,' lr'rs&lt;*- ue are i*t-&amp;/itc f4e ;oL.^4/ 4r-=q u-ri=J h e44J, ,nc-nle-r 5e .l-fi*+ d du
University of Texas - EM - 306
fLw^el,n;#mAFC\,.-'{.^fla-rtw L ,r4ssLl 4oq LJ ;s /.;F/ a*i{s *}&quot;-,4 a*d'B 1- He{;ndvt h&quot;^/ s,r.&amp;t.4ytire .h&quot;*E I' D k=ptedphYY*e-raiot-a+i&lt; 4B , ,s/p-uos lr;np E Ol*t 44* L;rrae '1&quot;A7*.* n-Mnt-l l&quot;-; V'E- l;r7z yb ;r,4 +