CPS 616 W2017 MIDTERM SOLUTIONS 1

Size: px
Start display at page:

Download "CPS 616 W2017 MIDTERM SOLUTIONS 1"

Transcription

1 CPS 616 W2017 MIDTERM SOLUTIONS 1 PART 1 20 MARKS - MULTIPLE CHOICE Instructions Plas ntr your answrs on t bubbl st wit your nam unlss you ar writin tis xam at t Tst Cntr, in wic cas you sould just circl your answr or ac qustion in tis booklt. Us pncil only or bubbl sts.. YOU CAN GUESS. MARKS WILL NOT BE DEDUCTED FOR FALSE ANSWERS. Qustions 1. (2 marks) Is tis rap: A. Dirctd and cyclical B. Dirctd and acyclical C. Undirctd and cyclical D. Undirctd and acyclical 2. (2 marks) Wic on o ts squncs o vrtics is not a topoloical sort?: A. a b c d B. C. a c b d D. Non o t abov (i.. ty ar all topoloical sorts) 3. (2 marks) Wic on o ts squncs o vrtics was nratd rom a BFS (Bradt First Sarc) travrsal o t rap on t lt? Assum tis ar brokn by t alpabtical ordr o t vrtics. A. c d a b B. a b c d C. b a c d D. Non o t abov (i.. non was nratd rom a BFS travrsal) 4. (2 marks) Wic on o ts squncs o vrtics was not nratd rom a DFS (Dpt First Sarc) travrsal o t rap on t lt? Assum tis ar brokn by t alpabtical ordr o t vrtics. A. b c d a B. a b c d C. b a c d D. Non o t abov (i.. ty wr all nratd rom a DFS travrsal)

2 CPS 616 W2017 MIDTERM SOLUTIONS 2 5. (3 marks) Wic is t most dsirabl complxity or an aloritm (i.. wic o ts complxitis provids t most op tat t aloritm will b ast)? A. O(n) B. θ(n) C. Ω(lo n) D. o(n) 6. (3 marks) Wat is t xact cost o tis aloritm as a unction o n: myloops (n) or (i=0; i<=n; i++) or (j=n; j>i, j--) // t basic opration is r A. n(n+1)/2 B. n(n-1)/2 C. (n+1) 2 /2 D. (n+1)(n-1)/2 7. (3 marks) Wic o t tr claims (A, B, C) about t two cod ramnts undrnat is als: // Framnt 1 rsult1 = 0 or i=1 to n do or j=1 to n do or k=1 to n do i i<j rsult1 = rsult1++; // Framnt 2 rsult2 = 0 or i=1 to n do or j=1 to n do i i<j or k=1 to n do rsult2 = rsult2++; A. T valu o rsult1 at t nd o t xcution o ramnt1 is t sam as t valu o rsult2 at t nd o t xcution o ramnt 2. B. Framnts 1 and 2 av t sam xact xcution cost C. Framnts 1 and 2 av t sam asymptotic xcution cost 8. (3 marks) Wic o ts squncs is not a Gray cod: A. 111,101, 100, 000, 001, 011, 010, 110 B. abc, bac, bca, cba, cab, acb C. 00,01,02,12,11,10,20,21,22 D. Non o t abov: ty ar all Gray cods

3 CPS 616 W2017 MIDTERM SOLUTIONS 3 PART 2 SHORT ANSWERS 30 MARKS - PLEASE WRITE YOUR ANSWERS DIRECTLY IN THIS EXAM 9. (30 marks) Hr is a dcras by on aloritm to solv t knapsack problm // Dscription o itms is stord in arrays o n lmnts. Intr wits[n] // wits[i] = wit o itm i Intr valus[n] // valus[i] = vau o itm i // St Knapsack (Intr capacity, Intr n) // capacity is t knapsack capacity // n = numbr o itms to it in t knapsack, n 1 // Tis unction rturns a st containin t most valuabl combination o itms // wic can it in t knapsack St Knapsack (Intr capacity, Intr n) { I n=1 I wits[1]<= capacity rturn {1 Els rturn { // I itm n dos not it, lav it out Intr witn = wits[n] I witn>capacity rturn Knapsack(capacity,n-1) // Bst valu wn itm n is includd in knapsack St includd = {n Knapsack(capacity-witn, n-1) // Bst valu wn itm n is not includd in knapsack St xcludd = Knapsack(capacity,n-1) I Wort(xcludd) >= Wort(includd) Els rturn includd // Intr Wort(StoItms) // StoItms is a st o itms // Tis unction rturns t wort o a st o itms Intr Wort(StoItms) { Intr rsult = 0 For itm in StoItms do Rsult += valus[itm] Rturn rsult For t analysis tat ollows, you will b assumin tat t basic opration is an array rrnc wits[i] or valus[i], i.. you will b askd to count ow many tims an itm is toucd. a) (2 marks) In t cod abov, idntiy clarly t locations o t basic opration (or xampl you can circl tm, or ilit tm, or undrlin tm, tc.) b) (1 mark) Wat is t siz o tis aloritm? (i.. wat variabls will t cost o tis aloritm b a unction o?) n

