CS 541 Algorithms and Programs. Exam 1 Solutions

Size: px
Start display at page:

Download "CS 541 Algorithms and Programs. Exam 1 Solutions"

Transcription

1 CS 5 Algortms and Programs Exam Solutons Jonatan Turner 9/5/0 Be neat and concse, ut complete.. (5 ponts) An ncomplete nstance of te wgrap data structure s sown elow. Fll n te mssng felds for te adjacency lsts. Insert te edges nto te adjacency lsts so tat te edge numers appear n ncreasng order n eac lst. frstedge a c d e f edges l lnext wt rnext r a 6 e d a c 5 a 8 6 c c 0 9 e f d 0 0 a e f 0 0 c - -

2 . (5 ponts) Let A e a lst n numers. Descre an algortm tat creates a lst of te k smallest values n A and wc runs n O(n) tme so long as k < n/lg n. Explan wy your algortm runs n O(n) tme. Use makeeap to uld a -eap on te set of tems. Ts takes O(n) tme. Ten perform k deletemn operatons. Snce te tme per deletemn s O(log n), te runnng tme for k<n/ lg n deletemn operatons s O(n). - -

3 . (0 ponts) Te fgure elow sows an ncomplete representaton of an ntermedate state n te executon of Prm s algortm. In partcular, te values of te ceap mappng are not sown. Fll n te correct values for te ceap mappng (you may omt entres for vertces tat are n te tree). Ten sow ow te next step n te executon of te algortm modfes all te data structures. a 5 g 9 c e 8 f d 6 f d a c d e f g ceap a c de ef c 9 a 5 a 5 g 9 c e 8 f d 6 c d ceap a c d e a cf de f g a 5 - -

4 . (0 ponts) In te worst-case analyss of Prm s algortm, we saw tat te numer of calls to te cangekey procedure was O(m). In ts prolem, you are to sow tat t s also Ω(n ). Frst, sow tat you can assgn edge wegts to te complete grap on 5 vertces so tat Prm s algortm executes te cangekey operaton for every edge n te grap. Generalze ts example to sow tat for eac value of n, tere s a wegted grap wt Ω(n ) edges and tat cangekey s nvoked wen all of tese edges are examned. Te fgure elow sows an assgnment of edge wegts to a complete grap on 5 vertces tat causes Prm s algortm to execute cangekey once for every edge, assumng tat t starts from vertex u. Te generalzaton of ts grap as n vertces u,...,u n and te wegt of te edge from u to u j s equal to j for all and j. If Prm s algortm starts wt vertex u, ten for all, vertex u wll e removed from te eap n step and cangekey wll e nvoked for all edges (u,u j ) wt j>. Tat s, t wll e nvoked for every edge. Snce tere are Ω(n ) edges, cangekey s nvoked Ω(n ) tmes. u u u u u 5 - -

