CSE Algorithms

Size: px
Start display at page:

Download "CSE Algorithms"

Transcription

1 CSE 0 - Algoithms R-Black Ts Augmnting Sach Ts Intval Ts 0//00 CSE 0 - R Black Ts Binay Sach Ts... A binay t in which fo ach no y: If x is in y s lft subt, thn x y. If z is in y s ight subt, thn y z. Binay Sach Ts can o: Inst(S,x), Dlt(S,x) Sach(S,k), Minimum(S), Maximum(S) Succsso(S,x), Pcsso(S,x) Combin Min- an Max-Pioity Quu & Dictionay Can you o Incas-Ky(S,x,k) in a BST? Obvious implmntation BST can b unbalanc. O(lg n) xpct, O(n) wost cas (n anom qusts). x y z CSE 0 - R Black Ts

2 Balanc Sach Ts Basic ia: O(lg n) ynamic st opations t by nsuing t hight is O(lg n) n = siz of th st Vaious implmntations: R-Black ts, B ts (fatu in CLRS) AVL ts, - ts, Splay ts (oth mthos) Binomial haps, Fibonacci haps (allow mging) Paticia ts ( O(k) fo lngth-k kys) CSE 0 - R Black Ts R-Black Ts BST, guaant to b naly balanc.. Nos hav ky, point, & two (possibly NIL) chiln. NIL is ally a black laf w ll gloss ov this.. Evy nos is colo o black.. Root is black.. R no can t hav pant.. Paths fom oot to NIL s all hav th sam numb of black nos (th black-hight ). =black = CSE 0 - R Black Ts

3 No pth is O(lg n) in R-B t Black Subt: igno nos Evy non-laf has,, o chiln. Evy laf has th sam pth, k. Thus # black nos k+ ( = fo full binay t). In full -black t, n k+ (n = # nos) So lg n lg ( k+ ) lg k = k; that is, k < lg n. Longst path k (obvious fom pictu). So longst path lg n. CSE 0 - R Black Ts Instions into R-B t Inst as nw laf in coct spot. May cat mnac ( no with pant) Eliminat, pomot, o staightn mnac. Dtails on nxt pag. bnt staight bnt staight Aft at most x no pth movs, mnac will b gon If oot is, colo it black CSE 0 - R Black Ts

4 Moving R Mnacs Cas : Uncl (ganpants oth chil) is. Rcolo pant, uncl & ganpant. Ganpant may b a mnac now. Cas : Uncl is black, mnac is bnt. Rotat mnac with pant. R mnac is now staight. Poc to Cas Cas : Uncl black, mnac staight. Rotat & colo pant & ganpant. R mnac isappas. uncl mnac CSE 0 - R Black Ts You tun Inst,,,... into mpty t. Sach Oth Opations Compa to oot, go obvious iction, cusivly. Succsso Dlt If no has non-mpty ight subt, fin its MIN. Els, tun closst ancsto that s bigg (if any). Complicat (lik inst). 8 CSE 0 - R Black Ts

5 Augmnting Sach Ts (chapt ) Basic ia: Suppos w want to maintain aitional infomation about ata in a ynamic st. suppos this infomation can b comput at ach no using only th ata at that no an its immiat chiln. Such infomation is call a synthsiz attibut. W can o so without incasing th big-o complxity of Inst o Dlt. Why? Bcaus th only infomation that is moifi is on o th (oiginal) path fom laf to oot. th t may shift a bit whn w Inst o Dlt CSE 0 - R Black Ts (Tivial) Exampl Suppos satllit ata inclus a siz fil At ach no n w can maintain:. maximum siz of any no in n s subt, an/o. total siz of all nos in n s subt. ky siz total ( ++ = ) 0... CSE 0 - R Black Ts

6 CSE 0 - R Black Ts Total Siz Exampl 0 - Inst 0 0 total n upating sval stps lat CSE 0 - R Black Ts Exampl (continu) Pvious sli. Still has mnac.

7 Is ank a synthsiz attibut? ( Rank mans plac in sot list) In both ths ts, oot has ank- an ank- chil. But it s ank is iffnt. So ank can t b comput just fom chiln s anks. But... CSE 0 - R Black Ts Sach T & Rank in O(lg n) tim Numb of nos in subt is synthsiz. Rank can b comput by aing + nos in lft subt + # of lft ancstos + # nos in thi lft subts. whil going fom oot to th no. 8 ky p no nos in subt 8 Rank of no is th numb of nos insi ott lin. CSE 0 - R Black Ts

8 Intval Ts (Clos) intval [a,b] is { x Ñ a x b }. Intval t is a sach t with: ky = lft-han npoint of intval satllit ata = ight-han npoint of intval synthsiz attibut = max -h npoint of subt [,] [,8] 8 [-] [,] [,] [-] [-0] 0 CSE 0 - R Black Ts Ovlapping Intval Poblm (Two intvals ovlap if thy hav any points in common.) Rtun an intval in t that [x,y] ovlaps, o non. Cas : [x,y] ovlaps oot: you on. Cas : [x,y] is ntily lft of oot: sach lft subt. It can t possibly ovlap oot o anything in ight subt. (Ty [,0] in pvious xampl.) Cas : [x,y] is ntily ight of oot & max ight-han npoint in oot s lft subt: sach ight subt. It can t ovlap oot o anything in lft subt. (Ty [,8].) Cas : [x,y] is ight of oot, but not of max ight-han npoint in oot s lft subt: ovlap in lft subt. Continu with [,8] xampl this cas hols at scon stp. CSE 0 - R Black Ts

Dependency Resolving Algorithm

