Digital Circuit Engineering

Size: px
Start display at page:

Download "Digital Circuit Engineering"

Transcription

1 Digitl Circuit Engineering DIGITAL st Distriutive XA + XB = X(A + B) 2nd Distriutive (X + A)(X + B) = X + AB (X + A)(X + B)(X + C) = X + ABC VLSI DESIGN Simplifiction Asorption YX + X = X Y + XY = X + Y XY + XY = X The Most Common Stupid Errors X.Y = XY X + = X Dulity If F(,,... z,+,.,,) G(,,... z,+,.,,) Then F(,,... z,.,+,,) G(,,... z,.,+,,) Crleton University 26 Dig Cir I p. Revised; Jnury 7, 26 Slide i Properties of Digitl Signls Compre Anlog nd Digitl Boolen Alger Gtes Bsic Lws Proofs Dulity Simplifiction, Asorption, Consensus, Swp Rules Uses of Dulity XNORs XORs 3-Input gtes Deriving Circuits from Truth Tles Full Adders Common Mistkes Crleton University Digitl Circuits I p., diglogicb.fm Revised; Jnury 7, 26 Comment on Slide i

2 Generl Digitl Relevnce Digitl Circuits vs. Anlog Circuits Anlog Digitl nlog sensor it Dig Cir I p. 2 Revised; Jnury 7, 26 Slide 2 Generl Digitl Relevnce Digitl Properties of single digitl element.. It hs two vlues clled, on-off, or high-low, or true-flse, or The vlue of such n element is often clled it. Properties of comintions of digitl elements. The its cn e comined to form symols. These symols men whtever people wnt them to men. Exmples of the menings people give symols. Binry numers ASCII chrcters 3-it two s- complement numers mens mens 6, mens A mens -4 mens mens 7, mens B mens -3 mens 2 mens 8, mens C mens -2 mens 3 mens 9, mens D mens - mens 4 mens, mens E mens mens 5..., mens F mens... mens 2 mens 3 2. Digitl vlues chnge in steps. Anlog vlues chnge continuously. On n nlog thermometer the column goes through ll vlues etween temperture chnges. The digitl thermometer chnges in steps. The one shown cnnot show chnges of less thn one degree. 3. By using more its one cn mke the digitl numers express ny ccurcy one one cn get out of the sensor which will e nlog. However it is fr too esy to mke digitl thermometor which displys more digits thn cn ccurtely extrcted from the nlog sensor.. People use vlue element ll the time. The vlues re the digits,,2,3,4,5,6,7,8,9. Crleton University Digitl Circuits I p. 3, diglogicb.fm Revised; Jnury 7, 26 Comment on Slide 2

3 nd re Voltges (usully) Digitl Signls Digitl its ( nd ) re represented y high nd low voltge SMOKE Smll FREE Jolt Smll NO NAME Jolt BATTYBOY Smll Jolt 5 V Smll Slt Free Jolt JOLT Smll FREE Jolt 3.3 V JOLT Smll FREE Jolt. V =5 V = V For mny yers logic ws 5 V. A logic ws V. Trnsistor Logic Circuits =3.3 V = V = V = V Newer circuits use 3.3,.8,.5 or lower voltge s. Two single-throw switches +V DD connected y stiff wire replce doule-throw switch. A +V DD Switches re silicon trnsistors typiclly.5 microns long (.5 mm) Control (input) is logic signl (voltge) A JOLT Smll FREE Jolt JOLT Smll FREE Jolt F + A F Output is logic signl (voltge), F Dig Cir I p. 4 Revised; Jnury 7, 26 Slide 3 nd re Voltges (usully) Digitl Signls Digitl Signls Voltges Represent Signls From most digitl signls represented low, flse or vlue s. V, high, true or signl s 5. V. After 99 lower voltges like 3.3, 2.5,.8 nd.5 V hve ecome incresingly common. Lower voltge circuits hve longer ttery life nd run cooler. Switches A doule throw switch hs two positions. Some switches hve oth off s the middle position ut the trnsistors used s switches do not hve tht position. Trnsistor Digitl Circuits PMOS In silicon chips, the switches re replced y trnsistors. There re two types consider in this course: A PMOS trnsistors which ct like closed switches when input A is nd open switches when A is NMOS trnsistors which ct like closed switches when input A is nd open switches when A is NMOS The two trnsistors work like two switches with their hndles linked together. When one is on the other is off. A When the two types of trnsistors re connected to the sme digitl signl, one trnsistor will ct like closed switch nd the other will ct s n open switch.. PROMBLEM Complete the tle on the right to show how F reltes to A. Microns micron = -6 meters A PMOS NMOS closed F Crleton University Digitl Circuits I p. 5, diglogicb.fm Revised; Jnury 7, 26 Comment on Slide 3

4 Properties of Digitl Signls Digitl Signls re Very Tolerent nd Not Very Sensitive to Noise, Temperture, nd Supply Voltge. SMOKE Smll FREE Jolt Smll NO NAME Jolt BATTYBOY Smll Jolt Leky Cell 5 V 3.5 V is 3.5V to 5.5 V SMOKE Smll FREE Jolt Smll NO NAME Jolt BATTYBOY Smll Jolt 5 V Not Quite Shut Burnt Cron Current Pth is V to.5 V Digitl cn give the right nswer ( or ) with 3% voltge error. Anlog would hve 3% error. Volts Undefined Vlid Vlid or uncler Don t sty in here long. Vlid Shows how noisy working digitl signl might e. Dig Cir I p. 6 Revised; Jnury 7, 26 Slide 4 Properties of Digitl Signls Digitl Signls Properties of Digitl Signls Digitl Less Sensitive to The Electronic Environment For common (CMOS) digitl circuits, the signl my devite y up to 3% of the supply voltge from the idel (supply voltge), nd ( V) without cusing it to e red erroneously. With nlog signls, 3% error in the signl is 3% error! In the undefined region, nother circuit might red the signl s either or. A typicl digitl signl For circuits in the l, which run from 5 V supply, will e stedy signl within few percent of 5. V, nd will e lmost exctly. V. There n AND gte with two 3.6V inputs would see two logicl inputs nd would give out 5 V output. However for lrge circuits such s microprocessors, logic signls my e quite noisy. They still work ecuse of the 3% tolernce on the wveforms. 2. PROBLEM Supply voltge 5.V 3.3V.5V Complete the tle on the right. Assume CMOS circuits Logicl Over 3. PROBLEM 3.5 V V Vin Vin.5. t Vout Red hed nd find wht the inverter gte Then plot Vout on the grph with Vin. Connections to supply nd ground not shown does. Undefined, could e tken s, s or neither. Logicl 3.5 to.5v Crleton University Digitl Circuits I p. 7, diglogicb.fm Revised; Jnury 7, 26 Comment on Slide 4

5 Anlog vs Digitl Accurcy ??.% is very good ccurcy For digitl, dd more circuitry to get more for nlog ccurcy. Suject to ccurcy of nlog sensor input. Long Term Storge Anlog circuits store dt s voltge on cpcitor. Mx storge time is perhps 3 minutes V V -t e RC Digitl circuits store dt in memory Mx storge time is yers. RAM FLASH Memory t Dig Cir I p. 8 Revised; Jnury 7, 26 Slide 5 Anlog vs Digitl Digitl Signls Accurcy Anlog circuits re mde of prts with reltively low tolernce. 5% is common. It is very hrd to mke components ccurte to more thn.%. Anlog voltges cn e no more ccurte thn the components they re uilt from. The ccurcy of numers in digitl circuits depend on the numer of its. One cn increse this indefinitely y dding more its. In the digitl thermometer shown, the ultimte ccurcy is the resolving power of the temperture sensor. Long-Term Storge The esiest wy to rememer voltge is to store it on cpcitor. Cpcitors lek chrge which mkes the voltge slowly decrese. It is very hrd to store voltge for more thn few minutes. This is not to sy it cnnot e done. There re devices clled electrets tht re permnently chrged cpcitors. They re mde y melting the cpcitor dielectric nd letting it solidify while chrged. Also electrons cn e injected into silicon structures for long-term storge. However these re fr less convenient thn conventionl leky cpcitor storge. Digitl memory is very convenient. RAM (rndom ccess memory) will rememer s long s the power is on. Flsh memory which is n electriclly ersle memory which cn rememer with the power off. Crleton University Digitl Circuits I p. 9, diglogicb.fm Revised; Jnury 7, 26 Comment on Slide 5

6 Anlog vs Digitl Other Properties, Digitl vs Anlog Speed Fstest circuits re nlog. The highest frequency circuits in your cell-phone nd TV re nlog. Design Cost/Time Anlog designers hve to worry out: noise, power-supply vrition, cross-tlk etween-wires, inccurte vlues, temperture vrition of component vlues, ground ounce, clock feed-through,... To digitl designers, these re 2nd order effects. Digitl chips work on first silicon over 9% of the time. For nlog chips this is more like 6% Anlog designers need severl yers experience. Digitl designers re productive soon fter grdution. There re mny more people doing digitl design thn nlog. Anlog circuits re rpidly eing redesigned in digitl. Anlog Digitl Softwre Digitl (Underneth) Is Anlog Anlog prolems ecome especilly importnt in digitl for: - very fst circuits. - very low supply voltges (. V) - very lrge circuits (5 million gtes per chip). Dig Cir I p. Revised; Jnury 7, 26 Slide 6 Anlog vs Digitl Digitl Signls Other Properties, Digitl vs Anlog Speed The fstest circuits re nlog. However every yer more nd more of these circuits re eing redesigned in digitl s the speed t which digitl circuits cn run increses. Design Cost/Time Crosstlk is signl on one wire getting mixed with the signl on nother wire y trvelling through the smll cpcitnce etween the wires. Ground ounce is when the low voltge return of the power supply ounces ove zero volts. It is usully due to inductnce in the power supply leds. Digitl circuits suffer from these prolems, ut they cuse no troule if the interference is less thn 3% of the level. It is only when is mistken for tht digitl circuits hve prolems. Becuse one cn often ignore such prolems digitl design is usully esier to do thn nlog. The designs cn e done fster. They re more likely to e error free. Digitl (Underneth) Is Anlog At very high speeds very smll stry cpcitnce nd inductnce, which were negligle t lower speeds, ecome importnt. Then nlog prolems hve to e considered, nd high-speed digitl design ecomes hrd. When circuits hve mny million gtes per chip lot of nondigitl prolems ecome importnt. These chips re completely designed in softwre, ecuse people could never keep trck of ll the detil. Wht mkes good digitl designer on lrge circuits is knowing where the softwre my give nontrustworthy results. Crleton University Digitl Circuits I p., diglogicb.fm Revised; Jnury 7, 26 Comment on Slide 6