5 5. (0 ponts) A mn-max eap s an extenson of te eap data structure tat effcently supports access to an tem of maxmum key, as well as access to an tem of mnmum key. One way to mplement a mn-max eap s y extendng te data structure for d-eaps. One dvdes te eap nto levels, wt te root eng n level 0, ts cldren n level and so fort. For every node x on an even-numered level, key(x) key(y) for all descendants y of x. For every node x on an odd-numered level, key(x) key(y) for all descendants y of x. Te correctness of any data structure operaton depends on ts mantanng certan essental propertes of te data structure. Te data porton of te class declaraton for a C++ mplementaton of a mn-max eap data structure s sown elow. To make tngs smpler, you may assume a nary eap (eac node as at most two cldren). Wat propertes of te data must e mantaned y programs tat operate on t? Lst as many as you can tnk of. Hnt: a poston s on an even level f lg s even. Oterwse, s on an odd level. class mnmaxheap { nt N; // max numer of tems n eap nt n; // numer of tems n eap tem *; // {[],...,[n]} s set of tems nt *pos; // pos[] gves poston of n keytyp *kvec; // kvec[] s key of tem... }; n N for n, wt lg odd, kvec[[ / ]] kvec[[]] for n, wt lg even, kvec[[ / ]] kvec[[]] for n, wt lg even, kvec[[ / ]] kvec[[]] for n, wt lg odd, kvec[[ / ]] kvec[[]] for n, [] n, pos[] n and pos[[]] = for <j n, [] [j] and pos[] pos[j] - 5 -

6 6. (0 ponts) Te fgure elow sows a lazy leftst eap n wc some nodes (te saded ones) ave een marked deleted. Sow te eap after te executon of te operaton, purge(a). a 0, e, g,, f 9,, c 6, 0, j 6, d 5, After te purge we ave. e,,, j 6, d 5, 0, c 6, f 9, - 6 -

7 . (5 ponts) In te analyss of te round-ron algortm, te executon s dvded nto a seres of passes. Te frst pass ends wen all trees on te queue ntally ave een selected and comned wt oter trees. For a grap wt n vertces and m edges, wat s te largest possle numer of nodes n any of te leftst eaps at te concluson of te frst pass? Explan ow for any n and any m n, one can construct a grap on n vertces and m edges for wc te round-ron algortm as a eap of ts sze at te end of te frst pass. Gve a tgt ound on te tme requred y te round-ron algortm on ts grap, excludng te tme requred for ntalzaton. It s possle to end te frst pase wt a sngle eap tat as m+n nodes. Construct a star on n vertces wt edges of wegt. A star s a tree n wc tere s one central vertex wt an edge to every oter vertex. Now, add m (n ) edges of wegt larger tan etween any artrary pars of vertces. Note tat te orgnal star s a unque mnmum spannng tree for ts grap. If we execute te round ron algortm on ts grap, t wll comne all vertces nto a sngle component n te frst pass, resultng n a sngle eap tat contans all te edges, plus n dummy nodes from lazy melds. Te runnng tme for te round ron algortm on ts grap (excludng te ntalzaton) s O(nα(n,n)), snce none of te fndmns removes any nodes. Consequently, eac teraton takes constant tme, except for te fnd operatons and tese take at most α(n,n) tme eac. - -

8 8. (0 ponts) Consder an alternatve analyss of te partton data structure n wc te accountng varale det(u) s ncremented f te pat etween u and te root as lengt at least and g ( u) = g( p( u)), were te functon g(x) s defned y g ( x) = lg lg( + rank( x)). In all oter cases, fcredt s ncremented. Sow tat fcredt s ncremented O(log log log n) tmes durng eac top level fnd. Te values of g(x) cannot decrease as you go up te tree, so for every value of, tere s at most one node were g(x)= and g(p(x))>. So te numer of nodes were fcredt gets ncremented s at most plus te numer of dstnct values of g(x). Snce g(x) 0 and rank(x) s at most lg(n), ts s O(log log log n). Sow tat f g(x)= at te end of a sequence of operatons, ten + det ( x). Every tme det(x) s ncremented, te rank(p(x)) ncreases y at least. We only ncrement det(x) wle g(p(x))= and g(p(x))= only so long as rank ( p( x)) <. So, once det(x) s ncremented + tmes, g(p(x))> and det(x) s never ncremented agan. + Sow tat te numer of nodes for wc te fnal value of g(x)= s at most n. If g(x)=, ten rank ( x). Snce te numer of nodes wt rank equal k s at most numer of nodes wt g(x)= s at most n n = + + L = k k n k n / te Sow tat for eac value of, te sum of te det varales for all nodes wose fnal values of g(x)= s O(n). n Te sum s at most <n, so n all cases, t s O(n) = n. For =0 and =, ts s n. For all larger values of t s - 8 -

15-451/651: Design & Analysis of Algorithms January 22, 2019 Lecture #3: Amortized Analysis last changed: January 18, 2019

15-451/651: Design & Analysis of Algorithms January 22, 2019 Lecture #3: Amortized Analysis last changed: January 18, 2019 5-45/65: Desgn & Analyss of Algorthms January, 09 Lecture #3: Amortzed Analyss last changed: January 8, 09 Introducton In ths lecture we dscuss a useful form of analyss, called amortzed analyss, for problems

More information

Math 210 Exam 4 - Practice Problem Solutions. 1. Answer the following questions based on the rooted tree shown below:

Math 210 Exam 4 - Practice Problem Solutions. 1. Answer the following questions based on the rooted tree shown below: Mt 0 Exm 4 - Prctce Proem Soutons. Answer te foowng questons se on te roote tree sown eow: c m n o p q r s t () Lst te cren of vertex. n,o,p () Lst te ncestors of vertex s m,,,, (c) Lst te sngs of vertex

More information

TCOM501 Networking: Theory & Fundamentals Final Examination Professor Yannis A. Korilis April 26, 2002

TCOM501 Networking: Theory & Fundamentals Final Examination Professor Yannis A. Korilis April 26, 2002 TO5 Networng: Theory & undamentals nal xamnaton Professor Yanns. orls prl, Problem [ ponts]: onsder a rng networ wth nodes,,,. In ths networ, a customer that completes servce at node exts the networ wth

More information

ME 310 Numerical Methods. Differentiation

ME 310 Numerical Methods. Differentiation M 0 Numercal Metods fferentaton Tese presentatons are prepared by r. Cuneyt Sert Mecancal ngneerng epartment Mddle ast Tecncal Unversty Ankara, Turkey csert@metu.edu.tr Tey can not be used wtout te permsson

More information

Spring 2018 Social Sciences 7418 University of Wisconsin-Madison. Transactions and Portfolio Crowding Out

Spring 2018 Social Sciences 7418 University of Wisconsin-Madison. Transactions and Portfolio Crowding Out Economcs 44 Menze D. Cnn Sprng 8 Socal Scences 748 Unversty of Wsconsn-Madson. Standard IS-LM Transactons and Portfolo Crowdng Out Transactons crowdng out of nvestment s te reducton n nvestment attrbutable

More information

Hardware-Software Cosynthesis of Multi-Mode Multi-Task Embedded Systems with Real-Time Constraints

Hardware-Software Cosynthesis of Multi-Mode Multi-Task Embedded Systems with Real-Time Constraints Hardware-Software Cosyntess of Mult-Mode Mult-Task Embedded Systems wt Real-Tme Constrants Hyunok O Soono Ha Te Scool of Electrcal Engneerng and Computer Scence Seoul Natonal Unversty Seoul 151-742, KOREA

More information

Production and Supply Chain Management Logistics. Paolo Detti Department of Information Engeneering and Mathematical Sciences University of Siena

Production and Supply Chain Management Logistics. Paolo Detti Department of Information Engeneering and Mathematical Sciences University of Siena Producton and Supply Chan Management Logstcs Paolo Dett Department of Informaton Engeneerng and Mathematcal Scences Unversty of Sena Convergence and complexty of the algorthm Convergence of the algorthm

More information

Introduction to Algorithms / Algorithms I Lecturer: Michael Dinitz Topic: Splay Trees Date: 9/27/16

Introduction to Algorithms / Algorithms I Lecturer: Michael Dinitz Topic: Splay Trees Date: 9/27/16 600.463 Introduction to lgoritms / lgoritms I Lecturer: Micael initz Topic: Splay Trees ate: 9/27/16 8.1 Introduction Today we re going to talk even more about binary searc trees. -trees, red-black trees,

More information

Fall 2016 Social Sciences 7418 University of Wisconsin-Madison. Transactions and Portfolio Crowding Out

Fall 2016 Social Sciences 7418 University of Wisconsin-Madison. Transactions and Portfolio Crowding Out Economcs 435 Menze D. Cnn Fall 6 Socal Scences 748 Unversty of Wsconsn-Madson. Standard IS-LM Transactons and ortfolo Crowdng Out Transactons crowdng out of nvestment s te reducton n nvestment attrbutable

More information

CS 286r: Matching and Market Design Lecture 2 Combinatorial Markets, Walrasian Equilibrium, Tâtonnement

CS 286r: Matching and Market Design Lecture 2 Combinatorial Markets, Walrasian Equilibrium, Tâtonnement CS 286r: Matchng and Market Desgn Lecture 2 Combnatoral Markets, Walrasan Equlbrum, Tâtonnement Matchng and Money Recall: Last tme we descrbed the Hungaran Method for computng a maxmumweght bpartte matchng.

More information

Supplementary Material for Borrowing Information across Populations in Estimating Positive and Negative Predictive Values

Supplementary Material for Borrowing Information across Populations in Estimating Positive and Negative Predictive Values Supplementary Materal for Borrong Informaton across Populatons n Estmatng Postve and Negatve Predctve Values Yng Huang, Youy Fong, Jon We $, and Zdng Feng Fred Hutcnson Cancer Researc Center, Vaccne &

More information

Practice Exam 1. Use the limit laws from class compute the following limit. Show all your work and cite all rules used explicitly. xf(x) + 5x.

Practice Exam 1. Use the limit laws from class compute the following limit. Show all your work and cite all rules used explicitly. xf(x) + 5x. Practice Exam 1 Tese problems are meant to approximate wat Exam 1 will be like. You can expect tat problems on te exam will be of similar difficulty. Te actual exam will ave problems from sections 11.1

More information

Parallel Prefix addition

Parallel Prefix addition Marcelo Kryger Sudent ID 015629850 Parallel Prefx addton The parallel prefx adder presented next, performs the addton of two bnary numbers n tme of complexty O(log n) and lnear cost O(n). Lets notce the

More information

ACC 471 Practice Problem Set # 4 Fall Suggested Solutions

ACC 471 Practice Problem Set # 4 Fall Suggested Solutions ACC 471 Practice Problem Set # 4 Fall 2002 Suggested Solutions 1. Text Problems: 17-3 a. From put-call parity, C P S 0 X 1 r T f 4 50 50 1 10 1 4 $5 18. b. Sell a straddle, i.e. sell a call and a put to

More information

Elements of Economic Analysis II Lecture VI: Industry Supply

Elements of Economic Analysis II Lecture VI: Industry Supply Elements of Economc Analyss II Lecture VI: Industry Supply Ka Hao Yang 10/12/2017 In the prevous lecture, we analyzed the frm s supply decson usng a set of smple graphcal analyses. In fact, the dscusson

More information

Project Management Project Phases the S curve

Project Management Project Phases the S curve Project lfe cycle and resource usage Phases Project Management Project Phases the S curve Eng. Gorgo Locatell RATE OF RESOURCE ES Conceptual Defnton Realzaton Release TIME Cumulated resource usage and

More information

EXAMINATIONS OF THE HONG KONG STATISTICAL SOCIETY

EXAMINATIONS OF THE HONG KONG STATISTICAL SOCIETY EXAMINATIONS OF THE HONG KONG STATISTICAL SOCIETY HIGHER CERTIFICATE IN STATISTICS, 2012 MODULE 8 : Survey sampling and estimation Time allowed: One and a alf ours Candidates sould answer THREE questions.

More information

Calculus I Homework: Four Ways to Represent a Function Page 1. where h 0 and f(x) = x x 2.

Calculus I Homework: Four Ways to Represent a Function Page 1. where h 0 and f(x) = x x 2. Calculus I Homework: Four Ways to Represent a Function Page 1 Questions Example Find f(2 + ), f(x + ), and f(x + ) f(x) were 0 and f(x) = x x 2. Example Find te domain and sketc te grap of te function

More information

Lecture 7. We now use Brouwer s fixed point theorem to prove Nash s theorem.

Lecture 7. We now use Brouwer s fixed point theorem to prove Nash s theorem. Topcs on the Border of Economcs and Computaton December 11, 2005 Lecturer: Noam Nsan Lecture 7 Scrbe: Yoram Bachrach 1 Nash s Theorem We begn by provng Nash s Theorem about the exstance of a mxed strategy

More information

Applications of Myerson s Lemma

Applications of Myerson s Lemma Applcatons of Myerson s Lemma Professor Greenwald 28-2-7 We apply Myerson s lemma to solve the sngle-good aucton, and the generalzaton n whch there are k dentcal copes of the good. Our objectve s welfare

More information

Numerical Analysis ECIV 3306 Chapter 6

Numerical Analysis ECIV 3306 Chapter 6 The Islamc Unversty o Gaza Faculty o Engneerng Cvl Engneerng Department Numercal Analyss ECIV 3306 Chapter 6 Open Methods & System o Non-lnear Eqs Assocate Pro. Mazen Abualtaye Cvl Engneerng Department,

More information

Tests for Two Ordered Categorical Variables

Tests for Two Ordered Categorical Variables Chapter 253 Tests for Two Ordered Categorcal Varables Introducton Ths module computes power and sample sze for tests of ordered categorcal data such as Lkert scale data. Assumng proportonal odds, such

More information

A New and Efficient Congestion Evaluation Model in Floorplanning: Wire Density Control with Twin Binary Trees

A New and Efficient Congestion Evaluation Model in Floorplanning: Wire Density Control with Twin Binary Trees New and ffcent ongeston aluaton Model n loorplannng: Wre ensty ontrol wt Twn nary Trees Stee T. W. La epartment of S Te nese Un. of H.K. Satn, N.T., Hong Kong twla@cse.cuk.edu.k angelne. Y. Young epartment

More information

Economic Design of Short-Run CSP-1 Plan Under Linear Inspection Cost

Economic Design of Short-Run CSP-1 Plan Under Linear Inspection Cost Tamkang Journal of Scence and Engneerng, Vol. 9, No 1, pp. 19 23 (2006) 19 Economc Desgn of Short-Run CSP-1 Plan Under Lnear Inspecton Cost Chung-Ho Chen 1 * and Chao-Yu Chou 2 1 Department of Industral

More information

The study guide does not look exactly like the exam but it will help you to focus your study efforts.

The study guide does not look exactly like the exam but it will help you to focus your study efforts. Mat 0 Eam Study Guide Solutions Te study guide does not look eactly like te eam but it will elp you to focus your study efforts. Here is part of te list of items under How to Succeed in Mat 0 tat is on

More information

Parsing beyond context-free grammar: Tree Adjoining Grammar Parsing I

Parsing beyond context-free grammar: Tree Adjoining Grammar Parsing I Parsng beyond context-free grammar: Tree donng Grammar Parsng I Laura Kallmeyer, Wolfgang Maer ommersemester 2009 duncton and substtuton (1) Tree donng Grammars (TG) Josh et al. (1975), Josh & chabes (1997):

More information

SUPPLEMENT TO BOOTSTRAPPING REALIZED VOLATILITY (Econometrica, Vol. 77, No. 1, January, 2009, )

SUPPLEMENT TO BOOTSTRAPPING REALIZED VOLATILITY (Econometrica, Vol. 77, No. 1, January, 2009, ) Econometrca Supplementary Materal SUPPLEMENT TO BOOTSTRAPPING REALIZED VOLATILITY Econometrca, Vol. 77, No. 1, January, 009, 83 306 BY SÍLVIA GONÇALVES AND NOUR MEDDAHI THIS SUPPLEMENT IS ORGANIZED asfollows.frst,wentroducesomenotaton.

More information

Price and Quantity Competition Revisited. Abstract

Price and Quantity Competition Revisited. Abstract rce and uantty Competton Revsted X. Henry Wang Unversty of Mssour - Columba Abstract By enlargng the parameter space orgnally consdered by Sngh and Vves (984 to allow for a wder range of cost asymmetry,

More information

Understanding Annuities. Some Algebraic Terminology.

Understanding Annuities. Some Algebraic Terminology. Understandng Annutes Ma 162 Sprng 2010 Ma 162 Sprng 2010 March 22, 2010 Some Algebrac Termnology We recall some terms and calculatons from elementary algebra A fnte sequence of numbers s a functon of natural

More information

Elton, Gruber, Brown, and Goetzmann. Modern Portfolio Theory and Investment Analysis, 7th Edition. Solutions to Text Problems: Chapter 9

Elton, Gruber, Brown, and Goetzmann. Modern Portfolio Theory and Investment Analysis, 7th Edition. Solutions to Text Problems: Chapter 9 Elton, Gruber, Brown, and Goetzmann Modern Portfolo Theory and Investment Analyss, 7th Edton Solutons to Text Problems: Chapter 9 Chapter 9: Problem In the table below, gven that the rskless rate equals

More information

COS 511: Theoretical Machine Learning. Lecturer: Rob Schapire Lecture #21 Scribe: Lawrence Diao April 23, 2013

COS 511: Theoretical Machine Learning. Lecturer: Rob Schapire Lecture #21 Scribe: Lawrence Diao April 23, 2013 COS 511: Theoretcal Machne Learnng Lecturer: Rob Schapre Lecture #21 Scrbe: Lawrence Dao Aprl 23, 2013 1 On-Lne Log Loss To recap the end of the last lecture, we have the followng on-lne problem wth N

More information

1 Introducton Opton prcng teory as been te core of modern matematcal nance snce te dervaton of te famous Blac-Scoles (19) formula wc provdes a partal

1 Introducton Opton prcng teory as been te core of modern matematcal nance snce te dervaton of te famous Blac-Scoles (19) formula wc provdes a partal CIT-CDS - Dstrbuton-Based Opton Prcng on Lattce Asset Dynamcs Models Yuj YAMADA y James A PRIMBS z Control and Dynamcal Systems 1-81 Calforna Insttute of Tecnology Pasadena, CA 911, USA August, Abstract

More information

Sample Survey Design

Sample Survey Design Sample Survey Desg A Hypotetcal Exposure Scearo () Assume we kow te parameters of a worker s exposure dstrbuto of 8-our TWAs to a cemcal. As t appes, te worker as four dfferet types of days wt regard to

More information

ECO 209Y MACROECONOMIC THEORY AND POLICY LECTURE 8: THE OPEN ECONOMY WITH FIXED EXCHANGE RATES

ECO 209Y MACROECONOMIC THEORY AND POLICY LECTURE 8: THE OPEN ECONOMY WITH FIXED EXCHANGE RATES ECO 209 MACROECONOMIC THEOR AND POLIC LECTURE 8: THE OPEN ECONOM WITH FIXED EXCHANGE RATES Gustavo Indart Slde 1 OPEN ECONOM UNDER FIXED EXCHANGE RATES Let s consder an open economy wth no captal moblty

More information

Problem Solving Day: Geometry, movement, and Free-fall. Test schedule SOH CAH TOA! For right triangles. Last year s equation sheet included with exam.

Problem Solving Day: Geometry, movement, and Free-fall. Test schedule SOH CAH TOA! For right triangles. Last year s equation sheet included with exam. Problem Solving Day: Geometry, movement, and Free-fall. Test scedule First mid-term in 2 weeks! 7-10PM; Feb 8, Eiesland Hall. Review and practice a little eac day!!! EMAIL ME THIS WEEK if you ave class

More information

On the uniqueness of stable marriage matchings

On the uniqueness of stable marriage matchings Economcs Letters 69 (2000) 1 8 www.elsever.com/ locate/ econbase On te unqueness of stable marrage matcngs Jan Eeckout* Unversty of Pennsylvana, Dept. of Economcs, 3718 Locust Walk, Pladelpa, PA 19104-6297,

More information

Elton, Gruber, Brown and Goetzmann. Modern Portfolio Theory and Investment Analysis, 7th Edition. Solutions to Text Problems: Chapter 4

Elton, Gruber, Brown and Goetzmann. Modern Portfolio Theory and Investment Analysis, 7th Edition. Solutions to Text Problems: Chapter 4 Elton, Gruber, Brown and Goetzmann Modern ortfolo Theory and Investment Analyss, 7th Edton Solutons to Text roblems: Chapter 4 Chapter 4: roblem 1 A. Expected return s the sum of each outcome tmes ts assocated

More information

Introduction to PGMs: Discrete Variables. Sargur Srihari

Introduction to PGMs: Discrete Variables. Sargur Srihari Introducton to : Dscrete Varables Sargur srhar@cedar.buffalo.edu Topcs. What are graphcal models (or ) 2. Use of Engneerng and AI 3. Drectonalty n graphs 4. Bayesan Networks 5. Generatve Models and Samplng

More information

Finance 402: Problem Set 1 Solutions

Finance 402: Problem Set 1 Solutions Fnance 402: Problem Set 1 Solutons Note: Where approprate, the fnal answer for each problem s gven n bold talcs for those not nterested n the dscusson of the soluton. 1. The annual coupon rate s 6%. A

More information

Heaps

Heaps AdvancedAlgorithmics (4AP) Heaps Jaak Vilo 2009 Spring Jaak Vilo MTAT.03.190 Text Algorithms 1 Heaps http://en.wikipedia.org/wiki/category:heaps_(structure) Binary heap http://en.wikipedia.org/wiki/binary_heap

More information

Homework 9: due Monday, 27 October, 2008

Homework 9: due Monday, 27 October, 2008 PROBLEM ONE Homework 9: due Monday, 7 October, 008. (Exercses from the book, 6 th edton, 6.6, -3.) Determne the number of dstnct orderngs of the letters gven: (a) GUIDE (b) SCHOOL (c) SALESPERSONS. (Exercses

More information

Macroeconomic Theory and Policy

Macroeconomic Theory and Policy ECO 209 Macroeconomc Theory and Polcy Lecture 7: The Open Economy wth Fxed Exchange Rates Gustavo Indart Slde 1 Open Economy under Fxed Exchange Rates Let s consder an open economy wth no captal moblty

More information

UNIVERSITY OF BOLTON WESTERN INTERNATIONAL COLLEGE, RAS AL KHAIMAH BENG(HONS) MECHANICAL ENGINEERING SEMESTER TWO EXAMINATION 2014/2015

UNIVERSITY OF BOLTON WESTERN INTERNATIONAL COLLEGE, RAS AL KHAIMAH BENG(HONS) MECHANICAL ENGINEERING SEMESTER TWO EXAMINATION 2014/2015 OCD5 UNIVERSITY OF BOLTON WESTERN INTERNATIONAL COLLEGE, RAS AL KHAIMAH BENG(HONS) MECHANICAL ENGINEERING SEMESTER TWO EXAMINATION 0/05 FINITE ELEMENT AND DIFFERENCE SOLUTIONS MODULE NO: AME6006 Date:

More information

iii) pay F P 0,T = S 0 e δt when stock has dividend yield δ.

iii) pay F P 0,T = S 0 e δt when stock has dividend yield δ. Fnal s Wed May 7, 12:50-2:50 You are allowed 15 sheets of notes and a calculator The fnal s cumulatve, so you should know everythng on the frst 4 revews Ths materal not on those revews 184) Suppose S t

