CSE P 501 Compilers. Register Allocation Hal Perkins Spring UW CSE P 501 Spring 2018 P-1

Size: px
Start display at page:

Download "CSE P 501 Compilers. Register Allocation Hal Perkins Spring UW CSE P 501 Spring 2018 P-1"

Transcription

1 CSE P 501 Compilrs Rgistr Allotion Hl Prkins Spring 2018 UW CSE P 501 Spring 2018 P-1

2 Agn Rgistr llotion onstrints Lol mthos Fstr ompil, slowr o, ut goo nough or lots o things (JITs, ) Glol llotion rgistr oloring UW CSE P 501 Spring 2018 P-2

3 k Intrmit o typilly ssums ininit numr o rgistrs Rl mhin hs k rgistrs vill Gols Prou orrt o tht uss k or wr rgistrs Minimiz los n stors Minimiz sp n or spill vlus Do this iintly O(n), O(n log n), my O(n 2 ) UW CSE P 501 Spring 2018 P-3

4 Rgistr Allotion Tsk At h point in th o, pik th vlus to kp in rgistrs Insrt o to mov vlus twn rgistrs n mmory No itionl trnsormtions shuling shoul hv on its jo But w will usully rrun shuling i w insrt spill o Minimiz insrt o, oth ynmilly n sttilly UW CSE P 501 Spring 2018 P-4

5 Allotion vs Assignmnt Allotion: iing whih vlus to kp in rgistrs Assignmnt: hoosing spii rgistrs or vlus Compilr must o oth UW CSE P 501 Spring 2018 P-5

6 Lol Rgistr Allotion Apply to si loks Prous nt rgistr usg insi lok But n hv iniinis t ounris twn loks Two vritions: top-own, ottom-up UW CSE P 501 Spring 2018 P-6

7 Top-own Lol Allotion Prinipl: kp most hvily us vlus in rgistrs Priority = # o tims rgistr rrn in lok I mor virtul rgistrs thn physil, Rsrv som rgistrs or vlus llot to mmory N nough to rss n lo two oprns n stor rsult Othr rgistrs it to hot vlus But r ti up or ntir lok with prtiulr vlu, vn i only n or prt o th lok UW CSE P 501 Spring 2018 P-7

8 Bottom-up Lol Allotion (1) Kp list o vill rgistrs (initilly ll rgistrs t ginning o lok) Sn th o Allot rgistr whn on is n Fr rgistr s soon s possil In x:=y op z, r y n z i thy r no longr n or lloting x UW CSE P 501 Spring 2018 P-8

9 Bottom-up Lol Allotion (2) I no rgistrs r r whn on is n or llotion: Look t vlus ssign to rgistrs in th on not n or longst orwr strth in th o Insrt o to spill th vlu to mmory n insrt o to rlo it whn n ltr I opy lry xists in mmory, no n to spill UW CSE P 501 Spring 2018 P-9

10 Lol "ottom-up" Rgistr Allotion, ; lo v2 rom mmory 2. ; lo v3 rom mmory 3. v1 = v2 + v3 4. ; lo v5, v6 rom mmory 5. v4 = v5 - v6 6. v7 = v ; lo v9 rom mmory 8. v8 = - v9 9. v10 = v6 * v4 10. v11 = v10 - v3 Still in LIR. So lots (too mny!) virtul rgistrs rquir (v2, t). Gry instrutions (1,2,4,7) lo oprns rom mmory into virtul rgistrs. W will ignor ths going orwr. Fous on mpping virtul to physil. UW CSE P 501 Spring 2018 P-10

11 Lol "ottom-up" Rgistr Allotion, 0 1. v1 = v2 + v3 2. v4 = v5 - v6 3. v7 = v v8 = - v9 5. v10 = v6 * v4 6. v11 = v10 - v3 prg vrg R1 - R2 - R3 - R4 - vrg NxtR v1 1 v2 1 v3 1 v4 2 v5 2 v6 2 v7 3 v8 4 v9 4 v10 5 v11 6 UW CSE P 501 Spring 2018 P-11

12 Lol "ottom-up" Rgistr Allotion, 1 1. v1 = v2 + v3 2. v4 = v5 - v6 3. v7 = v v8 = - v9 5. v10 = v6 * v4 6. v11 = v10 - v3 prg vrg R1 v2 R2 v3 R3 v1 R4 - R3 = R1 + R2 vrg NxtR v1 1 v2 1 3 v3 1 6 v4 2 v5 2 v6 2 v7 3 v8 4 v9 4 v10 5 v11 6 UW CSE P 501 Spring 2018 P-12

13 Lol "ottom-up" Rgistr Allotion, 2 1. v1 = v2 + v3 2. v4 = v5 - v6 3. v7 = v v8 = - v9 5. v10 = v6 * v4 6. v11 = v10 - v3 prg vrg R1 v2 R2 v3 v4 R3 v1 v6 R4 v5 R3 = R1 + R2 ; spill R3 ; spill R2? - no - still ln R2 = R4 - R3 vrg NxtR v1 v2 3 v3 6 v4 2 5 v5 2 v6 2 5 v7 3 v8 4 v9 4 v10 5 v11 6 UW CSE P 501 Spring 2018 P-13

14 Lol "ottom-up" Rgistr Allotion, 3 1. v1 = v2 + v3 2. v4 = v5 - v6 3. v7 = v v8 = - v9 5. v10 = v6 * v4 6. v11 = v10 - v3 prg vrg R1 v2 R2 v4 R3 v6 R4 v5 v7 R3 = R1 + R2 ; spill R3 ; spill R2? - no! R2 = R4 - R3 ; spill R4? - no! R4 = R1-29 An so on... vrg NxtR v1 v2 3 v3 6 v4 5 v5 v6 5 v7 3 v8 4 v9 4 v10 5 v11 6 UW CSE P 501 Spring 2018 P-14

15 Bottom-Up Allotor Invnt out on pr Shlon Bst, 1955, or Fortrn I Lslo Bly, 1965, or nlyzing pging lgorithms Willim Hrrison, 1975, ECS ompilr work Chris Frsr, 1989, LCC ompilr Vinnzo Lirtor, 1997, Rutgrs Will rinvnt gin, no out Mny rgumnts or optimlity o this UW CSE P 501 Spring 2018 P-15

16 Glol Rgistr Allotion y Grph Coloring How to onvrt th ininit squn o tmporry t rrns, t1, t2, into ssignmnts to init numr o tul rgistrs Gol: Us vill rgistrs with minimum spilling Prolm: Minimizing th numr o rgistrs is NP-omplt it is quivlnt to hromti numr minimum olors n to olor nos o grph so no g onnts sm olor UW CSE P 501 Spring 2018 Q-16

17 Bgin With Dt Flow Grph prour-wi rgistr llotion only liv vrils rquir rgistr storg tlow nlysis: vril is liv t no N i th vlu it hols is us on som pth urthr own th ontrol-low grph; othrwis it is two vrils(vlus) intrr whn thir liv rngs ovrlp UW CSE P 501 Spring 2018 Q-17

18 Liv Vril Anlysis := r(); := r(); := r(); := r(); := r(); := r(); := + *; := + *; i ( < 10 ) thn := +8; < 10 print(); ls := +8; := 10; := 10; print(); := + ; print(); := + ; print(); i print(); print(); UW CSE P 501 Spring 2018 Q-18