7 Boolen Alger The lger of nd Two Vlued Alger Vlues re clled nd or True nd Flse or High nd Low Vriles. A vrile X cn hve only two vlues, or. Opertions Complement, Not, or Inverse X is the opposite of X AND X is if AND re oth. OR X is if OR or oth re. X-OR, XOR, Exclusive OR X is if exctly one of or is. Symol X + X X = 2 X = - X = 3+j6 X = X = Schemtic X X X X Creted y George Boole 847 Clude Shnnon 939 Truth Tle X X X X X Compct Truth Tle Dig Cir I p. 2 Revised; Jnury 7, 26 Slide 7 Boolen Alger Digitl Signls Vriles A Boolen vrile cn hve the vlue or. Lter we will give them don t cre vlue of - or d. Where d mens the vrile could hve either or nd it will not chnge the result of interest. Gtes The opertors shown cn e uilt with simple trnsistor circuits clled gtes. The circuit for NOT gte is shown under See Digitl Signls on pge 4. These gtes re connected together to construct digitl circuits. Other Nottions NOT x, x,!x, ~x (Mtl, Verilog) AND,,, & (Mtl, Verilog) OR +,, d, (Mtl, Verilog) X-OR, +, ^ (Verilog) Compct Truth Tles NOT AND OR XOR The conventionl tle shown in ) cn e replced with the mp ). In the mp, the inputs re round the outside, nd the vlue of the output is put in the interior squres. This mp form of tle cn e mde for other gtes. + + Other symols + & = ) Conventionl tle Output is if the sum of the inputs Output is if the sum of the inputs = ) Mp Crleton University Digitl Circuits I p. 3, diglogicb.fm Revised; Jnury 7, 26 Comment on Slide 7

8 Boolen Alger; Gtes Opertions (continued) NAND NOT-AND NOR NOT-OR X-NOR Exclusive-NOR, NOT-XOR. (Equivlence) Multiple Input Opertions AND - mens either or, (oth give the sme X) OR X-OR Exclusive-OR, XOR. Symol + c c + + c c Schemtic Truth Tle X X X X X X c X - - X c c X X c Numer - - of inputs X X c 2 3 see elow Compct c c Dig Cir I p. 4 Revised; Jnury 7, 26 Slide 8 Boolen Alger; Gtes Boolen Opertions Boolen Opertions Common Mistke is not the sme s 4. PROBLEM Is + the sme s +? If not, give counter exmple. X-NOR (Equivlence) This gte gives output if the two inputs re equl. Thus it is sometimes clled n equivlence or coincidence gte. Power Supply Connections While theoreticl digrms omit them, ll gtes must hve connection to power supply nd return led to ground. When they re importnt, they re often shown s on the right. The slnted r mens connect to the power supply. The other connection is ground. Multiple Input Opertions. N-input Gtes In theory gte cn hve ny numer of inputs. For trnsistor circuits, the gtes ecome very slow with more thn four inputs. However theoreticl circuits will often hve more thn four inputs. The figure shows how lines my e dded to the gte symol to give the inputs it more spcing on digrm The compct tle for the 3-input AND c X X 5. PROBLEM Is + the sme s +? If not, give counter exmple. Crleton University Digitl Circuits I p. 5, diglogicb.fm Revised; Jnury 7, 26 Comment on Slide 8

9 Boolen Alger; Gtes All Possile 2-Input Gtes + Symol Reltion > < Symol V DD Reltion = Gtes esily mde from trnsistors re NAND, NOR nd NOT. Dig Cir I p. 6 Revised; Jnury 7, 26 Slide 9 Boolen Alger; Gtes Possile Gtes Possile Gtes Common gtes AND, OR, NAND, NOR, XOR nd XNOR six of the 6 possile gtes. Z( the output) =,,,,, or re nother six. The finl four re,, +, nd + A uffer gte Logiclly the uffer gte is like piece of wire. Wht goes in comes out. However the uffer hs gin. If wek, sy 4 V on system with 5 V supply, is sent into the uffer it will give oost the to 5 V. 6. PROBLEM How mny different types of 3-input gtes re there? 7. PROBLEM The truth tles for four 3-input gtes re shown. c W X Y Z Sketch the symol for ech of the gtes y extrpolting the 2-input symols. The solution for W is shown. W Crleton University Digitl Circuits I p. 7, diglogicb.fm Revised; Jnury 7, 26 Comment on Slide 9

10 Boolen Alger; Lws Bsic Lws Bsic Lws with Zeros nd Ones 2 nd Form (Dul) X + = X (B) or just (B) X = X (B2) X + = (B3 X = (B4 Indempotent A vrile is unchnged y operting with itself. X + X = X (I) X X = X (I2) or (I) for either Doule Negtive ( X ) = X (N 2 ) No 2nd form Negtion Lws X + X = (N) X X = (N2) or (N) for either Commuttive Lws X + Y = Y + X (C) X Y = Y X (C2) or (C) for either Associtive Lws X + (Y + Z) = (X + Y) + Z (A) X (Y Z) = (X Y) Z (A2) or (A) for either Distriutive Lws Use B for ny of these four (X + Y) Z = XZ + YZ (D) X Y + Z = (X + Z)(Y + Z) (D2) or (Dstrnge) Rememer This Dig Cir I p. 8 Revised; Jnury 7, 26 Slide Boolen Alger; Lws Possile Gtes Bsic Lws These lws re firly ovious from the description of the gtes (opertors). The only strnge on is the second distriutive lw (D2). This one hs to e memorized ecuse it is very useful s well s strnge. We will tret ll these lws s xioms except (D2). This will e proven given (D). For Mthemticins All of the ove lws cn e proven y using only few sic xioms. For exmple one set of sic xioms suggested y Wkerly, is: X is either or. If X =, X = ; If X =, X =. =, = =, = + =, + = = +, + = We will use these xioms to prove X + X = X (I) X must e either or. If X=, then X+X = + = ; thus X+X = X for X=. If X=, then X+X = + =, gin X+X = X for X=. - qed 2 - Keep Your Proofs Resonly Rigorous For the proofs on the next pges we write one side, sy the left-hnd side (LHS) t the top. Then we work on it until we grdully chnge it to the other, the RHS. Do not pretend they re equl nd operte on oth sides t once.. Wkerly, John F., Digitl Design Principles nd Prctices, 3rd. Ed., Prentice Hll, Englewood Cliffs NJ., quod ert demonstrndum Crleton University Digitl Circuits I p. 9, diglogicb.fm Revised; Jnury 7, 26 Comment on Slide

11 Boolen Alger Using Boolen Alger Prove: AB + B = B Simplifiction lw (S) Proof: LHS= AB +B = AB + B = ( A + )B = ()B = B = RHS Prove: AB + C = (A + C)(B + C) Second distriutive lw (D2) Proof: Simplify: AB + AB + AB from (B2) X = X from (D) (X + Y)Z = XZ + YZ from (B3 X + = from (B2) X = X RHS = A +C)(B + C) = Q(B + C) let Q = (A + C) = QB + QC = (A + C)B + (A + C)C = AB + CB + AC + CC = AB + CB + AC + C = AB + CB + C + AC + C from (D)(X + Y)Z = XZ + YZ since Q = (A + C) from (D) from ( I )X X = X from ( I )X + X = X = AB + C + C use (S) twice XY + X = X = AB + C = LHS from ( I ) AB +AB + AB = AB + AB + AB +AB from ( I ) X + X = X = A( B + B)+(A + A)B from (D) (X + Y)Z = XZ + YZ = A() + ()B from (N) X + X = = A + B from (B2) X = X Dig Cir I p. 2 Revised; Jnury 7, 26 Slide Boolen Alger Exmples nd Prolems Exmples nd Prolems 8. Simplifiction Rule x + xy = x is one of the most useful rules, nd firly esy to rememer. EXAMPLE Simplify: F= A B C + ABC + ABC + A BC + ABC Reduce to five letters (literls). A B C + ABC + ABC + A BC + ABC= ABC + ABC + A B C + A BC + ABC (A) (Rerrnge terms) = AB(C + C) + A B(C + C) + ABC (D) (x +y=(x + y)) = AB + A B + ABC (N), (B2) x= = AB + A(B + BC) (D) = AB + A(B + BC + BC) (S) ( +c=) = AB + A(B +C(B + B) (D), (B4) = AB + A(B + C) (N) ( + = ) Drw gte level circuit which implements the result. (Done on the right) 9. PROBLEM Simplify AB + BCD + BC + AC Reduce to four letters (literls). Drw gte level circuit.. PROBLEM Simplify (A + BC)(B + C)(B + C). PROBLEM Prove (A + C)(B + C)(B + A) = AB + BC + CA A B C F = AB + A(B + C) F. Reducing to 5 letters is esy. Reducing to 4 letters is esy if you look hed in theses notes nd use Krnugh mp. Crleton University Digitl Circuits I p. 2, diglogicb.fm Revised; Jnury 7, 26 Comment on Slide

12 Boolen Alger Boolen Alger: Exhustive Proofs Good for smll numer of inputs (up to 4 or 5) Mke tle ) List ll possile inputs ) Clculte ll vlues of the left hnd side c) Clculte ll vlues of the right hnd side d) See if they gree This only works ecuse A, B, nd C hve only 2 vlues. Its no good if they represent integers or rel numers. Alternte Proof Second distriutive lw: (A + C)(B + C) = AB + C Proof: Use truth tle nd prove for ll cses LHS RHS ABC (A + C) (B + C)(A+C)(B+C) AB AB + C The two sides re equl for ll comintions of ABC. Dig Cir I p. 22 Revised; Jnury 7, 26 Slide 2 Boolen Alger Exmples nd Prolems Trying All Comintions The method is good for proofs, with not very mny vriles. It is not good for simplifiction. Exhustive Prolems 2. PROBLEM WITH XORS Prove tht A B = A B = Α Β 3. PROBLEM Prove tht C + BC = C + B Prove it () lgericlly nd () with truth tle. 4. PROVE A + c + ca = A + ca Consensus theorem This is hrd to prove lgericlly.. Hint c = ca + ca. Crleton University Digitl Circuits I p. 23, diglogicb.fm Revised; Jnury 7, 26 Comment on Slide 2

