CMU Fall VLSI CAD

Size: px
Start display at page:

Download "CMU Fall VLSI CAD"

Transcription

1 CMU Fll VLSI CAD [120 pts] Homework 2. Out Thu Sep 13, Due Thu Sep BDD ordering [10 pts] We sw tht vrible order is highly significnt for something s simple s multiplexor. How bout something like comprtor? A simple comprtor tkes two 2-bit unsigned binry numbers 10 nd b1b0 nd compres their mgnitude, nd sets the output z=1 just if 10 is less thn or equl to b1b0. Do this: Is there prticulrly good vrible ordering for this function? Show it--show the BDD. Is there prticulrly bd vrible ordering for this function? Show it--show the BDD. Drw gte-level netlist using ny AND, OR, NOT, EXOR gtes you wnt, to implement the simple comprtor from the previous problem. Apply Minto s ordering heuristic (nd where you need to brek ties or mke ny rbitrry ordering decicion--just tell us wht you did nd show the work). Show wht vrible ordering it produces. 2. ITE for Gtes [10 pts] Wht is the fewest number of clls you need to mke to ITE to implement b? In other words, you don t wnt to use ITE severl times to build AND, OR, nd NOT, to do b + b tht s too esy. You cn do it much more simply if you think bout it Drw the multiplexor-hrdwre picture of the ITE nd lbel clerly wht s going in nd out of ech ITE. 3. ITE Decomposition [10 pts] Using wht you know of Boolen lgebr, the definition of ITE, nd the properties of cofctors, show tht the ITE decomposition below (from clss) ctully works: ITE( ITE,, ) = x ITE( I x, T x, E x ) + x ITE( I x, T x, E x ) (EQ 1) 4. ITE Recursion [10 pts] Let f(x, y) = x y nd g(x, y) = x y (this is exclusive-nor). Assume we hve multi-rooted DAG for the BDDs representing these two functions (you need to drw them.) We wnt to EXOR these functions, nd compute new function Q(x, y) = (f g)(x,y). Using the ITE opertor s discussed in the notes, show how you would implement this EXOR opertion. As in the slides, show how the recursive computtion proceeds s ITE clls itself. At ech node of the recursive cll tree, tell wht ITE is computing (lbel the nodes in your BDD in some sensible wy) nd show clerly when ech recursive cll termintes. Drw the finl recursive cll tree. CMU Fll VLSI CAD September 14,

2 Drw the finl result, i.e., show the finl form of the multi-rooted DAG tht now represents functions f, g, nd Q. 5. Derived Opertors [20 pts] Suppose we hve softwre pckge tht hs dt structures representing vribles nd Boolen functions s BDDs, nd tht the following opertions re vilble s subroutines in this softwre. (We will write these in simplified sort of C lnguge nottion): bdd vr2func(vr x) Generte the BDD corresponding to single vrible x. Input is single vrible (of type vr), nd the returned output is BDD. bdd ITE(bdd I, bdd T, bdd E ) Compute the if-then-else opertion. Inputs re 3 BDDs, clled I (if prt), T (then prt) E (else prt), nd the returned output is nother BDD. int iszero(bdd func ) Returns integer 1 just if func is the lwys-zero function. Input is BDD, output is integer 1 or 0 (it s not BDD) bdd cofctor(bdd func, vr x, int vl) Computes cofctor of func with respect to vr x, setting x = vl. func is BDD, vr is vrible, vl is integer 0 or 1 bdd AND(bdd f, bdd g) bdd OR(bdd f, bdd g) bdd EXOR(bdd f, bdd g) bdd NOT(bdd f) Compute the bsic logicl (gte type) opertions on BDDs. AND, OR nd EXOR crete new BDDs representing the logicl AND, OR nd exclusive-or of their inputs. NOT cretes the BDD for the complement of its input. bdd CONST1, CONST0 You cn ssume these two BDDs re lredy defined. These re just the constnt 1 function nd the constnt 0 function. Note tht iszero(const0) == (int) 1. No other opertions re implemented, nd there is no wy for you to exmine the BDD dt structure directly. Describe (in C-like pseudo-code nottion we don t need rel code here!) how you would implement the following opertions: CMU Fll VLSI CAD September 14,