4 CPS 616 W2017 MIDTERM SOLUTIONS 4 c) (2 marks) Wat is t xact cost o t unction Wort? i.. ow many tims will its basic opration b xcutd wn it is calld wit t paramtr StoItms? Numbr o lmnts in t paramtr StoItms. d) (4 marks) Wat is t bst cas cost o t Knapsack aloritm and in wic situation dos it appn? T bst cas appns wn non o t itms it in t knapsack. As a rsult ac call to Knapsack or n>1 calls itsl rcursivly only onc (on t 7 t lin o Knapsack), and Wort is also nvr calld. T cost is xactly n bcaus wits[i] is calld xactly onc or ac o t n lmnts. ) (3 marks) In wic situation dos t worst cas cost occur? (i.. in wic situation dos tis aloritm do t most work, maximizin bot t work o Knapsack and Wort?) T worst cas occurs wn all t lmnts can it totr in t knapsack. Eac call to t Knapsack unction will mak t two rcursiv calls to crat includd and xcludd. Furtrmor t Wort unction will always b calld wit t maximum possibl numbr o lmnts in StoItms. ) (5 marks) Din rcursivly t worst cas cost Kn o t Knapsack unction or n itms. Rmmbr tat you nd to provid bot t bas cas and t rcurrnc rlation. Also do not ort to includ t cost o t unction Wort in your cost. Justiy your answr (i.. xplain wat ac componnt o t ormula rprsnts) K1 = 1 (wits[1] on lin 3 o Knapsack) Kn = 1 (wits[n] on lin 6 o Knapsack) + Kn-1 (rcursiv call or includd) + Kn-1 (rcursiv call or xcludd) + n-1 (Wort(xcludd) + n (Wort(includd)) = 2Kn-1 + 2n

5 CPS 616 W2017 MIDTERM SOLUTIONS 5 ) (8 marks) Mak a w modiications to tis aloritm to intrat t unctionality o t Wort unction dirctly into t Knapsack unction in an icint way tat minimizs t numbr o rrncs to t valus array. You do not nd to worry about prcis syntax as lon as your psudocod rsmbls actual cod in a rasonabl way. You can us pairs in your psudocod, i.. data structurs o t orm (a,b). You would rr to t irst lmnt a as (a,b)[1] and t scond lmnt b as (a,b)[2] Pair Knapsack (Intr capacity, Intr n) { I n=1 I wits[1]<= capacity rturn ( {1, valus[1]) Els rturn ( {, 0 ) Intr witn = wits[n] I witn>capacity rturn Knapsack(capacity,n-1) St includd = {n Knapsack(capacity-witn, n-1) Pair willinclud = Knapsack(capacity-witn, n-1) Pair includd = ( {n willinclud[1], valus[n] + willinclud[2]) Pair xcludd = Knapsack(capacity,n-1) I Wort(xcludd) >= Wort(includd) I xcludd[2] >= includd[2] Els rturn includd ) (5 marks) Din rcursivly t worst cas cost In o your improvd Knapsack unction or n itms. Rmmbr tat you nd to provid bot t bas cas and t rcurrnc rlation Justiy your answr (i.. xplain wat ac componnt o t ormula rprsnts) I1 = 2 (wits[1] and valus[1] on lin 3 o Knapsack) In = 1 (wits[n] on lin 6 o Knapsack) + In-1 (rcursiv call or includd) + 1 (valus[n] in calculation o includd) + In-1 (rcursiv call or xcludd) = 2In-1 + 2

Outlines: Graphs Part-4. Applications of Depth-First Search. Directed Acyclic Graph (DAG) Generic scheduling problem.

Outlines: Graphs Part-4. Applications of Depth-First Search. Directed Acyclic Graph (DAG) Generic scheduling problem. Outlins: Graps Part-4 Applications o DFS Elmntary Grap Aloritms Topoloical Sort o Dirctd Acyclic Grap Stronly Connctd Componnts PART-4 1 2 Applications o Dpt-First Sarc Topoloical Sort: Usin dpt-irst sarc

More information

Strongly Connected Components

Strongly Connected Components Strongly Connctd Componnts Lt G = (V, E) b a dirctd graph Writ if thr is a path from to in G Writ if and is an quivalnc rlation: implis and implis s quivalnc classs ar calld th strongly connctd componnts

More information

a g f 8 e 11 Also: Minimum degree, maximum degree, vertex of degree d 1 adjacent to vertex of degree d 2,...

a g f 8 e 11 Also: Minimum degree, maximum degree, vertex of degree d 1 adjacent to vertex of degree d 2,... Warmup: Lt b 2 c 3 d 1 12 6 4 5 10 9 7 a 8 11 (i) Vriy tat G is connctd by ivin an xampl o a walk rom vrtx a to ac o t vrtics b. (ii) Wat is t sortst pat rom a to c? to? (iii) Wat is t lonst pat rom a

More information

Exponential Functions

Exponential Functions Eponntial Functions Dinition: An Eponntial Function is an unction tat as t orm a, wr a > 0. T numbr a is calld t bas. Eampl: Lt i.. at intgrs. It is clar wat t unction mans or som valus o. 0 0,,, 8,,.,.

More information

First derivative analysis

First derivative analysis Robrto s Nots on Dirntial Calculus Chaptr 8: Graphical analysis Sction First drivativ analysis What you nd to know alrady: How to us drivativs to idntiy th critical valus o a unction and its trm points

More information

Figure 1: Closed surface, surface with boundary, or not a surface?

Figure 1: Closed surface, surface with boundary, or not a surface? QUESTION 1 (10 marks) Two o th topological spacs shown in Figur 1 ar closd suracs, two ar suracs with boundary, and two ar not suracs. Dtrmin which is which. You ar not rquird to justiy your answr, but,

More information

3-2-1 ANN Architecture

3-2-1 ANN Architecture ARTIFICIAL NEURAL NETWORKS (ANNs) Profssor Tom Fomby Dpartmnt of Economics Soutrn Mtodist Univrsity Marc 008 Artificial Nural Ntworks (raftr ANNs) can b usd for itr prdiction or classification problms.

More information

1 Minimum Cut Problem

1 Minimum Cut Problem CS 6 Lctur 6 Min Cut and argr s Algorithm Scribs: Png Hui How (05), Virginia Dat: May 4, 06 Minimum Cut Problm Today, w introduc th minimum cut problm. This problm has many motivations, on of which coms

More information

Homework #3. 1 x. dx. It therefore follows that a sum of the

Homework #3. 1 x. dx. It therefore follows that a sum of the Danil Cannon CS 62 / Luan March 5, 2009 Homwork # 1. Th natural logarithm is dfind by ln n = n 1 dx. It thrfor follows that a sum of th 1 x sam addnd ovr th sam intrval should b both asymptotically uppr-

More information

dy 1. If fx ( ) is continuous at x = 3, then 13. If y x ) for x 0, then f (g(x)) = g (f (x)) when x = a. ½ b. ½ c. 1 b. 4x a. 3 b. 3 c.

dy 1. If fx ( ) is continuous at x = 3, then 13. If y x ) for x 0, then f (g(x)) = g (f (x)) when x = a. ½ b. ½ c. 1 b. 4x a. 3 b. 3 c. AP CALCULUS BC SUMMER ASSIGNMENT DO NOT SHOW YOUR WORK ON THIS! Complt ts problms during t last two wks of August. SHOW ALL WORK. Know ow to do ALL of ts problms, so do tm wll. Itms markd wit a * dnot

More information

Minimum Spanning Trees

Minimum Spanning Trees Yufi Tao ITEE Univrsity of Qunslan In tis lctur, w will stuy anotr classic prolm: finin a minimum spannin tr of an unirct wit rap. Intrstinly, vn tou t prolm appars ratr iffrnt from SSSP (sinl sourc sortst

More information

Pipe flow friction, small vs. big pipes

Pipe flow friction, small vs. big pipes Friction actor (t/0 t o pip) Friction small vs larg pips J. Chaurtt May 016 It is an intrsting act that riction is highr in small pips than largr pips or th sam vlocity o low and th sam lngth. Friction

More information

Case Study 1 PHA 5127 Fall 2006 Revised 9/19/06

Case Study 1 PHA 5127 Fall 2006 Revised 9/19/06 Cas Study Qustion. A 3 yar old, 5 kg patint was brougt in for surgry and was givn a /kg iv bolus injction of a muscl rlaxant. T plasma concntrations wr masurd post injction and notd in t tabl blow: Tim

More information

Abstract Interpretation: concrete and abstract semantics

Abstract Interpretation: concrete and abstract semantics Abstract Intrprtation: concrt and abstract smantics Concrt smantics W considr a vry tiny languag that manags arithmtic oprations on intgrs valus. Th (concrt) smantics of th languags cab b dfind by th funzcion

More information

NEW APPLICATIONS OF THE ABEL-LIOUVILLE FORMULA

NEW APPLICATIONS OF THE ABEL-LIOUVILLE FORMULA NE APPLICATIONS OF THE ABEL-LIOUVILLE FORMULA Mirca I CÎRNU Ph Dp o Mathmatics III Faculty o Applid Scincs Univrsity Polithnica o Bucharst Cirnumirca @yahoocom Abstract In a rcnt papr [] 5 th indinit intgrals

More information

Searching Linked Lists. Perfect Skip List. Building a Skip List. Skip List Analysis (1) Assume the list is sorted, but is stored in a linked list.

Searching Linked Lists. Perfect Skip List. Building a Skip List. Skip List Analysis (1) Assume the list is sorted, but is stored in a linked list. 3 3 4 8 6 3 3 4 8 6 3 3 4 8 6 () (d) 3 Sarching Linkd Lists Sarching Linkd Lists Sarching Linkd Lists ssum th list is sortd, but is stord in a linkd list. an w us binary sarch? omparisons? Work? What if

More information

UNIT #6 EXPONENTS, EXPONENTS, AND MORE EXPONENTS REVIEW QUESTIONS

UNIT #6 EXPONENTS, EXPONENTS, AND MORE EXPONENTS REVIEW QUESTIONS Answer Key Name: Date: UNIT # EXPONENTS, EXPONENTS, AND MORE EXPONENTS REVIEW QUESTIONS Part I Questions. Te epression 0 can be simpliied to () () 0 0. Wic o te ollowing is equivalent to () () 8 8? 8.

More information

Section 11.6: Directional Derivatives and the Gradient Vector

Section 11.6: Directional Derivatives and the Gradient Vector Sction.6: Dirctional Drivativs and th Gradint Vctor Practic HW rom Stwart Ttbook not to hand in p. 778 # -4 p. 799 # 4-5 7 9 9 35 37 odd Th Dirctional Drivativ Rcall that a b Slop o th tangnt lin to th

More information

From Elimination to Belief Propagation

From Elimination to Belief Propagation School of omputr Scinc Th lif Propagation (Sum-Product lgorithm Probabilistic Graphical Modls (10-708 Lctur 5, Sp 31, 2007 Rcptor Kinas Rcptor Kinas Kinas X 5 ric Xing Gn G T X 6 X 7 Gn H X 8 Rading: J-hap

More information

priority queue ADT heaps 1

priority queue ADT heaps 1 COMP 250 Lctur 23 priority quu ADT haps 1 Nov. 1/2, 2017 1 Priority Quu Li a quu, but now w hav a mor gnral dinition o which lmnt to rmov nxt, namly th on with highst priority..g. hospital mrgncy room

More information

ECE602 Exam 1 April 5, You must show ALL of your work for full credit.

ECE602 Exam 1 April 5, You must show ALL of your work for full credit. ECE62 Exam April 5, 27 Nam: Solution Scor: / This xam is closd-book. You must show ALL of your work for full crdit. Plas rad th qustions carfully. Plas chck your answrs carfully. Calculators may NOT b

More information

Physics 43 HW #9 Chapter 40 Key

Physics 43 HW #9 Chapter 40 Key Pysics 43 HW #9 Captr 4 Ky Captr 4 1 Aftr many ours of dilignt rsarc, you obtain t following data on t potolctric ffct for a crtain matrial: Wavlngt of Ligt (nm) Stopping Potntial (V) 36 3 4 14 31 a) Plot

More information

Analysis of Algorithms - Elementary graphs algorithms -

Analysis of Algorithms - Elementary graphs algorithms - Analysis of Algorithms - Elmntary graphs algorithms - Anras Ermahl MRTC (Mälaralns Ral-Tim Rsarch Cntr) anras.rmahl@mh.s Autumn 004 Graphs Graphs ar important mathmatical ntitis in computr scinc an nginring

More information

Analysis of Algorithms - Elementary graphs algorithms -

Analysis of Algorithms - Elementary graphs algorithms - Analysis of Algorithms - Elmntary graphs algorithms - Anras Ermahl MRTC (Mälaralns Ral-Tim Rsach Cntr) anras.rmahl@mh.s Autumn 00 Graphs Graphs ar important mathmatical ntitis in computr scinc an nginring

More information

ECE 650 1/8. Homework Set 4 - Solutions

ECE 650 1/8. Homework Set 4 - Solutions ECE 65 /8 Homwork St - Solutions. (Stark & Woods #.) X: zro-man, C X Find G such that Y = GX will b lt. whit. (Will us: G = -/ E T ) Finding -valus for CX: dt = (-) (-) = Finding corrsponding -vctors for

More information

MA 262, Spring 2018, Final exam Version 01 (Green)

MA 262, Spring 2018, Final exam Version 01 (Green) MA 262, Spring 218, Final xam Vrsion 1 (Grn) INSTRUCTIONS 1. Switch off your phon upon ntring th xam room. 2. Do not opn th xam booklt until you ar instructd to do so. 3. Bfor you opn th booklt, fill in

More information

Self-Adjointness and Its Relationship to Quantum Mechanics. Ronald I. Frank 2016

Self-Adjointness and Its Relationship to Quantum Mechanics. Ronald I. Frank 2016 Ronald I. Frank 06 Adjoint https://n.wikipdia.org/wiki/adjoint In gnral thr is an oprator and a procss that dfin its adjoint *. It is thn slf-adjoint if *. Innr product spac https://n.wikipdia.org/wiki/innr_product_spac

More information

Maximum Matching Width: new characterizations and a fast algorithm for dominating set

Maximum Matching Width: new characterizations and a fast algorithm for dominating set Maxmum Matcn Wdt: nw caractrzatons and a ast alortm or domnatn st 정지수 (KAIST) jont work wt Sv Hortmo Sætr and Jan Arn Tll (Unvrsty o Brn) 1st Koran Worksop on Grap Tory 2015.8.27. KAIST Grap wdt paramtrs

More information

Aim To manage files and directories using Linux commands. 1. file Examines the type of the given file or directory

Aim To manage files and directories using Linux commands. 1. file Examines the type of the given file or directory m E x. N o. 3 F I L E M A N A G E M E N T Aim To manag ils and dirctoris using Linux commands. I. F i l M a n a g m n t 1. il Examins th typ o th givn il or dirctory i l i l n a m > ( o r ) < d i r c t

More information

6. Negative Feedback in Single- Transistor Circuits

6. Negative Feedback in Single- Transistor Circuits Lctur 8: Intrductin t lctrnic analg circuit 36--366 6. Ngativ Fdback in Singl- Tranitr ircuit ugn Paprn, 2008 Our aim i t tudy t ffct f ngativ fdback n t mall-ignal gain and t mall-ignal input and utput

More information

Atomic Physics. Final Mon. May 12, 12:25-2:25, Ingraham B10 Get prepared for the Final!

Atomic Physics. Final Mon. May 12, 12:25-2:25, Ingraham B10 Get prepared for the Final! # SCORES 50 40 30 0 10 MTE 3 Rsults P08 Exam 3 0 30 40 50 60 70 80 90 100 SCORE Avrag 79.75/100 std 1.30/100 A 19.9% AB 0.8% B 6.3% BC 17.4% C 13.1% D.1% F 0.4% Final Mon. Ma 1, 1:5-:5, Ingraam B10 Gt

More information

DIFFERENTIAL EQUATION

DIFFERENTIAL EQUATION MD DIFFERENTIAL EQUATION Sllabus : Ordinar diffrntial quations, thir ordr and dgr. Formation of diffrntial quations. Solution of diffrntial quations b th mthod of sparation of variabls, solution of homognous

More information

AP Calculus Multiple-Choice Question Collection

AP Calculus Multiple-Choice Question Collection AP Calculus Multipl-Coic Qustion Collction 985 998 . f is a continuous function dfind for all ral numbrs and if t maimum valu of f () is 5 and t minimum valu of f () is 7, tn wic of t following must b

More information

Chapter Taylor Theorem Revisited

Chapter Taylor Theorem Revisited Captr 0.07 Taylor Torm Rvisitd Atr radig tis captr, you sould b abl to. udrstad t basics o Taylor s torm,. writ trascdtal ad trigoomtric uctios as Taylor s polyomial,. us Taylor s torm to id t valus o

More information

Association (Part II)

Association (Part II) Association (Part II) nanopoulos@ismll.d Outlin Improving Apriori (FP Growth, ECLAT) Qustioning confidnc masur Qustioning support masur 2 1 FP growth Algorithm Us a comprssd rprsntation of th dtb databas

More information

AP Calculus BC AP Exam Problems Chapters 1 3

AP Calculus BC AP Exam Problems Chapters 1 3 AP Eam Problms Captrs Prcalculus Rviw. If f is a continuous function dfind for all ral numbrs and if t maimum valu of f() is 5 and t minimum valu of f() is 7, tn wic of t following must b tru? I. T maimum

More information

Section 6.1. Question: 2. Let H be a subgroup of a group G. Then H operates on G by left multiplication. Describe the orbits for this operation.

Section 6.1. Question: 2. Let H be a subgroup of a group G. Then H operates on G by left multiplication. Describe the orbits for this operation. MAT 444 H Barclo Spring 004 Homwork 6 Solutions Sction 6 Lt H b a subgroup of a group G Thn H oprats on G by lft multiplication Dscrib th orbits for this opration Th orbits of G ar th right costs of H

More information

INTERSECTION THEORY CLASS 17

INTERSECTION THEORY CLASS 17 INTERSECTION THEORY CLASS 17 RAVI VAKIL CONTENTS 1. Were we are 1 1.1. Reined Gysin omomorpisms i! 2 1.2. Excess intersection ormula 4 2. Local complete intersection morpisms 6 Were we re oin, by popular

More information

2.8 The Derivative as a Function

2.8 The Derivative as a Function .8 Te Derivative as a Function Typically, we can find te derivative of a function f at many points of its domain: Definition. Suppose tat f is a function wic is differentiable at every point of an open

More information

PHA 5128 Answer CASE STUDY 3 Question #1: Model

PHA 5128 Answer CASE STUDY 3 Question #1: Model PHA 5128 Answr CASE STUDY 3 Spring 2008 Qustion #1: Aminoglycosids hav a triphasic disposition, but tobramycin concntration-tim profil hr is dscribd via a 2-compartmnt modl sinc th alpha phas could not

More information

COHORT MBA. Exponential function. MATH review (part2) by Lucian Mitroiu. The LOG and EXP functions. Properties: e e. lim.

COHORT MBA. Exponential function. MATH review (part2) by Lucian Mitroiu. The LOG and EXP functions. Properties: e e. lim. MTH rviw part b Lucian Mitroiu Th LOG and EXP functions Th ponntial function p : R, dfind as Proprtis: lim > lim p Eponntial function Y 8 6 - -8-6 - - X Th natural logarithm function ln in US- log: function

More information

Precise Interprocedural Chopping

Precise Interprocedural Chopping Prcis Intrprocdural Chopping Thomas Rps and Gnviv Rosay Univrsity of Wisconsin Abstract Th notion of a program slic, originally introducd by Mark Wisr, is a fundamntal opration for addrssing many softwar-nginring

More information

16.unified Introduction to Computers and Programming. SOLUTIONS to Examination 4/30/04 9:05am - 10:00am

16.unified Introduction to Computers and Programming. SOLUTIONS to Examination 4/30/04 9:05am - 10:00am 16.unii Introution to Computrs n Prormmin SOLUTIONS to Exmintion /30/0 9:05m - 10:00m Pro. I. Kristin Lunqvist Sprin 00 Grin Stion: Qustion 1 (5) Qustion (15) Qustion 3 (10) Qustion (35) Qustion 5 (10)

More information

Supplementary Materials

Supplementary Materials 6 Supplmntary Matrials APPENDIX A PHYSICAL INTERPRETATION OF FUEL-RATE-SPEED FUNCTION A truck running on a road with grad/slop θ positiv if moving up and ngativ if moving down facs thr rsistancs: arodynamic

More information

Problem Set #2 Due: Friday April 20, 2018 at 5 PM.

Problem Set #2 Due: Friday April 20, 2018 at 5 PM. 1 EE102B Spring 2018 Signal Procssing and Linar Systms II Goldsmith Problm St #2 Du: Friday April 20, 2018 at 5 PM. 1. Non-idal sampling and rcovry of idal sampls by discrt-tim filtring 30 pts) Considr

More information

MAT 1800 FINAL EXAM HOMEWORK

MAT 1800 FINAL EXAM HOMEWORK MAT 800 FINAL EXAM HOMEWORK Read te directions to eac problem careully ALL WORK MUST BE SHOWN DO NOT USE A CALCULATOR Problems come rom old inal eams (SS4, W4, F, SS, W) Solving Equations: Let 5 Find all

More information

Direct Approach for Discrete Systems One-Dimensional Elements

Direct Approach for Discrete Systems One-Dimensional Elements CONTINUUM & FINITE ELEMENT METHOD Dirct Approach or Discrt Systms On-Dimnsional Elmnts Pro. Song Jin Par Mchanical Enginring, POSTECH Dirct Approach or Discrt Systms Dirct approach has th ollowing aturs:

More information

Examples and applications on SSSP and MST

Examples and applications on SSSP and MST Exampls an applications on SSSP an MST Dan (Doris) H & Junhao Gan ITEE Univrsity of Qunslan COMP3506/7505, Uni of Qunslan Exampls an applications on SSSP an MST Dijkstra s Algorithm Th algorithm solvs

More information

4 x 4, and. where x is Town Square

4 x 4, and. where x is Town Square Accumulation and Population Dnsity E. A city locatd along a straight highway has a population whos dnsity can b approimatd by th function p 5 4 th distanc from th town squar, masurd in mils, whr 4 4, and

More information

Alpha and beta decay equation practice

Alpha and beta decay equation practice Alpha and bta dcay quation practic Introduction Alpha and bta particls may b rprsntd in quations in svral diffrnt ways. Diffrnt xam boards hav thir own prfrnc. For xampl: Alpha Bta α β alpha bta Dspit

More information

Week 3: Connected Subgraphs

Week 3: Connected Subgraphs Wk 3: Connctd Subgraphs Sptmbr 19, 2016 1 Connctd Graphs Path, Distanc: A path from a vrtx x to a vrtx y in a graph G is rfrrd to an xy-path. Lt X, Y V (G). An (X, Y )-path is an xy-path with x X and y

More information

We name Functions f (x) or g(x) etc.

We name Functions f (x) or g(x) etc. Section 2 1B: Function Notation Bot of te equations y 2x +1 and y 3x 2 are functions. It is common to ave two or more functions in terms of x in te same problem. If I ask you wat is te value for y if x

More information

Least Favorable Distributions to Facilitate the Design of Detection Systems with Sensors at Deterministic Locations

Least Favorable Distributions to Facilitate the Design of Detection Systems with Sensors at Deterministic Locations Last Favorabl Distributions to Facilitat th Dsign o Dtction Systms with Snsors at Dtrministic Locations Bndito J. B. Fonsca Jr. Sptmbr 204 2 Motivation Rgion o intrst (city, park, stadium 3 Motivation

More information

Midterm #1B. x 8 < < x 8 < 11 3 < x < x > x < 5 or 3 2x > 5 2x < 8 2x > 2

Midterm #1B. x 8 < < x 8 < 11 3 < x < x > x < 5 or 3 2x > 5 2x < 8 2x > 2 Mat 30 College Algebra Februar 2, 2016 Midterm #1B Name: Answer Ke David Arnold Instructions. ( points) For eac o te ollowing questions, select te best answer and darken te corresponding circle on our

More information

MEMORIAL UNIVERSITY OF NEWFOUNDLAND

MEMORIAL UNIVERSITY OF NEWFOUNDLAND MEMORIAL UNIVERSITY OF NEWFOUNDLAND DEPARTMENT OF MATHEMATICS AND STATISTICS Midtrm Examination Statistics 2500 001 Wintr 2003 Nam: Studnt No: St by Dr. H. Wang OFFICE USE ONLY Mark: Instructions: 1. Plas

More information

Function Spaces. a x 3. (Letting x = 1 =)) a(0) + b + c (1) = 0. Row reducing the matrix. b 1. e 4 3. e 9. >: (x = 1 =)) a(0) + b + c (1) = 0

Function Spaces. a x 3. (Letting x = 1 =)) a(0) + b + c (1) = 0. Row reducing the matrix. b 1. e 4 3. e 9. >: (x = 1 =)) a(0) + b + c (1) = 0 unction Spacs Prrquisit: Sction 4.7, Coordinatization n this sction, w apply th tchniqus of Chaptr 4 to vctor spacs whos lmnts ar functions. Th vctor spacs P n and P ar familiar xampls of such spacs. Othr

More information

CS 103 BFS Alorithm. Mark Redekopp

CS 103 BFS Alorithm. Mark Redekopp CS 3 BFS Aloritm Mrk Rkopp Brt-First Sr (BFS) HIGHLIGHTED ALGORITHM 3 Pt Plnnin W'v sn BFS in t ontxt o inin t sortst pt trou mz? S?? 4 Pt Plnnin W xplor t 4 niors s on irtion 3 3 3 S 3 3 3 3 3 F I you

More information

10. EXTENDING TRACTABILITY

10. EXTENDING TRACTABILITY Coping with NP-compltnss 0. EXTENDING TRACTABILITY ining small vrtx covrs solving NP-har problms on trs circular arc covrings vrtx covr in bipartit graphs Q. Suppos I n to solv an NP-complt problm. What

More information

Propositional Logic. Combinatorial Problem Solving (CPS) Albert Oliveras Enric Rodríguez-Carbonell. May 17, 2018

Propositional Logic. Combinatorial Problem Solving (CPS) Albert Oliveras Enric Rodríguez-Carbonell. May 17, 2018 Propositional Logic Combinatorial Problm Solving (CPS) Albrt Olivras Enric Rodríguz-Carbonll May 17, 2018 Ovrviw of th sssion Dfinition of Propositional Logic Gnral Concpts in Logic Rduction to SAT CNFs

More information

Linear Non-Gaussian Structural Equation Models

Linear Non-Gaussian Structural Equation Models IMPS 8, Durham, NH Linar Non-Gaussian Structural Equation Modls Shohi Shimizu, Patrik Hoyr and Aapo Hyvarinn Osaka Univrsity, Japan Univrsity of Hlsinki, Finland Abstract Linar Structural Equation Modling

More information

CS 6353 Compiler Construction, Homework #1. 1. Write regular expressions for the following informally described languages:

CS 6353 Compiler Construction, Homework #1. 1. Write regular expressions for the following informally described languages: CS 6353 Compilr Construction, Homwork #1 1. Writ rgular xprssions for th following informally dscribd languags: a. All strings of 0 s and 1 s with th substring 01*1. Answr: (0 1)*01*1(0 1)* b. All strings

More information

General Notes About 2007 AP Physics Scoring Guidelines

General Notes About 2007 AP Physics Scoring Guidelines AP PHYSICS C: ELECTRICITY AND MAGNETISM 2007 SCORING GUIDELINES Gnral Nots About 2007 AP Physics Scoring Guidlins 1. Th solutions contain th most common mthod of solving th fr-rspons qustions and th allocation

More information

Unit 6: Solving Exponential Equations and More

Unit 6: Solving Exponential Equations and More Habrman MTH 111 Sction II: Eonntial and Logarithmic Functions Unit 6: Solving Eonntial Equations and Mor EXAMPLE: Solv th quation 10 100 for. Obtain an act solution. This quation is so asy to solv that

More information

ECE 2210 / 00 Phasor Examples

ECE 2210 / 00 Phasor Examples EE 0 / 00 Phasor Exampls. Add th sinusoidal voltags v ( t ) 4.5. cos( t 30. and v ( t ) 3.. cos( t 5. v ( t) using phasor notation, draw a phasor diagram of th thr phasors, thn convrt back to tim domain

More information

That is, we start with a general matrix: And end with a simpler matrix:

That is, we start with a general matrix: And end with a simpler matrix: DIAGON ALIZATION OF THE STR ESS TEN SOR INTRO DUCTIO N By th us of Cauchy s thorm w ar abl to rduc th numbr of strss componnts in th strss tnsor to only nin valus. An additional simplification of th strss

More information

Source code. where each α ij is a terminal or nonterminal symbol. We say that. α 1 α m 1 Bα m+1 α n α 1 α m 1 β 1 β p α m+1 α n

Source code. where each α ij is a terminal or nonterminal symbol. We say that. α 1 α m 1 Bα m+1 α n α 1 α m 1 β 1 β p α m+1 α n Adminitrivia Lctur : Paring If you do not hav a group, pla pot a rqut on Piazzza ( th Form projct tam... itm. B ur to updat your pot if you find on. W will aign orphan to group randomly in a fw day. Programming

More information

Lecture 4: Parsing. Administrivia

Lecture 4: Parsing. Administrivia Adminitrivia Lctur 4: Paring If you do not hav a group, pla pot a rqut on Piazzza ( th Form projct tam... itm. B ur to updat your pot if you find on. W will aign orphan to group randomly in a fw day. Programming

More information

1. Questions (a) through (e) refer to the graph of the function f given below. (A) 0 (B) 1 (C) 2 (D) 4 (E) does not exist

1. Questions (a) through (e) refer to the graph of the function f given below. (A) 0 (B) 1 (C) 2 (D) 4 (E) does not exist Mat 1120 Calculus Test 2. October 18, 2001 Your name Te multiple coice problems count 4 points eac. In te multiple coice section, circle te correct coice (or coices). You must sow your work on te oter

More information

Mid Year Examination F.4 Mathematics Module 1 (Calculus & Statistics) Suggested Solutions

Mid Year Examination F.4 Mathematics Module 1 (Calculus & Statistics) Suggested Solutions Mid Ya Eamination 3 F. Matmatics Modul (Calculus & Statistics) Suggstd Solutions Ma pp-: 3 maks - Ma pp- fo ac qustion: mak. - Sam typ of pp- would not b countd twic fom wol pap. - In any cas, no pp maks

More information

Need to understand interaction of macroscopic measures

Need to understand interaction of macroscopic measures CE 322 Transportation Enginring Dr. Ahmd Abdl-Rahim, h. D.,.E. Nd to undrstand intraction o macroscopic masurs Spd vs Dnsity Flow vs Dnsity Spd vs Flow Equation 5.14 hlps gnraliz Thr ar svral dirnt orms

More information

Week 5: Quicksort, Lower bound, Greedy

Week 5: Quicksort, Lower bound, Greedy Week 5: Quicksort, Lower bound, Greedy Agenda: Quicksort: Average case Lower bound for sorting Greedy method 1 Week 5: Quicksort Recall Quicksort: The ideas: Pick one key Compare to others: partition into

More information

Massachusetts Institute of Technology Department of Mechanical Engineering

Massachusetts Institute of Technology Department of Mechanical Engineering Massachustts Institut of Tchnolog Dpartmnt of Mchanical Enginring. Introduction to Robotics Mid-Trm Eamination Novmbr, 005 :0 pm 4:0 pm Clos-Book. Two shts of nots ar allowd. Show how ou arrivd at our

More information

4. The slope of the line 2x 7y = 8 is (a) 2/7 (b) 7/2 (c) 2 (d) 2/7 (e) None of these.

4. The slope of the line 2x 7y = 8 is (a) 2/7 (b) 7/2 (c) 2 (d) 2/7 (e) None of these. Mat 11. Test Form N Fall 016 Name. Instructions. Te first eleven problems are wort points eac. Te last six problems are wort 5 points eac. For te last six problems, you must use relevant metods of algebra

More information

Numerical Differentiation

Numerical Differentiation Numerical Differentiation Finite Difference Formulas for te first derivative (Using Taylor Expansion tecnique) (section 8.3.) Suppose tat f() = g() is a function of te variable, and tat as 0 te function

More information

The Frequency Response of a Quarter-Wave Matching Network

The Frequency Response of a Quarter-Wave Matching Network 4/1/29 Th Frquncy Rsons o a Quartr 1/9 Th Frquncy Rsons o a Quartr-Wav Matchg Ntwork Q: You hav onc aga rovidd us with conusg and rhas uslss ormation. Th quartr-wav matchg ntwork has an xact SFG o: a Τ

More information

Honors Calculus Midterm Review Packet

Honors Calculus Midterm Review Packet Name Date Period Honors Calculus Midterm Review Packet TOPICS THAT WILL APPEAR ON THE EXAM Capter Capter Capter (Sections. to.6) STRUCTURE OF THE EXAM Part No Calculators Miture o multiple-coice, matcing,

More information

This test is for two independent Populations. The test is sometimes called the Mann-Whitney U test or the Rank Sum Wilcoxon. They are equivalent.

This test is for two independent Populations. The test is sometimes called the Mann-Whitney U test or the Rank Sum Wilcoxon. They are equivalent. wo indpndnt Sampls his tst is for two indpndnt Populations. h tst is somtims calld th Mann-Whitny U tst or th Rank Sum Wilcoxon. hy ar quivalnt. h main assumption is that th two sampls ar indpndnt and

More information

EXST Regression Techniques Page 1

EXST Regression Techniques Page 1 EXST704 - Rgrssion Tchniqus Pag 1 Masurmnt rrors in X W hav assumd that all variation is in Y. Masurmnt rror in this variabl will not ffct th rsults, as long as thy ar uncorrlatd and unbiasd, sinc thy

More information

Problem Set 6 Solutions

Problem Set 6 Solutions 6.04/18.06J Mathmatics for Computr Scinc March 15, 005 Srini Dvadas and Eric Lhman Problm St 6 Solutions Du: Monday, March 8 at 9 PM in Room 3-044 Problm 1. Sammy th Shark is a financial srvic providr

More information

Middle East Technical University Department of Mechanical Engineering ME 413 Introduction to Finite Element Analysis

Middle East Technical University Department of Mechanical Engineering ME 413 Introduction to Finite Element Analysis Middl East Tchnical Univrsity Dpartmnt of Mchanical Enginring ME Introduction to Finit Elmnt Analysis Chaptr 5 Two-Dimnsional Formulation Ths nots ar prpard by Dr. Cünyt Srt http://www.m.mtu.du.tr/popl/cunyt

More information

1 (10) 2 (10) 3 (10) 4 (10) 5 (10) 6 (10) Total (60)

1 (10) 2 (10) 3 (10) 4 (10) 5 (10) 6 (10) Total (60) First Name: OSU Number: Last Name: Signature: OKLAHOMA STATE UNIVERSITY Department of Matematics MATH 2144 (Calculus I) Instructor: Dr. Matias Sculze MIDTERM 1 September 17, 2008 Duration: 50 minutes No

More information

cycle that does not cross any edges (including its own), then it has at least

cycle that does not cross any edges (including its own), then it has at least W prov th following thorm: Thorm If a K n is drawn in th plan in such a way that it has a hamiltonian cycl that dos not cross any dgs (including its own, thn it has at last n ( 4 48 π + O(n crossings Th

More information

EEO 401 Digital Signal Processing Prof. Mark Fowler

EEO 401 Digital Signal Processing Prof. Mark Fowler EEO 401 Digital Signal Procssing Prof. Mark Fowlr Dtails of th ot St #19 Rading Assignmnt: Sct. 7.1.2, 7.1.3, & 7.2 of Proakis & Manolakis Dfinition of th So Givn signal data points x[n] for n = 0,, -1

More information

Basic Logic Review. Rules. Lecture Roadmap Combinational Logic. Textbook References. Basic Logic Gates (2-input versions)

Basic Logic Review. Rules. Lecture Roadmap Combinational Logic. Textbook References. Basic Logic Gates (2-input versions) Lctur Roadmap ombinational Logic EE 55 Digital Systm Dsign with VHDL Lctur Digital Logic Rrshr Part ombinational Logic Building Blocks Basic Logic Rviw Basic Gats D Morgan s Law ombinational Logic Building

More information

Conductance from Transmission Probability

Conductance from Transmission Probability Conductance rom Transmission Probability Kelly Ceung Department o Pysics & Astronomy University o Britis Columbia Vancouver, BC. Canada, V6T1Z1 (Dated: November 5, 005). ntroduction For large conductors,

More information

Basic Polyhedral theory

Basic Polyhedral theory Basic Polyhdral thory Th st P = { A b} is calld a polyhdron. Lmma 1. Eithr th systm A = b, b 0, 0 has a solution or thr is a vctorπ such that π A 0, πb < 0 Thr cass, if solution in top row dos not ist

More information

Quasi-Classical States of the Simple Harmonic Oscillator

Quasi-Classical States of the Simple Harmonic Oscillator Quasi-Classical Stats of th Simpl Harmonic Oscillator (Draft Vrsion) Introduction: Why Look for Eignstats of th Annihilation Oprator? Excpt for th ground stat, th corrspondnc btwn th quantum nrgy ignstats

More information

Gradebook & Midterm & Office Hours

Gradebook & Midterm & Office Hours Your commnts So what do w do whn on of th r's is 0 in th quation GmM(1/r-1/r)? Do w nd to driv all of ths potntial nrgy formulas? I don't undrstand springs This was th first lctur I actually larnd somthing

More information

(a) At what number x = a does f have a removable discontinuity? What value f(a) should be assigned to f at x = a in order to make f continuous at a?

(a) At what number x = a does f have a removable discontinuity? What value f(a) should be assigned to f at x = a in order to make f continuous at a? Solutions to Test 1 Fall 016 1pt 1. Te grap of a function f(x) is sown at rigt below. Part I. State te value of eac limit. If a limit is infinite, state weter it is or. If a limit does not exist (but is

More information

University of Washington Department of Chemistry Chemistry 453 Winter Quarter 2014 Lecture 20: Transition State Theory. ERD: 25.14

University of Washington Department of Chemistry Chemistry 453 Winter Quarter 2014 Lecture 20: Transition State Theory. ERD: 25.14 Univrsity of Wasinton Dpartmnt of Cmistry Cmistry 453 Wintr Quartr 04 Lctur 0: Transition Stat Tory. ERD: 5.4. Transition Stat Tory Transition Stat Tory (TST) or ctivatd Complx Tory (CT) is a raction mcanism

More information

Dealing with quantitative data and problem solving life is a story problem! Attacking Quantitative Problems

Dealing with quantitative data and problem solving life is a story problem! Attacking Quantitative Problems Daling with quantitati data and problm soling lif is a story problm! A larg portion of scinc inols quantitati data that has both alu and units. Units can sa your butt! Nd handl on mtric prfixs Dimnsional

More information

A Propagating Wave Packet Group Velocity Dispersion

A Propagating Wave Packet Group Velocity Dispersion Lctur 8 Phys 375 A Propagating Wav Packt Group Vlocity Disprsion Ovrviw and Motivation: In th last lctur w lookd at a localizd solution t) to th 1D fr-particl Schrödingr quation (SE) that corrsponds to

More information

y=h B 2h Z y=-h ISSN (Print) Dr. Anand Swrup Sharma

y=h B 2h Z y=-h ISSN (Print) Dr. Anand Swrup Sharma Scolars Journal of Enginring and Tcnology (SJET) Sc. J. Eng. Tc., 5; 3(A):4-54 Scolars Acadmic and Scintific ublisr (An Intrnational ublisr for Acadmic and Scintific Rsourcs) www.saspublisr.com ISSN 3-435X

More information

The Equitable Dominating Graph

The Equitable Dominating Graph Intrnational Journal of Enginring Rsarch and Tchnology. ISSN 0974-3154 Volum 8, Numbr 1 (015), pp. 35-4 Intrnational Rsarch Publication Hous http://www.irphous.com Th Equitabl Dominating Graph P.N. Vinay

More information

VSMN30 FINITA ELEMENTMETODEN - DUGGA

VSMN30 FINITA ELEMENTMETODEN - DUGGA VSMN3 FINITA ELEMENTMETODEN - DUGGA 1-11-6 kl. 8.-1. Maximum points: 4, Rquird points to pass: Assistanc: CALFEM manual and calculator Problm 1 ( 8p ) 8 7 6 5 y 4 1. m x 1 3 1. m Th isotropic two-dimnsional

More information

Higher order derivatives

Higher order derivatives Robrto s Nots on Diffrntial Calculus Chaptr 4: Basic diffrntiation ruls Sction 7 Highr ordr drivativs What you nd to know alrady: Basic diffrntiation ruls. What you can larn hr: How to rpat th procss of

More information

Exam 1 Review Solutions

Exam 1 Review Solutions Exam Review Solutions Please also review te old quizzes, and be sure tat you understand te omework problems. General notes: () Always give an algebraic reason for your answer (graps are not sufficient),

More information

Roadmap. XML Indexing. DataGuide example. DataGuides. Strong DataGuides. Multiple DataGuides for same data. CPS Topics in Database Systems

Roadmap. XML Indexing. DataGuide example. DataGuides. Strong DataGuides. Multiple DataGuides for same data. CPS Topics in Database Systems Roadmap XML Indxing CPS 296.1 Topics in Databas Systms Indx fabric Coopr t al. A Fast Indx for Smistructurd Data. VLDB, 2001 DataGuid Goldman and Widom. DataGuids: Enabling Qury Formulation and Optimization

More information

Engineering 323 Beautiful HW #13 Page 1 of 6 Brown Problem 5-12

Engineering 323 Beautiful HW #13 Page 1 of 6 Brown Problem 5-12 Enginring Bautiful HW #1 Pag 1 of 6 5.1 Two componnts of a minicomputr hav th following joint pdf for thir usful liftims X and Y: = x(1+ x and y othrwis a. What is th probability that th liftim X of th

More information

1 Quick Sort LECTURE 7. OHSU/OGI (Winter 2009) ANALYSIS AND DESIGN OF ALGORITHMS

1 Quick Sort LECTURE 7. OHSU/OGI (Winter 2009) ANALYSIS AND DESIGN OF ALGORITHMS OHSU/OGI (Winter 2009) CS532 ANALYSIS AND DESIGN OF ALGORITHMS LECTURE 7 1 Quick Sort QuickSort 1 is a classic example of divide and conquer. The hard work is to rearrange the elements of the array A[1..n]

More information