13 Boolen Alger Exhustive Proof Using Compct Tles (A + C)(B + C) = AB + C Proof: Using the compct tles LHS ABC (A + C) (B + C)(A+C)(B+C) AB C RHS AB + C The two sides re equl for ll comintions of ABC. (A + C) (B + C) (A+C)(B+C) BC A BC A AB BC A C AB + C BC A BC A BC A With 3 inputs, tle hs 8 entries With 4 inputs, tle hs 6 entries With 5 inputs, tle hs 32 entries With 6 inputs, tle hs 64 entries With 7 inputs, lgeric proof looks lot esier. Dig Cir I p. 24 Revised; Jnury 7, 26 Slide 3 Boolen Alger Exmples nd Prolems Circuit Prolems 5. PROBLEM: FOR CIRCUIT SHOWN Simplify:- A A AA=A F= 6. PROBLEM Simplify to 4 literls (letters)- AD +AE + AF B 7. PROBLEM Implement:- ABCD + ABCE + ABCF with one multi-input OR nd one multi-input AND. 8. PROBLEM Simplify - (A + B)(A + C)(A + D) 9. vproblem Implement:- (A+B+C+D)(A+B+C+E)(A+B+C+F) with one multi-input OR nd one multi-input AND. Hint; try Prolem 2. first. Crleton University Digitl Circuits I p. 25, diglogicb.fm Revised; Jnury 7, 26 Comment on Slide 3

14 Dulity Dulity Principle Tke ny vlid Boolen identity Sustitute + nd The result is nother vlid Boolen identity. Prcticl detil Put rckets round ll AND terms efore doing the sustitution. Exmple x(y + z) = xy + xz Vlid identity; (D) x(y + z) = (xy) + (xz) Put rckets round the ANDed terms x+(yz) = (x + y)(x + z) Sustitute + Result is (D2), 2nd distriutive lw, nother vlid identity. Exmple x + = Vlid identity; (B3) x = Sustitute + nd Result is (B4), vlid identity. WARNING Never Never Never! sy n expression is equl to its dul. Dig Cir I p. 26 Revised; Jnury 7, 26 Slide 4 Dulity Dulity Principle Dulity Principle This is principle not n equlity It is WRONG WRONG WRONG to sy n expression equls its dul. Exmple: c is the dul of ++c But clerly c ++c Do not do this: F = (c + e) + def = (((c) + e) + (def) put rckets round ANDs This is still equl to F = (+((+c)e)(d + e + f) tke dul You cnnot just write in nother equl sign F dul = (+((+c)e)(d + e + f) tke dul It is correct to cll this F dul 2. PROBLEM Two expressions for XNOR re: Find the dul identity. + = (+)(+) Crleton University Digitl Circuits I p. 27, diglogicb.fm Revised; Jnury 7, 26 Comment on Slide 4

15 Dulity Hlf the Bsic Lws re Duls of the Other Hlf Lws with Zeros nd Ones Dul Form (B) X + = X + nd X = X (B2) (B3) X + = + nd X = (B4) Indempotent (I) X + X = X + X X = X ( I ) or just (B) for ny of these four Doule Negtive ( X ) = X Self dul Negtion Lws (N) X + X = + X X = (N2) Commuttive Lws X + Y = Y + X + X Y = X Y (C) Associtive Lws X + (Y + Z) = (X + Y) + Z + X (Y Z) = (X Y) Z (A) Distriutive Lws (D) (X + Y) Z = XZ + YZ + X Y + Z = (X + Z)(Y + Z) (D2) Dig Cir I p. 28 Revised; Jnury 7, 26 Slide 5 Dulity Duls Duls Self Duls A few formuls re their own duls. Exmples ( X ) = x The three input mjority (crry) circuit oeys: + c +c = ( + )( + c)(c + ) Tking the dul merely interchnges the right nd left sides. 2. PROBLEM Prove + c + c = ( + )( + c)(c + ) 22. PROBLEM Show tht the xa + xb = (x + A)(x + B), lter clled the swp rule, is self dul, if one sustitues x for x in the dul rule. Generl property of self-dul functions Self dul functions hve f(,,c) = f(,,c) There re 2 n- self-dul function with n inputs, mong them the crry nd dd circuits.. CMOS gtes of self-dul functions cn hve symmetric NMOS nd PMOS prts. Crleton University Digitl Circuits I p. 29, diglogicb.fm Revised; Jnury 7, 26 Comment on Slide 5

16 Dulity Other Rules nd Their Duls Simplifiction Rules (S, S2) X + (X Y) = X + X (X+Y) = X Proof: Proof: LHS = X + X Y LHS = X (X+Y) = X + X Y (B2) X = X = (X+) (X+Y) (B) X + = X = X( + Y) (D) (X + Y)Z = XZ + YZ = (X+ Y) (D2) (X + Z)(X + Y) = X + ZY = X = RHS (B2,B3) X=X, X + =, = X = RHS (B,B4) X + = X, Y = If You Prove Hlf of Boolen Alger Dulity Will Give You The Other Hlf: (S) nd (S2) re duls; Ech line in their respective proofs re duls. If one proof references rule (like D), the dul proof will reference the dul rule (D2). Memorize X + X nything = X Dig Cir I p. 3 Revised; Jnury 7, 26 Slide 6 Dulity Simplifiction Rule Simplifiction Rule Simplifiction x + xy = x (S) + x(x + y) =x (S2) People who complin they cn t finish their exm usully don t know the time they cn sve using this rule. Look for terms like: + x c + cxy + cdefgh xy + c(t+m)(+x)xy Exmples: cd + cde = cd e + c + e + c = e + c 23. PROBLEM Simplify: x + xy + x(z+uv) + xy 24. PROBLEM: Simplify xy + xzy 25. PROBLEM: Simplify x + xzy + x + xyz + xyz + yz (S) Simplifiction (S) Simplifiction, pplied twice Designed to misled Crleton University Digitl Circuits I p. 3, diglogicb.fm Revised; Jnury 7, 26 Comment on Slide 6

17 Uses of Dulity Other Rules nd Their Duls Simplifiction Rules (S, S2) (For comprison) X + (X Y) = X + X (X+Y) = X Asorption Rules (A, A2) X + (X Y) = X + Y + X (X+Y) = (X Y) Proof: Proof: LHS = X + (X Y) LHS = X (X+Y) = (X +X) (X + Y) (D2) (X + Y)(U + Y) = XU + Y = XX + XY) (D) (X + Y)Z = XZ + YZ = (X + Y) (N) X + X = = + XY (N2) XX = = X + Y = RHS (B2) X = X = X Y = RHS (B) + Y = Y Note: (A) nd (A2) re duls. Ech line in their respective proofs re duls. When the proof for (A) uses (D), the proof for (A2) will use dul rule (D2). Dig Cir I p. 32 Revised; Jnury 7, 26 Slide 7 Uses of Dulity Simplifiction nd Asorption Simplifiction nd Asorption These two simple useful rules cn sve you lot of work when doing prolems. Look for them! Simplifiction x + xy = x (S) A second rule, which is lso lmost s esy to use, is the sorption rule. Asorption x + (xy) = x + y (A) Exmples: cd + cde = cd( + e) = cd +cde (A) + (y) = + y e + cde = (e + cde) = (e + cd) (A) Asorption e + c + e + c = + c + e + c = +e +c (A) Asorption nd (S) Simplifiction 26. PROBLEM: Simplify 27. PROBLEM: Simplify xy + xzy xy + xzy + zy. Apply (A) to the second nd third terms, get x+zy. Applying (A) to the first nd second terms doesn t do s much. Crleton University Digitl Circuits I p. 33, diglogicb.fm Revised; Jnury 7, 26 Comment on Slide 7

18 Properties of XOR nd XNOR Other Dul Rules Consensus Theorems (Con, Con2) A + c + ca A + c + ca = A + ca + (A + )( + c)(c + A) = (A + )(c + A) LHS = A + c + ca (A + )( + c)(c + A) = A + c + ca (B) x = x = = A + c(a + A) + ca (N) x +x = = A + ca + ca + ca (D) = A +Ac + ca + ca (C) xz=zx = A + ca = RHS (S) x+xy=x A +ca Swp (Swp) Rule (A + )(c + A) (x + A )(x + B) = xa + xb + xa + xb = (x + A)(x +B) LHS = (x + A )(x + B) = xx +xb + Ax + AB (D) = xb + AB + Ax (N) x x = = xb + Ax = RHS (Consensus) Dig Cir I p. 34 Revised; Jnury 7, 26 Slide 8 Properties of XOR nd XNOR Swp nd Consensus Swp nd Consensus The consensus rule is often hrd to see. Fortuntely, Krnugh mps, which we do lter, will llow one to forget concensus for simple (up to 4 vrile) prolems. 28. PROBLEM Simplify ABCE + CED + ABD 29. PROBLEM ) Simplify (C+E)X + (A+B)(C+E) + (A+B)X ) Simplify (C+E)X + (A+B)(C+E) + (A+B)X 3. PROBLEM Complete the proof of (Con2). 3. PROBLEM Why is the dul of the swp rule not nother rule? Crleton University Digitl Circuits I p. 35, diglogicb.fm Revised; Jnury 7, 26 Comment on Slide 8