3 int depends(bdd f, vr x) Determine whether function f depends on the specified vrible x. This mens if you chnge x, t lest sometime the output of f will lso chnge. f is BDD, x is vrible, depends returns integer 0 or 1. bdd univqunt(bdd f, vr x) Compute universl quntifiction of function f with respect to vrible x. f is BDD, x is vrible, univqunt returns BDD. int opposite(bdd f, bdd g) Determine whether two functions re complementry, i.e., if one of them is the complement of the other. f nd g re BDDs, opposite returns integer 0 or 1. bdd exchnge(bdd f, vr, vr b ) Exchnge roles of specified vribles in function f. For exmple, exchnge( b + d,, d ) > d b +. f is BDD, nd b re vribles, exchnge returns BDD. bdd compose(bdd f, bdd g, vr x) Cretes new function (composition function) with vrible x in f set to the output of g. The picture below clrifies wht we re computing. f nd g re BDDs, x is vrible, nd compose returns BDD. b c d b c d f g f(,b,c,d) g(,b,c,d) b c d g b d f compose(f,g,c) HINTS: lots of things tht look difficult re esier when you cofctor them nd look t the cofctors. Ply round with ITE of vrious combintions of the cofctors. The first 3 opertors re pretty strightforwrd, the lst 2 re rther tricky. None of these things requires some sophisticted recursive lgorithm, just few lines of clls to the right opertors with the right inputs. To emphsize this, here is the nswer for the first prt, for depends(bdd f, vr x): int depends(bdd f, vr x) { return(1 - iszero( EXOR( cofctor(f, x, 0), cofctor(f, x, 1) ) ); } CMU Fll VLSI CAD September 14,

4 Notice how this works. If function f( ) depends on vrible x, then if I chnge x from x=0 to x=1, there ought to be t lest some pttern for the remining inputs tht mkes the output of the function chnge. But this is exctly wht the Boolen Difference tries to compute. So, we compute the BDD for new function f(... x=0...) f(... x=1...) using clls to cofctor nd to EXOR. Wht does this new function tell us? If the new function is zero lwys, for ll inputs, then you cnnot ffect the output of function f by chnging vrible x. In other words, f does not depend on vrible x. So if the iszero( ) function returns integer 1, it mens the originl f function does not depend on x. To get the true/ flse return for depends() correct, we hve to invert this, which is wht the (1 -...) does. 6. Combintionl Verifiction in KBDD [30 pts] kbdd is BDD clcultor done by Prof. Rndy Brynt s reserch group tht hs ll the opertors you d wnt to use to mnipulte Boolen functions, nd simple commnd line interfce to type in functions, etc. You will use this to try to verify the correctness of logic gte network whose BDDs re much too big to do by hnd. kbdd lives in /fs/ece/clss/ee760/bin/kbdd, nd it works on IBM AIX boxes nd on SUN Solris boxes. As strting point, the following pge shows complete trce of session with kbdd, using it to do the network repir problem on the lst homework ssignment. Inputs re in norml font, outputs itlics, kbdd s prompts for input shown in bold s KBDD: CMU Fll VLSI CAD September 14,

5 % /fs/ece/clss/ee760/bin/kbdd input vribles KBDD: boolen b cin d0 d1 d2 d3 define the correct eqution for the dder s crry out KBDD: evl cout &b + (+b)&cin cout: &b + (+b)&cin define the incorrect version of this eqution (just for fun) KBDD: evl wrong &b + (!(&b))&cin wrong: &b + (!(&b))&cin define the to-be-repired version with the MUX KBDD: evl repir &b + (d0&!&!b + d1&!&b + d2&&!b + d3&&b)&cin repir: &b + (d0&!&!b + d1&!&b + d2&&!b + d3&&b)&cin mke the Z function tht compres the right version of the network nd the version with the MUX replcing the suspect gte (this is EXNOR of cout nd repir functions) KBDD: evl Z repir&cout +!repir&!cout Z: repir&cout +!repir&!cout universlly quntify wy the non-mux vrs: b cin KBDD: quntify u ForllZ Z b cin let s sk kbdd to show n eqution for this quntified function KBDD: sop ForllZ!d0 & d1 & d2 wht vlues of the d s mke this function == 1? KBDD: stisfy ForllZ Vribles: d0 d1 d2 011 tht s it! KBDD: quit % CMU Fll VLSI CAD September 14,

6 KBDD Quick Reference boolen vr Declre vribles nd vrible ordering Extended nming vr[m.. n ] Numeric rnge (scending or descending) {s1,s2, } Enumertion evlute dest expr dest := bdd for boolen expression expr Opertions (decresing precedence)! Complement ^ Exclusive-Or & And + Or bdd funct Print BDD DAG s lisp-like representtion sop funct Print sum-of-products representtion of funct stisfy funct Print ll stisfying vrible ssignments of funct verify f1 f2 Verify tht two functions f1 f2 re equivlent size funct Compute totl BDD nodes for set of functions replce dest funct vr replce Functionl composition: dest := funct with vrible vr replced by replce function output quntify [u e] dest funct vr dest := Quntifiction of function funct over vribles vr... e Existentil quntifiction is done u Universl quntifiction is done dder n Cout Sums As Bs Cin Compute functions for n -bit dder n Word size Cout Crry output Sums Destintions for sum outputs: Sum.n Sum.0 As A inputs: A.n-1 A.2 A.1 A.0 Bs B inputs: B.n-1 B.2 B.1 B.0 Cin Crry input lu181 Cout Fs M Ss Cin As Bs Compute functions for 181 TTL ALU Cout Destintion for crry output Fs Destintions for function outputs: F.3 F.2 F.1 F.0 M Mode input Ss Opertion inputs: S.3 S.2 S.1 S.0 Cin Crry input function As A inputs: A.3 A.2 A.1 A.0 Bs B inputs: B.3 B.2 B.1 B.0 mux n Out Sels Ins Compute functions for 2n-bit multiplexor n Word size Out Destintion for output function Sels Control inputs: Sel.n-1 Sel.1 Sel.0 Ins Dt inputs: In.2n 1 In.1 In.0 quit Exit KBDD CMU Fll VLSI CAD September 14,

7 So, wht shll we use kbdd to verify? It turns out tht dders re very good choice here, becuse they come in so mny different styles, nd we know tht the BDD for bsic dder is very simple nd smll. Let us look t not-so-strightforwrd design for 4-bit binry dder block. To strt, here is reminder of how n ordinry crry lookhed dder works i-1 b i-1 i-2 b i-2 i-3 b i-3 i-4 b i-4 Crryout c i Ordinry 4-bit Lookhed Adder c i-4 Crryin s i-1 s i-2 s i-3 s i-4 sum bits In conventionl crry lookhed dder, we would do this: g i = i b i p i = i p i s i = p i g i per bit crry generte signl per bit crry propgte signl output sum bit Lookhed-style output crry: c i = g i-1 + g i-2 p i-1 + g i-3 p i-2 p i-1 + g i-4 p i-3 p i-2 p i-1 + c i-4 p i-4 p i-3 p i-2 p i-1 You could mke n 8-bit lookhed dder here by connected 2 of these 4-bit blocks, nd connecting the lower-block s crry out to the crry in of the higher block. It turns out tht there re mny other wys of doing lookhed ides. The dder on the next pge is one of the more fmous ones: the Ling Adder. Question: Does this thing relly work? (One does hope so, it s pretty fmous dder design, from Ling of IBM in But, we did copy these equtions from the lit, who knows, mybe we got them wrong...?) To test this, crete the equtions for n 8-bit Ling dder. This just mens tke 2 of the 4-bit blocks on the previous pge, nd connect them with the h 4 signl rippling between them. You cn ssume tht h 0 = Cin for crry in vrible. This mens, we wnt you to build the BDDs for ll 8 of the sum bits s 7, s 6,... s 0 for the Ling dder, nd compre them to n ordinry dder. Are they identiclly the sme Boolen functions? Ignore the crry out of the high bit -- the Ling dder doesn t generte this explicitly so we will ignore it. Use kbdd to formlly verify this 8-bit design. Include listing of your session with kbdd showing how you did this. Note especilly tht kbdd hs bsic n-bit dders built in, so to crete the bseline sum-bit equtions is simple opertion. For exmple, to do bsic 4-bit dder, this will suffice: kbdd: boolen [3..0] b[3..0] s[3..0] cout cin kbdd: dder 4 cout s[3..0] [3..0] b[3..0] cin CMU Fll VLSI CAD September 14,

8 i-1 b i-1 i-2 b i-2 i-3 b i-3 i-4 b i-4 rtificil h i out 4-bit Ling Adder h i-4 in s i-1 s i-2 s i-3 s i-4 sum bits In Ling Adder, insted of propgting the crry c i from stge to stge, we propgte n rtificil signl h i =c i +c i-1 The motivtion is tht it s fster to compute h i We do it like this: g i = i b i t i = i + p i per bit crry generte signl Ling-style propgte signl Ling-style lookhed output : h i = g i-1 + g i-2 + g i-3 t i-2 + g i-4 t i-3 t i-2 + h i-4 t i-4 t i-3 t i-2 Intermedite h signls use the sme pttern, but just hve fewer terms. For exmple, since i=4 bove, then: h 3 = g 2 + g 1 + g 0 t 1 t 2 t 3 + h 0 t 1 t 2 t 3 generted crry from 2 prev bits propgte g 0 in bit 0 thru bits 1 2 nd 3 propgte h 0 crry in thru bits nd 3 This sort-of--crry propgtion is nicer less levels of logic. However, the sum clcultion becomes more complicted: s i = ( t i h i+1 ) + h i g i t i-i All the work is in creting the Ling dder in kbdd, nd then compring it ppropritely. Note: It s probbly esiest to edit script file tht you then run through kbdd using the source kbdd commnd. In UNIX, if you type the following itlics stuff: % script % /fs/ece/clss/ee760/bin/kbdd kbdd: source myfilenme kbdd: quit <you hit control-d> then it will (1) strt sving everything in file clled typescript, (2) run kbdd, (3) tell kbdd to run your commnds in your file myfilenme. You type control-d to stop the script sving. You cn then print this typescript file nd hnd it in, nd include some comments so when we red it, we understnd wht you did. CMU Fll VLSI CAD September 14,

9 7. Multi-Terminl BDDs [10 pts] BDDs come in number of specilized vrints, one of which is the Multi-Terminl BDD, or MTBDD. MTBDDs re generliztion of BDDs tht llow n rbitrry number of rel-vlued terminls insted of just the bsic binry terminls, 0 nd 1. While BDD represents function tht returns Boolen vlue for ny ssignment to its vribles, n MTBDD returns rel number. More formlly: BDDs F : B n -> B MTBDDs F : B n -> R Suppose you wnted to represent the following function: F(,b) = 1.2 for =1, b=0 F(,b) = 2.5 for =0 F(,b) = 4.7 for =1, b=1 These numbers could hve ny number of menings. One exmple would be the power in mw consumed by prticulr circuit when it s input chnges from to b. Or it could be the dely in ns, or the rise time of the output. The MTBDD for this function would be the following: F b Furthermore, MTBDDs cn be used to represent rel-vlued mtrices firly efficiently. To do so, we introduce log(# rows) + log(# columns) vribles to encode the row position, nd column position. For simple 2 by 2 mtrix, we get the following: col row row CMU Fll VLSI CAD September 14,

10 For very lrge mtrices with lots of repeted numbers, the MTBDD representtion cn be considerbly smller thn simple listing of the vlues, nd opertions like mtrix-ddition or mtrix-multipliction re correspondingly fster. It turns out tht working with MTBDDs is just s esy s with BDDs. To pply n rbitrry binry opertor (function with two opernds, like +b ), we cn use the sme expnsion nd cofctoring rules s with BDDs. The cofctor of function F with respect to vrible x, or F x, is obtined by redrwing the MTBDD without ll of the x nodes, nd redirecting their incoming edges to the hi son. For exmple: b cofctor w.r.t. b Using cofctors, we cn decompose opertions on MTBDDs in exctly the sme mnner s for BDDs: F = x F x + x F x F+G = x ( F x + G x ) + x (F x + G x ) F*G = x ( F x * G x ) + x (F x * G x ) This results in nice recursive lgorithm for performing rbitrry opertions on two input MTBDDs tht looks remrkbly similr to lgorithms for BDDs. Do this: 1.) Drw the MTBDDs for the two following functions: F(,b) = 3 for =0 0 for =1,b=0 4 for =1,b=1 G(,b) = 0 for b=1 4 for b=0 2.) Compute nd drw the resulting MTBDDs for H=F+G nd M=F*G (Hint: This will be esier if you think bout wht the results should be for ech of the ssignments to nd b first, nd then try drwing the MTBDD. ) CMU Fll VLSI CAD September 14,