19 Rgistr Intrrn Grph := r(); := r(); := r(); := + *; < 10 := +8; := 10; print(); := + ; print(); print(); UW CSE P 501 Spring 2018 Q-19

20 Grph Coloring NP omplt prolm Huristi: olor sy nos lst in no N with lowst gr rmov N rom th grph olor th simplii grph st olor o N to th irst olor tht is not us y ny o N s nighors Bsis u to Chitin (1982), rin y Briggs (1992) UW CSE P 501 Spring 2018 Q-20

21 Apply Huristi UW CSE P 501 Spring 2018 Q-21

22 Apply Huristi UW CSE P 501 Spring 2018 Q-22

23 Apply Huristi UW CSE P 501 Spring 2018 Q-23

24 Apply Huristi UW CSE P 501 Spring 2018 Q-24

25 Continu UW CSE P 501 Spring 2018 Q-25

26 Continu UW CSE P 501 Spring 2018 Q-26

27 Continu UW CSE P 501 Spring 2018 Q-27

28 Continu UW CSE P 501 Spring 2018 Q-28

29 Continu UW CSE P 501 Spring 2018 Q-29

30 Continu UW CSE P 501 Spring 2018 Q-30

31 Continu UW CSE P 501 Spring 2018 Q-31

32 Continu UW CSE P 501 Spring 2018 Q-32

33 Continu UW CSE P 501 Spring 2018 Q-33

34 Finl Assignmnt := r(); := r(); := r(); := + *; i ( < 10 ) thn := +8; print(); ls := 10; := + ; print(); i print(); UW CSE P 501 Spring 2018 Q-34

35 Som Grph Coloring Issus My run out o rgistrs Solution: insrt spill o n rllot Spil-purpos n it rgistrs Exmpls: untion rturn rgistr, untion rgumnt rgistrs, rgistrs rquir or prtiulr instrutions Solution: pr-olor som nos to or llotion to prtiulr rgistr UW CSE P 501 Spring 2018 Q-35

36 Glol Rgistr Allotion (or rl) Grph oloring is th stnr thniqu, ut Nos r liv rngs not vrils Us ontrol n tlow (tully SSA) grphs to riv intrrn grph Eg twn (t1,t2) whn liv rngs t1 n t2 nnot ssign to th sm rgistr Most ommonly, t1 n t2 r oth liv t th sm tim Cn lso us to xprss onstrints out rgistrs, t. Thn olor th nos in th grph Two nos onnt y n g my not hv sm olor (i.., nnot llot to sm rgistr) I mor thn k olors r n, insrt spill o UW CSE P 501 Spring 2018 P-36

37 Liv Rngs (1) A liv rng is th st o initions n uss tht r rlt us thy low togthr Evry inition n rh vry us Evry us tht inition n rh is in th sm liv rng UW CSE P 501 Spring 2018 P-37

38 Liv Rngs (2) Th i rlis on th notion o livnss, ut not th sm s ithr th st o vrils or st o vlus Evry vlu is prt o som liv rng, vn nonymous tmporris Sm nm my prt o svrl irnt liv rngs UW CSE P 501 Spring 2018 P-38

39 Liv Rngs: Exmpl 1. loi rp 2. loi rp, 0 rw 3. loi 2 r2 4. loi rp,xost rx 5. loi rp,yost ry 6. loi rp,zost rz 7. mult rw, r2 rw 8. mult rw, rx rw 9. mult rw, ry rw 10. mult rw, rz rw 11. stori rw rp, 0 Rgistr Intrvl rp [1,11] rw [2,7] rw [7,8] rw [8,9] rw [9,10] rw [10,11] r2 [3,7] rx [4,8] ry [5,9] rz [6,10] UW CSE P 501 Spring 2018 P-39

40 Coloring y Simpliition Linr-tim pproximtion tht gnrlly givs goo rsults 1. Buil: Construt th intrrn grph 2. Simpliy: Color th grph y rptly simpliition 3. Spill: I simpliy nnot ru th grph ompltly, mrk som no or spilling 4. Slt: Assign olors to nos in th grph UW CSE P 501 Spring 2018 P-40

41 1. Buil Construt th intrrn grph Fin liv rngs SSA! Buil SSA orm o IR Eh SSA nm is initilly singlton st A F-untion mns orm th union o th sts tht inlus thos nms (union-in lgorithm) Rsulting sts rprsnt liv rngs Eithr rwrit o to us liv rng nms or kp mpping twn SSA nms n liv-rng nms UW CSE P 501 Spring 2018 P-41

42 1. Buil Us tlow inormtion to uil intrrn grph Nos = liv rngs A n g in th grph or h pir o liv rngs tht ovrlp But wth opy oprtions. MOV ri rj os not rt intrrn twn ri, rj sin thy n th sm rgistr i th rngs o not othrwis intrr UW CSE P 501 Spring 2018 P-42

43 2. Simpliy Huristi: Assum w hv K rgistrs Fin no m with wr thn K nighors Rmov m rom th grph. I th rsulting grph n olor, thn so n th originl grph (th nighors o m hv t most K-1 olors mong thm) Rpt y rmoving n pushing on stk ll nos with gr lss thn K Eh simpliition rss othr no grs my mk mor simpliitions possil UW CSE P 501 Spring 2018 P-43

44 3. Spill I simpliy stops us ll nos hv gr k, mrk som no or spilling This no is in mmory uring xution \ Spill no no longr intrrs with rmining nos, ruing thir gr. Continu y rmoving spill no n push on th stk (optimisti hop tht spill no os not intrr with rmining nos Briggs llotor) UW CSE P 501 Spring 2018 P-44

45 3. Spill Spill isions shoul s on osts o spilling irnt vlus Issus Arss omputtion n or spill Cost o mmory oprtion Estimt xution rquny (.g., innr loops irst) UW CSE P 501 Spring 2018 P-45

46 4. Slt Assign nos to olors in th grph: Strt with mpty grph Ruil originl grph y rptly ing no rom top o th stk (Whn w o this, thr must olor or it i it in t rprsnt potntil spill pik irnt olor rom ny jnt no) Whn potntil spill no is popp it my not olorl (nighors my hv k olors lry). This is n tul spill. UW CSE P 501 Spring 2018 P-46

47 5. Strt Ovr I Slt phs nnot olor som no (must potntil spill no), los or h us n stors tr h inition Crts nw tmporris with tiny liv rngs Rpt rom ginning Itrt until Simpliy sus In prti oupl o itrtions r nough UW CSE P 501 Spring 2018 P-47

48 Colsing Liv Rngs I: i two liv rngs r onnt y opy oprtion (MOV ri rj) ut o not othrwis intrr, thn th liv rngs n ols (omin) Rwrit ll rrns to rj to us ri Rmov th opy instrution Thn n to ix up intrrn grph UW CSE P 501 Spring 2018 P-48

49 Colsing Avntgs? Mks th o smllr, str (no opy oprtion) Shrinks st o liv rngs Rus th gr o ny liv rng tht intrr with oth liv rngs ri, rj But: olsing two liv rngs n prvnt olsing o othrs, so orring mttrs Bst: Cols most rquntly xut rngs irst (.g., innr loops) Cn hv sustntil pyo o it! UW CSE P 501 Spring 2018 P-49

50 Ovrll Strutur Mor Colsing Possil Fin liv rngs Buil int. grph Cols Spill Costs Fin Coloring No Spills Spills Insrt Spills UW CSE P 501 Spring 2018 P-50