Dependency Resolving Algorithm Dpnncy Rsolving Algorithm Rvision History Rvision 1.0 May 25, 2010 Rvis by: FB Frry Bonr 1. Prfac Hr s a littl xplanation of a possibl pnncy rsolution algorithm. I v ma this as basic as possibl, so it

More information

Final Answer Key (1 )

Final Answer Key (1 ) coctd 3/30/5 Economics 0D Fall 2009 Pofsso K.D. Hoov. Final Answ Ky Y Y 0 (2) Y 0 (4) Y F[L Y,K ] Y Y 2 Y 2 (W/P) () L L 0 L K K 0 K (3) F[L,K 0 ] L s F[L 0,K] F[L,K] (w/p) 0 (w/p) L D L D L L 0 L A fall

More information

Valuation of Stocks and Company Valuation. Capital Budgeting and Corporate Objectives

Valuation of Stocks and Company Valuation. Capital Budgeting and Corporate Objectives Valuation of Stocks and Company Valuation Capital Budgting and Copoat Objctivs ofsso Ron Kanil Simon School of Businss Univsity of Rochs Ovviw Intoduction» Stocks and stock makts» Tansactions & Ods Valuation:»

More information

Lecture 31 Monday, Nov. 19, Income Effect again

Lecture 31 Monday, Nov. 19, Income Effect again Lctur 31 Monday, Nov. 19, 2007 Homwork 5 postd. Du Tus (11:59 pm) aftr Thanksgiving No class Wd and no sctions (Happy Thanksgiving!) 1. Incom Effct again 2. Th Substitution Effct of a Pric Chang 3. Total

More information

TEACHING NOTE 97-08: PRICING AND VALUATION OF COMMODITY SWAPS

TEACHING NOTE 97-08: PRICING AND VALUATION OF COMMODITY SWAPS TECHIG OTE 97-08: PRICIG D VLUTIO OF COMMODITY SWPS Vsion dat: ugust 9, 2008 C:\Classs\Taching ots\t97-08doc Th commodity swap is dsignd to assist in th managmnt of th isk associatd with th pics of input

More information

Example on PID controller selection

Example on PID controller selection Examl on P controllr lction Problm tatmnt: conidr th following two unity fdbac ytm: Sytm #: firt ordr ytm Sytm #: cond ordr ytm () + - C() () + - C() quirmnt:. Find th tady tat rror ( ) for th following

More information

Yield to Maturity..Continued

Yield to Maturity..Continued LECTURE 3 Hamza Ali Malik Econ 315: Mony and Banking Wintr 006 Yild to Maturity..Continud 3) - Coupon Bonds is a dbt instrumnt in which fixd intrst paymnts ar mad throughout th lif of th contract but th

More information

Holding period yield the distinction between interest rates and

Holding period yield the distinction between interest rates and LECTURE 3 Hamza Ali Malik Econ 315: Mony and anking Wintr 005 Holding priod yild th distinction btwn intrst rats and rturns. Th pric of most forms of dbt fluctuats ovr tim whil th yild to maturity can

More information

DETAIL B SEC. A-A DETAIL. C (CUTOUT FOR DATUM "-D-"INSPECTION) DETAIL F (EMI-GASKET PROTECT) A A C MEASUREMENT AIRFLOW DIRECTION A15 NOTE.

DETAIL B SEC. A-A DETAIL. C (CUTOUT FOR DATUM -D-INSPECTION) DETAIL F (EMI-GASKET PROTECT) A A C MEASUREMENT AIRFLOW DIRECTION A15 NOTE. 7 02 4.0 MSUMNT ILOW ITION TIL 15 NOT.1 01 1 17 0 0 2-0 1 11 19 12 NOT.5 r NOT.4 f PIN 29 2-20 PIN 5 -- -- MTING PLN 4-09 S. - -- TIL. (UTOUT O TUM "--"INSPTION) NOT. TIL (MI-GSKT POTT) 2-5 25 51 50 10

More information

te Finance (4th Edition), July 2017.

te Finance (4th Edition), July 2017. Stock and Bond Valuation: Annuitis and Pptuitis Impotant Shotcut Fomulas Th psnt valu fomula is th main wokhos fo valuing invstmnts of all typs, including stocks and bonds But ths aly hav just two o th

More information

Jonathan Turner Exam 2-12/17/03

Jonathan Turner Exam 2-12/17/03 CS 54 Aotms n Poms Fn Pom Exm St Soutons 2 Soutons Jontn Tun Exm 2-2/7/3 /28/3. (5 onts) Sow tt t y mto fo t mnmum snnn t mntns t oo nvnt un n ton of t u u. Coo nvnt. T xsts mnmum snnn t T tt nus t u s

More information

te Finance (4th Edition), July 2017.

te Finance (4th Edition), July 2017. Stock and Bond Valuation: Annuitis and Pptuitis Impotant Shotcut Fomulas Th psnt valu fomula is th main wokhos fo valuing invstmnts of all typs, including stocks and bonds But ths aly hav just two o th

More information

Search Problems. A search problem consists of: A solution is a sequence of actions (a plan) which transforms the start state to a goal state

Search Problems. A search problem consists of: A solution is a sequence of actions (a plan) which transforms the start state to a goal state S Polms A s olm onsists o: A stt s A susso untion N, 1.0 A stt stt nd gol tst E, 1.0 A solution is sun o tions ( ln) wi tnsoms t stt stt to gol stt Exml: Romni Stt s: Citis Susso untion: Go to dj ity wit

More information

Lap 2 x 3 blocks 32" x 48"

Lap 2 x 3 blocks 32 x 48 1 Squdg 11.25 Tutorial You'll hav lots of choics allowing you to play with ultipl colors and fabrics. Each quadrant uss ight pics, ach block uss thirty two pics. Flip flopping th tool to gt rvrs iags gts