11 8. Metproducts [20 pts] A wonderful property of BDDs is tht they only represent the bstrct Boolen function, not the wy you chose to implement it with logic gtes. This is why BDDs re so useful for verifiction: you cn implement x + x, or x + y + x y, or just plin 1, nd in ll these cses, you get the identicl BDD. Of course, sometimes we ctully wnt to represent the wy we hve implemented something s logic gtes. Suppose we relly wnt to represent--for whtever odd reson--the SOP expression = x + x. Is there ny wy we cn represent this directly, without immeditely resolving it to the 1 function? In other words, cn we preserve the SOP product structure of this expression? The nswer is yes -- sort of. We need new representtion of the function tht records the SOP structure, but which lso behves s much like BDD s possible. It turns out there is very elegnt trick for recsting the originl function in new set of vribles, nd then just representing this new function s BDD, tht does much of wht we wnt it to do. This new SOP preserving structure is clled metproduct nottion. (The ide is due to Olivier Coudert, originlly of Bull Reserch Center in Frnce.) Here s the trick: For ech vrible x in your SOP form, the metproduct formul hs 2 different vribles: r x nd s x. r x is the occurence vrible for x; s x is the sign vrible for x. Suppose your function is f(x,y,z,w). For ech product term in your SOP form, for exmple xy z, you get corresponding metproduct term. If your literl is in positive form, like x, you get (r x s x ) in the metproduct. If your literl is in negtive form, like x, you get (r x s x ) in the metproduct. If vrible is missing from the product, like w, you get (r w ) in the metproduct. (It turns out the s w vrible doesn t mtter in this cse, since w is not present, sign doesn t mtter) So, xy z would get trnsformed into ( r x s x r y s y r z s z r w ) in metproduct form. Red r x =1 s mening the vrible x occurs in the product. Red r x =0 s mening the vrible x does not occur in the product. Similrly, red s x =0 s the polrity of x is positive nd s x =1 s the polrity of x is negtive. For exmple: xy z w is bsent in this product term r x s x r y s y r z s z r w So, for exmple, if we ctully tried to represent f(x)=(x + x ) we would get ( r x s x + r x s x ) for the metproduct form. To mnipulte this, we represent it s BDD. we get one more rule here: CMU Fll VLSI CAD September 14,

12 Interpret the pths from the BDD root to the 1 lef s specifying the individul product terms in the metproduct form. If vrible is omitted on pth, you need to include it in both polrities in the finl metproduct. This sounds more complicted thn it relly is. Let s try it. Do this: Drw the BDD for the metproduct for the single-vrible function f(x)=x+x. Show how wlking the pths from root to 1 lef genertes the correct metproduct for this SOP form. Using wht you know bout BDDs, complement this BDD for this metproduct. Agin, wlk the pths from root to 1 nd generte the new metproduct for f (x). Interpret the result -- does this mkes sense? Why? Drw the BDD for the metproduct of the 4 vrible function: f(x,y,z,w) = yw + xzw + xy zw Agin, show how the pths from root to lef in this BDD generte the correct metproduct. (It s OK to use kbdd for this one, s long s you cn figure out the BDD structure yourself.) Agin, complement this BDD, nd show tht the result mkes sense s metproduct. (For this one, you might wnt to use kbdd -- if it s too messy to do by hnd.) CMU Fll VLSI CAD September 14,

What do all those bits mean now? Number Systems and Arithmetic. Introduction to Binary Numbers. Questions About Numbers

What do all those bits mean now? Number Systems and Arithmetic. Introduction to Binary Numbers. Questions About Numbers Wht do ll those bits men now? bits (...) Number Systems nd Arithmetic or Computers go to elementry school instruction R-formt I-formt... integer dt number text chrs... floting point signed unsigned single

More information

What do all those bits mean now? Number Systems and Arithmetic. Introduction to Binary Numbers. Questions About Numbers

What do all those bits mean now? Number Systems and Arithmetic. Introduction to Binary Numbers. Questions About Numbers Wht do ll those bits men now? bits (...) Number Systems nd Arithmetic or Computers go to elementry school instruction R-formt I-formt... integer dt number text chrs... floting point signed unsigned single

More information

Questions About Numbers. Number Systems and Arithmetic. Introduction to Binary Numbers. Negative Numbers?

Questions About Numbers. Number Systems and Arithmetic. Introduction to Binary Numbers. Negative Numbers? Questions About Numbers Number Systems nd Arithmetic or Computers go to elementry school How do you represent negtive numbers? frctions? relly lrge numbers? relly smll numbers? How do you do rithmetic?

More information

Systems I. Logic Design I. Topics Digital logic Logic gates Simple combinational logic circuits

Systems I. Logic Design I. Topics Digital logic Logic gates Simple combinational logic circuits Systems I Logic Design I Topics Digitl logic Logic gtes Simple comintionl logic circuits Simple C sttement.. C = + ; Wht pieces of hrdwre do you think you might need? Storge - for vlues,, C Computtion