19 Deriving Formuls From Truth Tles; XOR,XNOR Uses of Dulity. Lern hlf the rules, rememer them ll! 2. Do hrd lger (usully things with rckets) in more fmilir wy Exmple Simplify F = ( + d)( + )( + d) How would you do this? Strt F = ( + d)( + )( + d) It looks strnge! Tke the dul F dul = d + + d = d( + ) + (D) = d() + (N) x+x = = d + (B) x = x x Put in rckets redy to tke reverse dul F dul = d + () put in rckets By tking the dul, use the fmilir distriutive lw. Otherwise use the strnge D2 Tke dul ck F = d( + ) Vlid reduced identity. Thus ( + d)( + )( + d) = d( + ) Dig Cir I p. 36 Revised; Jnury 7, 26 Slide 9 Deriving Formuls From Truth Tles; Uses of Dulity Uses of Dulity Fctoring in lger is difficult. Using dulity mkes it esier ecuse the dul is lredy fctored. On the dul, one multiplies out, which is much esier for most people. At the end of multiplying out, the dul is in fctored form. Tking the dul of the dul tkes us ck to the originl expression, only now it is in fctored form. This works ecuse- - if one hs vlid identity its dul is vlid identity. Another exmple which hs simpler dul. Simplify X + (X Y) Most people do not see how to strt the ove. It my help to tke the dul. Tke the dul X (X + Y) This multiplies out to XX + Y = Y A Third Use for Dulity Finding new formuls, s in PROBLEM 36. where nother new formul for XOR is found y tking the dul of new formul for XNOR. 32. PROBLEM F= + (c + d) (tke dul) = +( +cd) Is there nything wrong with the ove lger, nd if so, wht is it? Crleton University Digitl Circuits I p. 37, diglogicb.fm Revised; Jnury 7, 26 Comment on Slide 9

20 Applictions of XOR, XNOR XOR, X-OR, Exclusive OR F is if exctly one of or is. Commuttive X Y = Y X Associtive X Y Z F X (Y Z) = (X Y) Z Thus one cn write X Y Z X Y Z X Y Z F No rckets needed Useful Properties lnverting ny led chnges XOR XNOR A B A B A B Mking one input mkes XOR n inverter x c= x x x if c= c= if c= A B A B B A B c x c x =x =x =x =x Dig Cir I p. 38 Revised; Jnury 7, 26 Slide 2 Applictions of XOR, XNOR XOR nd XNOR XOR nd XNOR Distriutive Lw: only (D) Holds (X Y)Z = (XZ) (YZ) (D2) does not (X Y) Z = (X Z)(Y Z) 33. PROVE THAT: (X Y)Z = XZ YZ 34. PROVE THAT: A B = A B = A B 35. PROBLEM The formul for XNOR is given on the next pge s + Prove: + = (+)(+) 36. PROBLEM Use dulity on Prolem 2. to find similr lternte form for +, the XOR formul. 37. vproblem Use the swp rule on + to find n lternte wy to mke n XOR out of AND, OR nd NOT gtes. Sketch the circuit Crleton University Digitl Circuits I p. 39, diglogicb.fm Revised; Jnury 7, 26 Comment on Slide 2

21 Deriving Formuls From Truth Tles The Formuls for XOR nd XNOR ( ) ( ) Eqution for when ( ) is ( ) = + ( ) is for ll other comintions Eqution for when ( ) is. Write out the Truth Tle ( ) = + 2. Look for where the result is. 3. Write down the letters corresponding to the inputs XOR-XNOR FORMULA Thus in the column is written s. ( ) = + in the column is written s. 4. AND the letters to mke term like. ( ) = + 5. The eqution is the OR of ll the terms where the output is. Actul XOR Gtes These re complex comintions of AND, OR, NAND nd NOR. ( ) = + ( ) = ( ) = + Dig Cir I p. 4 Revised; Jnury 7, 26 Slide 2 Deriving Formuls From Truth Tles Otining Formuls from Truth Tles Otining Formuls from Truth Tles This method will give formuls in wht is clled OR of ANDs or (SUM of PRODUCTs) form. These formuls re letters or their inverses ANDed together nd the resulting terms ORed together, like c + cd + cf + ce +... We need only find ll the terms tht mke the finl nswer. If no term mke the formul, then it defults to. To Find the Formul Go through the truth tle nd writes down the terms tht mke the result. Then OR ll these terms together Tht is the desired formul. XOR nd XNOR gtes These re more complex to implement thn most other two-input gtes. There re some simpler trnsistor circuits tht might e discussed in fourth yer, ut they re still more complex thn NAND nd NOR.. SUM of PRODUCTS form hs no rcketed terms like (f + d) or the rckets implied y long inverting rs like = () Crleton University Digitl Circuits I p. 4, diglogicb.fm Revised; Jnury 7, 26 Comment on Slide 2

22 Applictions of XOR, XNOR Applictions of XOR/XNOR Controlled Inverter Equlity Check x x if c= c x if c= if = else Adder Adding ( ) one-it numers. The sum Σ is n XOR gte. The Crry Cy is n AND gte. A Σ B Cy = = = = in dec () () () (2) A B A B Cy (crry) Σ (sum) Σ (sum) Odd Prity c p Tell if there re n odd numer of inputs p = if even numer of inputs. p = if odd numer of inputs c p Dig Cir I p. 42 Revised; Jnury 7, 26 Slide 22 Applictions of XOR, XNOR Applictions of XOR/XNOR Applictions of XOR/XNOR 38. PROBLEM ON COMPARE Design circuit which compres two 2-it numers A A nd B B. It gives out Z= if the two numers re equl. The Adder A A B B z= z= If: A =B, nd A =B The four results from dding two its A B Cy Hlf Adder Σ This upper circuit is clled hlf dder ecuse it dds only two its. A full dder (lower ox) cn dd three its. The third it is the crry input from previous stge. For dding one-it numers, or the first its of multiit numer, hlf dded is ll right. Otherwise full dder is needed. CY(IN) A B Full Adder Cy (out) Σ (sum) 39. PROBLEM ON PARITY Design n even-prity circuit which gives output if n even numer of inputs re one.. We will use for ddition here, since + ws used for OR. In mny plces + is used for oth, nd you hve to figure out which is which. Crleton University Digitl Circuits I p. 43, diglogicb.fm Revised; Jnury 7, 26 Comment on Slide 22

23 Applictions of XOR nd XNOR (Cont) Error Detection Prity to find trnsmission errors c c p p Trnsmission Circuit p = if odd numer of inputs. z =, if even numer of inputs. Including p s n input to z mkes z lwys. Except- z = indictes it chnged during trnsmission. p c p 3-it numers with prity check c p z Bd Bd 3 Bd 6 z Error z c c Dig Cir I p. 44 Revised; Jnury 7, 26 Slide 23 Applictions of XOR nd XNOR (Cont) Using Prity to Check for Trnsmission Using Prity to Check for Trnsmission Errors At the input (left side) the prity is clculted for the three input its (, nd c) nd trnsmitted s fourth it. At the output the prity of ll four its (,, c, nd p) is clculted. There should lwys e n even numer of ones (zero is n even numer) ecuse the p it is used to mke n even numer. If there is n odd numer of ones t the output, one it must hve een corrupted during trnsmission. 4. PROBLEM Wht hppens if two its re flipped during trnsmission? Will the prity error detection circuit shown identify the errors? 4. PROBLEM, PARITY CHECK p Ck Should Ck e nmed Error, i.e Ck= mens d it, c c or should it e nmed OK, i.e. Ck= mens numer is OK? Crleton University Digitl Circuits I p. 45, diglogicb.fm Revised; Jnury 7, 26 Comment on Slide 23

24 Common Three-Input Gtes Very Common Three-Input Gtes Select Identify prticulr it comintion. Reject Reject prticulr it comintion. c c c X Y Z X = when,,c =,, Y = when,,c =,, Z = unless,,c =,, MUX (Multiplexer) When C=, A goes thru to F. When C=, B goes thru to F. This is clled 2-input MUX. The control, C, input isn t counted A B C MUX F A C B MUX F= AC + BC F = A (if C=), F = B (if C=) Mjority Gte (Crry) Z= if the mjority of the inputs re. c 2 M c M = + c + c Dig Cir I p. 46 Revised; Jnury 7, 26 Slide 24 Common Three-Input Gtes Some Useful 3-Input Gtes Some Useful 3-Input Gtes Gtes A gte is some logic opertor tht is smll enough to e esily comprehended, nd used often enough to e worth giving specil nme. Gtes my e mde from simpler gtes. The XOR is usully mde from NANDs, NORs nd NOT. The mjority gte is shown here s eing mde from other gtes ut ctully N-input mjority gte could e esily mde s single gte from trnsistors. Mjority Gte M = + c + c + c However: c + = (c + ) = () = Thus the c term is redundnt, nd:- M = + c + c Crry Gte Consider three-it dder tht dds:- Cy (out), Σ = Cy (in) Cy (out) from the tle, is if ny two (or three) of, nd c re. This is the sme s for the mjority gte. 42. PROBLEM Design 4-input circuit which gives n output when 3 or more inputs re. Result in Cy(in) Cy(out) Σ Deciml Its output would e inverted. Crleton University Digitl Circuits I p. 47, diglogicb.fm Revised; Jnury 7, 26 Comment on Slide 24

25 Deriving Circuits from Truth Tles; Full Adder Circuits From Truth Tles The Full Adder The full-dder dds 3 its A B Cy (out) Full Adder Σ (sum) Cy(in) Cy(in) Cy(out) Σ Result, Deciml Cy(in) Cy(out) Cy Cy Cy Cy Σ Cy Cy Cy Cy Eqution for when Cy(out) is Cy(out) = Cy + Cy + Cy + Cy Cy(out) is for ll other comintions Eqution for when Σ is Σ = Cy + Cy + Cy + Cy Dig Cir I p. 48 Revised; Jnury 7, 26 Slide 25 Deriving Circuits from Truth Tles; Full Deriving Circuits From Truth Tles Deriving Circuits From Truth Tles Recll we only need consider cses which evlute to. Boolen formuls defult to if they re not. If the output is when,,c,d =,,,, this gives the term cd. OR together ll the terms tht give n output of, to get the complete formul. The formuls derived will not e in reduced form. Full Adders The full dder only dds one-it numers. To dd multiit numers, one needs severl full dders. A 4-it dder which dds two 4-it numers is shown. 4-Bit Adder mde from four full dders C 4 A 3 B 3 Full dder C 3 C 3 A 2 B 2 Full dder C 2 C 2 A B Full dder C C A B Full dder C Σ 3 Σ 2 Σ Σ A 3 B 3 A 2 B 2 A B A B C C 4 A 3 +B 3 +C 3 C 2 C 3 A 2 +B 2 +C 2 A +B +C C A +B +C Σ 3 Σ 2 Σ Σ Crleton University Digitl Circuits I p. 49, diglogicb.fm Revised; Jnury 7, 26 Comment on Slide 25