More information

Supplementary material for Non-conjugate Variational Message Passing for Multinomial and Binary Regression

Supplementary material for Non-conjugate Variational Message Passing for Multinomial and Binary Regression Supplementary materal for Non-conjugate Varatonal Message Passng for Multnomal and Bnary Regresson October 9, 011 1 Alternatve dervaton We wll focus on a partcular factor f a and varable x, wth the am

More information

Dept of Mathematics and Statistics King Fahd University of Petroleum & Minerals

Dept of Mathematics and Statistics King Fahd University of Petroleum & Minerals Dept of Mathematcs and Statstcs Kng Fahd Unversty of Petroleum & Mnerals AS201: Fnancal Mathematcs Dr. Mohammad H. Omar Major Exam 2 FORM B Soluton Aprl 16 2012 6.30pm-8.00pm Name ID#: Seral #: Instructons.

More information

Macroeconomic Theory and Policy

Macroeconomic Theory and Policy ECO 209 Macroeconomc Theory and Polcy Lecture 7: The Open Economy wth Fxed Exchange Rates Gustavo Indart Slde 1 Open Economy under Fxed Exchange Rates Let s consder an open economy wth no captal moblty

More information

An Example (based on the Phillips article)

An Example (based on the Phillips article) An Eample (based on the Phllps artcle) Suppose ou re the hapless MBA, and ou haven t been fred You decde to use IP to fnd the best N-product soluton, for N = to 56 Let be 0 f ou don t produce product,