More information

CS201 Discussion 10 DRAWTREE + TRIES

CS201 Discussion 10 DRAWTREE + TRIES CS201 Discussion 10 DRAWTREE + TRIES DrwTree First instinct: recursion As very generic structure, we could tckle this problem s follows: drw(): Find the root drw(root) drw(root): Write the line for the

More information

MATH 25 CLASS 5 NOTES, SEP

MATH 25 CLASS 5 NOTES, SEP MATH 25 CLASS 5 NOTES, SEP 30 2011 Contents 1. A brief diversion: reltively prime numbers 1 2. Lest common multiples 3 3. Finding ll solutions to x + by = c 4 Quick links to definitions/theorems Euclid

More information

Section 3.1: Sequences and Series

Section 3.1: Sequences and Series Section.: Sequences d Series Sequences Let s strt out with the definition of sequence: sequence: ordered list of numbers, often with definite pttern Recll tht in set, order doesn t mtter so this is one

More information

12-B FRACTIONS AND DECIMALS

12-B FRACTIONS AND DECIMALS -B Frctions nd Decimls. () If ll four integers were negtive, their product would be positive, nd so could not equl one of them. If ll four integers were positive, their product would be much greter thn

More information

Digital Design. Chapter 6: Optimizations and Tradeoffs

Digital Design. Chapter 6: Optimizations and Tradeoffs Digitl Design Chpter 6: Optimiztions nd Trdeoffs Slides to ccompny the tetbook Digitl Design, with RTL Design, VHDL, nd Verilog, 2nd Edition, by Frnk Vhid, John Wiley nd Sons Publishers, 2. http://www.ddvhid.com

More information

Basics of Logic Design Arithmetic Logic Unit (ALU)

Basics of Logic Design Arithmetic Logic Unit (ALU) Bsics of Logic Design Arithmetic Logic Unit (ALU) CPS 4 Lecture 9 Tody s Lecture Homework #3 Assigned Due Mrch 3 Project Groups ssigned & posted to lckord. Project Specifiction is on We Due April 9 Building

More information

ECE 468/573 Midterm 1 September 28, 2012