51 Complitions N to l with irrgulritis in th rgistr st Som oprtions rquir it rgistrs (iiv in x86, split rss/t rgistrs in M68k n othrs), rgistr ovrlp (AH, AL, AX, EAX, RAX) in x86 n x86-64 Rgistr onvntions lik untion rsults, us o rgistrs ross lls, t. Mol y proloring nos, ing onstrints in th grph, t. UW CSE P 501 Spring 2018 P-51

52 Grph Rprsnttion Th intrrn grph rprsnttion rivs th tim n sp rquirmnts or th llotor (n my th ompilr) Not unknown to hv O(5K) nos n O(1M) gs Dul rprsnttion works st Tringulr it mtrix or iint ss to intrrn inormtion Vtor o jny vtors or iint ss to no nighors UW CSE P 501 Spring 2018 P-52

53 An Tht s It Moulo ll th piky tils, tht is UW CSE P 501 Spring 2018 P-53

History Rgistr Allotion Exmpl As ol s intrmit o Consir this progrm with six vrils: := + := + := - 1 Us in th originl FORTRAN ompilr (1950 s) Vry ru lg

History Rgistr Allotion Exmpl As ol s intrmit o Consir this progrm with six vrils: := + := + := - 1 Us in th originl FORTRAN ompilr (1950 s) Vry ru lg Th Mmory Hirrhy Avn Compilrs CMPSCI 710 Spring 2003 Highr = smllr, str, losr to CPU A rl sktop mhin (min) Rgistr Allotion Emry Brgr rgistrs 8 intgr, 8 loting-point; 1-yl ltny L1 h 8K t & instrutions; 2-yl

More information

Lecture Outline. Memory Hierarchy Management. Register Allocation. Register Allocation. Lecture 19. Cache Management. The Memory Hierarchy

Lecture Outline. Memory Hierarchy Management. Register Allocation. Register Allocation. Lecture 19. Cache Management. The Memory Hierarchy Ltur Outlin Mmory Hirrhy Mngmnt Rgistr Allotion Ltur 19 Rgistr Allotion Rgistr intrrn grph Grph oloring huristis Spilling Ch Mngmnt Pro. Boik CS 164 Ltur 17 1 Pro. Boik CS 164 Ltur 17 2 Th Mmory Hirrhy

More information

Global Register Allocation

Global Register Allocation Ltur Outlin Glol Rgistr Allotion Mmory Hirrhy Mngmnt Rgistr Allotion vi Grph Coloring Rgistr intrrn grph Grph oloring huristis Spilling Ch Mngmnt 2 Th Mmory Hirrhy Rgistrs 1 yl 256-8000 yts Ch 3 yls 256k-16M

More information

Lecture Outline. Memory Hierarchy Management. Register Allocation. Register Allocation. Lecture 38. Cache Management. Managing the Memory Hierarchy

Lecture Outline. Memory Hierarchy Management. Register Allocation. Register Allocation. Lecture 38. Cache Management. Managing the Memory Hierarchy Ltur Outlin Mmory Hirrhy Mngmnt Rgistr Allotion Ltu8 (rom nots y G. Nul n R. Boik) Rgistr Allotion Rgistr intrrn grph Grph oloring huristis Spilling Ch Mngmnt 4/27/08 Pro. Hilingr CS164 Ltu8 1 4/27/08

More information

Lecture 39: Register Allocation. The Memory Hierarchy. The Register Allocation Problem. Managing the Memory Hierarchy

Lecture 39: Register Allocation. The Memory Hierarchy. The Register Allocation Problem. Managing the Memory Hierarchy Ltur 39: Rgistr Alloation [Aapt rom nots y R. Boik an G. Nula] Topis: Mmory Hirarhy Managmnt Rgistr Alloation: Rgistr intrrn graph Graph oloring huristis Spilling Cah Managmnt Th Mmory Hirarhy Computrs

More information

Reachability. Directed DFS. Strong Connectivity Algorithm. Strong Connectivity. DFS tree rooted at v: vertices reachable from v via directed paths

Reachability. Directed DFS. Strong Connectivity Algorithm. Strong Connectivity. DFS tree rooted at v: vertices reachable from v via directed paths irt Grphs OR SFO FW LX JFK MI OS irph is rph whos s r ll irt Short or irt rph pplitions on-wy strts lihts tsk shulin irphs ( 12.) irt Grphs 1 irt Grphs 2 irph Proprtis rph G=(V,) suh tht h os in on irtion:

More information

Interference graph. Register Allocation. A bigger example. Units of allocation

Interference graph. Register Allocation. A bigger example. Units of allocation Rgistr Alloation Intrfrn graph Th prolm: assign mahin rsours (rgistrs, stak loations) to hol run-tim ata Constraint: simultanously liv ata alloat to iffrnt loations Goal: minimiz ovrha of stak loas & stors

More information

Review: Binary Trees. CSCI 262 Data Structures. Search Trees. In Order Traversal. Binary Search Trees 4/10/2018. Review: Binary Tree Implementation

Review: Binary Trees. CSCI 262 Data Structures. Search Trees. In Order Traversal. Binary Search Trees 4/10/2018. Review: Binary Tree Implementation Rviw: Binry Trs CSCI 262 Dt Struturs 21 Binry Srh Trs A inry tr is in rursivly: = or A inry tr is (mpty) root no with lt hil n riht hil, h o whih is inry tr. Rviw: Binry Tr Implmnttion Just ollow th rursiv

More information

CSE 401/M501 Compilers

CSE 401/M501 Compilers CSE 401/M501 Compilrs Compilr Bckn Survy Hl Prkins Spring 2018 UW CSE 401/M501 Spring 2018 Q-1 Aministrivi Compilr projct: floting-point u tomorrow (plus lt ys if you hv thm); short rport u Stury night

More information

Outline. Graphs Describing Precedence. Graphs Describing Precedence. Topological SorFng of DAGs. Graphs Describing Precedence 4/25/12. Part 10.

Outline. Graphs Describing Precedence. Graphs Describing Precedence. Topological SorFng of DAGs. Graphs Describing Precedence 4/25/12. Part 10. 4// Outlin Prt. Grphs CS Algorithms n Dt Struturs Introution Trminology Implmnting Grphs Grph Trvrsls Topologil Sorting Shortst Pths Spnning Trs Minimum Spnning Trs Ciruits Grphs Dsriing Prn Grphs Dsriing

More information

CS553 Lecture Introduction to Data-flow Analysis 1

CS553 Lecture Introduction to Data-flow Analysis 1 ! Ide Introdution to Dt-flow nlysis!lst Time! Implementing Mrk nd Sweep GC!Tody! Control flow grphs! Liveness nlysis! Register llotion CS553 Leture Introdution to Dt-flow Anlysis 1 Dt-flow Anlysis! Dt-flow

More information

Finding a Funicular Curve Through Two Points

Finding a Funicular Curve Through Two Points This is th glss pyrmi t th Louvr Musum in Pris, sign y rhitt I.M. Pi. It is support from nth y stl ls. In signing strutur suh s this, it is oftn most usful to slt l of rtin siz n tnsil strngth, n thn to

More information

Register Allocation. Register Allocation

Register Allocation. Register Allocation Rgistr Allocation Jingk Li Portlan Stat Univrsity Jingk Li (Portlan Stat Univrsity) CS322 Rgistr Allocation 1 / 28 Rgistr Allocation Assign an unboun numbr of tmporaris to a fix numbr of rgistrs. Exampl:

More information