More information

II. Random Variables. Variable Types. Variables Map Outcomes to Numbers

II. Random Variables. Variable Types. Variables Map Outcomes to Numbers II. Random Varables Random varables operate n much the same way as the outcomes or events n some arbtrary sample space the dstncton s that random varables are smply outcomes that are represented numercally.

More information

Solution of periodic review inventory model with general constrains

Solution of periodic review inventory model with general constrains Soluton of perodc revew nventory model wth general constrans Soluton of perodc revew nventory model wth general constrans Prof Dr J Benkő SZIU Gödöllő Summary Reasons for presence of nventory (stock of

More information

Cascade Algorithm Revisited

Cascade Algorithm Revisited Cascade Algorthm Revsted Tadao Takaoka, Kyom Umehara Department of Computer Scence Unversty of Canterbury Chrstchurch, New Zealand Htach Laboratory Tokyo, Japan January 1990, revsed November 2013 Abstract

More information

OPERATIONS RESEARCH. Game Theory

OPERATIONS RESEARCH. Game Theory OPERATIONS RESEARCH Chapter 2 Game Theory Prof. Bbhas C. Gr Department of Mathematcs Jadavpur Unversty Kolkata, Inda Emal: bcgr.umath@gmal.com 1.0 Introducton Game theory was developed for decson makng

More information

Time Value of Money, Part 2 Future Value aueof a $1 (Single Sum) Learning Outcomes. Future Value

Time Value of Money, Part 2 Future Value aueof a $1 (Single Sum) Learning Outcomes. Future Value Tme Value of Money, Part 2 Future Value aueof a $1 (Sngle Sum) Intermedate Accountng I Dr. Chula Kng 1 Learnng Outcomes The concept of future value Future value of a sngle sum How to set up the problem

More information

Equilibrium in Prediction Markets with Buyers and Sellers

Equilibrium in Prediction Markets with Buyers and Sellers Equlbrum n Predcton Markets wth Buyers and Sellers Shpra Agrawal Nmrod Megddo Benamn Armbruster Abstract Predcton markets wth buyers and sellers of contracts on multple outcomes are shown to have unque

More information

Number of Municipalities. Funding (Millions) $ April 2003 to July 2003

Number of Municipalities. Funding (Millions) $ April 2003 to July 2003 Introduction Te Department of Municipal and Provincial Affairs is responsible for matters relating to local government, municipal financing, urban and rural planning, development and engineering, and coordination

More information

Outline for this Week

Outline for this Week Binomial Heaps Outline for this Week Binomial Heaps (Today) A simple, fexible, and versatile priority queue. Lazy Binomial Heaps (Today) A powerful building block for designing advanced data structures.

More information

Dept of Mathematics and Statistics King Fahd University of Petroleum & Minerals

Dept of Mathematics and Statistics King Fahd University of Petroleum & Minerals Dept of Mathematcs and Statstcs Kng Fahd Unversty of Petroleum & Mnerals AS201: Fnancal Mathematcs Dr. Mohammad H. Omar Major Exam 2 FORM B Soluton November 27 2012 6.30pm-8.00pm Name ID#: Seral #: Instructons.

More information

In this appendix, we present some theoretical aspects of game theory that would be followed by players in a restructured energy market.

In this appendix, we present some theoretical aspects of game theory that would be followed by players in a restructured energy market. Market Operatons n Electrc Power Systes: Forecastng, Schedulng, and Rsk Manageentg Mohaad Shahdehpour, Hat Yan, Zuy L Copyrght 2002 John Wley & Sons, Inc. ISBNs: 0-47-44337-9 (Hardback); 0-47-2242-X (Electronc)

More information

Chapter 3 Student Lecture Notes 3-1

Chapter 3 Student Lecture Notes 3-1 Chapter 3 Student Lecture otes 3-1 Busness Statstcs: A Decson-Makng Approach 6 th Edton Chapter 3 Descrbng Data Usng umercal Measures 005 Prentce-Hall, Inc. Chap 3-1 Chapter Goals After completng ths chapter,

More information

2.1 Rademacher Calculus... 3

2.1 Rademacher Calculus... 3 COS 598E: Unsupervsed Learnng Week 2 Lecturer: Elad Hazan Scrbe: Kran Vodrahall Contents 1 Introducton 1 2 Non-generatve pproach 1 2.1 Rademacher Calculus............................... 3 3 Spectral utoencoders

More information

Appendix - Normally Distributed Admissible Choices are Optimal

Appendix - Normally Distributed Admissible Choices are Optimal Appendx - Normally Dstrbuted Admssble Choces are Optmal James N. Bodurtha, Jr. McDonough School of Busness Georgetown Unversty and Q Shen Stafford Partners Aprl 994 latest revson September 00 Abstract

More information

The Integration of the Israel Labour Force Survey with the National Insurance File

The Integration of the Israel Labour Force Survey with the National Insurance File The Integraton of the Israel Labour Force Survey wth the Natonal Insurance Fle Natale SHLOMO Central Bureau of Statstcs Kanfey Nesharm St. 66, corner of Bach Street, Jerusalem Natales@cbs.gov.l Abstact:

More information

Games and Decisions. Part I: Basic Theorems. Contents. 1 Introduction. Jane Yuxin Wang. 1 Introduction 1. 2 Two-player Games 2

Games and Decisions. Part I: Basic Theorems. Contents. 1 Introduction. Jane Yuxin Wang. 1 Introduction 1. 2 Two-player Games 2 Games and Decsons Part I: Basc Theorems Jane Yuxn Wang Contents 1 Introducton 1 2 Two-player Games 2 2.1 Zero-sum Games................................ 3 2.1.1 Pure Strateges.............................

More information

Minimizing the number of critical stages for the on-line steiner tree problem

Minimizing the number of critical stages for the on-line steiner tree problem Mnmzng the number of crtcal stages for the on-lne stener tree problem Ncolas Thbault, Chrstan Laforest IBISC, Unversté d Evry, Tour Evry 2, 523 place des terrasses, 91000 EVRY France Keywords: on-lne algorthm,

More information

A Correction to: The Structure of General Equilibrium Shadow Pricing Rules for a Tax-Distorted Economy

A Correction to: The Structure of General Equilibrium Shadow Pricing Rules for a Tax-Distorted Economy A Correcton to: Te Structure of General Equlbrum Sadow Prcng Rules for a Tax-Dstorted Economy Crs Jones Department of Economcs Faculty of Economcs and Commerce Te Australan Natonal Unversty Worng Paper

More information

Binary Search Tree and AVL Trees. Binary Search Tree. Binary Search Tree. Binary Search Tree. Techniques: How does the BST works?

Binary Search Tree and AVL Trees. Binary Search Tree. Binary Search Tree. Binary Search Tree. Techniques: How does the BST works? Binary Searc Tree and AVL Trees Binary Searc Tree A commonly-used data structure for storing and retrieving records in main memory PUC-Rio Eduardo S. Laber Binary Searc Tree Binary Searc Tree A commonly-used

More information

Data Structures. Binomial Heaps Fibonacci Heaps. Haim Kaplan & Uri Zwick December 2013

Data Structures. Binomial Heaps Fibonacci Heaps. Haim Kaplan & Uri Zwick December 2013 Data Structures Binomial Heaps Fibonacci Heaps Haim Kaplan & Uri Zwick December 13 1 Heaps / Priority queues Binary Heaps Binomial Heaps Lazy Binomial Heaps Fibonacci Heaps Insert Find-min Delete-min Decrease-key

More information

AMERICAN DEPOSITARY RECEIPTS. ISFP Stephen Sapp

AMERICAN DEPOSITARY RECEIPTS. ISFP Stephen Sapp AMERICAN DEPOSITARY RECEIPTS Stepen Sapp Definition: ADRs American Depositary Receipts (ADRs) are dollardenominated negotiable securities representing a sare of a non-us company. Tis security trades and

More information

A Data adaptive and Dynamic Segmentation Index for Whole Matching on Time Series

A Data adaptive and Dynamic Segmentation Index for Whole Matching on Time Series A Data adaptve and Dynamc Segmentaton Index for Whole Matchng on Tme Seres Yang Wang Peng Wang Jan Pe We Wang Sheng Huang School of Computer Scence, Fudan Unversty, Shangha, Chna School of Computng Scence,

More information

Priority Queues 9/10. Binary heaps Leftist heaps Binomial heaps Fibonacci heaps

Priority Queues 9/10. Binary heaps Leftist heaps Binomial heaps Fibonacci heaps Priority Queues 9/10 Binary heaps Leftist heaps Binomial heaps Fibonacci heaps Priority queues are important in, among other things, operating systems (process control in multitasking systems), search

More information

Heaps. Heap/Priority queue. Binomial heaps: Advanced Algorithmics (4AP) Heaps Binary heap. Binomial heap. Jaak Vilo 2009 Spring

Heaps. Heap/Priority queue. Binomial heaps: Advanced Algorithmics (4AP) Heaps Binary heap. Binomial heap. Jaak Vilo 2009 Spring .0.00 Heaps http://en.wikipedia.org/wiki/category:heaps_(structure) Advanced Algorithmics (4AP) Heaps Jaak Vilo 00 Spring Binary heap http://en.wikipedia.org/wiki/binary_heap Binomial heap http://en.wikipedia.org/wiki/binomial_heap

More information

Fall 2017 Social Sciences 7418 University of Wisconsin-Madison Problem Set 3 Answers

Fall 2017 Social Sciences 7418 University of Wisconsin-Madison Problem Set 3 Answers ublc Affars 854 enze D. Chnn Fall 07 Socal Scences 748 Unversty of Wsconsn-adson roblem Set 3 Answers Due n Lecture on Wednesday, November st. " Box n" your answers to the algebrac questons.. Fscal polcy

More information

2. Equlibrium and Efficiency

2. Equlibrium and Efficiency . Equlbrum and Effcency . Introducton competton and effcency Smt s nvsble and model of compettve economy combne ndependent decson-makng of consumers and frms nto a complete model of te economy exstence

More information

YORK UNIVERSITY Faculty of Science Department of Mathematics and Statistics MATH A Test #2 November 03, 2014

YORK UNIVERSITY Faculty of Science Department of Mathematics and Statistics MATH A Test #2 November 03, 2014 Famly Name prnt): YORK UNIVERSITY Faculty of Scence Department of Mathematcs and Statstcs MATH 2280.00 A Test #2 November 0, 2014 Solutons Gven Name: Student No: Sgnature: INSTRUCTIONS: 1. Please wrte

More information

2.17 Tax Expenditures. Introduction. Scope and Objectives

2.17 Tax Expenditures. Introduction. Scope and Objectives Introduction Programs offered by te Province are normally outlined in te Estimates and approved by te Members of te House of Assembly as part of te annual budgetary approval process. However, te Province

More information

Data Mining Linear and Logistic Regression

Data Mining Linear and Logistic Regression 07/02/207 Data Mnng Lnear and Logstc Regresson Mchael L of 26 Regresson In statstcal modellng, regresson analyss s a statstcal process for estmatng the relatonshps among varables. Regresson models are

More information

ISE High Income Index Methodology

ISE High Income Index Methodology ISE Hgh Income Index Methodology Index Descrpton The ISE Hgh Income Index s desgned to track the returns and ncome of the top 30 U.S lsted Closed-End Funds. Index Calculaton The ISE Hgh Income Index s

More information

Discrete Dynamic Shortest Path Problems in Transportation Applications

Discrete Dynamic Shortest Path Problems in Transportation Applications 17 Paper No. 98-115 TRANSPORTATION RESEARCH RECORD 1645 Dscrete Dynamc Shortest Path Problems n Transportaton Applcatons Complexty and Algorthms wth Optmal Run Tme ISMAIL CHABINI A soluton s provded for

More information

/ Computational Genomics. Normalization

/ Computational Genomics. Normalization 0-80 /02-70 Computatonal Genomcs Normalzaton Gene Expresson Analyss Model Computatonal nformaton fuson Bologcal regulatory networks Pattern Recognton Data Analyss clusterng, classfcaton normalzaton, mss.

More information

11.1 Average Rate of Change

11.1 Average Rate of Change 11.1 Average Rate of Cange Question 1: How do you calculate te average rate of cange from a table? Question : How do you calculate te average rate of cange from a function? In tis section, we ll examine

More information

Single-Item Auctions. CS 234r: Markets for Networks and Crowds Lecture 4 Auctions, Mechanisms, and Welfare Maximization

Single-Item Auctions. CS 234r: Markets for Networks and Crowds Lecture 4 Auctions, Mechanisms, and Welfare Maximization CS 234r: Markets for Networks and Crowds Lecture 4 Auctons, Mechansms, and Welfare Maxmzaton Sngle-Item Auctons Suppose we have one or more tems to sell and a pool of potental buyers. How should we decde

More information

Mathematical Modeling of Financial Derivative Pricing

Mathematical Modeling of Financial Derivative Pricing Unversty of Connectcut DgtalCommons@UConn Honors Scolar Teses Honors Scolar Program Sprng 5--207 Matematcal Modelng of Fnancal Dervatve Prcng Kelly L. Cosgrove Unversty of Connectcut, cosgrove.kelly@gmal.com

More information

Survey of Math: Chapter 22: Consumer Finance Borrowing Page 1

Survey of Math: Chapter 22: Consumer Finance Borrowing Page 1 Survey of Math: Chapter 22: Consumer Fnance Borrowng Page 1 APR and EAR Borrowng s savng looked at from a dfferent perspectve. The dea of smple nterest and compound nterest stll apply. A new term s the

More information

PREFERENCE DOMAINS AND THE MONOTONICITY OF CONDORCET EXTENSIONS

PREFERENCE DOMAINS AND THE MONOTONICITY OF CONDORCET EXTENSIONS PREFERECE DOMAIS AD THE MOOTOICITY OF CODORCET EXTESIOS PAUL J. HEALY AD MICHAEL PERESS ABSTRACT. An alternatve s a Condorcet wnner f t beats all other alternatves n a parwse majorty vote. A socal choce

More information

A Comparison of Statistical Methods in Interrupted Time Series Analysis to Estimate an Intervention Effect

A Comparison of Statistical Methods in Interrupted Time Series Analysis to Estimate an Intervention Effect Transport and Road Safety (TARS) Research Joanna Wang A Comparson of Statstcal Methods n Interrupted Tme Seres Analyss to Estmate an Interventon Effect Research Fellow at Transport & Road Safety (TARS)

More information

Hewlett Packard 10BII Calculator

Hewlett Packard 10BII Calculator Hewlett Packard 0BII Calculator Keystrokes for the HP 0BII are shown n the tet. However, takng a mnute to revew the Quk Start secton, below, wll be very helpful n gettng started wth your calculator. Note:

More information

The Impact of Delaying Retirement on Chinese Employment and Economic Growth under the Background of Aging

The Impact of Delaying Retirement on Chinese Employment and Economic Growth under the Background of Aging www.scedu.ca/jar Journal of Busness Admnstraton Research Vol. 3, No. 2; 2014 The Impact of Delayng Retrement on Chnese Employment and Economc Growth under the Background of Agng Hayang Zhang 1 1 School

More information

Deterministic rendezvous, treasure hunts and strongly universal exploration sequences

Deterministic rendezvous, treasure hunts and strongly universal exploration sequences Determnstc rendezvous, treasure hunts and strongly unversal exploraton sequences Amnon Ta-Shma Ur Zwck Abstract We obtan several mproved solutons for the determnstc rendezvous problem n general undrected

More information

Finite Math - Fall Section Future Value of an Annuity; Sinking Funds

Finite Math - Fall Section Future Value of an Annuity; Sinking Funds Fnte Math - Fall 2016 Lecture Notes - 9/19/2016 Secton 3.3 - Future Value of an Annuty; Snkng Funds Snkng Funds. We can turn the annutes pcture around and ask how much we would need to depost nto an account

More information

The Hiring Problem. Informationsteknologi. Institutionen för informationsteknologi

The Hiring Problem. Informationsteknologi. Institutionen för informationsteknologi The Hrng Problem An agency gves you a lst of n persons You ntervew them one-by-one After each ntervew, you must mmedately decde f ths canddate should be hred You can change your mnd f a better one comes

More information

A Polynomial-Time Algorithm for Action-Graph Games

A Polynomial-Time Algorithm for Action-Graph Games A Polynomal-Tme Algorthm for Acton-Graph Games Albert Xn Jang Kevn Leyton-Brown Department of Computer Scence Unversty of Brtsh Columba {ang;evnlb}@cs.ubc.ca Abstract Acton-Graph Games (AGGs) (Bhat & Leyton-Brown

More information

Task Force on quality of business survey data

Task Force on quality of business survey data Fnal Report V -.. 3 Task Force on qualty of busness survey data Task force 5: wegtng approaces . Introducton Busness tendency surveys (BS) dffer from most busness surveys by ter early release, te qualtatve

More information

Bargaining in Standing Committees with an Endogenous Default

Bargaining in Standing Committees with an Endogenous Default Barganng n Standng Commttees wt an Endogenous Default Vncent Anes Unversty of Nottngam Danel J. Sedmann Unversty of Nottngam August 15, 2013 Abstract Commttee votng as mostly been nvestgated from te perspectve

More information

2) In the medium-run/long-run, a decrease in the budget deficit will produce:

2) In the medium-run/long-run, a decrease in the budget deficit will produce: 4.02 Quz 2 Solutons Fall 2004 Multple-Choce Questons ) Consder the wage-settng and prce-settng equatons we studed n class. Suppose the markup, µ, equals 0.25, and F(u,z) = -u. What s the natural rate of

