6 Pages

CS231Lecture8

Course: CS 231, Fall 2008
School: Vanderbilt
Rating:
 
 
 
 
 

Word Count: 661

Document Preview

Organization Computer CS 231-01 Error Detection and Correction Part 3 Dr. William H. Robinson September 10, 2004 http://eecs.vanderbilt.edu/courses/cs231/ 1 Topics Give me a productive error over a boring, mundane and unproductive fact any day. Anonymous Coding theory Hamming algorithm and limitations General announcements Assignment Continue reading Chapter 2 in Tanenbaum 2 Review: Error Correction...

Register Now

Unformatted Document Excerpt

Coursehero >> Tennessee >> Vanderbilt >> CS 231

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.
Organization Computer CS 231-01 Error Detection and Correction Part 3 Dr. William H. Robinson September 10, 2004 http://eecs.vanderbilt.edu/courses/cs231/ 1 Topics Give me a productive error over a boring, mundane and unproductive fact any day. Anonymous Coding theory Hamming algorithm and limitations General announcements Assignment Continue reading Chapter 2 in Tanenbaum 2 Review: Error Correction Motivation: DRAM is dense Signals are easily disturbed High Capacity higher probability of failure Transmission channels are not ideal introduce noise to signal Coding Theory k-bit Data 2k possibilities g 0,0 g k 1,0 n-bit Code with dmin Generator (mapping) Function 2k Valid Codewords g 0,n 1 = [c0 g k 1,n 1 Approach: Redundancy Add extra information so that we can recover from errors Can we do better than just create complete copies? Block Codes: Data coded in blocks k data bits coded into n encoded bits Measure of overhead: Rate of Code: K/N Often called an (n,k) code Adapted from John Kubiatowiczs CS 252 lecture notes. Copyright 2003 UCB. [m0 mk 1 ] cn 1 ] 3 4 1 Decoding Theory Received n-bit Codeword 2n possibilities Parity (syndrome) Function (n-k-1)-bit Syndrome 2n-k Syndromes Code Space General Idea: Code Vector Space C0=f(d0) Code Distance (Hamming Distance) [r0 rn 1 ] H T = [s0 sn k 1 ] d0 Not every vector in the code space is valid Hamming Distance for the code (dmin): Minimum number of bit flips to turn one code word into another 5 Number of errors that we can detect: (dmin - 1) Number of errors that we can fix: (dmin - 1) Adapted from John Kubiatowiczs CS 252 lecture notes. Copyright 2003 UCB. 6 Hamming Codes First major class of binary codes designed for error correction Originally used in error control for longdistance telephony Encodes parity for groups of bits within data Hamming Algorithm In a Hamming code r parity bits added to m-bit word Forms codeword with length (m + r) bits Bit numbering Starts at 1 with leftmost (high-order) bit All powers of 2 are parity bits Remaining bits are for data 7 8 2 Bit Numbering for Hamming Algorithm Given an 8-bit data word to encode Data bits (remaining bits) Parity Bit Assignment Bit No. 1 2 3 4 5 6 7 8 9 10 11 12 9 Bit No. in Binary 8s 0 0 0 0 0 0 0 1 1 1 1 1 4s 0 0 0 1 1 1 1 0 0 0 0 1 2s 0 1 1 0 0 1 1 0 0 1 1 0 1s 1 0 1 0 1 0 1 0 1 0 1 0 Encoded by Encodes 3, 5, 7, 9, 11 3, 6, 7, 10, 11 2, 1 5, 6, 7, 12 4, 1 4, 2 4, 2, 1 9, 10, 11, 12 8, 1 8, 2 8, 2, 1 8, 4 10 0 0 0 0 0 0 0 0 0 0 0 0 __ __ __ __ __ __ __ __ __ __ __ __ 1 2 3 4 5 6 7 8 9 10 11 12 Parity bits (powers of 2) Example Given an 8-bit data word to encode Codeword has bits 12 (8 data, 4 parity) Bit 1 checks: 1, 3, 5, 7, 9, 11 Bit 2 checks: 2, 3, 6, 7, 10, 11 Bit 4 checks: 4, 5, 6, 7, 12 Bit 8 checks: 8, 9, 10, 11, 12 Boolean Exclusive Sum - XOR Function Logic operation Output is true when either input is true but not both Corresponds to addition in base 2 A B F = A B Truth table for XOR function F A 0 0 1 1 B 0 1 0 1 F 0 1 1 0 12 11 3 Class Exercise Compute the codeword for the 8-bit data: 0x71 0111 0001 0 0 0 0 1 1 1 1 0 0 0 1 __ __ __ __ __ __ __ __ __ __ __ __ 1 2 3 4 5 6 7 8 9 10 11 12 Class Exercise Find the bit that is incorrect in the following codeword. This 12 bit codeword encodes 8 data bits. 0x19D 0001 1001 1101 Bit 1 checks: 1, 3, 5, 7, 9, 11 Bit 2 checks: 2, 3, 6, 7, 10, 11 Bit 4 checks: 4, 5, 6, 7, 12 Bit 8 checks: 8, 9, 10, 11, 12 13 correct incorrect incorrect correct 14 Bit 6 Two-Bit Errors: Detectable Correct codeword: 0x1DD 0001 1101 1101 Create two-bit error: 0001 1000 1101 Bit 1 checks: 1, 3, 5, 7, 9, 11 Bit 2 checks: 2, 3, 6, 7, 10, 11 Bit 4 checks: 4, 5, 6, 7, 12 Bit 8 checks: 8, 9, 10, 11, 12 correct incorrect incorrect incorrect 15 Two-Bit Errors: Undetectable Correct codeword: 0x1DD 0001 1101 1101 Create two-bit error: 0001 1001 1100 Bit 1 checks: 1, 3, 5, 7, 9, 11 ??? Bit 2 checks: 2, 3, 6, 7, 10, 11 Bit 4 checks: 4, 5, 6, 7, 12 Bit 8 checks: 8, 9, 10, 11, 12 correct incorrect correct incorrect 16 Bit 10 4 Class Exercise Compute the codeword for the 8-bit data: 0x96 1001 0110 1 0 1 1 0 0 1 0 0 1 1 0 __ __ __ __ __ __ __ __ __ __ __ __ 1 2 3 4 5 6 7 8 9 10 11 12 Class Exercise Find the bit that is incorrect in the following code...

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:

Vanderbilt - CS - 231
Computer Organization CS 231-01 ISA ExamplesDr. William H. Robinson December 3, 2004 http:/eecs.vanderbilt.edu/courses/cs231/1TopicsAre you mad 'cause I'm asking you 21 questions? 50 Cent Administrative stuff Programming assignment #3 Inst
Vanderbilt - CS - 231
Computer Organization CS 231-01 Cache and Main MemoryDr. William H. Robinson September 3, 2004 http:/eecs.vanderbilt.edu/courses/cs231/1TopicsMore money, more problems. Sean Puffy Combs General announcements Primary memory Caches Section 4
Vanderbilt - CS - 231
Computer Organization CS 231-01 Secondary Memory and I/ODr. William H. Robinson September 13, 2004 http:/eecs.vanderbilt.edu/courses/cs231/1Topics Magnetic disks CDs and DVDs (optical disks) Input and output2Memory HierarchyDown the hiera
TN Tech - PH - 4610
Phys 4610, Fall 2004 Exam #21. A spherical capacitor is made from two concentric spherical shells of radii a and b (with a < b). ab Show that the capacitance of this system is C = 4 0 (ba) . Suppose a charge Q is placed on the inner sphere and a ch
TN Tech - PH - 2120
TN Tech - PH - 4610
Phys 4610, Fall 2004 Exam #3 1. In the calculation of the energy stored in an electrostatic system, we rst derived the 0 expression W = 2 E 2 d . Later when considering linear dielectric media we found the 1 expression W = 2 D E d . What is the dier
University of Illinois, Urbana Champaign - ILAGSTAT - 1939
Districts and -_ - CountiesNwn'?er - Janwry 1 -.-_ 1940 111,1li,280 6,510Carroll Henry (Jo Davioss LW !krci?r Ogle Putnam Rock Island Stephenson Whiteside 'Ninnebngo Districtflog. !l-exs&11,770 6 ( 010 9,2c)o 7,120 LO,060 1,530 5,750 8,72G lG
University of Illinois, Urbana Champaign - ILAGSTAT - 1939
.COUNTY CROPSTATISTICS NORXLlZWS - 1939 AND 1940 (Issued by Illinois Cooperative Crop Renorting Service) ->ORN -d Acres -Q&-, 185,00059,700 167,200 52,300Districts gIcJ -Counties ~o~thwc_sst_ Eur eau Carroll-Gj@177,700 55,300 156,500 49,500 13
University of Illinois, Urbana Champaign - ILAGSTAT - 1939
.AI,Lc ` l"l' .` Li!l. '~Districts Iand Counties Northwest Sureau .Carroll " 'Henry Jo Daviess Lee Xercer I"' : Op$zam Hock Island S-c-rjhenson W i'i.esi.de W nlebago Di:&rict Northeast -&one Cook : De Kalb '3~1rage Grundy Kane K .ndall Lake IJ,a
University of Illinois, Urbana Champaign - ILAGSTAT - 1939
I+COIJKTY CROPSTATISTICS Fo3 ILLINOIS - 1939 AND 1940 (Issued by Illinois Cooperative Crop Reporting Service) Districts and -Counties Northwest BurGa< Carroll Henry Jo Daviess Lee ,%ercer Oglei?YtW.ElRYE -m lJ.001,400 1,500 400 800 1,200 700 3
University of Illinois, Urbana Champaign - PHYS - 214
The following questions are designed to give you some practice with concepts covered since the midterm (you should look at old practice midterms for sample problems covering the earlier course material!). Some are specifically designed to be difficul
University of Illinois, Urbana Champaign - PHYS - 403
Vanderbilt - MGT - 448
Mgt. 448 Prof. BarryGuidelines For Analysis/Feedback Statements Format Try to keep it under 500 words (but if you have more to say, by all means say it!). Always begin each analysis/feedback statement with the following information in the followi
Vanderbilt - HUM - 161
HUMANITIES 161Mass Mediated Politics: Images and Issues Fall 2008, Vanderbilt UniversityPAPER#3 CampaignDebateAnalysisForthisassignmentyouwillwriteanessaythatassessesandcritiquespresscoverageofone(or more)oftheteleviseddebatesinvolvingthepreside
Vanderbilt - MGT - 448
mgt 448 - spring 05, mod IIICLASS SCHEDULEWEEK 1 JAN 10 Competition & Cooperation read: Text: Reading 4-3 (pp. 131-140) Online: The Mall: Where Every Price is Negotiable Negotiate Pemberton prepare: receive: Role Instructions for GTechnica-Accel
Vanderbilt - MGT - 448
Mgt.448 Spring2009,Mod3 Yourtaskistogooutthere(bravely)intothedreadedrealworld,negotiateforsomething, andthenwriteapaperaboutit.Youcanchooseorcreateanopportunitytonegotiate somethingforwhichyoumightnormallynotnegotiateorforwhichyoudidnotintendto
Vanderbilt - MGT - 544
OwenGraduateSchoolofManagement VanderbiltUniversity Spring2009,Module3 Tues./Thurs.,2:003:30pmMGT.544CONTROVERSIESANDDEBATESIN BUSINESS,MANAGEMENT,ANDSOCIETYREV. 6-JAN-09 (Course approved for Law School, Divinity School, and Masters of Publ
Vanderbilt - MGT - 496
Alexander M. Anderson Jr.309 Village at Vanderbilt Nashville, TN, 37212 541-731-1731 alexander.anderson.2007@owen.vanderbilt.eduEDUCATIONVANDERBILT UNIVERSITY Nashville, TN OWEN GRADUATE SCHOOL OF MANAGEMENT Masters of Business Administration Ma
University of Illinois, Urbana Champaign - CONF - 1988
Comparing USDA Hogs and Pigs Reports to Subsequent Slaughter: Does Systematic Error Exist? by Steve R. Meyer and John D. LawrenceSuggested citation format: Meyer, S. R., and J. D. Lawrence. 1988. Comparing USDA Hogs and Pigs Reports to Subsequent S
University of Illinois, Urbana Champaign - CONF - 134
Pricing an OTC Basket Option to Manage Cattle Price Risk in Canada: Comparing the Cost of COPP and of a CME-Based 2 Legs Strategy by Francesco BragaSuggested citation format: Braga, F. 1997. Pricing an OTC Basket Option to Manage Cattle Price Risk
University of Illinois, Urbana Champaign - CS - 473
AlgorithmsE pluribus unum (Out of many, one)Lecture 13: 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.
University of Illinois, Urbana Champaign - CS - 173
CS 173Homework 11 (due 11/16/07)Fall 2007CS 173: Discrete Mathematical Structures, Fall 2007 Homework 11Due at 5:00pm on Friday, November 16, 2007This homework covers basic algorithm analysis and asymptotic notation. The material corresponds
TN Tech - PH - 4610
Phys 4610, Fall 2005 Exam #31. Two concentric conducting spherical shells of radius a and b (with a < b) carry charges of +Q and Q, respectively. The space between the shells is lled with an insulating material with permittivity . a) Find the E and
TN Tech - PH - 3810
Phys 3810, Spring 2009 Exam #2 1. Give short denitions of the terms (as used by Griths) a) Hilbert space of functions.This is the set of functions for which the modulus squared can be integrated over the entire applicable space to give a finite resu
University of Illinois, Urbana Champaign - CS - 422
1CS422 - Programming Language DesignLecture 27: Axiomatic Semantics (Hoare Logic)Grigore Rou sDepartment of Computer Science University of Illinois at Urbana-Champaign2Using equational, SOS or denotational semantics we have been able to for
University of Illinois, Urbana Champaign - CS - 422
13CS422 - Programming Language DesignLecture 12: Typed Languages Type Inference (Part 2)If Eqns is a set of type equations, that is, a term of sort Equations, and T is a type potentially involving type variables, then we let Eqns[T] denote the
Vanderbilt - ATT - 0063
*>Bugfix TEST:Author: Ross WalkerDate: 01/10/2005Programs: ambpdbDescription: Fix segfaults in ambpdb.Fix: apply the following patch to amber8/src/etc/ambpdb.f-- src/etc/ambpdb.f2004-01-05 12:50:49.000000000 -0800+ src/etc/ambpdb.f2004
Vanderbilt - CHEM - 230
NAME: _(please print)CHEMISTRY 230 Tellinghuisen 2nd Hour Exam 11/29/00Honor Code Pledge and Signature:Fundamental Constants:R = 8.31451 J mol 1 K1 = 0.0820578 L atm mol1 K1 = 1.9872 cal mol1 K1I. (30) Look it up; cook it up. Consider th
University of Illinois, Urbana Champaign - ECE - 515
ECE 515: PROBLEM SET 11Reading: Basar, Meyn, Perkins (BMP) Course Notes, Chapters 8, 9. Problems: 1. Consider the following system.Due: April 14th, 2009 5 3 1 A , B 2, C 1 1 . 6 4 a. In problem set 9, you designed an observer for this s
Lynchburg College - CS - 375
CS375 Lab #3In this lab you will construct a circuit that takes a 3-bit binary number as input, and drives an LED 7-segment display. A description of the 7-segment display we are using can be found at: http:/www.datasheetcatalog.org/datasheet/fairch
Vanderbilt - SOC - 115
SOC 115 Technology, Media, Culture, and Society Spring 2007PAPER #2 - ASSIGNMENT Critical EssayYour assignment is to write a critical essay about one or more texts films, books or articles that bear on the role of digital media and/or informatio
University of Baltimore - COSC - 324
Jenny Lees 10/28/08 COSC 324Game Critique: Shadow of the ColossusI have chosen `Shadow of the Colossus' as my game critique because I have been able to look at it from a few different angles this past semester. I've played this game and I've had t
University of Baltimore - HOME - 454
SchedulingObjectivesFairness Maximize throughput Maximize the number of users receiving acceptable response times Minimize overhead Balance resource use Balance between response time and resource utilization Avoid indefinite postponement En
University of Baltimore - HOME - 752
#*# Script for printing Hello World#*# Doing without a CGI library print "Content-type: text/html\r\n"; print "<HEAD>\n";print "<TITLE>Hello World</TITLE>\n";print "</HEAD>\n";print "<BODY bgcolor=\"#ffffff\">\n";pr
Vanderbilt - CS - 292
CS 292 Introduction to Parallel ComputingSpring 2008Announcements Read Section 2.4 in the text Homework #1 has been posted Due Monday, 1/28/08, at the beginning of class If you have time conflicts with the ACCRE training classes be sure to co
Vanderbilt - CS - 292
CS 292 Introduction to Parallel ComputingSpring 2008Announcements Read Sections 5.4-5.8 Questions?Scalability of Parallel Systems Often, parallel programs are developed and tested using smaller problems on smaller parallel systems. How do we
Vanderbilt - CS - 292
CS 292 Introduction to Parallel ComputingSpring 2008Exam #2 Results Hi: 100 Lo: 55 Ave: 78 90-100: 5 (24%) 80-89: 4 (19%) 70-79: 7 (33%) 50-69: 5 (24%)Announcements Special assignment available to help those who have done poorly on eithe
University of Illinois, Urbana Champaign - CONF - 1990
Software for Managing Income Risk Through Marketing by Rich Alderfer, Steve Harsh, and Jim HilkerSuggested citation format: Alderfer, R., S. Harsh, and J. Hilker. 1990. "Software for Managing Income Risk Through Marketing." Proceedings of the NCR-1
University of Illinois, Urbana Champaign - CONF - 1987
Interaction of Price Variation and Price Levels in the Evaluation of Optimal Marketing Strategies for Illinois Corn Producers by Keith D. Rogers and Sharon K. RichSuggested citation format: Rogers, K. D., and S. K. Rich. 1987. Interaction of Price
Vanderbilt - BMIF - 380
http:/money.cnn.com/2008/01/31/pf/taxes/bc.irs.scams.ap/index.htm?cnn=yesData Privacy in Biomedicine Lecture 9: Probabilistic Record LinkageBradley Malin, PhD (b.malin@vanderbilt.edu) Assistant Professor of Biomedical Informatics, School of Medici
Vanderbilt - BMIF - 380
Todays LectureData Privacy in Biomedicine Lecture 14: Achieving Formal PrivacyBradley Malin, PhD (b.malin@vanderbilt.edu) Assistant Professor of Biomedical Informatics, School of Medicine Assistant Research Professor of Computer Science, School of
Vanderbilt - BMIF - 380
Setup{A, B} = Data holders {TA, TB} = Database tables K = Common set of attributes useful for linkageIdentifiers, name, address, date of birthData Privacy in Biomedicine Lecture 25: Secure String ComparisonBradley Malin, PhD (b.malin@vanderbilt.
University of Illinois, Urbana Champaign - MATH - 0179
SIMPLICIAL RAPID DECAY ALGEBRAS ASSOCIATED TO A DISCRETE GROUPC. Ogle The Ohio State University February 1995 Revised October 1996Key words and phrases. simplicial resolution, rapid decay algebra. Typeset by AMS-TEX0 IntroductionIn [1], A. Co
University of Baltimore - PBDS - 756
Education, Communication & Information , Vol. 1. No. 1, 2001Whats Next for Text?RICHARD A. LANHAM, University of California at Los Angeles, USAThis article describes and illustrate s the fundamental changes which alphabetic text undergoes when
University of Baltimore - IDIA - 630
GROUP 1 ANA HAYES-PEREZ | HANJU LEE | ANTHONY MANZANARES | KATHRYN MCCUNE PERSONA & SCENARIOSThe Novice Us e r fo r t h e Ce nte r fo r Pl a i n L a n g u a g ePERSONA #1 M ELISSA FLYNN 28/ female/ single/ Baltimore, MD Simplify, simplify, simpli
N. Illinois - TJ - 411
Cerebellar Cortex Granule cell Cerebellar Deep Nuclei Brainstem Purkinje cellNeurobiology Anatomy CS pathwayInterpositusPontine nucleiCerebellar Cortex Purkinje cellNeurobiology Anatomy US pathwayCerebellar Deep Nuclei BrainstemInte
University of Baltimore - IDIA - 630
InformationArchitectureOrganizationSystems LabelingSystems KathrynSummers2005Wodtke,chapter2FirstPrinciples1. 2. 3. 4. 5. 6. 7. 8.Designforwayfinding Setexpectationsandprovidefeedback DesignErgonomically Beconsistentandconsiderstandards Provi
N. Illinois - TJ - 411
Journal of Experimental Psychology 1967, Vol. 7S, No. 4, 464-471GENERALIZATION GRADIENTS AS INDICANTS OF LEARNING AND RETENTION OF A RECOGNITION TASK1HARRY P. BAHRICK, SANDRA CLARK,2 AND PHYLLIS BAHRICK Ohio Wesleyan University Ss were required to
University of Baltimore - COSC - 324
COSC.324.001 Usability in Game DesignLesson 1 Introduction to Concepts of UsabilityUsabilityIcons of Usability Jakob Nielsen www.useit.com Donald Norman The Design of Everyday Things Jeffrey Rubin The Handbook of Usability TestingIdeology o
University of Baltimore - HOME - 753
Remote Control and Advanced TechniquesRemote Control SoftwareWhat do they do?Connect through dialin and/or TCP/IP. Replicate remote screen on local machine (graphical) Allow running graphical, textbased application in remote machine, displaying
University of Baltimore - HOME - 315
More in Linux Changing to KDEYou need to switch the desktop from the default gnome to KDE use switchdesk KDE at the terminal windowYou need to change appearance and style logout and login again (no reboot!) to make it happen use
N. Illinois - Z - 088115
Consumer Education Society Northern Illinois UniversityCell phone Survey DBeeman@NIU.eduName of your cell phone company: _ Please Circle type of plan: A. Family-Group B. Individual Please circle one of the following two. A. I pay for plan. B. Som
University of Baltimore - HOME - 454
Symmetric Multiprocessing (SMP)REVIEWCategories of Computer Systems SingleInstructionSingleData(SISD) singleprocessorexecutesasingleinstruction streamtooperateondatastoredinasingle memory SingleInstructionMultipleData(SIMD) oneinstructionisex
University of Baltimore - HOME - 315
Ethical aspects and copyright lawEthical Responsibility ethics: what is right and what is wrong law: consensus, can be enforced theories: overall good, personal good, treat others as yourself privacy: need to know vs. consent and unwanted intr
University of Illinois, Urbana Champaign - MATH - 0009
AN EXPLICIT PROJECTION by Andrew Ranicki Abstract The Wall finiteness obstruction is the principal application of the projective class group K0 () to topology, with = Z[G] the group ring of the fundamental group G. The finiteness obstruction is an e
University of Baltimore - HOME - 752
CGI vs ASPCGI Modelsends HTML back requestSends CGI to runs the script and returns HTML Script is stored in the script serverASP Model4request Browser sends HTML back1ServerSends page to23runs the script and returns HTMLASP.dll
N. Illinois - BIOS - 313
Bacterial genetics.To understand an organisms growth, development, and reproduction, it is necessary to understand its genetics. Genetic analyses contribute to advances in both basic science and applied science. Genetic exchange is at the heart of b
N. Illinois - MEE - 481
MEE 481,2 - ENGINEER DESIGN SEMINAR Summer, 2007 Catalog Description: Engineering Design Seminar (1). Complete preparation of an engineering system design or project proposal covering problem identification, conceptual design and the schedule of work
University of Baltimore - PUAD - 626
Final Web Assignment DUE: December 15, 20081. Create a simple website with at least two pages (you may create more if you like): 2. One page must be written on your own using the HTML tags we learned in class or ones you learn on your own. I'll refe
Arkansas Fort Smith - AST - 100
AST 100 Review II.TERRESTRIAL ATMOSPHERES Origin: volcanic outgassing, comet impacts CO2, H2O Loss: escape or incorporated into surface Role of M, R (escape velocity) Role of distance from sun (temperature, thermal velocity) Evolution; Unique
Arkansas Fort Smith - AST - 100
AST100 Review I Chapters 1, 2.4, 3, 4, 6, 7 Numbers, Relative Sizes Thousand, million, billion, trillion Definitions of Astronomical Unit, light year, solar system, galaxy Relative sizes of earth, sun, AU, solar system, distance to nearest star, g