More information

Suggested Solutions to Assignment 1

Suggested Solutions to Assignment 1 C 3580 Intrnational conomics II Instructor: Sharif F. Khan Dpartmnt of conomics Atkinson Collg, York Univrsity Summr 1 2008 Suggstd Solutions to Assignmnt 1 Total Marks: 50 Part A Tru/ Fals/ Uncrtain Qustions

More information

The number (r) of success in a total of (n) trials is then given by:

The number (r) of success in a total of (n) trials is then given by: 6.3.. Som typical probability distribution functions 6.3..a. Binominal distribution This distribution is rstrictd to random variabls that can only hav two possibl outcoms: succss (or accptabl) or fail

More information

Splay Trees. Splay Trees - 1

Splay Trees. Splay Trees - 1 Splay Trees In balanced tree schemes, explicit rules are followed to ensure balance. In splay trees, there are no such rules. Search, insert, and delete operations are like in binary search trees, except

More information

P e. 1 + i t (1 + i t ) This year. Next year. Goods 1 good (1 1 r t. Definition of. goods. the real rate: ) 5 (1 1 i t ) P t. (1 1 i t.

P e. 1 + i t (1 + i t ) This year. Next year. Goods 1 good (1 1 r t. Definition of. goods. the real rate: ) 5 (1 1 i t ) P t. (1 1 i t. i t t t t + i t ( + i t ( + i t P t P e t+ This yea Next yea Definition of the eal ate: Goods good ( t goods ( t 5 ( i t P t P e t Deivation of the eal ate: Goods ( i good t P t goods P e t P t dollas

More information

Problem Set #5 ANSWERS. Due Tuesday, April 29, 2008

Problem Set #5 ANSWERS. Due Tuesday, April 29, 2008 Name: SID: Discussion Section: Poblem Set #5 ANSWERS Due Tuesday, Apil 29, 2008 Poblem Sets MUST be wod-pocessed except fo gaphs and equations. When dawing diagams, the following ules apply: 1. Completely,

More information

Carwash Supplies Catalogue

Carwash Supplies Catalogue Caash Supplis Catalogu Businss Supplis fo Rtail.ssals.co.uk Wlcom Th NEW RS Sals catalogu fatus ov 500 ssntial poducts fom ou convninc tail and focout supplis & uipmnt ang. Ou svic With ov 25 yas xpinc

More information

Math 1050 Mortgage Project

Math 1050 Mortgage Project Math 1050 Motgage Poject Name Due date: In this poject we will examine a home loan o motgage. Assume that you have found a home fo sale and have ageed to a puchase pice of $201,000. Down Payment: You ae

More information

Ch 10. Arithmetic Average Options and Asian Opitons

Ch 10. Arithmetic Average Options and Asian Opitons Ch 10. Arithmetic Average Options an Asian Opitons I. Asian Options an Their Analytic Pricing Formulas II. Binomial Tree Moel to Price Average Options III. Combination of Arithmetic Average an Reset Options

More information

Statistical Phylogenetics. Comparative Genomics. Maximum Likelihood. Substitution Model: JC ACGTAGCCG CCGTAGCCT. Maximum Likelihood Bayesian Inference

Statistical Phylogenetics. Comparative Genomics. Maximum Likelihood. Substitution Model: JC ACGTAGCCG CCGTAGCCT. Maximum Likelihood Bayesian Inference Statistical Phylogntics ompaati nomics Maximum Liklihood Baysian Infnc Lctu 7: Phylogntics II Maximum Liklihood h bst t is th on with th highst pobability of poducing th obsd data. How can w calculat th

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

CENTER LINES OF OPTICAL CONNECTOR NOTE 2 CENTER LINES OF OPTICAL CONNECTOR CFP2-BASELINE-DRAWING 1J A3-B1-SW006 DETAIL B A16

CENTER LINES OF OPTICAL CONNECTOR NOTE 2 CENTER LINES OF OPTICAL CONNECTOR CFP2-BASELINE-DRAWING 1J A3-B1-SW006 DETAIL B A16 02 4.0 7 04 NTR LINS O OPTIL ONNTOR NOT 2 MSURMNT IRLOW IRTION TIL 1 01 07 -- 17 1 05 19 0 20 NTR LINS O OPTIL ONNTOR 12 15 0 11 NOT. r 2-0 NOT.5 f PIN 5 PIN 104 2-21 10 14 1 X 4-09 TOP N OTTOM LIMITS

More information

CSE 100: TREAPS AND RANDOMIZED SEARCH TREES

CSE 100: TREAPS AND RANDOMIZED SEARCH TREES CSE 100: TREAPS AND RANDOMIZED SEARCH TREES Midterm Review Practice Midterm covered during Sunday discussion Today Run time analysis of building the Huffman tree AVL rotations and treaps Huffman s algorithm

More information

Handout 10: Binomial Coefficients

Handout 10: Binomial Coefficients ENGG 244B: Discete Mathematics fo Enginees Handout 1: Binomial Coefficients 218 19 Fist Tem Instucto: Anthony Man Cho So Novembe 15, 218 1 Intoduction Recall that the quantity ( n, which is nown as the

More information

INF 4130 Exercise set 5, 2017 w/ solutions

INF 4130 Exercise set 5, 2017 w/ solutions INF 4130 Execise set 5, 2017 w/ solutions Execise 1 List the oe in which we extct the noes fom the Live Set queue when we o eth fist sech of the following gph (tee) with the Live Set implemente s LIFO

More information

Econ 422 Eric Zivot Fall 2005 Midterm Exam Solutions. I. Intertemporal Consumption and Investment Decisions (25 points, 5 points each)

Econ 422 Eric Zivot Fall 2005 Midterm Exam Solutions. I. Intertemporal Consumption and Investment Decisions (25 points, 5 points each) Econ 422 Eic Zivot Fall 2005 Midtem Exam Solutions his is a closed book exam. Howeve, you ae allowed one page of notes (double-sided). Answe all questions. Fo the numeical poblems, if you make a computational

More information

Survey of Math Chapter 23: The Economics of Resources Page 1

Survey of Math Chapter 23: The Economics of Resources Page 1 Chapte 23: The Economics of Resouces Page 1 Intoduction Populations gow and decease ove time, and thee ae diffeent mathematical models fo this. Some common models ae the following thee ae many othes! Aithmetic

More information

XPath. Querying and Storing XML. Child. Context node (starting point) Week 2 XPath & XQuery January 22-25, 2013

XPath. Querying and Storing XML. Child. Context node (starting point) Week 2 XPath & XQuery January 22-25, 2013 Quying n Stoing XML Wk 2 XPth & XQuy Jnuy 22-25, 2013 XPth A lngug of pth xpssions Loosly lt to fil pths oot (/) squntil omposition (p/q) wils (*) xis stps (hil, pnt, snnt, t.) lso: filts, txt nos, ll

More information

DETAIL B SEC. A-A DETAIL. C (CUTOUT FOR DATUM "-D-"INSPECTION) DETAIL F (EMI-GASKET PROTECT) A A C MEASUREMENT AIRFLOW DIRECTION A15 NOTE.

DETAIL B SEC. A-A DETAIL. C (CUTOUT FOR DATUM -D-INSPECTION) DETAIL F (EMI-GASKET PROTECT) A A C MEASUREMENT AIRFLOW DIRECTION A15 NOTE. 02 4.0 MSURMNT IRLOW IRTION TIL 15 NOT.1 01 1 17 0 0 2-0 1 11 19 12 NOT.5 r NOT.4 f PIN 29 2-20 PIN 5 -- -- MTING PLN 4-09 S. - -- PIN 2 22 0.2 M 2 0.1 M PIN 1 4-21 TIL. (UTOUT OR TUM "--"INSPTION) 55

More information

Problem Set 4 The Effects of Government Borrowing Closed Economy, No Foreign Sector, Savings Responds to the Interest Rate

Problem Set 4 The Effects of Government Borrowing Closed Economy, No Foreign Sector, Savings Responds to the Interest Rate Eco 30233 Intemediate Macoeconomics John Lovett oblem Set 4 The Effects of Govenment Boowing Closed Economy, No Foeign Secto, Savings Responds to the Inteest Rate Oveview: In this poblem set, you will

More information

PROPERTY DEMAND IN AFRICA

PROPERTY DEMAND IN AFRICA OFF PLAN SALES: IS IT AN ELIXIR FOR PROPERTY FINANCING IN EMERGING MARKETS? XXV FIG Congrss 2014, 16 21 Jun 2014, Kuala Lumpur, Malaysia Engaging th Challngs, Enhancing th Rlvanc Collins KOWUOR, Knya 20

More information

1 dx -1/2. k 2s x 2r. ( 2s )!! -1/2-1/2. k 2r x 2r

1 dx -1/2. k 2s x 2r. ( 2s )!! -1/2-1/2. k 2r x 2r 5 Highe and Supe Calculus of Elliptic Integal 5. Double seies epansion of Elliptic Integal 5.. Double seies epansion of Elliptic Integal of the st kind Fomula 5.. The following epessions hold fo Poof F(,k

More information

Vernier Calipers/Micrometers

Vernier Calipers/Micrometers 6 Vrnir Cliprs/Miromtrs Qulity or Bttr Aury Work Togthr With ttry Pkging: Slv pkg Box Vinyl pkg Clr pkg Vrnir Clipr Fturs Esy-to-us stnr vrnir lipr 19899 15 Us For msuring outsi, insi, pth, n gp Outsi

More information

Chapters 17: Exchange rate and balance of payments

Chapters 17: Exchange rate and balance of payments Chaptrs 17: Exchang rat and balanc of paymnts Ky ida: w dvlop an opn-conomy vrsion of IS-LM modl which shows how GDP, intrst rat and xchang rat (th thr ndognous variabls) ar dtrmind in short run with sticky

More information

Advanced Macroeconomics

Advanced Macroeconomics Advancd Macroconomics Goth Univrsity Frankfurt Macroconomics and financial markts Prof. Guido Ascari, Univrsity of Pavia guido.ascari@unipv.it AIM Analyz th rlationship btwn macroconomics and financial

More information

Heaps. c P. Flener/IT Dept/Uppsala Univ. AD1, FP, PK II Heaps 1

Heaps. c P. Flener/IT Dept/Uppsala Univ. AD1, FP, PK II Heaps 1 Heaps (Version of 21 November 2005) A min-heap (resp. max-heap) is a data structure with fast extraction of the smallest (resp. largest) item (in O(lg n) time), as well as fast insertion (also in O(lg

More information

Solutions to Homework #7

Solutions to Homework #7 COM 70 Ail 8, 999 Poblem Solutions to Homewok #7 Sto-and-wait 5 noeo, whee I-fame length in bits. We want: + 2 5 0 2 200 + 2 + 2 20 5 0.5 + 200 Poblem 2 270ms 5000 5ms a 54 a) 0. 0092 K b) 0.04, K 7 c),

More information

Questions for Review. L (r) CHAPTER 10 Aggregate Demand I

Questions for Review. L (r) CHAPTER 10 Aggregate Demand I 4 CHAPTER 0 Aggegate Demand Questions fo Review. The Keynesian coss tells us that fiscal policy has a multiplied effect on income. The eason is that accoding to the consumption function, highe income causes

More information

Retirement Benefit Options

Retirement Benefit Options Retiement Benefit Things to Remembe Complete all of the sections on the Retiement Benefit fom that apply to you equest. If this is an initial equest, and not a change in a cuent distibution, emembe to

More information

Solutions Use the market data on the yields and volatilities of yields provided in the table below for

Solutions Use the market data on the yields and volatilities of yields provided in the table below for FIN 684 Pofesso Robet Haswal Fixe-Income Analysis Kogo School of Bsiness, AU Soltions 6. Use the maket ata on the yiels an volatilities of yiels povie in the table below fo zeoes with matities of one to

More information

Product Change Notification

Product Change Notification Poduct Chang Notiication Chang Notiication #: 116146-01 Chang Titl: Intl Wilss-AC 9560, vpo SKU: 9560.NGWG Intl Wilss-AC 9560, No vpo SKUs:9560.NGWG.NV, PCN 116146-01, Labl, Labl Updat, Rason o Rvision:

More information

Miami-Dade Retirement Benefit Options

Miami-Dade Retirement Benefit Options Miami-Dade Retiement Benefit Options 1 Things to Remembe Complete all of the sections on the Retiement Benefit Options fom that apply to you equest. Miami-Dade County notifies Nationwide Retiement Solutions

More information

Option Properties Liuren Wu

Option Properties Liuren Wu Option Properties Liuren Wu Options Markets (Hull chapter: 9) Liuren Wu ( c ) Option Properties Options Markets 1 / 17 Notation c: European call option price. C American call price. p: European put option

More information

A Macroeconomic Theory of the Open Economy

A Macroeconomic Theory of the Open Economy Wojciech Geson (1831-1901) Seventh dition Pinciples of Macoeconomics N. Gegoy Mankiw CHAPTR 19 A Macoeconomic Theoy of the Open conomy The Maket fo Loanable Funds An identity fom the peceding chapte: Saving

More information

macro Aggregate Demand Roadmap to this lecture Equilibrium in the IS-LM Model Model An increase in government purchases A tax cut

macro Aggregate Demand Roadmap to this lecture Equilibrium in the IS-LM Model Model An increase in government purchases A tax cut Roadmap to this lectue maco Aggegate Demand Stabilization olicy: Monetay olicy Fiscal olicy Inteaction Deiving the AD cuve fom the - slide 1 Equilibium in the - Model olicy analysis with the - Model The

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

How do I work Problem Sets 6 and 7?

How do I work Problem Sets 6 and 7? Fist: Know the assumptions How do I wok Poblem ets 6 and 7? 1) The time peiod is long enough that the economy has enough time fo all of its makets to go to euilibium. The labo maket goes to euilibium.

More information

State of New Mexico Retirement Benefit Options

State of New Mexico Retirement Benefit Options State of New Mexico Retiement Benefit 1 Things to Remembe Complete all of the sections on the Retiement Benefit fom that apply to you equest. If this is an initial equest, and not a change in a cuent distibution,

More information

Chapter 7 Prospective Analysis: Valuation Theory and Concepts

Chapter 7 Prospective Analysis: Valuation Theory and Concepts Solutions Chapt 7 Chapt 7 Pospctiv Analysis: Valuation Thoy and Concpts Qustion. Jonas Bog, an analyst at MH Scuitis, stats: "I don't know why anyon would v ty to valu anings. Obviously, th makt knows

More information

Advanced simulation model in the region of Tokyo metropolitan. urban expressway rings

Advanced simulation model in the region of Tokyo metropolitan. urban expressway rings 23 d ITS Wold Congess, Melboune, Austalia, 10 14 Octobe 2016 Pape numbe AP-TP0533 Advanced simulation model in the egion of Tokyo metopolitan uban expessway ings *T. Oguchi 1, M. Chikaaishi 2, M. Iijima

More information

Questions for Review. CHAPTER 5 The Open Economy

Questions for Review. CHAPTER 5 The Open Economy Questions fo Review 1. By ewiting the national income accounts identity, we show in the text that I =. This fom of the national income accounts identity shows the elationship between the intenational flow

More information

Chapter 20. Federal Income Taxation. IRS Tax Classifications. IRS Tax Classifications. Taxation of Individuals & Corporations

Chapter 20. Federal Income Taxation. IRS Tax Classifications. IRS Tax Classifications. Taxation of Individuals & Corporations Fedeal Income Taxation Chapte 20 Income Taxation and Value Whethe you like it o not, you have a silent patne who shaes in you entepise If RE investos ae successful, fedeal (& usually state) govenment shaes

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

CorpSystem Workpaper Manager Schedule M-3 Tutorial Schedule M-3 Tutorial. December 07 United States

CorpSystem Workpaper Manager Schedule M-3 Tutorial Schedule M-3 Tutorial. December 07 United States CorpSystm Workpapr Managr Schdul M-3 Tutorial Tutorial Dcmbr 07 Unitd Stats applis to: C and S Corporations whr Total Assts ar qual or gratr than $10 million OR consolidatd ntity Partnrships whr Total

More information

Equilibrium and Shocks

Equilibrium and Shocks Equilibium and Shocks We ae now in a position to put the demand and supply sides of the model togethe. This will yield fo us the equilibium pice level, level of output, and eal inteest ate. The equilibium

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

MACROECONOMICS. The Open Economy Revisited: the Mundell-Fleming Model and the Exchange-Rate Regime MANKIW. In this chapter, you will learn

MACROECONOMICS. The Open Economy Revisited: the Mundell-Fleming Model and the Exchange-Rate Regime MANKIW. In this chapter, you will learn C H A P T E R Th Opn Economy Rvisitd: th undll-flming odl and th Exchang-Rat Rgim ACROECONOICS N. GREGOR ANKIW 007 Worth Publishrs, all rights rsrvd SIXTH EDITION PowrPoint Slids by Ron Cronovich In this

More information

City of Rolling Hills Estates / Unincorporated Westfield STUDY AREA PROFILE

City of Rolling Hills Estates / Unincorporated Westfield STUDY AREA PROFILE City of Rolling Hills Estates / Unincopoate Westfiel STUDY AREA PROFILE STUDY AREA ID #86 BASE MAP PARK METRICS WHERE ARE PARKS MOST NEEDED AMENITY QUANTITIES AND CONDITIONS PARK NEEDS FRAMEWORK COST ESTIMATES

More information

Homework #4 The IS-LM Model Due March 18

Homework #4 The IS-LM Model Due March 18 Page 1 of 11 Homewok #4 The IS-LM Model Due Mach 18 1. Fun with the Keynesian Coss: a. Use the geomety of the Keynesian Coss diagam shown at the ight to deive that the govenment puchases multiplie is 1/(1

More information

Binomials and Pascal s Triangle

Binomials and Pascal s Triangle Binomils n Psl s Tringl Binomils n Psl s Tringl Curriulum R ACMMM: 0, 0, 08 ACMSM: 009 www.mthltis.om Binomils n Psl s Tringl Th Binomil Thorm sris n importnt n frquntl us formul for th lgri pnsion of

More information

P $ 1t = $ i 1t. P 2t $ $100 (1 + i 1t ) ( ) 1 + i e. 1t+1. $1 (1 + i 1t ) 1t+1 P $ 2t. $1 P e$ 1t+1. 1t+1. P $ 2t = P e$ 1 + i 1t = P e$

P $ 1t = $ i 1t. P 2t $ $100 (1 + i 1t ) ( ) 1 + i e. 1t+1. $1 (1 + i 1t ) 1t+1 P $ 2t. $1 P e$ 1t+1. 1t+1. P $ 2t = P e$ 1 + i 1t = P e$ P $ 1t = $100 1 + i 1t P 2t $ $100 = (1 + i 1t ) ( ) 1 + i 1t+1 t t + 1 $1 (1 + i 1t ) $1 P $ 1t+1 P $ 2t 1 + i 1t = P $ 1t+1 P $ 2t P $ 2t = P $ 1t+1 1 + i 1t P $ 1t+1 = $100 1 + i 1t+1 P $ 2t = P $ 1t+1

More information

Investors/Analysts Conference Accounting Workshop

Investors/Analysts Conference Accounting Workshop Investos/Analysts Confeence Accounting Wokshop Ian Bishop This pesentation contains cetain fowad-looking statements. These fowad-looking statements may be identified by wods such as believes, expects,

More information

Problem Set 11: The Effects of Changes in the Savings Rate Open Economy, Savings Responds to the Interest Rate

Problem Set 11: The Effects of Changes in the Savings Rate Open Economy, Savings Responds to the Interest Rate Eco 30233 Intemediate Macoeconomics John Lovett oblem Set 11: The Effects of Changes in the Savings Rate Open Economy, Savings Responds to the Inteest Rate Oveview: In this poblem set, you will investigate

More information

Chapter 9. Chapter 9. Introduction. Figure 9.1 The FE line. The FE Line. FE Curve Shifts. Deriving the IS Curve

Chapter 9. Chapter 9. Introduction. Figure 9.1 The FE line. The FE Line. FE Curve Shifts. Deriving the IS Curve Chapte 9. ntoduction Chapte 9 The -LM/AD-A Model: A Geneal Famewok fo Macoeconomic Analysis This chapte integates the elements of ou model that wee sepaately pesented in chaptes 3,4, and 7, coveing labo,

More information

M E M O R A N D U M ADDENDUM NO. 2. Acknowledgement of Receipt

M E M O R A N D U M ADDENDUM NO. 2. Acknowledgement of Receipt State of Florida OT OT-IT--00-M M M O A U M AUM O. ate: ovember, 0 To: From: idders obin Morgan Senior Contract Specialist Florida s Turnpike nterprise Subject: OT-IT--00-M Interior enovations and nclosure

More information

Appendix R: Technical notes for Footnote 3 (for referee s reference only)

Appendix R: Technical notes for Footnote 3 (for referee s reference only) W &Yao, Main ank ent extaction, 011 endix R: Technica notes fo Footnote 3 fo efeee s efeence ony et e the emim imosed in oth good and ad states. We anayze the thee scenaios in the new setting, esectivey

More information

Topics. Digital Systems Architecture EECE EECE Pipelining. Computer Performance. It is quite a three-pipe problem.

Topics. Digital Systems Architecture EECE EECE Pipelining. Computer Performance. It is quite a three-pipe problem. Digial Sym Achicu EECE 343-01 EECE 292-02 Pipliig D. William H. Robio Jauay 28, 2004 hp://c.vabil.u/cou/c343/ Topic i qui a h-pip poblm. Si Ahu Coa Doyl Th Avu of Shlock Holm Homwok Baic of pipliig Pipli

More information

COMPOUND INTEREST (30 August 2003)

COMPOUND INTEREST (30 August 2003) COMPOUND INTEREST 30 August 2003 We note the mateial used in this section is patially based on the efeence book: EF Haeussle and RS Paul Intoductoy Mathematical Analysis fo Business, Economics and the

More information

University of Rome Tor Vergata Department of Economics and Finance (DEF) Derivatives (Gianni Nicolini) Exercises book

University of Rome Tor Vergata Department of Economics and Finance (DEF) Derivatives (Gianni Nicolini) Exercises book Univesity of Rome To Vegata Depatment of Economics and Finance (DEF Deivatives (Gianni Nicolini Execises book Execises Pemise In this teaching notes thee ae some execises on deivatives. The stuctue and

More information

ACCOUNTANTS PROFESSIONAL LIABILITY SECTION

ACCOUNTANTS PROFESSIONAL LIABILITY SECTION AGENCY CUSTOME I: AGENCY ACCOUNTANTS POFESSIONAL LIABILITY SECTION CAIE ATE (MM//YYYY) NAIC COE POLICY NUMBE EFFECTIVE ATE NAME INSUE BA: NOTICE: THIS APPLICATION IS FO CLAIMS-MAE AN EPOTE COVEAGE, WHICH

More information

Context. Context. Chapter 10. Aggregate Demand I. The Big Picture

Context. Context. Chapter 10. Aggregate Demand I. The Big Picture Chapte 10. Aggegate Demand I Context Chapte 9 intoduced the model of aggegate demand and aggegate supply. Long un pices flexible output detemined by factos of poduction & technology unemployment equals

More information

Step one is identifying the GCF, and step two is dividing it out.

Step one is identifying the GCF, and step two is dividing it out. Throughout this course we will be looking at how to undo different operations in algebra. When covering exponents we showed how ( 3) 3 = 27, then when covering radicals we saw how to get back to the original

More information

City of Palos Verdes Estates STUDY AREA PROFILE

City of Palos Verdes Estates STUDY AREA PROFILE City of Etate STUDY AREA PROFILE STUDY AREA ID #46 BASE MAP PARK METRICS WHERE ARE PARKS MOST NEEDED AMENITY QUANTITIES AND CONDITIONS PARK NEEDS FRAMEWORK COST ESTIMATES Note: Thi Stuy Aea i not hol a

More information

Fibonacci Heaps CLRS: Chapter 20 Last Revision: 21/09/04

Fibonacci Heaps CLRS: Chapter 20 Last Revision: 21/09/04 Fibonacci Heaps CLRS: Chapter 20 Last Revision: 21/09/04 1 Binary heap Binomial heap Fibonacci heap Procedure (worst-case) (worst-case) (amortized) Make-Heap Θ(1) Θ(1) Θ(1) Insert Θ(lg n) O(lg n) Θ(1)

More information

Design and Analysis of Algorithms 演算法設計與分析. Lecture 8 November 16, 2016 洪國寶

Design and Analysis of Algorithms 演算法設計與分析. Lecture 8 November 16, 2016 洪國寶 Design and Analysis of Algorithms 演算法設計與分析 Lecture 8 November 6, 206 洪國寶 Outline Review Amortized analysis Advanced data structures Binary heaps Binomial heaps Fibonacci heaps Data structures for disjoint

More information

Chapter 12/11 Part 1. Aggregate Demand II: Applying the IS-LM Model 10/28/2017. Equilibrium in the IS -LM model IN THIS CHAPTER WE: M P L( r, Y )

Chapter 12/11 Part 1. Aggregate Demand II: Applying the IS-LM Model 10/28/2017. Equilibrium in the IS -LM model IN THIS CHAPTER WE: M P L( r, Y ) Chapte 12/11 at 1 Aggegate Demand II: Applying the -LM Model IN TH CHATER WE: use the -LM model to analyze the effects of shocks, fiscal policy, monetay policy affect income and the inteest ate in the

More information

Lecture 12: Aggregate Demand (chapter 11)

Lecture 12: Aggregate Demand (chapter 11) Lectue : Aggegate Demand (chapte ) Lectue notes: 0/05 (evised /8/00) topics: -LM AD Long un vesus shot un Geat Depession ) -LM Recall two makets: : Equilibium in goods maket: planned expenditue equals

More information

A Short-Run Model of the Large Open Economy

A Short-Run Model of the Large Open Economy APPENDIX A Shot-Run Model of the Lage Open Economy When analyzing policies in an economy such as that of the United States, we need to combine the closed-economy logic of the IS LM model and the smallopen-economy

More information

Average Switching Costs in Dynamic Logit Models John Kennan January 2008

Average Switching Costs in Dynamic Logit Models John Kennan January 2008 Arag Switching Costs in Dynamic Logit Modls ohn Knnan anuary 28 Thr is an xtnsi litratur on discrt choic modls, in which agnts choos on of a finit st of altrnatis. Th mpirical rlationship btwn th charactristics

More information

In this section we revisit two special product forms that we learned in Chapter 5, the first of which was squaring a binomial.

In this section we revisit two special product forms that we learned in Chapter 5, the first of which was squaring a binomial. 5B. SPECIAL PRODUCTS 11 5b Special Products Special Forms In this section we revisit two special product forms that we learned in Chapter 5, the first of which was squaring a binomial. Squaring a binomial.

More information

(a) The first best decision rule is to choose d=0 in and d=1 in s. (b) If we allocate the decision right to A, the per period expected total payoff

(a) The first best decision rule is to choose d=0 in and d=1 in s. (b) If we allocate the decision right to A, the per period expected total payoff Solution to PS 5 Poblem : daptation (a The fit bet deciion ule i to chooe d0 in and d in. (b If we allocate the deciion ight to, the pe peiod expected total payoff ( EU [ + U] i ( + 4 5. If we allocate

More information

AD continued (Ch.11) An increase in G. Policy analysis with the IS-LM. Model

AD continued (Ch.11) An increase in G. Policy analysis with the IS-LM. Model AD continued (Ch.11 Use the IS-LM model to see how policies and shocks affect income and the inteest ate in the shot un when pices ae fixed deive the aggegate demand cuve exploe vaious explanations fo

More information

This work is motivated by the need to solve the inventory routing problem when implementing a business

This work is motivated by the need to solve the inventory routing problem when implementing a business TRANSPORTATION SCIENCE Vol. 38, No. 2, May 2004, pp. 210 223 issn 0041-1655 eissn 1526-5447 04 3802 0210 infoms doi 10.1287/tsc.1030.0042 2004 INFORMS Delivey Volume Optimization Ann Melissa Campbell Tippie

More information

Classical Linear Regression Model

Classical Linear Regression Model Classical Linar Rgrssion Modl Lt y t b th t-th random variabl, t, 2,,, whr is th sampl siz y Assumptions A: Linarity in th paramtr vctor b: E(y t ) Σ i ti β i : E(Y) Xb whr ti is th t-th obsrvation on

More information

Supplementary information for: Simplified Dynamic Energy Budget model for analysing ecotoxicity data

Supplementary information for: Simplified Dynamic Energy Budget model for analysing ecotoxicity data 1 Supplmntary information for: Simplifi Dynamic Enrgy Bugt mol for analysing cotoxicity ata Tjalling Jagr an Elk I. Zimmr Novmbr 15, 2011 Contnts 1 Th stanar DEB mol 1 1.1 A wor on notation....................................

More information

Chapter 10 Aggregate Demand I

Chapter 10 Aggregate Demand I Chapte 10 Aggegate Demand I CHAPTER 10 0 CHAPTER 10 1 Leaning Objectives Chapte 9 intoduced the model of aggegate demand and aggegate supply. Long un (Classical Theoy) pices flexible output detemined by

More information

Section 5.3 Factor By Grouping

Section 5.3 Factor By Grouping Section 5.3 Factor By Grouping INTRODUCTION In the previous section you were introduced to factoring out a common monomial factor from a polynomial. For example, in the binomial 6x 2 + 15x, we can recognize

More information

VaR and Stress Testing Debt Portfolios Before, During and After the Banking Crisis

VaR and Stress Testing Debt Portfolios Before, During and After the Banking Crisis UK Bon Portfolio Portfolio VaR Strss Tsting an PCA Conclusion VaR an Strss Tsting Dbt Portfolios Bfor, During an Aftr th Banking Crisis Carol Alxanr ICMA Cntr, Hnly Businss School at Raing Wbinar Broacast

More information

Problem Set 7 ID s The Effects of Government Borrowing

Problem Set 7 ID s The Effects of Government Borrowing staple tagets Staple Me o lose 1 point. Intoduction to Macoeconomics IDs 8000-8999 oblem Set 7 ID s 8000-8999 The Effects of Govenment Boowing Closed Economy, No Foeign Secto, Savings Responds to the Inteest

More information

Financial Mathematics Lecture 8-9. Dr Wioletta Nowak

Financial Mathematics Lecture 8-9. Dr Wioletta Nowak Financial Mahmaics Lcr 8-9 Dr Wiola Nowak Drivaivs Drivaivs financial conracs which val pns on h val of h nrlying ass. Th nrlying ass can b physical commoiis sch as oil, mals (gol, plainm, coppr, silvr,

More information

St Columba s High School Advanced Higher Maths The Binomial Theorem

St Columba s High School Advanced Higher Maths The Binomial Theorem St Columba s High School Advanced Highe Maths The Binomial Theoem Contents 1 Intoduction to Binomials Factoial Notation Combinations and and n C 4 Pascal s Tiangle & Binomial Coefficient 6 The Binomial

More information

8.6 CARS. Objective 1 Compute the monthly payment and interest costs for a car loan.

8.6 CARS. Objective 1 Compute the monthly payment and interest costs for a car loan. 8.6 CARS Objective 1 Compute the monthly payment and inteest costs fo a ca loan. Suppose that you decide to boow $15,000 fo a new ca. You can select one of the following loans, each equiing egula monthly

More information

A Notes on Partial Fraction

A Notes on Partial Fraction See iscussions, stts, n utho pofiles fo this publiction t: https://www.esechgte.net/publiction/388535 A Notes on Ptil Fction Metho August 07 DOI: 0.340/RG...66.49 CITATIONS 0 utho: Anku Knujiy Inin Institute

More information

Polynomials. Factors and Greatest Common Factors. Slide 1 / 128. Slide 2 / 128. Slide 3 / 128. Table of Contents

Polynomials. Factors and Greatest Common Factors. Slide 1 / 128. Slide 2 / 128. Slide 3 / 128. Table of Contents Slide 1 / 128 Polynomials Table of ontents Slide 2 / 128 Factors and GF Factoring out GF's Factoring Trinomials x 2 + bx + c Factoring Using Special Patterns Factoring Trinomials ax 2 + bx + c Factoring

More information

Integer Exponents. Examples: 5 3 = = 125, Powers You Should Know

Integer Exponents. Examples: 5 3 = = 125, Powers You Should Know Algebra of Exponents Mastery of the laws of exponents is essential to succee in Calculus. We begin with the simplest case: 200 Doug MacLean Integer Exponents Suppose n is a positive integer. Then a n is

More information

Lecture 10/12 Data Structures (DAT037) Ramona Enache (with slides from Nick Smallbone and Nils Anders Danielsson)

Lecture 10/12 Data Structures (DAT037) Ramona Enache (with slides from Nick Smallbone and Nils Anders Danielsson) Lecture 10/12 Data Structures (DAT037) Ramona Enache (with slides from Nick Smallbone and Nils Anders Danielsson) Balanced BSTs: Problem The BST operahons take O(height of tree), so for unbalanced trees

More information

Costs. March 23, 2004

Costs. March 23, 2004 Costs Mach 23, 2004 1 Economic pofits and cost minimization 1.1 Costs Assume that inputs ae hied in pefectly competitive makets. Fims can hie all the capital o labo they want at the cuent ates; how much

More information