More information

332 Mathematical Induction Solutions for Chapter 14. for every positive integer n. Proof. We will prove this with mathematical induction.

332 Mathematical Induction Solutions for Chapter 14. for every positive integer n. Proof. We will prove this with mathematical induction. 33 Mathematcal Inducton. Solutons for Chapter. Prove that 3 n n n for every postve nteger n. Proof. We wll prove ths wth mathematcal nducton. Observe that f n, ths statement s, whch s obvously true. Consder

More information

Taxation and Externalities. - Much recent discussion of policy towards externalities, e.g., global warming debate/kyoto

Taxation and Externalities. - Much recent discussion of policy towards externalities, e.g., global warming debate/kyoto Taxaton and Externaltes - Much recent dscusson of polcy towards externaltes, e.g., global warmng debate/kyoto - Increasng share of tax revenue from envronmental taxaton 6 percent n OECD - Envronmental

More information

Managing and Identifying Risk

Managing and Identifying Risk Managing and Identifying Risk Spring 2008 All of life is te management of risk, not its elimination Risk is te volatility of unexpected outcomes. In te context of financial risk it can relate to volatility

More information

Advanced Algorithmics (4AP) Heaps

Advanced Algorithmics (4AP) Heaps Advanced Algorithmics (4AP) Heaps Jaak Vilo 2009 Spring Jaak Vilo MTAT.03.190 Text Algorithms 1 Heaps http://en.wikipedia.org/wiki/category:heaps_(structure) Binary heap http://en.wikipedia.org/wiki/binary

More information

Facility Location Problem. Learning objectives. Antti Salonen Farzaneh Ahmadzadeh

Facility Location Problem. Learning objectives. Antti Salonen Farzaneh Ahmadzadeh Antt Salonen Farzaneh Ahmadzadeh 1 Faclty Locaton Problem The study of faclty locaton problems, also known as locaton analyss, s a branch of operatons research concerned wth the optmal placement of facltes

More information

Final Examination MATH NOTE TO PRINTER

Final Examination MATH NOTE TO PRINTER Fnal Examnaton MATH 329 2005 01 1 NOTE TO PRINTER (These nstructons are for the prnter. They should not be duplcated.) Ths examnaton should be prnted on 8 1 2 14 paper, and stapled wth 3 sde staples, so

More information