26 The Full Adder (Continued) Simplify The Full Adder Equtions Cy(out) = Cy + Cy + Cy + Cy = Cy + Cy + Cy + Cy + Cy+ Cy (I) x + x = x = ( + ) Cy + ( + ) Cy + (Cy+ Cy) (D) y + y = ( + )y = () Cy + ( ) Cy + () (N) x + x = = Cy + Cy + (B) x = x = mjority gte 2 Cy(out) Cy Cy Σ = Cy + Cy + Cy + Cy Reduce y compring with the prity circuit on the right. Reducing lgericlly is too much work. (It is shown the next slide) Σ Truth Tle For Sum Cy(in) Σ Truth Tle For Prity c p Dig Cir I p. 5 Revised; Jnury 7, 26 Slide 26 Deriving Circuits from Truth Tles; Full Simplifying the Full Adder Simplifying the Full Adder Crry Term This is strightforwrd 43. PROBLEM Strting on the second line of the simplifiction of the crry, Cy(out) = Cy + Cy + Cy + Cy + Cy+ Cy use the simplifiction rule to reduce the mount of writing to get the finl nswer. 44. PROBLEM Drw the circuit for full dder using mjority gte nd n exclusive-or gte. Crleton University Digitl Circuits I p. 5, diglogicb.fm Revised; Jnury 7, 26 Comment on Slide 26

27 The Full Adder Sum Eqution y Alger Optionl Slide for Alger Lovers Simplify the sum eqution lgericlly Σ = Cy + Cy + Cy + Cy = Cy + Cy + Cy + Cy = ( + ) Cy + ( + )Cy (C) (D) x + y = y + x y + y = ( + )y Cy = ( + ) Cy + ( + )Cy (Formul for XNOR) + = + = ( ) Cy + ( ) Cy (Formul for XOR) + = ( ) = ( ) Cy (Formul for XOR) u Cy + u Cy = (u Cy) u = ( ) Σ Dig Cir I p. 52 Revised; Jnury 7, 26 Slide 27 The Full Adder Sum Eqution y Alger Simplifying the Full Adder Sum Term Thisslide requires eing wre of the vrious forms of XOR nd XNOR. A B = A B = Α Β = + = + ( ) c + ( )c = c Crleton University Digitl Circuits I p. 53, diglogicb.fm Revised; Jnury 7, 26 Comment on Slide 27

28 Common Mistkes Common Errors. Sying is the sme s 2. Sying n expression is equl to its dul. 3. Not using AB + A =A to simplify expressions efore using more more complex rules. Also not reducing using A + AE = A + E. Simplifying nd reducing first my sve mny lines of lger. 4. Sying X + = X Everyone knows etter thn this, ut they still do it. 5. Not plcing the rckets round ll the AND terms efore tking the dul or (coming up soon) efore using the generlized DeMorgn s theorem. F = A (B + C D) + C D Must Add Brckets F = [A (B +[C D])] + [C D] Dig Cir I p. 54 Revised; Jnury 7, 26 Slide 28 Common Mistkes Simplifying the Full Adder How not to tke the dul: F= ce + + ced = (++c+f)(+)(+c+e+d) tke dul There re two lunders: The simplifiction lw should lwys e used first if pplicle. A function should never never never e equted to its dul. A etter pproch F= ce + + ced = + ced (S) +x = F dul = (+)(+c+e+d) tke dul Crleton University Digitl Circuits I p. 55, diglogicb.fm Revised; Jnury 7, 26 Comment on Slide 28

29 Dig Cir I p. 56 Revised; Jnury 7, 26 Slide 29 Simplifying the Full Adder Crleton University Digitl Circuits I p. 57, diglogicb.fm Revised; Jnury 7, 26 Comment on Slide 29

Fast Boolean Algebra

Fast Boolean Algebra Fst Boolen Alger ELEC 267 notes with the overurden removed A fst wy to lern enough to get the prel done honorly Printed; 3//5 Slide Modified; Jnury 3, 25 John Knight Digitl Circuits p. Fst Boolen Alger

More information

CS12N: The Coming Revolution in Computer Architecture Laboratory 2 Preparation

CS12N: The Coming Revolution in Computer Architecture Laboratory 2 Preparation CS2N: The Coming Revolution in Computer Architecture Lortory 2 Preprtion Ojectives:. Understnd the principle of sttic CMOS gte circuits 2. Build simple logic gtes from MOS trnsistors 3. Evlute these gtes

More information

Boolean algebra.

Boolean algebra. http://en.wikipedi.org/wiki/elementry_boolen_lger Boolen lger www.tudorgir.com Computer science is not out computers, it is out computtion nd informtion. computtion informtion computer informtion Turing

More information

Combinational Logic. Precedence. Quick Quiz 25/9/12. Schematics à Boolean Expression. 3 Representations of Logic Functions. Dr. Hayden So.

Combinational Logic. Precedence. Quick Quiz 25/9/12. Schematics à Boolean Expression. 3 Representations of Logic Functions. Dr. Hayden So. 5/9/ Comintionl Logic ENGG05 st Semester, 0 Dr. Hyden So Representtions of Logic Functions Recll tht ny complex logic function cn e expressed in wys: Truth Tle, Boolen Expression, Schemtics Only Truth

More information

expression simply by forming an OR of the ANDs of all input variables for which the output is

expression simply by forming an OR of the ANDs of all input variables for which the output is 2.4 Logic Minimiztion nd Krnugh Mps As we found ove, given truth tle, it is lwys possile to write down correct logic expression simply y forming n OR of the ANDs of ll input vriles for which the output

More information

Overview of Today s Lecture:

Overview of Today s Lecture: CPS 4 Computer Orgniztion nd Progrmming Lecture : Boolen Alger & gtes. Roert Wgner CPS4 BA. RW Fll 2 Overview of Tody s Lecture: Truth tles, Boolen functions, Gtes nd Circuits Krnugh mps for simplifying

More information

Intermediate Math Circles Wednesday, November 14, 2018 Finite Automata II. Nickolas Rollick a b b. a b 4

Intermediate Math Circles Wednesday, November 14, 2018 Finite Automata II. Nickolas Rollick a b b. a b 4 Intermedite Mth Circles Wednesdy, Novemer 14, 2018 Finite Automt II Nickols Rollick nrollick@uwterloo.c Regulr Lnguges Lst time, we were introduced to the ide of DFA (deterministic finite utomton), one

More information

I1 = I2 I1 = I2 + I3 I1 + I2 = I3 + I4 I 3

I1 = I2 I1 = I2 + I3 I1 + I2 = I3 + I4 I 3 2 The Prllel Circuit Electric Circuits: Figure 2- elow show ttery nd multiple resistors rrnged in prllel. Ech resistor receives portion of the current from the ttery sed on its resistnce. The split is

More information

Bridging the gap: GCSE AS Level

Bridging the gap: GCSE AS Level Bridging the gp: GCSE AS Level CONTENTS Chpter Removing rckets pge Chpter Liner equtions Chpter Simultneous equtions 8 Chpter Fctors 0 Chpter Chnge the suject of the formul Chpter 6 Solving qudrtic equtions

More information

2.4 Linear Inequalities and Interval Notation

2.4 Linear Inequalities and Interval Notation .4 Liner Inequlities nd Intervl Nottion We wnt to solve equtions tht hve n inequlity symol insted of n equl sign. There re four inequlity symols tht we will look t: Less thn , Less thn or

More information

Boolean Algebra. Boolean Algebra

Boolean Algebra. Boolean Algebra Boolen Alger Boolen Alger A Boolen lger is set B of vlues together with: - two inry opertions, commonly denoted y + nd, - unry opertion, usully denoted y ˉ or ~ or, - two elements usully clled zero nd

More information

Introduction to Electrical & Electronic Engineering ENGG1203

Introduction to Electrical & Electronic Engineering ENGG1203 Introduction to Electricl & Electronic Engineering ENGG23 2 nd Semester, 27-8 Dr. Hden Kwok-H So Deprtment of Electricl nd Electronic Engineering Astrction DIGITAL LOGIC 2 Digitl Astrction n Astrct ll

More information

How do we solve these things, especially when they get complicated? How do we know when a system has a solution, and when is it unique?

How do we solve these things, especially when they get complicated? How do we know when a system has a solution, and when is it unique? XII. LINEAR ALGEBRA: SOLVING SYSTEMS OF EQUATIONS Tody we re going to tlk out solving systems of liner equtions. These re prolems tht give couple of equtions with couple of unknowns, like: 6= x + x 7=

More information

Improper Integrals. The First Fundamental Theorem of Calculus, as we ve discussed in class, goes as follows:

Improper Integrals. The First Fundamental Theorem of Calculus, as we ve discussed in class, goes as follows: Improper Integrls The First Fundmentl Theorem of Clculus, s we ve discussed in clss, goes s follows: If f is continuous on the intervl [, ] nd F is function for which F t = ft, then ftdt = F F. An integrl

More information

Things to Memorize: A Partial List. January 27, 2017

Things to Memorize: A Partial List. January 27, 2017 Things to Memorize: A Prtil List Jnury 27, 2017 Chpter 2 Vectors - Bsic Fcts A vector hs mgnitude (lso clled size/length/norm) nd direction. It does not hve fixed position, so the sme vector cn e moved

More information

Digital Circuit Engineering

Digital Circuit Engineering igitl ircuit Engineering #$&@ ^ ' fctoring IGITL st istributive X + X = X( + ) 2nd istributive (X + )(X + ) = X + (X + )(X + )(X + ) = X + Swp (X + )(X + ) = X + X VLSI ESIGN The Most ommon Stupid Errors

More information

Vectors , (0,0). 5. A vector is commonly denoted by putting an arrow above its symbol, as in the picture above. Here are some 3-dimensional vectors:

Vectors , (0,0). 5. A vector is commonly denoted by putting an arrow above its symbol, as in the picture above. Here are some 3-dimensional vectors: Vectors 1-23-2018 I ll look t vectors from n lgeric point of view nd geometric point of view. Algericlly, vector is n ordered list of (usully) rel numers. Here re some 2-dimensionl vectors: (2, 3), ( )

More information

Section 6: Area, Volume, and Average Value

Section 6: Area, Volume, and Average Value Chpter The Integrl Applied Clculus Section 6: Are, Volume, nd Averge Vlue Are We hve lredy used integrls to find the re etween the grph of function nd the horizontl xis. Integrls cn lso e used to find

More information

Linear Inequalities. Work Sheet 1