ECE 468/573 Midterm 1 September 28, 2012 ECE 468/573 Midterm 1 September 28, 2012 Nme:! Purdue emil:! Plese sign the following: I ffirm tht the nswers given on this test re mine nd mine lone. I did not receive help from ny person or mteril (other

More information

Unit 5 Vocabulary. A function is a special relationship where each input has a single output.

Unit 5 Vocabulary. A function is a special relationship where each input has a single output. MODULE 3 Terms Definition Picture/Exmple/Nottion 1 Function Nottion Function nottion is n efficient nd effective wy to write functions of ll types. This nottion llows you to identify the input vlue with

More information

EECS 281: Homework #4 Due: Thursday, October 7, 2004

EECS 281: Homework #4 Due: Thursday, October 7, 2004 EECS 28: Homework #4 Due: Thursdy, October 7, 24 Nme: Emil:. Convert the 24-bit number x44243 to mime bse64: QUJD First, set is to brek 8-bit blocks into 6-bit blocks, nd then convert: x44243 b b 6 2 9

More information

such that the S i cover S, or equivalently S

such that the S i cover S, or equivalently S MATH 55 Triple Integrls Fll 16 1. Definition Given solid in spce, prtition of consists of finite set of solis = { 1,, n } such tht the i cover, or equivlently n i. Furthermore, for ech i, intersects i

More information

COMP 423 lecture 11 Jan. 28, 2008

COMP 423 lecture 11 Jan. 28, 2008 COMP 423 lecture 11 Jn. 28, 2008 Up to now, we hve looked t how some symols in n lphet occur more frequently thn others nd how we cn sve its y using code such tht the codewords for more frequently occuring

More information

Section 10.4 Hyperbolas

Section 10.4 Hyperbolas 66 Section 10.4 Hyperbols Objective : Definition of hyperbol & hyperbols centered t (0, 0). The third type of conic we will study is the hyperbol. It is defined in the sme mnner tht we defined the prbol

More information

Unit #9 : Definite Integral Properties, Fundamental Theorem of Calculus

Unit #9 : Definite Integral Properties, Fundamental Theorem of Calculus Unit #9 : Definite Integrl Properties, Fundmentl Theorem of Clculus Gols: Identify properties of definite integrls Define odd nd even functions, nd reltionship to integrl vlues Introduce the Fundmentl

More information

ECEN 468 Advanced Logic Design Lecture 36: RTL Optimization

ECEN 468 Advanced Logic Design Lecture 36: RTL Optimization ECEN 468 Advnced Logic Design Lecture 36: RTL Optimiztion ECEN 468 Lecture 36 RTL Design Optimiztions nd Trdeoffs 6.5 While creting dtpth during RTL design, there re severl optimiztions nd trdeoffs, involving

More information

Integration. September 28, 2017

Integration. September 28, 2017 Integrtion September 8, 7 Introduction We hve lerned in previous chpter on how to do the differentition. It is conventionl in mthemtics tht we re supposed to lern bout the integrtion s well. As you my

More information

Scanner Termination. Multi Character Lookahead. to its physical end. Most parsers require an end of file token. Lex and Jlex automatically create an

Scanner Termination. Multi Character Lookahead. to its physical end. Most parsers require an end of file token. Lex and Jlex automatically create an Scnner Termintion A scnner reds input chrcters nd prtitions them into tokens. Wht hppens when the end of the input file is reched? It my be useful to crete n Eof pseudo-chrcter when this occurs. In Jv,

More information

5 Regular 4-Sided Composition

5 Regular 4-Sided Composition Xilinx-Lv User Guide 5 Regulr 4-Sided Composition This tutoril shows how regulr circuits with 4-sided elements cn be described in Lv. The type of regulr circuits tht re discussed in this tutoril re those

More information

INTRODUCTION TO SIMPLICIAL COMPLEXES

INTRODUCTION TO SIMPLICIAL COMPLEXES INTRODUCTION TO SIMPLICIAL COMPLEXES CASEY KELLEHER AND ALESSANDRA PANTANO 0.1. Introduction. In this ctivity set we re going to introduce notion from Algebric Topology clled simplicil homology. The min

More information

Representation of Numbers. Number Representation. Representation of Numbers. 32-bit Unsigned Integers 3/24/2014. Fixed point Integer Representation

Representation of Numbers. Number Representation. Representation of Numbers. 32-bit Unsigned Integers 3/24/2014. Fixed point Integer Representation Representtion of Numbers Number Representtion Computer represent ll numbers, other thn integers nd some frctions with imprecision. Numbers re stored in some pproximtion which cn be represented by fixed

More information

Introduction to Computer Engineering EECS 203 dickrp/eecs203/ CMOS transmission gate (TG) TG example

Introduction to Computer Engineering EECS 203  dickrp/eecs203/ CMOS transmission gate (TG) TG example Introduction to Computer Engineering EECS 23 http://ziyng.eecs.northwestern.edu/ dickrp/eecs23/ CMOS trnsmission gte TG Instructor: Robert Dick Office: L477 Tech Emil: dickrp@northwestern.edu Phone: 847

More information

a(e, x) = x. Diagrammatically, this is encoded as the following commutative diagrams / X

a(e, x) = x. Diagrammatically, this is encoded as the following commutative diagrams / X 4. Mon, Sept. 30 Lst time, we defined the quotient topology coming from continuous surjection q : X! Y. Recll tht q is quotient mp (nd Y hs the quotient topology) if V Y is open precisely when q (V ) X

More information

9 4. CISC - Curriculum & Instruction Steering Committee. California County Superintendents Educational Services Association

9 4. CISC - Curriculum & Instruction Steering Committee. California County Superintendents Educational Services Association 9. CISC - Curriculum & Instruction Steering Committee The Winning EQUATION A HIGH QUALITY MATHEMATICS PROFESSIONAL DEVELOPMENT PROGRAM FOR TEACHERS IN GRADES THROUGH ALGEBRA II STRAND: NUMBER SENSE: Rtionl

More information

Midterm 2 Sample solution

Midterm 2 Sample solution Nme: Instructions Midterm 2 Smple solution CMSC 430 Introduction to Compilers Fll 2012 November 28, 2012 This exm contins 9 pges, including this one. Mke sure you hve ll the pges. Write your nme on the

More information

Integration. October 25, 2016

Integration. October 25, 2016 Integrtion October 5, 6 Introduction We hve lerned in previous chpter on how to do the differentition. It is conventionl in mthemtics tht we re supposed to lern bout the integrtion s well. As you my hve

More information

In the last lecture, we discussed how valid tokens may be specified by regular expressions.

In the last lecture, we discussed how valid tokens may be specified by regular expressions. LECTURE 5 Scnning SYNTAX ANALYSIS We know from our previous lectures tht the process of verifying the syntx of the progrm is performed in two stges: Scnning: Identifying nd verifying tokens in progrm.

More information

1. SEQUENCES INVOLVING EXPONENTIAL GROWTH (GEOMETRIC SEQUENCES)

1. SEQUENCES INVOLVING EXPONENTIAL GROWTH (GEOMETRIC SEQUENCES) Numbers nd Opertions, Algebr, nd Functions 45. SEQUENCES INVOLVING EXPONENTIAL GROWTH (GEOMETRIC SEQUENCES) In sequence of terms involving eponentil growth, which the testing service lso clls geometric

More information

MATH 2530: WORKSHEET 7. x 2 y dz dy dx =

MATH 2530: WORKSHEET 7. x 2 y dz dy dx = MATH 253: WORKSHT 7 () Wrm-up: () Review: polr coordintes, integrls involving polr coordintes, triple Riemnn sums, triple integrls, the pplictions of triple integrls (especilly to volume), nd cylindricl

More information

Computer Arithmetic Logical, Integer Addition & Subtraction Chapter

Computer Arithmetic Logical, Integer Addition & Subtraction Chapter Computer Arithmetic Logicl, Integer Addition & Sutrction Chpter 3.-3.3 3.3 EEC7 FQ 25 MIPS Integer Representtion -it signed integers,, e.g., for numeric opertions 2 s s complement: one representtion for

More information

Functor (1A) Young Won Lim 10/5/17

Functor (1A) Young Won Lim 10/5/17 Copyright (c) 2016-2017 Young W. Lim. Permission is grnted to copy, distribute nd/or modify this document under the terms of the GNU Free Documenttion License, Version 1.2 or ny lter version published

More information

Stack Manipulation. Other Issues. How about larger constants? Frame Pointer. PowerPC. Alternative Architectures

Stack Manipulation. Other Issues. How about larger constants? Frame Pointer. PowerPC. Alternative Architectures Other Issues Stck Mnipultion support for procedures (Refer to section 3.6), stcks, frmes, recursion mnipulting strings nd pointers linkers, loders, memory lyout Interrupts, exceptions, system clls nd conventions

More information

Course Administration

Course Administration /4/7 Spring 7 EE 363: Computer Orgniztion Arithmetic for Computers Numer Representtion & ALU Avinsh Kodi Deprtment of Electricl Engineering & Computer Science Ohio University, Athens, Ohio 457 E-mil: kodi@ohio.edu

More information

Functor (1A) Young Won Lim 8/2/17

Functor (1A) Young Won Lim 8/2/17 Copyright (c) 2016-2017 Young W. Lim. Permission is grnted to copy, distribute nd/or modify this document under the terms of the GNU Free Documenttion License, Version 1.2 or ny lter version published

More information

Dynamic Programming. Andreas Klappenecker. [partially based on slides by Prof. Welch] Monday, September 24, 2012

Dynamic Programming. Andreas Klappenecker. [partially based on slides by Prof. Welch] Monday, September 24, 2012 Dynmic Progrmming Andres Klppenecker [prtilly bsed on slides by Prof. Welch] 1 Dynmic Progrmming Optiml substructure An optiml solution to the problem contins within it optiml solutions to subproblems.

More information

An Efficient Divide and Conquer Algorithm for Exact Hazard Free Logic Minimization

An Efficient Divide and Conquer Algorithm for Exact Hazard Free Logic Minimization An Efficient Divide nd Conquer Algorithm for Exct Hzrd Free Logic Minimiztion J.W.J.M. Rutten, M.R.C.M. Berkelr, C.A.J. vn Eijk, M.A.J. Kolsteren Eindhoven University of Technology Informtion nd Communiction

More information

10.5 Graphing Quadratic Functions

10.5 Graphing Quadratic Functions 0.5 Grphing Qudrtic Functions Now tht we cn solve qudrtic equtions, we wnt to lern how to grph the function ssocited with the qudrtic eqution. We cll this the qudrtic function. Grphs of Qudrtic Functions

More information

10/9/2012. Operator is an operation performed over data at runtime. Arithmetic, Logical, Comparison, Assignment, Etc. Operators have precedence

10/9/2012. Operator is an operation performed over data at runtime. Arithmetic, Logical, Comparison, Assignment, Etc. Operators have precedence /9/22 P f Performing i Si Simple l Clcultions C l l ti with ith C#. Opertors in C# nd Opertor Precedence 2. Arithmetic Opertors 3. Logicl Opertors 4. Bitwise Opertors 5. Comprison Opertors 6. Assignment

More information

Lecture 10 Evolutionary Computation: Evolution strategies and genetic programming

Lecture 10 Evolutionary Computation: Evolution strategies and genetic programming Lecture 10 Evolutionry Computtion: Evolution strtegies nd genetic progrmming Evolution strtegies Genetic progrmming Summry Negnevitsky, Person Eduction, 2011 1 Evolution Strtegies Another pproch to simulting

More information

Fig.25: the Role of LEX

Fig.25: the Role of LEX The Lnguge for Specifying Lexicl Anlyzer We shll now study how to uild lexicl nlyzer from specifiction of tokens in the form of list of regulr expressions The discussion centers round the design of n existing

More information

If you are at the university, either physically or via the VPN, you can download the chapters of this book as PDFs.

If you are at the university, either physically or via the VPN, you can download the chapters of this book as PDFs. Lecture 5 Wlks, Trils, Pths nd Connectedness Reding: Some of the mteril in this lecture comes from Section 1.2 of Dieter Jungnickel (2008), Grphs, Networks nd Algorithms, 3rd edition, which is ville online

More information

Homework. Context Free Languages III. Languages. Plan for today. Context Free Languages. CFLs and Regular Languages. Homework #5 (due 10/22)

Homework. Context Free Languages III. Languages. Plan for today. Context Free Languages. CFLs and Regular Languages. Homework #5 (due 10/22) Homework Context Free Lnguges III Prse Trees nd Homework #5 (due 10/22) From textbook 6.4,b 6.5b 6.9b,c 6.13 6.22 Pln for tody Context Free Lnguges Next clss of lnguges in our quest! Lnguges Recll. Wht

More information

Matrices and Systems of Equations

Matrices and Systems of Equations Mtrices Mtrices nd Sstems of Equtions A mtri is rectngulr rr of rel numbers. CHAT Pre-Clculus Section 8. m m m............ n n n mn We will use the double subscript nottion for ech element of the mtri.

More information

George Boole. IT 3123 Hardware and Software Concepts. Switching Algebra. Boolean Functions. Boolean Functions. Truth Tables

George Boole. IT 3123 Hardware and Software Concepts. Switching Algebra. Boolean Functions. Boolean Functions. Truth Tables George Boole IT 3123 Hrdwre nd Softwre Concepts My 28 Digitl Logic The Little Mn Computer 1815 1864 British mthemticin nd philosopher Mny contriutions to mthemtics. Boolen lger: n lger over finite sets

More information

SOME EXAMPLES OF SUBDIVISION OF SMALL CATEGORIES

SOME EXAMPLES OF SUBDIVISION OF SMALL CATEGORIES SOME EXAMPLES OF SUBDIVISION OF SMALL CATEGORIES MARCELLO DELGADO Abstrct. The purpose of this pper is to build up the bsic conceptul frmework nd underlying motivtions tht will llow us to understnd ctegoricl

More information

Math 464 Fall 2012 Notes on Marginal and Conditional Densities October 18, 2012

Math 464 Fall 2012 Notes on Marginal and Conditional Densities October 18, 2012 Mth 464 Fll 2012 Notes on Mrginl nd Conditionl Densities klin@mth.rizon.edu October 18, 2012 Mrginl densities. Suppose you hve 3 continuous rndom vribles X, Y, nd Z, with joint density f(x,y,z. The mrginl

More information

CSE 401 Midterm Exam 11/5/10 Sample Solution

CSE 401 Midterm Exam 11/5/10 Sample Solution Question 1. egulr expressions (20 points) In the Ad Progrmming lnguge n integer constnt contins one or more digits, but it my lso contin embedded underscores. Any underscores must be preceded nd followed

More information

Mid-term exam. Scores. Fall term 2012 KAIST EE209 Programming Structures for EE. Thursday Oct 25, Student's name: Student ID:

Mid-term exam. Scores. Fall term 2012 KAIST EE209 Programming Structures for EE. Thursday Oct 25, Student's name: Student ID: Fll term 2012 KAIST EE209 Progrmming Structures for EE Mid-term exm Thursdy Oct 25, 2012 Student's nme: Student ID: The exm is closed book nd notes. Red the questions crefully nd focus your nswers on wht

More information

Today s Lecture. Basics of Logic Design: Boolean Algebra, Logic Gates. Recursive Example. Review: The C / C++ code. Recursive Example (Continued)

Today s Lecture. Basics of Logic Design: Boolean Algebra, Logic Gates. Recursive Example. Review: The C / C++ code. Recursive Example (Continued) Tod s Lecture Bsics of Logic Design: Boolen Alger, Logic Gtes Alvin R. Leeck CPS 4 Lecture 8 Homework #2 Due Ferur 3 Outline Review (sseml recursion) Building the uilding locks Logic Design Truth tles,

More information

MA1008. Calculus and Linear Algebra for Engineers. Course Notes for Section B. Stephen Wills. Department of Mathematics. University College Cork

MA1008. Calculus and Linear Algebra for Engineers. Course Notes for Section B. Stephen Wills. Department of Mathematics. University College Cork MA1008 Clculus nd Liner Algebr for Engineers Course Notes for Section B Stephen Wills Deprtment of Mthemtics University College Cork s.wills@ucc.ie http://euclid.ucc.ie/pges/stff/wills/teching/m1008/ma1008.html

More information

binary trees, expression trees

binary trees, expression trees COMP 250 Lecture 21 binry trees, expression trees Oct. 27, 2017 1 Binry tree: ech node hs t most two children. 2 Mximum number of nodes in binry tree? Height h (e.g. 3) 3 Mximum number of nodes in binry

More information

Math 142, Exam 1 Information.

Math 142, Exam 1 Information. Mth 14, Exm 1 Informtion. 9/14/10, LC 41, 9:30-10:45. Exm 1 will be bsed on: Sections 7.1-7.5. The corresponding ssigned homework problems (see http://www.mth.sc.edu/ boyln/sccourses/14f10/14.html) At

More information

CS143 Handout 07 Summer 2011 June 24 th, 2011 Written Set 1: Lexical Analysis

CS143 Handout 07 Summer 2011 June 24 th, 2011 Written Set 1: Lexical Analysis CS143 Hndout 07 Summer 2011 June 24 th, 2011 Written Set 1: Lexicl Anlysis In this first written ssignment, you'll get the chnce to ply round with the vrious constructions tht come up when doing lexicl

More information

Definition of Regular Expression

Definition of Regular Expression Definition of Regulr Expression After the definition of the string nd lnguges, we re redy to descrie regulr expressions, the nottion we shll use to define the clss of lnguges known s regulr sets. Recll

More information

Misrepresentation of Preferences

Misrepresentation of Preferences Misrepresenttion of Preferences Gicomo Bonnno Deprtment of Economics, University of Cliforni, Dvis, USA gfbonnno@ucdvis.edu Socil choice functions Arrow s theorem sys tht it is not possible to extrct from

More information

Before We Begin. Introduction to Spatial Domain Filtering. Introduction to Digital Image Processing. Overview (1): Administrative Details (1):

Before We Begin. Introduction to Spatial Domain Filtering. Introduction to Digital Image Processing. Overview (1): Administrative Details (1): Overview (): Before We Begin Administrtive detils Review some questions to consider Winter 2006 Imge Enhncement in the Sptil Domin: Bsics of Sptil Filtering, Smoothing Sptil Filters, Order Sttistics Filters

More information

1 Quad-Edge Construction Operators

1 Quad-Edge Construction Operators CS48: Computer Grphics Hndout # Geometric Modeling Originl Hndout #5 Stnford University Tuesdy, 8 December 99 Originl Lecture #5: 9 November 99 Topics: Mnipultions with Qud-Edge Dt Structures Scribe: Mike

More information

4452 Mathematical Modeling Lecture 4: Lagrange Multipliers

4452 Mathematical Modeling Lecture 4: Lagrange Multipliers Mth Modeling Lecture 4: Lgrnge Multipliers Pge 4452 Mthemticl Modeling Lecture 4: Lgrnge Multipliers Lgrnge multipliers re high powered mthemticl technique to find the mximum nd minimum of multidimensionl

More information

CMSC 331 First Midterm Exam

CMSC 331 First Midterm Exam 0 00/ 1 20/ 2 05/ 3 15/ 4 15/ 5 15/ 6 20/ 7 30/ 8 30/ 150/ 331 First Midterm Exm 7 October 2003 CMC 331 First Midterm Exm Nme: mple Answers tudent ID#: You will hve seventy-five (75) minutes to complete

More information

2014 Haskell January Test Regular Expressions and Finite Automata

2014 Haskell January Test Regular Expressions and Finite Automata 0 Hskell Jnury Test Regulr Expressions nd Finite Automt This test comprises four prts nd the mximum mrk is 5. Prts I, II nd III re worth 3 of the 5 mrks vilble. The 0 Hskell Progrmming Prize will be wrded

More information

Tries. Yufei Tao KAIST. April 9, Y. Tao, April 9, 2013 Tries

Tries. Yufei Tao KAIST. April 9, Y. Tao, April 9, 2013 Tries Tries Yufei To KAIST April 9, 2013 Y. To, April 9, 2013 Tries In this lecture, we will discuss the following exct mtching prolem on strings. Prolem Let S e set of strings, ech of which hs unique integer

More information

CS2204 DIGITAL LOGIC & STATE MACHINE DESIGN SPRING 2014

CS2204 DIGITAL LOGIC & STATE MACHINE DESIGN SPRING 2014 CS DIGITAL LOGIC & STATE MACHINE DESIGN SPRING DUE : April 7, HOMEWOR V READ : Relted portions of Chpters III, IV, VI, VII nd VIII ASSIGNMENT : There re seven questions Solve ll homework nd exm problems

More information

a < a+ x < a+2 x < < a+n x = b, n A i n f(x i ) x. i=1 i=1

a < a+ x < a+2 x < < a+n x = b, n A i n f(x i ) x. i=1 i=1 Mth 33 Volume Stewrt 5.2 Geometry of integrls. In this section, we will lern how to compute volumes using integrls defined by slice nlysis. First, we recll from Clculus I how to compute res. Given the

More information

PYTHON PROGRAMMING. The History of Python. Features of Python. This Course

PYTHON PROGRAMMING. The History of Python. Features of Python. This Course The History of Python PYTHON PROGRAMMING Dr Christin Hill 7 9 November 2016 Invented by Guido vn Rossum* t the Centrum Wiskunde & Informtic in Amsterdm in the erly 1990s Nmed fter Monty Python s Flying

More information

Small Business Networking

Small Business Networking Why network is n essentil productivity tool for ny smll business Effective technology is essentil for smll businesses looking to increse the productivity of their people nd business. Introducing technology

More information

Stained Glass Design. Teaching Goals:

Stained Glass Design. Teaching Goals: Stined Glss Design Time required 45-90 minutes Teching Gols: 1. Students pply grphic methods to design vrious shpes on the plne.. Students pply geometric trnsformtions of grphs of functions in order to

More information

Small Business Networking

Small Business Networking Why network is n essentil productivity tool for ny smll business Effective technology is essentil for smll businesses looking to increse the productivity of their people nd business. Introducing technology

More information

Dr. D.M. Akbar Hussain

Dr. D.M. Akbar Hussain Dr. D.M. Akr Hussin Lexicl Anlysis. Bsic Ide: Red the source code nd generte tokens, it is similr wht humns will do to red in; just tking on the input nd reking it down in pieces. Ech token is sequence

More information

SIMPLIFYING ALGEBRA PASSPORT.

SIMPLIFYING ALGEBRA PASSPORT. SIMPLIFYING ALGEBRA PASSPORT www.mthletics.com.u This booklet is ll bout turning complex problems into something simple. You will be ble to do something like this! ( 9- # + 4 ' ) ' ( 9- + 7-) ' ' Give

More information

Compilers Spring 2013 PRACTICE Midterm Exam

Compilers Spring 2013 PRACTICE Midterm Exam Compilers Spring 2013 PRACTICE Midterm Exm This is full length prctice midterm exm. If you wnt to tke it t exm pce, give yourself 7 minutes to tke the entire test. Just like the rel exm, ech question hs

More information

Geometric transformations

Geometric transformations Geometric trnsformtions Computer Grphics Some slides re bsed on Shy Shlom slides from TAU mn n n m m T A,,,,,, 2 1 2 22 12 1 21 11 Rows become columns nd columns become rows nm n n m m A,,,,,, 1 1 2 22

More information

CS 130 : Computer Systems - II. Shankar Balachandran Dept. of Computer Science & Engineering IIT Madras

CS 130 : Computer Systems - II. Shankar Balachandran Dept. of Computer Science & Engineering IIT Madras CS 3 : Computer Systems - II Shnkr Blchndrn (shnkr@cse.iitm.c.in) Dept. of Computer Science & Engineering IIT Mdrs Recp Differentite Between s nd s Truth Tbles b AND b OR NOT September 4, 27 Introduction

More information

MIPS I/O and Interrupt

MIPS I/O and Interrupt MIPS I/O nd Interrupt Review Floting point instructions re crried out on seprte chip clled coprocessor 1 You hve to move dt to/from coprocessor 1 to do most common opertions such s printing, clling functions,

More information

Example: 2:1 Multiplexer

Example: 2:1 Multiplexer Exmple: 2:1 Multiplexer Exmple #1 reg ; lwys @( or or s) egin if (s == 1') egin = ; else egin = ; 1 s B. Bs 114 Exmple: 2:1 Multiplexer Exmple #2 Normlly lwys include egin nd sttements even though they

More information

2 Computing all Intersections of a Set of Segments Line Segment Intersection

2 Computing all Intersections of a Set of Segments Line Segment Intersection 15-451/651: Design & Anlysis of Algorithms Novemer 14, 2016 Lecture #21 Sweep-Line nd Segment Intersection lst chnged: Novemer 8, 2017 1 Preliminries The sweep-line prdigm is very powerful lgorithmic design

More information

Control-Flow Analysis and Loop Detection

Control-Flow Analysis and Loop Detection ! Control-Flow Anlysis nd Loop Detection!Lst time! PRE!Tody! Control-flow nlysis! Loops! Identifying loops using domintors! Reducibility! Using loop identifiction to identify induction vribles CS553 Lecture

More information

6.2 Volumes of Revolution: The Disk Method

6.2 Volumes of Revolution: The Disk Method mth ppliction: volumes by disks: volume prt ii 6 6 Volumes of Revolution: The Disk Method One of the simplest pplictions of integrtion (Theorem 6) nd the ccumultion process is to determine so-clled volumes

More information

P(r)dr = probability of generating a random number in the interval dr near r. For this probability idea to make sense we must have

P(r)dr = probability of generating a random number in the interval dr near r. For this probability idea to make sense we must have Rndom Numers nd Monte Crlo Methods Rndom Numer Methods The integrtion methods discussed so fr ll re sed upon mking polynomil pproximtions to the integrnd. Another clss of numericl methods relies upon using

More information

UNIT 11. Query Optimization

UNIT 11. Query Optimization UNIT Query Optimiztion Contents Introduction to Query Optimiztion 2 The Optimiztion Process: An Overview 3 Optimiztion in System R 4 Optimiztion in INGRES 5 Implementing the Join Opertors Wei-Png Yng,

More information

Theory of Computation CSE 105

Theory of Computation CSE 105 $ $ $ Theory of Computtion CSE 105 Regulr Lnguges Study Guide nd Homework I Homework I: Solutions to the following problems should be turned in clss on July 1, 1999. Instructions: Write your nswers clerly

More information

CPSC 213. Polymorphism. Introduction to Computer Systems. Readings for Next Two Lectures. Back to Procedure Calls

CPSC 213. Polymorphism. Introduction to Computer Systems. Readings for Next Two Lectures. Back to Procedure Calls Redings for Next Two Lectures Text CPSC 213 Switch Sttements, Understnding Pointers - 2nd ed: 3.6.7, 3.10-1st ed: 3.6.6, 3.11 Introduction to Computer Systems Unit 1f Dynmic Control Flow Polymorphism nd

More information

Product of polynomials. Introduction to Programming (in C++) Numerical algorithms. Product of polynomials. Product of polynomials

Product of polynomials. Introduction to Programming (in C++) Numerical algorithms. Product of polynomials. Product of polynomials Product of polynomils Introduction to Progrmming (in C++) Numericl lgorithms Jordi Cortdell, Ricrd Gvldà, Fernndo Orejs Dept. of Computer Science, UPC Given two polynomils on one vrile nd rel coefficients,

More information

Union-Find Problem. Using Arrays And Chains. A Set As A Tree. Result Of A Find Operation

Union-Find Problem. Using Arrays And Chains. A Set As A Tree. Result Of A Find Operation Union-Find Problem Given set {,,, n} of n elements. Initilly ech element is in different set. ƒ {}, {},, {n} An intermixed sequence of union nd find opertions is performed. A union opertion combines two

More information

OUTPUT DELIVERY SYSTEM

OUTPUT DELIVERY SYSTEM Differences in ODS formtting for HTML with Proc Print nd Proc Report Lur L. M. Thornton, USDA-ARS, Animl Improvement Progrms Lortory, Beltsville, MD ABSTRACT While Proc Print is terrific tool for dt checking

More information

Fall 2018 Midterm 1 October 11, ˆ You may not ask questions about the exam except for language clarifications.

Fall 2018 Midterm 1 October 11, ˆ You may not ask questions about the exam except for language clarifications. 15-112 Fll 2018 Midterm 1 October 11, 2018 Nme: Andrew ID: Recittion Section: ˆ You my not use ny books, notes, extr pper, or electronic devices during this exm. There should be nothing on your desk or

More information

Slides for Data Mining by I. H. Witten and E. Frank

Slides for Data Mining by I. H. Witten and E. Frank Slides for Dt Mining y I. H. Witten nd E. Frnk Simplicity first Simple lgorithms often work very well! There re mny kinds of simple structure, eg: One ttriute does ll the work All ttriutes contriute eqully

More information

COMPUTER SCIENCE 123. Foundations of Computer Science. 6. Tuples

COMPUTER SCIENCE 123. Foundations of Computer Science. 6. Tuples COMPUTER SCIENCE 123 Foundtions of Computer Science 6. Tuples Summry: This lecture introduces tuples in Hskell. Reference: Thompson Sections 5.1 2 R.L. While, 2000 3 Tuples Most dt comes with structure

More information

Scanner Termination. Multi Character Lookahead

Scanner Termination. Multi Character Lookahead If d.doublevlue() represents vlid integer, (int) d.doublevlue() will crete the pproprite integer vlue. If string representtion of n integer begins with ~ we cn strip the ~, convert to double nd then negte

More information

Engineer To Engineer Note

Engineer To Engineer Note Engineer To Engineer Note EE-186 Technicl Notes on using Anlog Devices' DSP components nd development tools Contct our technicl support by phone: (800) ANALOG-D or e-mil: dsp.support@nlog.com Or visit

More information

Spring 2018 Midterm Exam 1 March 1, You may not use any books, notes, or electronic devices during this exam.

Spring 2018 Midterm Exam 1 March 1, You may not use any books, notes, or electronic devices during this exam. 15-112 Spring 2018 Midterm Exm 1 Mrch 1, 2018 Nme: Andrew ID: Recittion Section: You my not use ny books, notes, or electronic devices during this exm. You my not sk questions bout the exm except for lnguge

More information

Parallel Square and Cube Computations

Parallel Square and Cube Computations Prllel Squre nd Cube Computtions Albert A. Liddicot nd Michel J. Flynn Computer Systems Lbortory, Deprtment of Electricl Engineering Stnford University Gtes Building 5 Serr Mll, Stnford, CA 945, USA liddicot@stnford.edu

More information

fraction arithmetic. For example, consider this problem the 1995 TIMSS Trends in International Mathematics and Science Study:

fraction arithmetic. For example, consider this problem the 1995 TIMSS Trends in International Mathematics and Science Study: Brringer Fll Mth Cmp November, 06 Introduction In recent yers, mthemtics eductors hve begun to relize tht understnding frctions nd frctionl rithmetic is the gtewy to dvnced high school mthemtics Yet, US

More information

Engineer-to-Engineer Note

Engineer-to-Engineer Note Engineer-to-Engineer Note EE-232 Technicl notes on using Anlog Devices DSPs, processors nd development tools Contct our technicl support t dsp.support@nlog.com nd t dsptools.support@nlog.com Or visit our

More information

5/9/17. Lesson 51 - FTC PART 2. Review FTC, PART 1. statement as the Integral Evaluation Theorem as it tells us HOW to evaluate the definite integral

5/9/17. Lesson 51 - FTC PART 2. Review FTC, PART 1. statement as the Integral Evaluation Theorem as it tells us HOW to evaluate the definite integral Lesson - FTC PART 2 Review! We hve seen definition/formul for definite integrl s n b A() = lim f ( i )Δ = f ()d = F() = F(b) F() n i=! where F () = f() (or F() is the ntiderivtive of f() b! And hve seen

More information

CSCI1950 Z Computa4onal Methods for Biology Lecture 2. Ben Raphael January 26, hhp://cs.brown.edu/courses/csci1950 z/ Outline

CSCI1950 Z Computa4onal Methods for Biology Lecture 2. Ben Raphael January 26, hhp://cs.brown.edu/courses/csci1950 z/ Outline CSCI1950 Z Comput4onl Methods for Biology Lecture 2 Ben Rphel Jnury 26, 2009 hhp://cs.brown.edu/courses/csci1950 z/ Outline Review of trees. Coun4ng fetures. Chrcter bsed phylogeny Mximum prsimony Mximum

More information

Solutions to Math 41 Final Exam December 12, 2011

Solutions to Math 41 Final Exam December 12, 2011 Solutions to Mth Finl Em December,. ( points) Find ech of the following its, with justifiction. If there is n infinite it, then eplin whether it is or. ( ) / ln() () (5 points) First we compute the it:

More information

Lecture Overview. Knowledge-based systems in Bioinformatics, 1MB602. Procedural abstraction. The sum procedure. Integration as a procedure

Lecture Overview. Knowledge-based systems in Bioinformatics, 1MB602. Procedural abstraction. The sum procedure. Integration as a procedure Lecture Overview Knowledge-bsed systems in Bioinformtics, MB6 Scheme lecture Procedurl bstrction Higher order procedures Procedures s rguments Procedures s returned vlues Locl vribles Dt bstrction Compound

More information

Answer Key Lesson 6: Workshop: Angles and Lines

Answer Key Lesson 6: Workshop: Angles and Lines nswer Key esson 6: tudent Guide ngles nd ines Questions 1 3 (G p. 406) 1. 120 ; 360 2. hey re the sme. 3. 360 Here re four different ptterns tht re used to mke quilts. Work with your group. se your Power

More information