2 Pages

hw1-sol

Course: CS 671, Spring 2008
School: Rutgers
Rating:
 
 
 
 
 

Word Count: 199

Document Preview

671 CS Graduate Seminar Challenge Problem 1 Local Common Subexpression Elimination In lecture 2, we talked about the DAG construction algorithm for local common subexpression elimination. Show the DAG for the following piece of code 1. 2. 3. 4. 5. a z x z b = = = = = y x y b y + + + + + 2 w 2 c 2 a, x, b z + 2 x + w b + c z y DAG edges Use basic algorithm as discussed in lecture 2, and in ASU p. 548. The...

Register Now

Unformatted Document Excerpt

Coursehero >> New Jersey >> Rutgers >> CS 671

Course Hero has millions of student submitted documents similar to the one
below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.

Course Hero has millions of student submitted documents similar to the one below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.
671 CS Graduate Seminar Challenge Problem 1 Local Common Subexpression Elimination In lecture 2, we talked about the DAG construction algorithm for local common subexpression elimination. Show the DAG for the following piece of code 1. 2. 3. 4. 5. a z x z b = = = = = y x y b y + + + + + 2 w 2 c 2 a, x, b z + 2 x + w b + c z y DAG edges Use basic algorithm as discussed in lecture 2, and in ASU p. 548. The problem here is that the naive code generation does not enforce any ordering on the independent expression DAGS. Describe an algorithm that generates correct code from such DAG. a Here is one possible approach: Introduce dependence edges between internal operation nodes. Code generation process uses rPOSTORDER to generate code for the subtrees. Depth-rst search starts at nodes that do not have any incoming dependence edges. b:anti a, x, b + 2 x:anti z + x z:output z + b c y w Dependence edges DAG edges ...

Find millions of documents on Course Hero - Study Guides, Lecture Notes, Reference Materials, Practice Exams and more. Course Hero has millions of course specific materials providing students with the best way to expand their education.

Below is a small sample set of documents:

Rutgers - PHYSICS - 501
GRADUATE QUANTUM MECHANICS: 501 Fall 2001 Solutions to Assignment 3. 1. (a) Since U |ar = |br =s s |aUsr , by writing the transformation as cos /2 sin /2 sin /2 cos /2 (1)(U |+ , U | ) = (|+ , | ) we can read o the matrix elements of U to be [
Texas A&M - ECON - 203
Homework Assignment #3 (Due 10/10, Tuesday)Multiple Choice Questions: (Please use the green scantron to answer this part)1) An observer of the economy notices that over the last nine months the unemployment rate has increased from 5.6 percent to 8.
UNC - ENVR - 133
UNC - BIOL - 422
Name _ First Last(Please Print)PID Number _-_ HOUR EXAM II BIOLOGY 422 FALL, 2007 In the spirit of the honor code, I pledge that I have neither given nor received help on this exam. __ Signature 1_ 2_ 3_ 4_ 5_ 6_ 7_ 8_ 9_ 10 _Use the following l
Rutgers - ECMT - 322
Econometrics220:322Introduction to Econometric Computing with EViews1Dr. Paczkowski1These notes are written for EViews 3.1 Page Eviews.1Version 1.01.0What Is EViews?2EViews provides sophisticated data analysis, regression, and foreca
Rutgers - PSYCHOLOGY - 500
Spring, 2009 Psych 604: Model Testing and Probabilistic Inference The goal of this course is to give you the basic concepts and enough examples of their use to enable you to form testable probabilistic models for your results and determine the relati
Rutgers - PSYCHOLOGY - 300
Spring, 2009Field Work in PsychologyDouglass Developmental Disabilities CenterDates to RememberMarch 2-6 April 2 April 2 April 16Initial FW Eval Feedback Log Due Article Critique Due ExamSandra L. Harris, Ph.D. Professor sharris@rci.Rutge
Rutgers - PSYCHOLOGY - 300
Course: Day and Time: Location: Book:Conditioning and Learning (830:311:03), Spring 2009 T,H, 1:40-3:00 Lucy Stone Hall, Rm A-142 Domjan, M. (2006). The Principles of Learning and Behavior, 5th ed [Rutgers University]. (We are using a custom editio
Rutgers - PSYCHOLOGY - 400
Rutgers The State University Department of Psychology, Faculty of Arts & SciencesCourse Title: Internship & Seminar in Applied, School, & Community Psychology Spring 2009 830:493, 494 Meeting Times: Mon. 5:007:30 p.m. & by arrangement Tillett Hall
Rutgers - MAE - 473
Student BAKES, ALAN M DUGAN, BRENDAN J GOLDEN, ANDREW M HOROWITZ, ERIC J JOSEPH, CHRISTOPHE S LEAHY, IAN T LEYNES GOLD, MICHAEL MCCUSKER, KATHLEEN M NWAOKO, PATRICK U PATEL, VASHISHTH REESBECK, THOMAS T TANG, JONATHAN D WATSON, MICHAELEJournal Date
UNC - COMP - 411
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILLComp 411 Computer Organization Fall 2008 Problem Set #5 Issued Thursday, 10/23/08; Due Thursday, 10/30/08 Homework Information: Some of the problems are probably too time consuming to be done the night
UNC - COMP - 411
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILLComp 411 Computer Organization Fall 2008 Problem Set #2 Issued Thursday, 9/11/08; Due Thursday, 9/18/08Homework Information: Some of the problems are probably too long to be done the night before the
Rutgers - GEN - 127
> [X,Y] = meshgrid(-2:0.1:2); > Z = X.*exp(-(X-Y.^2).^2+Y.^2); > meshc(X,Y,Z),xlabel('x'), ylabel('y'), zlabel('z')0.5z0-0.5 2 1 0 -1 y -2 -2 -1 x 1 0 2
UNC - COMP - 790
Lecture 13: Graph AlgorithmsStudy Chapter 8.1 8.810/7/2008Comp 590/Comp 790-90Fall 20081The Bridge Obsession ProblemFind a tour crossing every bridge just once Leonhard Euler, 1735Bridges of Knigsberg10/7/2008 Comp 590/Comp 790-90 Fal
UNC - COMP - 790
Lecture 4: DNA Restriction MappingStudy Chapter 4.1-4.39/5/2008Comp 590-90/Comp 790-90Fall 20081Recall Restriction Enzymes(from Lecture 2) Restriction enzymes break DNA whenever they encounter specific base sequences They occur reasona
UNC - COMP - 790
COMP 590-90 / 790-90 Problem Set #2due September 25 2008 2PM 1. Problem 4.4 2. Problem 4.11 3. problem 5.2 4. Problem 5.4 5. Problem 5.7 6. We want to obtain the DNA sequence of a human chromosome. Because whole chromosomes are too large to work wit
UNC - COMP - 575
Now Playing:Texture Mapping and BSP Trees15 Step Radiohead from In Rainbows Released October 10, 2007Rick Skarbez, Instructor COMP 575 October 11, 2007Assignment 1 Back Mostly did very well:Note that the null scale factor (that is, the sca
UNC - COMP - 575
Programming Assignment #2 3D Graphics in OpenGL Due Thursday, October 25 by 11:59pm(The grade for this assignment is out of 100 points, but you can obtain up to a maximum of 125 points by doing more optional components. Additional points beyond 100
UNC - COMP - 575
Now Playing:The Light of Mies van der RoheThunderhorse Dethklok from Dethalbum Released September 25, 2007Available online at: http:/www.youtube.com/watch?v=ACbdCrGb ISoBeyond Raytracing: Monte Carlo MethodsAdapted from a slide set created b
UNC - COMP - 575
Representing Geometry in Computer GraphicsRick Skarbez, Instructor COMP 575 September 18, 2007Adam PowersRichard Taylor Information International, Inc. (III), 1981Announcements Programming Assignment 1 is out todayDue next Thursday by 11:59p
Northwestern State University of Louisiana - GEL - 65214
UM353-1Fu cinBlc s nt o ok3.2.78 PID - PID Controller PID i ap o o t n l itg a c nr l ra do eo fv s r p ri a + ne rl o tol n n f ie o e c nr l rtp sta c nb u e o ao ep rlo b ss I o tol y e h t a e s d n n e o p a i. t e u e e tr a fe b c t p o ie
Virginia Tech - AOE - 4004
AOE 4004 Homework #3Assigned: Tuesday, February 24, 2009. Due: Thursday, March 5, 2009 (Place your homework in the box outside my oce by 5 PM.)uVv rxTL 2aTR yFigure 1: An unmanned surface vehicle.Consider the problem of controlling
Texas Tech - ETD - 02262009
GAS EXCHANGE AND WATER USE EFFICIENCY OF GRAIN SORGHUM by SHAOBING PENG, B.S., M.S. A DISSERTATION IN AGRICULTURE Submitted to the Graduate Faculty of Texas Tech University in Partial Fulfillment of the Requirements for the Degree of DOCTOR OF PHILOS
UNC - BIOL - 423
J Mol Med (2001) 79:375381 DOI 10.1007/s001090100223REVIEWAkira SawaMechanisms for neuronal cell death and dysfunction in Huntingtons disease: pathological cross-talk between the nucleus and the mitochondria?Received: 7 August 2000 / Accepted:
Virginia Tech - CS - 5114
IntroductionReductionsNPN P-CompleteNP and Computational IntractabilityT. M. MuraliApril 7, 9, 2008T. M. MuraliApril 7, 9, 2008NP and Computational IntractabilityIntroductionReductionsNPN P-CompleteAlgorithm DesignPatterns
Rutgers - CHEM - 308
_ PRINT NAME 1. Consider the following statements 1. The longest wavelength electronic transition in a ketone is n* 2. The lowest energy *transition in 1,3-butadiene is at shorter wavelength than the lowest energy *transition in 1,4-pentadiene. 3.
UNC - COMP - 411
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILLComp 411 Computer Organization Fall 2007 Problem Set #7 Issued Wednesday, 10/17/07; Due Wednesday, 10/24/07 Homework Information: Some of the problems are probably too time consuming to be done the nigh
UNC - COMP - 114
Program 1 (due Thursday, Jan. 31)This program is an exercise in text processing using traditional programming techniques (as opposed to object-oriented techniques). In other words, while you are encouraged to use classes and objects if you know how,
UNC - BIOCHEM - 134
UNC - STOR - 614
OR 614 Assignment #61. Find the set of pareto-optimal solutions for the following bi-objective LP: min z1 = 3x1 max z2 = 2x1 x1 x1 + 2x2 + x3 + 6x4 + 5x5 + + 3x2 + 4x3 + 14x4 + 10x5 + x2 + x3 + 4x4 + 2x5 + x2 + 3x4 + x5 + x2 + x3 + 2x4 + 3x5 x1 0
Allan Hancock College - LAW - 1950
Rutgers - PHYSICS - 627
Texas A&M - ECON - 410
ECON410-200 Summer II Test 1 Write all your answers on a separate page. Write down your name and UIN on the answer page. Part I: Multiple choice questions (1 point each question, 10 questions) 1. Macroeconomics does not try to answer the question of:
Texas A&M - ECON - 203
ECON203, Section 200 Prof. Paula L. Hernandez-Verme Fall Semester 2007HOMEWORK # 2Due Date: Friday 02/08/08 at the beginning of class Instructions:Answer all questions 1 through 7. Question 8 is only for Extra Credit. Full credit will be giv
Texas Tech - HIST - 5304
HIST 5304-002 Texas Tech University: Fall 2008 http:/courses.ttu.edu/hist5304-hahn/ M 6:00-8:50 p.m. Holden Hall 141Dr. Barbara Hahn Office: Holden Hall 48 Phone: 742-1004 x239 Hours: 10:30-11:30 M&W (or by appt.) barbara.hahn@ttu.eduHISTORICAL M
Texas A&M - CH - 622
Behavioral Ecology at Texas A&M UniversityWFSC 622/120 (local) 720 (distance education)agonline.tamu.edu/wfsc622 Department of Wildlife Fisheries SciencesSEXUAL CONFLICT AND SEXUAL SELECTIONREADING TIPS The fundamental differences between male
Purdue - MA - 161
Texas A&M - CH - 622
Behavioral Ecology at Texas A&M UniversityWFSC 622/120 (local) 720 (distance education)agonline.tamu.edu/wfsc622 Department of Wildlife Fisheries SciencesFIGHTING AND ASSESSMENTREADING Chapter 7 in Krebs & Davies (1993) PARTS 1. Badges of Statu
Virginia Tech - ETD - 07152002
Appendix H Post Processor Tutorial830Recommended System Minimums Due to the size of the program and the amount of computer resources used by the program, the following system minimums are suggested: CPU Processor: 1 GHz RAM: 512 MBSetup and I
Northwestern State University of Louisiana - FSS - 20080109
Census > 2006 Census: Data products > Topic-based tabulations >Detailed Country of Citizenship (203), Single and Multiple Citizenship Responses (3), Immigrant Status (4A) and Sex (3) for the Population of Canada, Provinces, Territories, Census Metr
Northwestern State University of Louisiana - FSS - 20080416
Guide | Search | Querie | HelpSpecialist Health Service 1990-200064 Number of bed- days in psyciatric institutions for children and adolescents, by county of administration. 1990-2000County of administration The whole country stfold Akershus Oslo
Rutgers - PHYSICS - 406
Rutgers - MS - 320
Recitation 4 10/29/2008 Review lectures 17,18,21,22 1. Are you clear with the basic concepts in the residence time lecture? (Lecture 10/15: the outline) 2. Write down the equation for residence time. What does this calculation assume? (Lecture 10/15:
East Los Angeles College - CL - 0809
Part II: NLP Applications: Statistical Machine TranslationStephen Clark1How do Google do it? Nobody in my team is able to read Chinese characters, says Franz Och, who heads Google s machine-translation (MT) eort. Yet, they are producing ever mo
East Los Angeles College - CL - 0708
UNIVERSITY OFCAMBRIDGEComputer LaboratoryComputer Science Tripos Part IIOptimising Compilershttp:/www.cl.cam.ac.uk/Teaching/0708/OptComp/Alan Mycroft am@cl.cam.ac.uk 20072008 (Lent Term)Learning GuideThe course as lectured proceeds fairl
Rutgers - ECE - 451
Parallel ComputersThe Demand for Computational SpeedContinual demand for greater computational speed from a computer system than is currently possible. Areas requiring great computational speed include numerical modeling and simulation of scientic
LSU - EE - 3320
EE3320 Section 2 Veronis Spring 2009H.O. #2 February 6 2009HOMEWORK ASSIGNMENT #1 (due Monday, February 16) 1. Two points charges, +Q and 3Q, are located at points (0,2,0) and (0,1,0), respectively. (a) Find the electric field at the origin (0,0
Haverford - LAT - 101
INTRODUCTION TO LATINCatullus 43Meter: hendecasyllabic [Phalaecean]: xx uu u u xSalve, nec minimo puella nasonec bello pede nec nigris ocellisnec longis digitis nec ore sicconec sane nimis elegante lingua,decoctoris amica Formiani.
Haverford - LAT - 101
INTRODUCTION TO LATINCatullus 85Meter: Elegiac Couplet:- - - - - uu | - uu | - uu | - uu | - uu | - x - - - uu | - uu - | - uu | - uu xOdi et amo. Quare id faciam, fortasse requiris.Nescio, sed fieri sentio et excrucior.
Haverford - LAT - 101
INTRODUCTION TO LATINCatullus 27Meter: hendecasyllabic [Phalaecean]: xx uu u u xMinister vetuli puer Falerni,inger mi calices amariores,ut lex Postumiae iubet magistraeebrioso acino ebriosioris.At vos quo lubet hinc abite, lymphae,
Texas Tech - EPM - 049
Old and Middle English, Spring 2009 ENGL 3302-001, MWF 10:00-10:50 AM ENGL 3302-002, MWF 1:00-1:50 PM Dr. Brian McFadden English/Philosophy Rm. 302 Required Texts Office: 430 English/Philosophy Phone: 742-2500 ext. 241 Email: brian.mcfadden@tt
Northwestern State University of Louisiana - FSS - 20070406
TableAll vital statistics by area 1987 - 2007Live births Deaths Natural Interincrease municipal inmigration InterNet inter- IntraImmigration Emigration Net Total net Population Population Total municipal municipal municipal migration migration inc
Texas Tech - ETD - 02262009
THE ROLE OF THE METAL ION IN THE CATALYTIC CYCLE OF BETA-LACTAMASE II by J. LYNN MYERS. B.S. A DISSERTATION IN CHEMISTRY Submitted to the Graduate Faculty of Texas Tech University in Partial Fulfillment of the Requirements for the Degree of DOCTOR OF
Texas Tech - ETD - 01292009
SUBSTITUENT EFFECTS ON THE TAUTOMERIZATION OF AMINO ACIDS by ERIC TUNG-LAM CHEUNG, B.S. A THESIS IN CHEMISTRY Submitted to the Graduate Faculty of Texas Tech University in Partial Fulfillment of the Requirements for the Degree of MASTER OF SCIENCE Ap
Texas Tech - ETD - 07092007
Isolation and sequence analysis of the propanediol dehydratase genes of Propionibacterium freudenreichii by Asim Bikash Dey, BS A Thesis In Microbiology Submitted to the Graduate Faculty of Texas Tech University in Partial Fulfillment of the Requirem
UNC - ENVR - 251
ENVR 251 AIR POLLUTION CONTROL HOMEWORK PROBLEMS SPRING, 2005 Introduction to the Course 1. Horsepower and Cost Calculate the horsepower requirements, kw requirements, and annual cost for each of the following control devices: a. b. A cyclone that
UNC - ENVR - 251
PRESSURE DROP, POWER, AND COST Pressure Drop Consider flow through a device as shown below. The pressure drop across the device, P, is the difference in static pressures at the outlet and the inlet, P = h1 h2 .h1 Device V1 V2h2The total energy
Rutgers - PHYSICS - 203
Physics 203 Final Exam December 19, 2006 Prof. George HortonYour name sticker with exam code1. The exam will last from 4:00 to 7:00 p.m. Use a #2 pencil to make entries on the answer sheet. Enter the following id information now, before the exa
UNC - BWV - 1080
Die Kunst der FugeJohann Sebastian BACH (1685 - 1750)Contrapunctus XIBWV 108071319Public Domain253136414651566166717782889499 3104109114119124129134139144149154159164169174179
UNC - BWV - 721
Erbarm dich mein, o Herre Gott Have mercy upon me, o Lord Aie piti de moi, Seigneur Dieumanualiter Orgel - Orgue - OrganJohann Sebastian Bach (1685-1750)BWV 721611Creative Commons Attribution-ShareAlike 2.5216Orgel - Orgue - Organ21