Linear Inequalities. Work Sheet 1 Work Sheet 1 Liner Inequlities Rent--Hep, cr rentl compny,chrges $ 15 per week plus $ 0.0 per mile to rent one of their crs. Suppose you re limited y how much money you cn spend for the week : You cn spend

More information

Lecture 3. In this lecture, we will discuss algorithms for solving systems of linear equations.

Lecture 3. In this lecture, we will discuss algorithms for solving systems of linear equations. Lecture 3 3 Solving liner equtions In this lecture we will discuss lgorithms for solving systems of liner equtions Multiplictive identity Let us restrict ourselves to considering squre mtrices since one

More information

Lecture 3. Introduction digital logic. Notes. Notes. Notes. Representations. February Bern University of Applied Sciences.

Lecture 3. Introduction digital logic. Notes. Notes. Notes. Representations. February Bern University of Applied Sciences. Lecture 3 Ferury 6 ern University of pplied ciences ev. f57fc 3. We hve seen tht circuit cn hve multiple (n) inputs, e.g.,, C, We hve lso seen tht circuit cn hve multiple (m) outputs, e.g. X, Y,, ; or

More information

Lecture 2 : Propositions DRAFT

Lecture 2 : Propositions DRAFT CS/Mth 240: Introduction to Discrete Mthemtics 1/20/2010 Lecture 2 : Propositions Instructor: Dieter vn Melkeeek Scrie: Dlior Zelený DRAFT Lst time we nlyzed vrious mze solving lgorithms in order to illustrte

More information

Calculus Module C21. Areas by Integration. Copyright This publication The Northern Alberta Institute of Technology All Rights Reserved.

Calculus Module C21. Areas by Integration. Copyright This publication The Northern Alberta Institute of Technology All Rights Reserved. Clculus Module C Ares Integrtion Copright This puliction The Northern Alert Institute of Technolog 7. All Rights Reserved. LAST REVISED Mrch, 9 Introduction to Ares Integrtion Sttement of Prerequisite

More information

Simplifying Algebra. Simplifying Algebra. Curriculum Ready.