CSE P 501 Compilers. Register Allocation Hal Perkins Autumn /22/ Hal Perkins & UW CSE P-1

CSE P 501 Compilers. Register Allocation Hal Perkins Autumn /22/ Hal Perkins & UW CSE P-1 CSE P 501 Compilers Register Allocation Hal Perkins Autumn 2011 11/22/2011 2002-11 Hal Perkins & UW CSE P-1 Agenda Register allocation constraints Local methods Faster compile, slower code, but good enough

More information

CS453 INTRODUCTION TO DATAFLOW ANALYSIS

CS453 INTRODUCTION TO DATAFLOW ANALYSIS CS453 INTRODUCTION TO DATAFLOW ANALYSIS CS453 Leture Register llotion using liveness nlysis 1 Introdution to Dt-flow nlysis Lst Time Register llotion for expression trees nd lol nd prm vrs Tody Register

More information

WORKSHOP 2 Solid Shell Composites Modeling

WORKSHOP 2 Solid Shell Composites Modeling WORKSHOP 2 Soli Shll Composits Moling WS2-1 WS2-2 Workshop Ojtivs Bom fmilir with stting up soli omposit shll mol Softwr Vrsion Ptrn 2011 MD Nstrn 2011.1 Fils Rquir soli_shll. WS2-3 Prolm Dsription Simult

More information

Reading. K-D Trees and Quad Trees. Geometric Data Structures. k-d Trees. Range Queries. Nearest Neighbor Search. Chapter 12.6

Reading. K-D Trees and Quad Trees. Geometric Data Structures. k-d Trees. Range Queries. Nearest Neighbor Search. Chapter 12.6 Rn Cptr 12.6 K-D Trs n Qu Trs CSE 326 Dt Struturs Ltur 9 2/2/05 K-D Trs n Qu Trs - Ltur 9 2 Gomtr Dt Struturs Ornzton o ponts, lns, plns, to support str prossn Appltons Astropsl smulton voluton o ls Grps

More information

CS 331: Artificial Intelligence Bayesian Networks (Inference) Inference

CS 331: Artificial Intelligence Bayesian Networks (Inference) Inference S 331: rtificil Intllignc ysin Ntworks Infrnc 1 Infrnc Suppos you r givn ysin ntwork with th grph structur n th prmtrs ll figur out Now you woul lik to us it to o infrnc You n infrnc to mk prictions or

More information

Greedy Algorithm. Algorithm Fall Semester

Greedy Algorithm. Algorithm Fall Semester Greey Algorithm Algorithm 0 Fll Semester Optimiztion prolems An optimiztion prolem is one in whih you wnt to fin, not just solution, ut the est solution A greey lgorithm sometimes works well for optimiztion

More information

Overview Linear Algebra Review Linear Algebra Review. What is a Matrix? Additional Resources. Basic Operations.

Overview Linear Algebra Review Linear Algebra Review. What is a Matrix? Additional Resources. Basic Operations. Oriw Ro Jnow Mon, Sptmr 2, 24 si mtri oprtions (, -, *) Cross n ot prouts Dtrminnts n inrss Homonous oorints Ortonorml sis itionl Rsours 8.6 Tt ook 6.837 Tt ook 6.837-stff@rpis.sil.mit.u Ck t ours wsit

More information

12/3/2008. Schedule. Target Code Generation. Target Code Generation. Gap: machine code. Tasks of Code Generator. These tasks interact