Simplifying Algebra. Simplifying Algebra. Curriculum Ready. Simplifying Alger Curriculum Redy www.mthletics.com This ooklet is ll out turning complex prolems into something simple. You will e le to do something like this! ( 9- # + 4 ' ) ' ( 9- + 7-) ' ' Give this

More information

Parse trees, ambiguity, and Chomsky normal form

Parse trees, ambiguity, and Chomsky normal form Prse trees, miguity, nd Chomsky norml form In this lecture we will discuss few importnt notions connected with contextfree grmmrs, including prse trees, miguity, nd specil form for context-free grmmrs

More information

Chapters Five Notes SN AA U1C5

Chapters Five Notes SN AA U1C5 Chpters Five Notes SN AA U1C5 Nme Period Section 5-: Fctoring Qudrtic Epressions When you took lger, you lerned tht the first thing involved in fctoring is to mke sure to fctor out ny numers or vriles

More information

SUMMER KNOWHOW STUDY AND LEARNING CENTRE

SUMMER KNOWHOW STUDY AND LEARNING CENTRE SUMMER KNOWHOW STUDY AND LEARNING CENTRE Indices & Logrithms 2 Contents Indices.2 Frctionl Indices.4 Logrithms 6 Exponentil equtions. Simplifying Surds 13 Opertions on Surds..16 Scientific Nottion..18

More information

Goals: Determine how to calculate the area described by a function. Define the definite integral. Explore the relationship between the definite

Goals: Determine how to calculate the area described by a function. Define the definite integral. Explore the relationship between the definite Unit #8 : The Integrl Gols: Determine how to clculte the re described by function. Define the definite integrl. Eplore the reltionship between the definite integrl nd re. Eplore wys to estimte the definite

More information

Lecture 3: Equivalence Relations

Lecture 3: Equivalence Relations Mthcmp Crsh Course Instructor: Pdric Brtlett Lecture 3: Equivlence Reltions Week 1 Mthcmp 2014 In our lst three tlks of this clss, we shift the focus of our tlks from proof techniques to proof concepts

More information

378 Relations Solutions for Chapter 16. Section 16.1 Exercises. 3. Let A = {0,1,2,3,4,5}. Write out the relation R that expresses on A.

378 Relations Solutions for Chapter 16. Section 16.1 Exercises. 3. Let A = {0,1,2,3,4,5}. Write out the relation R that expresses on A. 378 Reltions 16.7 Solutions for Chpter 16 Section 16.1 Exercises 1. Let A = {0,1,2,3,4,5}. Write out the reltion R tht expresses > on A. Then illustrte it with digrm. 2 1 R = { (5,4),(5,3),(5,2),(5,1),(5,0),(4,3),(4,2),(4,1),

More information

p-adic Egyptian Fractions

p-adic Egyptian Fractions p-adic Egyptin Frctions Contents 1 Introduction 1 2 Trditionl Egyptin Frctions nd Greedy Algorithm 2 3 Set-up 3 4 p-greedy Algorithm 5 5 p-egyptin Trditionl 10 6 Conclusion 1 Introduction An Egyptin frction

More information

set is not closed under matrix [ multiplication, ] and does not form a group.

set is not closed under matrix [ multiplication, ] and does not form a group. Prolem 2.3: Which of the following collections of 2 2 mtrices with rel entries form groups under [ mtrix ] multipliction? i) Those of the form for which c d 2 Answer: The set of such mtrices is not closed

More information

Properties of Integrals, Indefinite Integrals. Goals: Definition of the Definite Integral Integral Calculations using Antiderivatives

Properties of Integrals, Indefinite Integrals. Goals: Definition of the Definite Integral Integral Calculations using Antiderivatives Block #6: Properties of Integrls, Indefinite Integrls Gols: Definition of the Definite Integrl Integrl Clcultions using Antiderivtives Properties of Integrls The Indefinite Integrl 1 Riemnn Sums - 1 Riemnn

More information

1 ELEMENTARY ALGEBRA and GEOMETRY READINESS DIAGNOSTIC TEST PRACTICE

1 ELEMENTARY ALGEBRA and GEOMETRY READINESS DIAGNOSTIC TEST PRACTICE ELEMENTARY ALGEBRA nd GEOMETRY READINESS DIAGNOSTIC TEST PRACTICE Directions: Study the exmples, work the prolems, then check your nswers t the end of ech topic. If you don t get the nswer given, check

More information

CS103B Handout 18 Winter 2007 February 28, 2007 Finite Automata

CS103B Handout 18 Winter 2007 February 28, 2007 Finite Automata CS103B ndout 18 Winter 2007 Ferury 28, 2007 Finite Automt Initil text y Mggie Johnson. Introduction Severl childrens gmes fit the following description: Pieces re set up on plying ord; dice re thrown or

More information

Math 8 Winter 2015 Applications of Integration

Math 8 Winter 2015 Applications of Integration Mth 8 Winter 205 Applictions of Integrtion Here re few importnt pplictions of integrtion. The pplictions you my see on n exm in this course include only the Net Chnge Theorem (which is relly just the Fundmentl

More information

Section 4: Integration ECO4112F 2011

Section 4: Integration ECO4112F 2011 Reding: Ching Chpter Section : Integrtion ECOF Note: These notes do not fully cover the mteril in Ching, ut re ment to supplement your reding in Ching. Thus fr the optimistion you hve covered hs een sttic

More information

MA123, Chapter 10: Formulas for integrals: integrals, antiderivatives, and the Fundamental Theorem of Calculus (pp.

MA123, Chapter 10: Formulas for integrals: integrals, antiderivatives, and the Fundamental Theorem of Calculus (pp. MA123, Chpter 1: Formuls for integrls: integrls, ntiderivtives, nd the Fundmentl Theorem of Clculus (pp. 27-233, Gootmn) Chpter Gols: Assignments: Understnd the sttement of the Fundmentl Theorem of Clculus.

More information

Designing Information Devices and Systems I Discussion 8B

Designing Information Devices and Systems I Discussion 8B Lst Updted: 2018-10-17 19:40 1 EECS 16A Fll 2018 Designing Informtion Devices nd Systems I Discussion 8B 1. Why Bother With Thévenin Anywy? () Find Thévenin eqiuvlent for the circuit shown elow. 2kΩ 5V

More information

Farey Fractions. Rickard Fernström. U.U.D.M. Project Report 2017:24. Department of Mathematics Uppsala University

Farey Fractions. Rickard Fernström. U.U.D.M. Project Report 2017:24. Department of Mathematics Uppsala University U.U.D.M. Project Report 07:4 Frey Frctions Rickrd Fernström Exmensrete i mtemtik, 5 hp Hledre: Andres Strömergsson Exmintor: Jörgen Östensson Juni 07 Deprtment of Mthemtics Uppsl University Frey Frctions

More information

5: The Definite Integral

5: The Definite Integral 5: The Definite Integrl 5.: Estimting with Finite Sums Consider moving oject its velocity (meters per second) t ny time (seconds) is given y v t = t+. Cn we use this informtion to determine the distnce

More information

Hints for Exercise 1 on: Current and Resistance

Hints for Exercise 1 on: Current and Resistance Hints for Exercise 1 on: Current nd Resistnce Review the concepts of: electric current, conventionl current flow direction, current density, crrier drift velocity, crrier numer density, Ohm s lw, electric

More information

Mathematics Number: Logarithms

Mathematics Number: Logarithms plce of mind F A C U L T Y O F E D U C A T I O N Deprtment of Curriculum nd Pedgogy Mthemtics Numer: Logrithms Science nd Mthemtics Eduction Reserch Group Supported y UBC Teching nd Lerning Enhncement

More information

Convert the NFA into DFA

Convert the NFA into DFA Convert the NF into F For ech NF we cn find F ccepting the sme lnguge. The numer of sttes of the F could e exponentil in the numer of sttes of the NF, ut in prctice this worst cse occurs rrely. lgorithm:

More information

Bases for Vector Spaces

Bases for Vector Spaces Bses for Vector Spces 2-26-25 A set is independent if, roughly speking, there is no redundncy in the set: You cn t uild ny vector in the set s liner comintion of the others A set spns if you cn uild everything

More information

Chapter 0. What is the Lebesgue integral about?

Chapter 0. What is the Lebesgue integral about? Chpter 0. Wht is the Lebesgue integrl bout? The pln is to hve tutoril sheet ech week, most often on Fridy, (to be done during the clss) where you will try to get used to the ides introduced in the previous

More information

and that at t = 0 the object is at position 5. Find the position of the object at t = 2.

and that at t = 0 the object is at position 5. Find the position of the object at t = 2. 7.2 The Fundmentl Theorem of Clculus 49 re mny, mny problems tht pper much different on the surfce but tht turn out to be the sme s these problems, in the sense tht when we try to pproimte solutions we

More information

Interpreting Integrals and the Fundamental Theorem

Interpreting Integrals and the Fundamental Theorem Interpreting Integrls nd the Fundmentl Theorem Tody, we go further in interpreting the mening of the definite integrl. Using Units to Aid Interprettion We lredy know tht if f(t) is the rte of chnge of

More information

CSE396 Prelim I Answer Key Spring 2017

CSE396 Prelim I Answer Key Spring 2017 Nme nd St.ID#: CSE96 Prelim I Answer Key Spring 2017 (1) (24 pts.) Define A to e the lnguge of strings x {, } such tht x either egins with or ends with, ut not oth. Design DFA M such tht L(M) = A. A node-rc

More information

EECS 141 Due 04/19/02, 5pm, in 558 Cory

EECS 141 Due 04/19/02, 5pm, in 558 Cory UIVERSITY OF CALIFORIA College of Engineering Deprtment of Electricl Engineering nd Computer Sciences Lst modified on April 8, 2002 y Tufn Krlr (tufn@eecs.erkeley.edu) Jn M. Rey, Andrei Vldemirescu Homework

More information

Homework 3 Solutions

Homework 3 Solutions CS 341: Foundtions of Computer Science II Prof. Mrvin Nkym Homework 3 Solutions 1. Give NFAs with the specified numer of sttes recognizing ech of the following lnguges. In ll cses, the lphet is Σ = {,1}.

More information

Infinite Geometric Series

Infinite Geometric Series Infinite Geometric Series Finite Geometric Series ( finite SUM) Let 0 < r < 1, nd let n be positive integer. Consider the finite sum It turns out there is simple lgebric expression tht is equivlent to

More information

Section 6.1 Definite Integral

Section 6.1 Definite Integral Section 6.1 Definite Integrl Suppose we wnt to find the re of region tht is not so nicely shped. For exmple, consider the function shown elow. The re elow the curve nd ove the x xis cnnot e determined

More information

Chapter 1: Logarithmic functions and indices

Chapter 1: Logarithmic functions and indices Chpter : Logrithmic functions nd indices. You cn simplify epressions y using rules of indices m n m n m n m n ( m ) n mn m m m m n m m n Emple Simplify these epressions: 5 r r c 4 4 d 6 5 e ( ) f ( ) 4

More information

The Regulated and Riemann Integrals

The Regulated and Riemann Integrals Chpter 1 The Regulted nd Riemnn Integrls 1.1 Introduction We will consider severl different pproches to defining the definite integrl f(x) dx of function f(x). These definitions will ll ssign the sme vlue

More information

2. VECTORS AND MATRICES IN 3 DIMENSIONS

2. VECTORS AND MATRICES IN 3 DIMENSIONS 2 VECTORS AND MATRICES IN 3 DIMENSIONS 21 Extending the Theory of 2-dimensionl Vectors x A point in 3-dimensionl spce cn e represented y column vector of the form y z z-xis y-xis z x y x-xis Most of the

More information

Suppose we want to find the area under the parabola and above the x axis, between the lines x = 2 and x = -2.

Suppose we want to find the area under the parabola and above the x axis, between the lines x = 2 and x = -2. Mth 43 Section 6. Section 6.: Definite Integrl Suppose we wnt to find the re of region tht is not so nicely shped. For exmple, consider the function shown elow. The re elow the curve nd ove the x xis cnnot

More information

Lecture 6. Notes. Notes. Notes. Representations Z A B and A B R. BTE Electronics Fundamentals August Bern University of Applied Sciences

Lecture 6. Notes. Notes. Notes. Representations Z A B and A B R. BTE Electronics Fundamentals August Bern University of Applied Sciences Lecture 6 epresenttions epresenttions TE52 - Electronics Fundmentls ugust 24 ern University of pplied ciences ev. c2d5c88 6. Integers () sign-nd-mgnitude representtion The set of integers contins the Nturl

More information

CS 310 (sec 20) - Winter Final Exam (solutions) SOLUTIONS

CS 310 (sec 20) - Winter Final Exam (solutions) SOLUTIONS CS 310 (sec 20) - Winter 2003 - Finl Exm (solutions) SOLUTIONS 1. (Logic) Use truth tles to prove the following logicl equivlences: () p q (p p) (q q) () p q (p q) (p q) () p q p q p p q q (q q) (p p)

More information

Lecture Solution of a System of Linear Equation

Lecture Solution of a System of Linear Equation ChE Lecture Notes, Dept. of Chemicl Engineering, Univ. of TN, Knoville - D. Keffer, 5/9/98 (updted /) Lecture 8- - Solution of System of Liner Eqution 8. Why is it importnt to e le to solve system of liner

More information

CMSC 330: Organization of Programming Languages

CMSC 330: Organization of Programming Languages CMSC 330: Orgniztion of Progrmming Lnguges Finite Automt 2 CMSC 330 1 Types of Finite Automt Deterministic Finite Automt (DFA) Exctly one sequence of steps for ech string All exmples so fr Nondeterministic

More information

10. AREAS BETWEEN CURVES

10. AREAS BETWEEN CURVES . AREAS BETWEEN CURVES.. Ares etween curves So res ove the x-xis re positive nd res elow re negtive, right? Wrong! We lied! Well, when you first lern out integrtion it s convenient fiction tht s true in

More information

4.4 Areas, Integrals and Antiderivatives

4.4 Areas, Integrals and Antiderivatives . res, integrls nd ntiderivtives 333. Ares, Integrls nd Antiderivtives This section explores properties of functions defined s res nd exmines some connections mong res, integrls nd ntiderivtives. In order

More information

Coalgebra, Lecture 15: Equations for Deterministic Automata

Coalgebra, Lecture 15: Equations for Deterministic Automata Colger, Lecture 15: Equtions for Deterministic Automt Julin Slmnc (nd Jurrin Rot) Decemer 19, 2016 In this lecture, we will study the concept of equtions for deterministic utomt. The notes re self contined

More information

Review of Gaussian Quadrature method

Review of Gaussian Quadrature method Review of Gussin Qudrture method Nsser M. Asi Spring 006 compiled on Sundy Decemer 1, 017 t 09:1 PM 1 The prolem To find numericl vlue for the integrl of rel vlued function of rel vrile over specific rnge

More information

Minimal DFA. minimal DFA for L starting from any other

Minimal DFA. minimal DFA for L starting from any other Miniml DFA Among the mny DFAs ccepting the sme regulr lnguge L, there is exctly one (up to renming of sttes) which hs the smllest possile numer of sttes. Moreover, it is possile to otin tht miniml DFA

More information

Discrete Mathematics and Probability Theory Spring 2013 Anant Sahai Lecture 17

Discrete Mathematics and Probability Theory Spring 2013 Anant Sahai Lecture 17 EECS 70 Discrete Mthemtics nd Proility Theory Spring 2013 Annt Shi Lecture 17 I.I.D. Rndom Vriles Estimting the is of coin Question: We wnt to estimte the proportion p of Democrts in the US popultion,

More information

SCHOOL OF ENGINEERING & BUILT ENVIRONMENT. Mathematics

SCHOOL OF ENGINEERING & BUILT ENVIRONMENT. Mathematics SCHOOL OF ENGINEERING & BUIL ENVIRONMEN Mthemtics An Introduction to Mtrices Definition of Mtri Size of Mtri Rows nd Columns of Mtri Mtri Addition Sclr Multipliction of Mtri Mtri Multipliction 7 rnspose

More information

Definite Integrals. The area under a curve can be approximated by adding up the areas of rectangles = 1 1 +

Definite Integrals. The area under a curve can be approximated by adding up the areas of rectangles = 1 1 + Definite Integrls --5 The re under curve cn e pproximted y dding up the res of rectngles. Exmple. Approximte the re under y = from x = to x = using equl suintervls nd + x evluting the function t the left-hnd

More information

HW3, Math 307. CSUF. Spring 2007.

HW3, Math 307. CSUF. Spring 2007. HW, Mth 7. CSUF. Spring 7. Nsser M. Abbsi Spring 7 Compiled on November 5, 8 t 8:8m public Contents Section.6, problem Section.6, problem Section.6, problem 5 Section.6, problem 7 6 5 Section.6, problem

More information

How do we solve these things, especially when they get complicated? How do we know when a system has a solution, and when is it unique?

How do we solve these things, especially when they get complicated? How do we know when a system has a solution, and when is it unique? XII. LINEAR ALGEBRA: SOLVING SYSTEMS OF EQUATIONS Tody we re going to tlk bout solving systems of liner equtions. These re problems tht give couple of equtions with couple of unknowns, like: 6 2 3 7 4

More information

Reasoning and programming. Lecture 5: Invariants and Logic. Boolean expressions. Reasoning. Examples

Reasoning and programming. Lecture 5: Invariants and Logic. Boolean expressions. Reasoning. Examples Chir of Softwre Engineering Resoning nd progrmming Einführung in die Progrmmierung Introduction to Progrmming Prof. Dr. Bertrnd Meyer Octoer 2006 Ferury 2007 Lecture 5: Invrints nd Logic Logic is the sis

More information

Introduction to Algebra - Part 2

Introduction to Algebra - Part 2 Alger Module A Introduction to Alger - Prt Copright This puliction The Northern Alert Institute of Technolog 00. All Rights Reserved. LAST REVISED Oct., 008 Introduction to Alger - Prt Sttement of Prerequisite

More information

Chapter 9 Definite Integrals

Chapter 9 Definite Integrals Chpter 9 Definite Integrls In the previous chpter we found how to tke n ntiderivtive nd investigted the indefinite integrl. In this chpter the connection etween ntiderivtives nd definite integrls is estlished

More information

Designing Information Devices and Systems I Spring 2018 Homework 8

Designing Information Devices and Systems I Spring 2018 Homework 8 EECS 16A Designing Informtion Devices nd Systems I Spring 2018 Homework 8 This homework is due Mrch 19, 2018, t 23:59. Self-grdes re due Mrch 22, 2018, t 23:59. Sumission Formt Your homework sumission

More information

DIRECT CURRENT CIRCUITS

DIRECT CURRENT CIRCUITS DRECT CURRENT CUTS ELECTRC POWER Consider the circuit shown in the Figure where bttery is connected to resistor R. A positive chrge dq will gin potentil energy s it moves from point to point b through

More information

1 2 : 4 5. Why Digital Systems? Lesson 1: Introduction to Digital Logic Design. Numbering systems. Sample Problems 1 5 min. Lesson 1-b: Logic Gates

1 2 : 4 5. Why Digital Systems? Lesson 1: Introduction to Digital Logic Design. Numbering systems. Sample Problems 1 5 min. Lesson 1-b: Logic Gates Leon : Introduction to Digitl Logic Deign Computer ided Digitl Deign EE 39 meet Chvn Fll 29 Why Digitl Sytem? ccurte depending on numer of digit ued CD Muic i digitl Vinyl Record were nlog DVD Video nd

More information

Special Relativity solved examples using an Electrical Analog Circuit

Special Relativity solved examples using an Electrical Analog Circuit 1-1-15 Specil Reltivity solved exmples using n Electricl Anlog Circuit Mourici Shchter mourici@gmil.com mourici@wll.co.il ISRAE, HOON 54-54855 Introduction In this pper, I develop simple nlog electricl

More information

Lecture 2e Orthogonal Complement (pages )

Lecture 2e Orthogonal Complement (pages ) Lecture 2e Orthogonl Complement (pges -) We hve now seen tht n orthonorml sis is nice wy to descrie suspce, ut knowing tht we wnt n orthonorml sis doesn t mke one fll into our lp. In theory, the process

More information

ACCESS TO SCIENCE, ENGINEERING AND AGRICULTURE: MATHEMATICS 1 MATH00030 SEMESTER /2019

ACCESS TO SCIENCE, ENGINEERING AND AGRICULTURE: MATHEMATICS 1 MATH00030 SEMESTER /2019 ACCESS TO SCIENCE, ENGINEERING AND AGRICULTURE: MATHEMATICS MATH00030 SEMESTER 208/209 DR. ANTHONY BROWN 7.. Introduction to Integrtion. 7. Integrl Clculus As ws the cse with the chpter on differentil

More information

Good Review book ( ) ( ) ( )

Good Review book ( ) ( ) ( ) 7/31/2011 34 Boolen (Switching) Algebr Review Good Review book BeBop to the Boolen Boogie: An Unconventionl Guide to Electronics, 2 nd ed. by Clive Mxwell Hightext Publictions Inc. from Amzon.com for pprox.

More information

Types of Finite Automata. CMSC 330: Organization of Programming Languages. Comparing DFAs and NFAs. Comparing DFAs and NFAs (cont.) Finite Automata 2

Types of Finite Automata. CMSC 330: Organization of Programming Languages. Comparing DFAs and NFAs. Comparing DFAs and NFAs (cont.) Finite Automata 2 CMSC 330: Orgniztion of Progrmming Lnguges Finite Automt 2 Types of Finite Automt Deterministic Finite Automt () Exctly one sequence of steps for ech string All exmples so fr Nondeterministic Finite Automt

More information

Scientific notation is a way of expressing really big numbers or really small numbers.

Scientific notation is a way of expressing really big numbers or really small numbers. Scientific Nottion (Stndrd form) Scientific nottion is wy of expressing relly big numbers or relly smll numbers. It is most often used in scientific clcultions where the nlysis must be very precise. Scientific

More information

Types of Finite Automata. CMSC 330: Organization of Programming Languages. Comparing DFAs and NFAs. NFA for (a b)*abb.

Types of Finite Automata. CMSC 330: Organization of Programming Languages. Comparing DFAs and NFAs. NFA for (a b)*abb. CMSC 330: Orgniztion of Progrmming Lnguges Finite Automt 2 Types of Finite Automt Deterministic Finite Automt () Exctly one sequence of steps for ech string All exmples so fr Nondeterministic Finite Automt

More information

Equations and Inequalities

Equations and Inequalities Equtions nd Inequlities Equtions nd Inequlities Curriculum Redy ACMNA: 4, 5, 6, 7, 40 www.mthletics.com Equtions EQUATIONS & Inequlities & INEQUALITIES Sometimes just writing vribles or pronumerls in

More information

A-Level Mathematics Transition Task (compulsory for all maths students and all further maths student)

A-Level Mathematics Transition Task (compulsory for all maths students and all further maths student) A-Level Mthemtics Trnsition Tsk (compulsory for ll mths students nd ll further mths student) Due: st Lesson of the yer. Length: - hours work (depending on prior knowledge) This trnsition tsk provides revision

More information

CS 373, Spring Solutions to Mock midterm 1 (Based on first midterm in CS 273, Fall 2008.)

CS 373, Spring Solutions to Mock midterm 1 (Based on first midterm in CS 273, Fall 2008.) CS 373, Spring 29. Solutions to Mock midterm (sed on first midterm in CS 273, Fll 28.) Prolem : Short nswer (8 points) The nswers to these prolems should e short nd not complicted. () If n NF M ccepts

More information

7. Indefinite Integrals

7. Indefinite Integrals 7. Indefinite Integrls These lecture notes present my interprettion of Ruth Lwrence s lecture notes (in Herew) 7. Prolem sttement By the fundmentl theorem of clculus, to clculte n integrl we need to find

More information

1 PYTHAGORAS THEOREM 1. Given a right angled triangle, the square of the hypotenuse is equal to the sum of the squares of the other two sides.

1 PYTHAGORAS THEOREM 1. Given a right angled triangle, the square of the hypotenuse is equal to the sum of the squares of the other two sides. 1 PYTHAGORAS THEOREM 1 1 Pythgors Theorem In this setion we will present geometri proof of the fmous theorem of Pythgors. Given right ngled tringle, the squre of the hypotenuse is equl to the sum of the

More information

Before we can begin Ch. 3 on Radicals, we need to be familiar with perfect squares, cubes, etc. Try and do as many as you can without a calculator!!!

Before we can begin Ch. 3 on Radicals, we need to be familiar with perfect squares, cubes, etc. Try and do as many as you can without a calculator!!! Nme: Algebr II Honors Pre-Chpter Homework Before we cn begin Ch on Rdicls, we need to be fmilir with perfect squres, cubes, etc Try nd do s mny s you cn without clcultor!!! n The nth root of n n Be ble

More information

Project 6: Minigoals Towards Simplifying and Rewriting Expressions

Project 6: Minigoals Towards Simplifying and Rewriting Expressions MAT 51 Wldis Projet 6: Minigols Towrds Simplifying nd Rewriting Expressions The distriutive property nd like terms You hve proly lerned in previous lsses out dding like terms ut one prolem with the wy

More information

UNIT 5 QUADRATIC FUNCTIONS Lesson 3: Creating Quadratic Equations in Two or More Variables Instruction

UNIT 5 QUADRATIC FUNCTIONS Lesson 3: Creating Quadratic Equations in Two or More Variables Instruction Lesson 3: Creting Qudrtic Equtions in Two or More Vriles Prerequisite Skills This lesson requires the use of the following skill: solving equtions with degree of Introduction 1 The formul for finding the

More information

IMPORTANT. Read these directions carefully:

IMPORTANT. Read these directions carefully: Physics 208: Electricity nd Mgnetism Finl Exm, Secs. 506 510. 7 My. 2004 Instructor: Dr. George R. Welch, 415 Engineering-Physics, 845-7737 Print your nme netly: Lst nme: First nme: Sign your nme: Plese

More information

SOLUTIONS FOR ADMISSIONS TEST IN MATHEMATICS, COMPUTER SCIENCE AND JOINT SCHOOLS WEDNESDAY 5 NOVEMBER 2014

SOLUTIONS FOR ADMISSIONS TEST IN MATHEMATICS, COMPUTER SCIENCE AND JOINT SCHOOLS WEDNESDAY 5 NOVEMBER 2014 SOLUTIONS FOR ADMISSIONS TEST IN MATHEMATICS, COMPUTER SCIENCE AND JOINT SCHOOLS WEDNESDAY 5 NOVEMBER 014 Mrk Scheme: Ech prt of Question 1 is worth four mrks which re wrded solely for the correct nswer.

More information

IST 4 Information and Logic

IST 4 Information and Logic IST 4 Informtion nd Logic T = tody x= hw#x out x= hw#x due mon tue wed thr 28 M1 oh 1 4 oh M1 11 oh oh 1 2 M2 18 oh oh 2 fri oh oh = office hours oh 25 oh M2 2 3 oh midterms oh Mx= MQx out 9 oh 3 T 4 oh

More information

1B40 Practical Skills

1B40 Practical Skills B40 Prcticl Skills Comining uncertinties from severl quntities error propgtion We usully encounter situtions where the result of n experiment is given in terms of two (or more) quntities. We then need

More information

Continuous Random Variables Class 5, Jeremy Orloff and Jonathan Bloom

Continuous Random Variables Class 5, Jeremy Orloff and Jonathan Bloom Lerning Gols Continuous Rndom Vriles Clss 5, 8.05 Jeremy Orloff nd Jonthn Bloom. Know the definition of continuous rndom vrile. 2. Know the definition of the proility density function (pdf) nd cumultive

More information

Designing finite automata II

Designing finite automata II Designing finite utomt II Prolem: Design DFA A such tht L(A) consists of ll strings of nd which re of length 3n, for n = 0, 1, 2, (1) Determine wht to rememer out the input string Assign stte to ech of

More information

An Overview of Integration

An Overview of Integration An Overview of Integrtion S. F. Ellermeyer July 26, 2 The Definite Integrl of Function f Over n Intervl, Suppose tht f is continuous function defined on n intervl,. The definite integrl of f from to is

More information

Homework Solution - Set 5 Due: Friday 10/03/08

Homework Solution - Set 5 Due: Friday 10/03/08 CE 96 Introduction to the Theory of Computtion ll 2008 Homework olution - et 5 Due: ridy 10/0/08 1. Textook, Pge 86, Exercise 1.21. () 1 2 Add new strt stte nd finl stte. Mke originl finl stte non-finl.

More information