12/3/2008. Schedule. Target Code Generation. Target Code Generation. Gap: machine code. Tasks of Code Generator. These tasks interact Shul Trgt Co Gnrtion Dvi Notkin Autumn 2008 Projt D: intrmit o gnrtion Du: Dmr 3 Du Dmr 10, 5PM (vill Mony 11/17) Projt E: trgt o gnrtion [MiniJv++] Writtn ssignmnt [MiniJv--] Finl on Dmr 11 (on hour,

More information

MERGE-BASED SpMV PERFECT WORKLOAD BALANCE. GUARANTEED. Duane Merrill, NVIDIA Research

MERGE-BASED SpMV PERFECT WORKLOAD BALANCE. GUARANTEED. Duane Merrill, NVIDIA Research MERGE-BASED SpMV PERFECT WORKLOAD BALANCE. GUARANTEED. Dun Mrrill, NVIDIA Rsr SPARSE MATRIX-VECTOR MULTIPLICATION SpMV (Ax = y) -- -- -- -- -- -- -- -- * = 2.0 0.0 2.0 4.0 sprs mtrix A ns vtor x ns vtor

More information

Compiling: Examples and Sample Problems

Compiling: Examples and Sample Problems REs for Kywors Compiling: Exmpls n mpl Prolms IC312 Mchin-Lvl n ystms Progrmming Hnri Csnov (hnric@hwii.u) It is sy to fin RE tht scris ll kywors Ky = if ls for whil int.. Ths cn split in groups if n Kywor

More information

1⅝" - 3¾" (40-95mm) FIXTURE BASE. 3/4" (19mm) 4" - 6¾" ( mm) ALLEN KEY (INCLUDED)

1⅝ - 3¾ (40-95mm) FIXTURE BASE. 3/4 (19mm) 4 - 6¾ ( mm) ALLEN KEY (INCLUDED) PG: 1 O 7 IMPORTNT - R RULLY OR INSTLLING IXTUR. RTIN THS INSTRUTIONS OR UTUR RRN. THIS PROUT MUST INSTLL IN ORN WITH TH NTIONL LTRIL O N LL PPLIL LOL OS, Y PRSON MILIR WITH TH ONSTRUTION N OPRTION O TH

More information

Software Pipelining Can we decrease the latency? Goal of SP Lecture. Seth Copen Goldstein Software Pipelining

Software Pipelining Can we decrease the latency? Goal of SP Lecture. Seth Copen Goldstein Software Pipelining 5-4 Ltur 5-745 Sotwr Piplinin Copyrit St Copn Goltin -8 Sotwr Piplinin Sotwr piplinin i n IS tniqu tt rorr t intrution in loop. Poily movin intrution rom on itrtion to t prviou or t nxt itrtion. Vry lr

More information

Characteristics of Fault Simulation. Fault Simulation Techniques. Parallel Fault Simulation. Parallel Fault Simulation

Characteristics of Fault Simulation. Fault Simulation Techniques. Parallel Fault Simulation. Parallel Fault Simulation Chrtristis o Fult Simultion Fult tivity with rspt to ult-r iruit is otn sprs oth in tim n sp. For mpl F is not tivt y th givn pttrn, whil F2 ts only th lowr prt o this iruit. Fult Simultion Thniqus Prlll

More information

S675, S750 Stretchair Parts List A D

S675, S750 Stretchair Parts List A D Page of 7 F G PRTS LIST Number Part Number escription M675-038 STR, 6" NTRL LOKING, TOTL LK TWIN WHL M675-04 STR, 6" NTRL LOKING, IR LK, TWIN WHL S-HX-ZP-M6-0 SRW, HX H, M6 X 0 MM LG 4 W-LI-ZP-5-47-03

More information

Graph Theory & Applications. Boundaries Using Graphs. Graph Search. Find the route that minimizes. cost

Graph Theory & Applications. Boundaries Using Graphs. Graph Search. Find the route that minimizes. cost Graph Thory & Appliations Bounaris Using Graphs 3 4 3 4 5 Fin th rout that minimizs osts Fin th ritial path in a projt Fin th optimal borr aroun a rgion Fin loop an no quations or analog iruit analysis

More information

Tiling the plane with equilateral convex pentagons

Tiling the plane with equilateral convex pentagons Prol Volum 52, Issu 3 (2016) Tiling th pln with quiltrl onvx pntgons Mri Fishr 1 Mthmtiins n non-mthmtiins hv n onrn with fining pntgonl tilings for lmost 100 yrs, yt tiling th pln with onvx pntgons rmins

More information

Distance vector protocol

Distance vector protocol istne vetor protool Irene Finohi finohi@i.unirom.it Routing Routing protool Gol: etermine goo pth (sequene of routers) thru network from soure to Grph strtion for routing lgorithms: grph noes re routers

More information

ISO VIEW COVER, EXPRESS EXIT 4X4 FLIP COVER OPEN VIEW EXPRESS EXIT ON TROUGH VIEW

ISO VIEW COVER, EXPRESS EXIT 4X4 FLIP COVER OPEN VIEW EXPRESS EXIT ON TROUGH VIEW RV MO WN T 00899MO OVL 07-JN-5 0078MO HUH 7-SP-5 5.90 RF.87 RF.000 RF ISO VIW SL OVR, 0.50 OVR XTNSION X FLIP OVR FGS-MX-- (NOT INLU IN KIT).07 RF 7.7 RF FLIP OVR OPN VIW SL X STRIGHT STION RF RKT, XPRSS

More information

GENG2140 Modelling and Computer Analysis for Engineers

GENG2140 Modelling and Computer Analysis for Engineers GENG4 Moelling n Computer Anlysis or Engineers Letures 9 & : Gussin qurture Crete y Grn Romn Joles, PhD Shool o Mehnil Engineering, UWA GENG4 Content Deinition o Gussin qurture Computtion o weights n points

More information

Minimal Memory Abstractions

Minimal Memory Abstractions Miniml Memory Astrtions (As implemented for BioWre Corp ) Nthn Sturtevnt University of Alert GAMES Group Ferury, 7 Tlk Overview Prt I: Building Astrtions Minimizing memory requirements Performnes mesures

More information

Internet Routing. IP Packet Format. IP Fragmentation & Reassembly. Principles of Internet Routing. Computer Networks 9/29/2014.

Internet Routing. IP Packet Format. IP Fragmentation & Reassembly. Principles of Internet Routing. Computer Networks 9/29/2014. omputer Networks 9/29/2014 IP Pket Formt Internet Routing Ki Shen IP protool version numer heder length (words) for qulity of servie mx numer remining hops (deremented t eh router) upper lyer protool to

More information

Quadrilateral Decomposition by Two-Ear Property Resulting in CAD Segmentation

Quadrilateral Decomposition by Two-Ear Property Resulting in CAD Segmentation Quriltrl Domposition y wo-er Proprty Rsulting in CAD Sgmnttion Mhrvo Rnrinrivony Astrt W minly im t splitting simply onnt polygon into st o onvx quriltrls without insrting nw ounry nos. Our pproh is s

More information

V = set of vertices (vertex / node) E = set of edges (v, w) (v, w in V)

V = set of vertices (vertex / node) E = set of edges (v, w) (v, w in V) Definitions G = (V, E) V = set of verties (vertex / noe) E = set of eges (v, w) (v, w in V) (v, w) orere => irete grph (igrph) (v, w) non-orere => unirete grph igrph: w is jent to v if there is n ege from

More information

CS153: Compilers Lecture 20: Register Allocation I

CS153: Compilers Lecture 20: Register Allocation I CS153: Copilrs Ltur 20: Ristr Alloation I Stpn Con ttps://www.sas.arvar.u/ourss/s153 Pr-lass Puzzl Wat s t iniu nur o olors n to olor a ap o t USA? Evry stat is assin on olor Aant stats ust ivn irnt olors

More information

Partitioning a Polygon into Two Mirror Congruent Pieces

Partitioning a Polygon into Two Mirror Congruent Pieces rtitioning olygon into Two Mirror Congrunt is Dni El-Khhn Thoms Fvns John Iono 1 Introution olygon omposition prolms r wll stui in th litrtur [6], yt mny vrints o ths prolms rmin opn. In this ppr, w r

More information

FLASHING CHRISTMAS TREE KIT

FLASHING CHRISTMAS TREE KIT R4 FLASHING CHRISTMAS TREE KIT 9 10 8 7 11 6 R3 12 T4 C4 5 T3 R5 R7 13 C3 C2 4 14 R1 T2 R6 3 OWNER S MANUAL T1 R8 15 2 C1 R2 1 16 Cat. No. 277-8001 CUSTOM MANUFACTURED FOR TANDY CORPORATION LTD ASSEMBLY

More information

Distributed Systems Principles and Paradigms. Chapter 11: Distributed File Systems

Distributed Systems Principles and Paradigms. Chapter 11: Distributed File Systems Distriuted Systems Priniples nd Prdigms Mrten vn Steen VU Amsterdm, Dept. Computer Siene steen@s.vu.nl Chpter 11: Distriuted File Systems Version: Deemer 10, 2012 2 / 14 Distriuted File Systems Distriuted

More information

WORKSHOP 12 ANCHOR LOADS AND BOUNDARY CONDITIONS USING A FIELD

WORKSHOP 12 ANCHOR LOADS AND BOUNDARY CONDITIONS USING A FIELD WORKSHOP 12 ANCHOR LOADS AND BOUNDARY CONDITIONS USING A FIELD WS12-1 WS12-2 Workshop Ojtivs Using fil for prssur loing, n rting onstrints t th lotions for wshrs Prolm Dsription Crt fil with th sin funtion,

More information

WORKSHOP 17 BOX BEAM WITH TRANSIENT LOAD

WORKSHOP 17 BOX BEAM WITH TRANSIENT LOAD WORKSHOP 17 BOX BEAM WITH TRANSIENT LOAD WS17-1 WS17-2 Workshop Ojtivs Prform mol nlysis for linr ynmi mol. Also, prform linr trnsint nlysis for th mol. Viw th shp of th mol ovr tim. Crt n X vs Y plot

More information

VAT GX - IP VIDEO FIELD ADD-ON/RETROFIT SINGLE CHANNEL ENCODER

VAT GX - IP VIDEO FIELD ADD-ON/RETROFIT SINGLE CHANNEL ENCODER L00 LL -800-999-600 VT GX - IP VIDO ILD DD-ON/RTROIT SINGL HNNL NODR NTWORK ONNTORS SING: MTRIL: P + BS X7240 OLOR: DRK BLU SUSTINBILITY: MMORY: PV R 256 MB RM, 256 MB LSH BTTRY BKD- RL TIM LOK POWR: POWR

More information

Store Tours Washington DC

Store Tours Washington DC Things To Look For: Th Customr Journy == Entrn == Cln n inviting? Opning hours post? Wht o you noti vn for you ntr? == First Imprssion == Lighting? Musi plying? Dos th stor fl wloming? Dos somon grt you

More information

HSHM-H110AX-5CPX HSHM-H105BX-5CPX TYPE B21, 105 SIGNAL CONTACTS HSHM-HXXXXXX-5CPX-XXXXX

HSHM-H110AX-5CPX HSHM-H105BX-5CPX TYPE B21, 105 SIGNAL CONTACTS HSHM-HXXXXXX-5CPX-XXXXX M TM HSHM PRSS-FIT HR, -ROW, HSHM SRIS FOR HIGH SP HR MTRI PPLITIONS * UP TO Gb/s T RTS * LOW ROSSTLK T HIGH FRQUNIS * / (SINGL-N/IFFRNTIL) IMPN * MOULR/SLL FORMT I -- * MT LINS PR INH * SHIPS WITH PROTTIV

More information

Distributed Systems Principles and Paradigms

Distributed Systems Principles and Paradigms Distriuted Systems Priniples nd Prdigms Christoph Dorn Distriuted Systems Group, Vienn University of Tehnology.dorn@infosys.tuwien..t http://www.infosys.tuwien..t/stff/dorn Slides dpted from Mrten vn Steen,

More information

Chapter 9. Greedy Technique. Copyright 2007 Pearson Addison-Wesley. All rights reserved.

Chapter 9. Greedy Technique. Copyright 2007 Pearson Addison-Wesley. All rights reserved. Chpter 9 Greey Tehnique Copyright 2007 Person Aison-Wesley. All rights reserve. Greey Tehnique Construts solution to n optimiztion prolem piee y piee through sequene of hoies tht re: fesile lolly optiml

More information

How to fix your 260Z or 280Z clock.

How to fix your 260Z or 280Z clock. Sujt Fixing th Kanto Siki lok Author E. Bttio How to fix your 260Z or 280Z lok. I first wrot this up aout two yars ago. This is th sond vrsion of this produr. It is not vry muh diffrnt to my first ffort

More information

Below, are instructions about how to set each goal and report achievements in Your Club, Service, and Foundation Giving.

Below, are instructions about how to set each goal and report achievements in Your Club, Service, and Foundation Giving. Rotry Clu Cntrl is n onlin tool to hlp lus st nd trk lu gols nd hivmnts. This rfrn guid outlins th stps you nd to tk to st nd dit gols s wll s rport hivmnts in Rotry Clu Cntrl. If ny dt is displyd inorrtly,

More information

Model Intelli-INCH. Miniature Stepper Motor Controllers/Drivers. Electrical Specifications. Models. Key Features. i/o connector, Intelli-inch-lr

Model Intelli-INCH. Miniature Stepper Motor Controllers/Drivers. Electrical Specifications. Models. Key Features. i/o connector, Intelli-inch-lr Model Intelli-INH lectrical Specifications Supply Input 9V to 30V 1 xamples: igikey part 271-2446 or 62-1068 imensions 1 X 1 (254mm X 254mm) square Step Resolution 1/16 microstep Operating Modes Standalone

More information

10.2 Graph Terminology and Special Types of Graphs

10.2 Graph Terminology and Special Types of Graphs 10.2 Grph Terminology n Speil Types of Grphs Definition 1. Two verties u n v in n unirete grph G re lle jent (or neighors) in G iff u n v re enpoints of n ege e of G. Suh n ege e is lle inient with the

More information

MITSUBISHI ELECTRIC RESEARCH LABORATORIES Cambridge, Massachusetts. Introduction to Matroids and Applications. Srikumar Ramalingam

MITSUBISHI ELECTRIC RESEARCH LABORATORIES Cambridge, Massachusetts. Introduction to Matroids and Applications. Srikumar Ramalingam Cmrige, Msshusetts Introution to Mtrois n Applitions Srikumr Rmlingm MERL mm//yy Liner Alger (,0,0) (0,,0) Liner inepenene in vetors: v, v2,..., For ll non-trivil we hve s v s v n s, s2,..., s n 2v2...

More information

Lecture 13: Graphs I: Breadth First Search

Lecture 13: Graphs I: Breadth First Search Leture 13 Grphs I: BFS 6.006 Fll 2011 Leture 13: Grphs I: Bredth First Serh Leture Overview Applitions of Grph Serh Grph Representtions Bredth-First Serh Rell: Grph G = (V, E) V = set of verties (ritrry

More information

VAT GX - IP VIDEO FIELD ADD-ON/RETROFIT SPECIFICATIONS PERSPECTIVE SIDE VIEW MOUNTING CONNECTIONS CALL SINGLE CHANNEL ENCODER

VAT GX - IP VIDEO FIELD ADD-ON/RETROFIT SPECIFICATIONS PERSPECTIVE SIDE VIEW MOUNTING CONNECTIONS CALL SINGLE CHANNEL ENCODER VT GX - IP VIDO ILD DD-ON/RTROIT L00 LL -800-999-600 SINGL HNNL NODR SPIITIONS NTWORK ONNTORS SING: MTRIL: P + BS X7240 OLOR: DRK BLU DIMNSIONS IN MILLIMTRS (DIMNSIONS IN INHS) SUSTINBILITY: MMORY: PV

More information

CMPUT101 Introduction to Computing - Summer 2002

CMPUT101 Introduction to Computing - Summer 2002 CMPUT Introdution to Computing - Summer 22 %XLOGLQJ&RPSXWHU&LUFXLWV Chpter 4.4 3XUSRVH We hve looked t so fr how to uild logi gtes from trnsistors. Next we will look t how to uild iruits from logi gtes,

More information

AIR FORCE STANDARD DESIGN RPA SQUADRON OPERATIONS

AIR FORCE STANDARD DESIGN RPA SQUADRON OPERATIONS GNR NOTS 1. US THS OUMNTS IN ONUTION WITH TH STNR SIGN OUMNT N TH INTRTIV PROGRMMING WORSHT. Sheet Number RWING IST NM -1 OVR SHT -1 STNR SIGN PN -2 MOU PN -3 MOU XON -4 MOUS & PN & XON -5 MOUS & PN &

More information

Lesson 4.4. Euler Circuits and Paths. Explore This

Lesson 4.4. Euler Circuits and Paths. Explore This Lesson 4.4 Euler Ciruits nd Pths Now tht you re fmilir with some of the onepts of grphs nd the wy grphs onvey onnetions nd reltionships, it s time to egin exploring how they n e used to model mny different

More information

CS 241 Week 4 Tutorial Solutions

CS 241 Week 4 Tutorial Solutions CS 4 Week 4 Tutoril Solutions Writing n Assemler, Prt & Regulr Lnguges Prt Winter 8 Assemling instrutions utomtilly. slt $d, $s, $t. Solution: $d, $s, nd $t ll fit in -it signed integers sine they re 5-it

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

Internet Routing. Reminder: Routing. CPSC Network Programming

Internet Routing. Reminder: Routing. CPSC Network Programming PS 360 - Network Progrmming Internet Routing Mihele Weigle eprtment of omputer Siene lemson University mweigle@s.lemson.eu pril, 00 http://www.s.lemson.eu/~mweigle/ourses/ps360 Reminer: Routing Internet

More information

EE 231 Fall EE 231 Homework 10 Due November 5, 2010

EE 231 Fall EE 231 Homework 10 Due November 5, 2010 EE 23 Fall 2 EE 23 Homwork Du Novmbr 5, 2. Dsign a synhronous squntial iruit whih gnrats th following squn. (Th squn should rpat itslf.) (a) Draw a stat transition diagram for th iruit. This is a systm

More information

AIR FORCE STANDARD DESIGN RPA SQUADRON OPERATIONS

AIR FORCE STANDARD DESIGN RPA SQUADRON OPERATIONS RWIN IST NR NOTS 1. US TS OUMNTS IN ONUTION WIT T STNR SIN OUMNT N T INTRTIV PRORMMIN WORST. Sheet Number NM -1 OVR ST -1 STNR SIN PN -2 MOU PN -3 MOU XON -4 MOUS & PN & XON -5 MOUS & PN & XON -6 MOUS

More information

CCD Color Camera. KP-HD20A/KP-HD1001/5 Series. Remote control protocol Specifications. (preliminary version)

CCD Color Camera. KP-HD20A/KP-HD1001/5 Series. Remote control protocol Specifications. (preliminary version) olor amera KP-H20/KP-H01/5 Series Remote control protocol Specifications (preliminary version) Hitachi Kokusai lectric Inc. MOL SIGN HK - Sep.11.9 (first edition) Hirayama Hirayama SYMOL T SRIPTION (RWN)

More information

CS 340, Fall 2016 Sep 29th Exam 1 Note: in all questions, the special symbol ɛ (epsilon) is used to indicate the empty string.

CS 340, Fall 2016 Sep 29th Exam 1 Note: in all questions, the special symbol ɛ (epsilon) is used to indicate the empty string. CS 340, Fll 2016 Sep 29th Exm 1 Nme: Note: in ll questions, the speil symol ɛ (epsilon) is used to indite the empty string. Question 1. [10 points] Speify regulr expression tht genertes the lnguge over

More information

Lexical Analysis: Constructing a Scanner from Regular Expressions

Lexical Analysis: Constructing a Scanner from Regular Expressions Lexicl Anlysis: Constructing Scnner from Regulr Expressions Gol Show how to construct FA to recognize ny RE This Lecture Convert RE to n nondeterministic finite utomton (NFA) Use Thompson s construction

More information

Chapter 4 Fuzzy Graph and Relation

Chapter 4 Fuzzy Graph and Relation Chpter 4 Fuzzy Grph nd Reltion Grph nd Fuzzy Grph! Grph n G = (V, E) n V : Set of verties(node or element) n E : Set of edges An edge is pir (x, y) of verties in V.! Fuzzy Grph ~ n ( ~ G = V, E) n V :

More information

THE OTTAWA CHINESE ALLIANCE CHURCH

THE OTTAWA CHINESE ALLIANCE CHURCH T OTTW INS LLIN UR LS, OTTW, ONTRIO Sheet List 0.00 TITL ST 0..6 ISSU OR SIT PLN ONTROL.00 SIT PLN 0..6 ISSU OR SIT PLN ONTROL.0 ONSTRUTION SSMLIS.0 SIT TILS.50 UILIN PRKIN & LVL MO.00 LVL 0 - PRKIN LVL

More information

CS412/413. Introduction to Compilers Tim Teitelbaum. Lecture 4: Lexical Analyzers 28 Jan 08

CS412/413. Introduction to Compilers Tim Teitelbaum. Lecture 4: Lexical Analyzers 28 Jan 08 CS412/413 Introduction to Compilers Tim Teitelum Lecture 4: Lexicl Anlyzers 28 Jn 08 Outline DFA stte minimiztion Lexicl nlyzers Automting lexicl nlysis Jlex lexicl nlyzer genertor CS 412/413 Spring 2008

More information

CMST 220 PUBLIC SPEAKING

CMST 220 PUBLIC SPEAKING MST 220 PUBLI SPKING R G. MTZGR, INSTRUTOR OI: RINIR 213 PHON: 253-964-6659 fmetzger@pierce.ctc.edu O V R V I W PUBLI SPKING IS N OPPORTUNITY TO LOOK GOO IN RONT O POPL. LL YOUR LI YOUR SPH WILL HLP YOU

More information

CS321 Languages and Compiler Design I. Winter 2012 Lecture 5

CS321 Languages and Compiler Design I. Winter 2012 Lecture 5 CS321 Lnguges nd Compiler Design I Winter 2012 Lecture 5 1 FINITE AUTOMATA A non-deterministic finite utomton (NFA) consists of: An input lphet Σ, e.g. Σ =,. A set of sttes S, e.g. S = {1, 3, 5, 7, 11,

More information

COSC 6374 Parallel Computation. Dense Matrix Operations

COSC 6374 Parallel Computation. Dense Matrix Operations COSC 6374 Prllel Computtion Dense Mtrix Opertions Edgr Griel Fll Edgr Griel Prllel Computtion Edgr Griel erminology Dense Mtrix: ll elements of the mtrix ontin relevnt vlues ypilly stored s 2-D rry, (e.g.

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

UNSIGNED HARDCOPY NOT CONTROLLED

UNSIGNED HARDCOPY NOT CONTROLLED UNSIN ROPY NOT ONTROLL ardware ngineering No. LMS -0 Subject: PPROV Y STTUS PURPOS Manager, ardware ngineering Maintenance Revision efines the requirements for electrical connector keying. Two areas are

More information

CS311H: Discrete Mathematics. Graph Theory IV. A Non-planar Graph. Regions of a Planar Graph. Euler s Formula. Instructor: Işıl Dillig

CS311H: Discrete Mathematics. Graph Theory IV. A Non-planar Graph. Regions of a Planar Graph. Euler s Formula. Instructor: Işıl Dillig CS311H: Discrete Mthemtics Grph Theory IV Instructor: Işıl Dillig Instructor: Işıl Dillig, CS311H: Discrete Mthemtics Grph Theory IV 1/25 A Non-plnr Grph Regions of Plnr Grph The plnr representtion of

More information

Presentation Martin Randers

Presentation Martin Randers Presenttion Mrtin Rnders Outline Introduction Algorithms Implementtion nd experiments Memory consumption Summry Introduction Introduction Evolution of species cn e modelled in trees Trees consist of nodes

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

The Network Layer: Routing Algorithms. The Network Layer: Routing & Addressing Outline

The Network Layer: Routing Algorithms. The Network Layer: Routing & Addressing Outline PS 6 Ntwork Programming Th Ntwork Layr: Routing lgorithms Michl Wigl partmnt of omputr Scinc lmson Univrsity mwigl@cs.clmson.du http://www.cs.clmson.du/~mwigl/courss/cpsc6 Th Ntwork Layr: Routing & ddrssing

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

Network Layer: Routing Classifications; Shortest Path Routing

Network Layer: Routing Classifications; Shortest Path Routing igitl ommuniction in the Modern World : Routing lssifictions; Shortest Pth Routing s min prolem: To get efficiently from one point to the other in dynmic environment http://.cs.huji.c.il/~com com@cs.huji.c.il

More information

Customer documentation

Customer documentation SAP Printing: Customr oumnttion: Volum 1 pg 1 / 14 SAP Printing Customr oumnttion Volum 1 RM: Support y Rioh Vrsion: 1.49 Astrt: This oumnt ontins irst-stp inormtion out support y Rioh or printing rom

More information

H SERIES. Percentage Basics. Curriculum Ready.

H SERIES. Percentage Basics. Curriculum Ready. Prntg Bsis Curriulum Ry www.mtltis.om Copyrigt 009 P Lrning. All rigts rsrv. First ition print 009 in Austrli. A tlogu ror or tis ook is vill rom P Lrning Lt. ISBN 98--986--0 Ownrsip o ontnt T mtrils in

More information

CPSC 826 Internetworking. The Network Layer: Routing & Addressing Outline. The Network Layer: Routing Algorithms. Routing Algorithms Taxonomy

CPSC 826 Internetworking. The Network Layer: Routing & Addressing Outline. The Network Layer: Routing Algorithms. Routing Algorithms Taxonomy PS Intrntworking Th Ntwork Layr: Routing & ddrssing Outlin Th Ntwork Layr: Routing lgorithms Michl Wigl partmnt of omputr Scinc lmson Univrsity mwigl@cs.clmson.du Novmbr, Ntwork layr functions Routr architctur

More information

CSc 453 Compilers and Systems Software. 6 : Top-Down Parsing I

CSc 453 Compilers and Systems Software. 6 : Top-Down Parsing I C 45 Compilers n ystems oftwre 6 : op-down Prsing I Christin Collberg Deprtment of Computer iene University of rizon ollberg@gmil.om Copyright 2009 Christin Collberg eptember 14, 2009 1 Overview 2 Compiler

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

Outline. CS38 Introduction to Algorithms. Graphs. Graphs. Graphs. Graph traversals

Outline. CS38 Introduction to Algorithms. Graphs. Graphs. Graphs. Graph traversals Outline CS38 Introution to Algorithms Leture 2 April 3, 2014 grph trversls (BFS, DFS) onnetivity topologil sort strongly onnete omponents heps n hepsort greey lgorithms April 3, 2014 CS38 Leture 2 2 Grphs

More information

Performance, Scalability, and Numerical Stability of Manycore. Wen-mei Hwu University of Illinois at Urbana-Champaign

Performance, Scalability, and Numerical Stability of Manycore. Wen-mei Hwu University of Illinois at Urbana-Champaign Prformn, Slility, nd Numril Stility of Mnyor Algorithms Wn-mi Hwu Univrsity of Illinois t Urn-Chmpign Cry XE6 Nods Blu Wtrs ontins,64 Cry XE6 omput nods. Dul-sokt Nod Two AMD Intrlgos hips 6 or moduls,

More information

Today. CS 188: Artificial Intelligence Fall Recap: Search. Example: Pancake Problem. Example: Pancake Problem. General Tree Search.

Today. CS 188: Artificial Intelligence Fall Recap: Search. Example: Pancake Problem. Example: Pancake Problem. General Tree Search. CS 88: Artificil Intelligence Fll 00 Lecture : A* Serch 9//00 A* Serch rph Serch Tody Heuristic Design Dn Klein UC Berkeley Multiple slides from Sturt Russell or Andrew Moore Recp: Serch Exmple: Pncke

More information

Portability, Scalability, and Numerical Stability in Accelerated Kernels

Portability, Scalability, and Numerical Stability in Accelerated Kernels Portility, Slility, nd Numril Stility in Alrtd Krnls John Strtton Dotorl Cndidt: Univrsity of Illinois t Urn-Chmpign Snior Arhitt: MultiorWr In Outlin Prformn Portility Wht CPU progrmmrs nd to lrn from

More information

Error Numbers of the Standard Function Block

Error Numbers of the Standard Function Block A.2.2 Numers of the Stndrd Funtion Blok evlution The result of the logi opertion RLO is set if n error ours while the stndrd funtion lok is eing proessed. This llows you to rnh to your own error evlution

More information

COOPERS SMOKESTOP EGRESS FIRE & SMOKE RATED CURTAIN HEADBOXING SECTIONS

COOPERS SMOKESTOP EGRESS FIRE & SMOKE RATED CURTAIN HEADBOXING SECTIONS OOPRS SMOKSTOP GRSS IR & SMOK RT URTIN HOING STIONS ROP WITH ROP WITH ROP WITH ROP WITH < 4M < 5M < 4M < 5M 89 oopers ire Limited dward House, Penner Road, ax: +44 (0) 23 9249 2732 mail: info@coopersfire.com

More information

Paradigm 5. Data Structure. Suffix trees. What is a suffix tree? Suffix tree. Simple applications. Simple applications. Algorithms

Paradigm 5. Data Structure. Suffix trees. What is a suffix tree? Suffix tree. Simple applications. Simple applications. Algorithms Prdigm. Dt Struture Known exmples: link tble, hep, Our leture: suffix tree Will involve mortize method tht will be stressed shortly in this ourse Suffix trees Wht is suffix tree? Simple pplitions History

More information

Containers: Queue and List

Containers: Queue and List Continers: Queue n List Queue A ontiner in whih insertion is one t one en (the til) n eletion is one t the other en (the he). Also lle FIFO (First-In, First-Out) Jori Cortell n Jori Petit Deprtment of

More information

Register Allocation III. Interference Graph Allocators. Coalescing. Granularity of Allocation (Renumber step in Briggs) Chaitin

Register Allocation III. Interference Graph Allocators. Coalescing. Granularity of Allocation (Renumber step in Briggs) Chaitin Register Alloation III Last time Register alloation aross funtion alls Toay Register alloation options Interferene Graph Alloators Chaitin Briggs CS553 Leture Register Alloation III 1 CS553 Leture Register

More information

Enterprise Digital Signage Create a New Sign

Enterprise Digital Signage Create a New Sign Enterprise Digitl Signge Crete New Sign Intended Audiene: Content dministrtors of Enterprise Digitl Signge inluding stff with remote ess to sign.pitt.edu nd the Content Mnger softwre pplition for their

More information

Lecture 8: Graph-theoretic problems (again)

Lecture 8: Graph-theoretic problems (again) COMP36111: Advned Algorithms I Leture 8: Grph-theoreti prolems (gin) In Prtt-Hrtmnn Room KB2.38: emil: iprtt@s.mn..uk 2017 18 Reding for this leture: Sipser: Chpter 7. A grph is pir G = (V, E), where V

More information

Register Allocation III. Interference Graph Allocators. Computing the Interference Graph (in MiniJava compiler)

Register Allocation III. Interference Graph Allocators. Computing the Interference Graph (in MiniJava compiler) Register Alloation III Announements Reommen have interferene graph onstrution working by Monay Last leture Register alloation aross funtion alls Toay Register alloation options Interferene Graph Alloators

More information

AYLEY ST CKORY ST LLANO INDEPENDENT SCHOOL DISTRICT- CAMPUS IMPOROVEMENTS 2014 IC V BUILDING O FFE: BUILDING

AYLEY ST CKORY ST LLANO INDEPENDENT SCHOOL DISTRICT- CAMPUS IMPOROVEMENTS 2014 IC V BUILDING O FFE: BUILDING KORY ST WW LLNO, T T 0.0 GU. T. GU.0 T. GU. I V I V T. GU 0. T??? GU??? FF: 0. O INMPLT N NNOT IING OR NSTRUTION. FF:. NOPY /. T??? GU??? T 0. GU. T 0. GU. IRT RIV /..... /. /.... /. T. GU. T. GU. T. GU.0

More information

What are suffix trees?

What are suffix trees? Suffix Trees 1 Wht re suffix trees? Allow lgorithm designers to store very lrge mount of informtion out strings while still keeping within liner spce Allow users to serch for new strings in the originl

More information

Accessing Variables. How can we generate code for x?

Accessing Variables. How can we generate code for x? S-322 Register llocation ccessing Variables How can we generate code for x? a := x + y The variable may be in a register:,r x, The variable may be in a static memory location: ST x,r w work register L

More information

Announcements. CS 188: Artificial Intelligence Fall Recap: Search. Today. Example: Pancake Problem. Example: Pancake Problem

Announcements. CS 188: Artificial Intelligence Fall Recap: Search. Today. Example: Pancake Problem. Example: Pancake Problem Announcements Project : erch It s live! Due 9/. trt erly nd sk questions. It s longer thn most! Need prtner? Come up fter clss or try Pizz ections: cn go to ny, ut hve priority in your own C 88: Artificil

More information