Suffix Trees. Outline. Introduction Suffix Trees (ST) Building STs in linear time: Ukkonen s algorithm Applications of ST.
|
|
- Geoffrey Leonard
- 6 years ago
- Views:
Transcription
1 Suffi Trees Outline Introduction Suffi Trees (ST) Building STs in liner time: Ukkonen s lgorithm Applictions of ST 2 Introduction 3
2 Sustrings String is ny sequence of chrcters. Sustring of string S is string composed of chrcters i through j, i j of S. S = cter;te is sustring. cr is not sustring. Empty string is sustring of S. 4 Susequences Susequence of string S is string composed of chrcters i < i 2 < < i k of S. S = cter; te is susequence. cr is susequence. Empty string is susequence of S. 5 String/Pttern Mtching - I You re given source string S. Suppose we hve to nswer queries of the form: is the string p i sustring of S? Knuth-Morris-Prtt (KMP) string mtching. O( S + p i ) time per query. O(n S + Σ i p i ) time for n queries. Suffi tree solution. O( S + Σ i p i ) time for n queries. 6 2
3 String/Pttern Mtching - II KMP preprocesses the query string p i, wheres the suffi tree method preprocesses the source string (tet) S. The suffi tree for the tet is uilt in O(m) time during pre-processing stge; therefter, whenever string of length O(n) is input, the lgorithm serches it in O(n) time using tht suffi tree. 7 String Mtching: Prefies & Suffies Sustrings of S eginning t the first position of S re clled prefies of S, nd sustrings tht end t its lst position re clled suffies of S. S=AACTAG Prefies: AACTAG,AACTA,AACT,AAC,AA,A Suffies: AACTAG,ACTAG,CTAG,TAG,AG,G p i is sustring of S iff p i is prefi of some suffi of S. Suffi Trees 9 3
4 Definition: Suffi Tree (ST) T for S of length m. A rooted tree with m leves numered from to m. 2. Ech internl node, ecluding the root, of T hs t lest 2 children. 3. Ech edge of T is leled with nonempty sustring of S. 4. No two edges out of node cn hve edge-lels strting with the sme chrcter. 5. For ny lef i, the conctention of the edge-lels on the pth from the root to lef i ectly spells out the suffi of S, nmely S[i,m], tht strts t position i. 0 Emple: Suffi Tree for S=c Eistence of suffi tree S If one suffi S j of S mtches prefi of nother suffi S i of S, then the pth for S j would not end t lef. S = S = nd S 4 = How to void this prolem? Assume tht the lst chrcter of S ppers nowhere else in S. Add new chrcter not in the lphet to the end of S. 2 4
5 Emple: Suffi Tree for S=c 3 Building STs in liner time: Ukkonen s lgorithm 4 Building STs in liner time Weiner s lgorithm [FOCS, 973] The lgorithm of 973 clled y Knuth First lgorithm of liner time, ut much spce McGreight s lgorithm [JACM, 976] Liner time nd qudrtic spce More redle Ukkonen s lgorithm [Algorithmic, 995] Liner time lgorithm nd less spce This is wht we will focus on 5 5
6 6 Implicit Suffi Trees Ukkonen s lgorithm constructs sequence of implicit STs, the lst of which is converted to true ST of the given string. An implicit suffi tree for string S is tree otined from the suffi tree for S y removing from ll edge lels removing ny edges tht now hve no lel removing ny node tht does not still hve t lest two children An implicit suffi tree for prefi S[,i] of S is similrly defined sed on the suffi tree for S[,i]. I i will denote the implicit suffi tree for S[,i]. Ech suffi is in the tree, ut my not end t lef. Emple: Construction of the Implicit ST Implicit tree for from tree for {,,,,, } Construction of the Implicit ST: Remove Remove {,,,,, }
7 Construction of the Implicit ST: After the Removl of Remove {,,,, } Construction of the Implicit ST: Remove unleled edges Remove unleled edges {,,,, } Construction of the Implicit ST: After the Removl of Unleled Edges Remove unleled edges {,,,, }
8 Construction of the Implicit ST: Remove interior nodes Remove internl nodes with only one child {,,,, } Construction of the Implicit ST: Finl implicit tree Remove internl nodes with only one child {,,,, } Ukkonen s Algorithm (UA) I i is the implicit suffi tree of the string S[, i] Construct I /* Construct I i+ from I i */ for i = to m- do /* phse i+ */ for j = to i+ do /* etension j */ Find the end of the pth P from the root whose lel is S[j, i] in I i nd etend P with S[i+] y suffi etension rules; Convert I m into suffi tree S 24 8
9 Emple S = cd i+ = i+ = 2 etend to i+ = 3 etend to etend to 25 Etension Rules Gol: etend ech S[j,i] into S[j,i+] Rule : S[j,i] ends t lef Add chrcter S(i+) to the end of the lel on tht lef edge Rule 2: S[j,i] doesn t end t lef, nd the following chrcter is not S(i+) Split new lef edge for chrcter S(i+) My need to crete n internl node if S[j,i] ends in the middle of n edge Rule 3: S[j,i+] is lredy in the tree No updte 26 Emple: Etension Rules Implicit tree for from tree for Rule : 2: 3: t dd lredy lef lef in node edge tree (nd n interior node) 9
10 UA for c () S[,3]= E S(j,i) S(i+) UA for c (2) 29 UA for c (3) 30 0
11 UA for c (4) 3 Oservtions Once S[j,i] is locted in the tree, etension rules tke only constnt time Nively we could find the end of ny suffi S[j,i] in O(S[j,i]) time y wlking from the root of the current tree. By tht pproch, I m could e creted in O(m 3 ) time. Mking Ukkonen s lgorithm O(m) Suffi links Skip nd count trick Edge-lel compression A stopper Once lef, lwys lef 32 Suffi Links Consider the two strings nd Suppose some internl node v of the tree is leled with nd nother node s(v) in the tree is leled with The edge (v,s(v)) is clled suffi link Do ll internl nodes (the root is not considered n internl node) hve suffi links? 33
12 Emple: suffi links S = ACACACAC AC C AC AC AC AC AC AC 34 Suffi Link Lemm If new internl node v with pth-lel is dded to the current tree in etension j of some phse i+, then the pth leled lredy ends t n internl node of the tree or the internl node leled will e creted in the etension of j+ in the sme phse i+ string is empty nd s(v) is the root Proof of Suffi Link Lemm A new internl node is creted only y the etension rule 2 This mens tht there re two distinct suffies of S[,i+] tht strt with S(i+) nd c where c is not S(i+) This mens tht there re two distinct suffies of S[,i+] tht strt with S(i+) nd c where c is not S(i+) Thus, if is not empty, will lel n internl node once etension j+ is processed which is the etension of 2
13 Corollry of Suffi Link Lemm Every internl node of n implicit suffi tree hs suffi link from it. 37 How to use suffi links - S[,i] must end t lef since it is the longest string in the implicit tree I i Keep pointer to this lef in ll cses nd etend ccording to rule Locting S[j+,i] from S[j,i] which is t node w If w is n internl node, set v to w Otherwise, set v = prent(w) If v is the root, you must trverse from the root to find S[j+,i] If not, go to s(v) nd egin serch for the remining portion of S[j,i] from there 38 How to use suffi links
14 Skip nd Count Trick () Prolem: Moving down from s(v), directly implemented, tkes time proportionl to the numer of chrcters compred Solution: To mke running time proportionl to the numer of nodes in the pth serched, insted of the numer of chrcters 40 Skip nd Count Trick (2) After 4 nodes down-skips, the end of S[j, i] is found. 4 Skip nd Count Trick (3) Node-depth of v, denoted (ND(v)), is the numer of nodes on the pth from the root to the node v Lemm: For ny suffi link (v, s(v)) trversed in Ukkonen s lgorithm, t tht moment, ND(v) ND(s(v))+ 42 4
15 Skip nd Count Trick (4) At the moment of trversing (v,s(v)): ND(v) ND(s(v)) Skip nd Count Trick (5) The current node-depth of the lgorithm is the node depth of the node most recently visited y the lgorithm Lemm: Using the skip nd count trick, ny phse of Ukkonen s lgorithm tkes O(m) time. Up-wlk: decreses the current node-depth y Suffi link trversl: sme s up-wlk Totlly, the current node-depth is decresed y 2m. No node hs depth >m. The totl possile increment to the current node-depth is 3m. 45 Edge Lel Representtion Potentil Prolem Size of edge lels my require Ω(m 2 ) spce Thus, the time for the lgorithm is t lest s lrge s the size of its output Emple S = cdefghijklmnopqrstuvwyz Totl length is Σ j<m+ j = m(m+)/2 Similr prolem cn hppen when the length of the string is ritrrily lrger thn the lphet size Solution Lel edges with pir of indices indicting eginning nd end of positions of the sustring in S 5
16 Modified Etension Rules Rule 2: new lef edge (phse i+) crete edge (i+, i+) split edge (p, q) => (p, w) nd (w +, q) Rule : lef edge etension lel hd to e (p,i) efore etension given rule 2 ove nd n induction rgument: (p, q) => (p, q + ) Rule 3 Do nothing 46 Full edge lel representtion String S = Edge-lel Compression String S = 3 (3,6) (,2) [or (4,5)?] (2,2) (6,6) 6 (6,6) 5 (6,6) (3,6) (3,6)
17 A Stopper In ny phse, if suffi etension rule 3 pplies in etension j, it will lso pply in ll etensions k, where k>j, until the end of the phse. The etensions in phse i+ tht re done fter the first eecution of rule 3 re sid to e done implicitly. This is in contrst to ny etension j where the end of S[j, i] is eplicitly found. An etension of tht kind is clled nd eplicit etension. Hence, we cn end ny phse i+ when the first etension rule 3 pplies. 49 Once lef, lwys lef () If t some point in UA lef is creted nd leled j (for the suffi strting t position j of S), then tht lef will remin lef in ll successive trees creted during the lgorithm. In ny phse i, there is n initil sequence of consecutive etensions (strting with etension ) in which only rule or 2 pplies, where let j i e the lst etension in this sequence. Note tht j i j i+. 50 Once lef, lwys lef (2) Implicit etensions: for etensions to j i, write [, e] on the lef edge, where e is symol denoting the current end nd is set to i + once t the eginning. In lter phses, we will not need to eplicitly etend this lef ut rther cn implicitly etend it y incrementing e once in its glol loction. Eplicit etensions: from etension j i+ till first rule 3 etension is found (or until etension i+ is done) 5 7
18 Once lef, lwys lef (3): Single phse lgorithm j* is the lst eplicit etension computed in phse i+ Phse i+ Increment e to i+ (implicitly etending ll eisting leves) Eplicitly compute successive etensions strting t j i+ nd continuing until reching the first etension j* where rule 3 pplies or no more etensions needed Set j i+ to j* -, to prepre to the net phse Oservtion Phse i nd i+ shre t most eplicit etension 52 Emple: S= - () I (,e) e =, J = I 2 (,e) (2,e) 2 e = 2, S[,2] : skip S[2,2] : rule 2, crete(2, e) j 2 = 2 I 3 (,e) (2,e) 2 e = 3, S[,3].. S[2,3] : skip S[3,3] : rule 3 j 3 = 2 53 Emple: S= - (2) I 4 (,e) (2,e) 2 e = 4, S[,4].. S[2,4] : skip S[3,4] : rule 3 S[4,4] : uto skip j 4 = 2 I 5 (,2) (3,e) (5,e) 3 (2,2) (5,e) 5 (3,e) (5,e) 2 4 e = 5, S[,5].. S[2,5] : skip S[3,5] : rule 2, split (,e) (, 2) nd (3,e), crete (5,e) S[4,5] : rule 2, split (2,e) (2,2) nd (3,e), crete (5,e) S[5,5] : rule 2, crete (5,e) j 5 =
19 Emple: S= - (3) I 6 (,2) (3,e) (5,e) 3 (2,2) (5,e) 5 (3,e) (5,e) 2 4 e = 6, S[,6].. S[5,6] : skip S[6,6] : rule 3 j 6 = 5 I 7 (,2) (3,e) (5,e) 3 55 (7,e) 7 (2,2) (5,5) (7,e) 6 (3,e) (5,e) (6,e) e = 7, S[,7].. S[5,7] : skip S[6,7] : rule 2, split (5,e) (5,5) nd (6,e), crete (6,e) S[7,7] : rule 2, crete (7,e) j 7 = 7 Compleity of UA Since ll the implicit etensions in ny phse is constnt, their totl cost is O(m). Totlly, only 2m eplicit etensions re eecuted. The m numer of down-wlking skips is O(m). Time-compleity of Ukkonen s lgorithm: O(m) 56 Finishing up Convert finl implicit suffi tree to true suffi tree Add using just nother phse of eecution Now ll suffies will e leves Replce e in every lef edge with m Just requires trversl of tree which is O(m) time 57 9
20 58 Implementtion Issues () When the size of the lphet grows: For lrge trees suffi links llow n lgorithm to move quickly from one prt of the tree to distnt prt of the tree. This is gret for worst-cse time ounds, ut its horrile if the tree isn't entirely in memory. Thus, implementing ST to reduce prcticl spce use cn e serious concern. The min design issues re how to represent nd serch the rnches out of the nodes of the tree. A prcticl design must lnce etween constrints of spce nd need for speed 59 Implementtion Issues (2) There re four sic choices to represent rnches An rry of size Θ( Σ ) t ech non-lef node v A linked list t node v of chrcters tht pper t the eginning of the edge-lels out of v. If its kept in sorted order it reduces the verge time to serch for given chrcter In the worst cse it, dds time Σ to every node opertion. If the numer of children of v is lrge, then little spce is sved over the rry while noticely degrding performnce A lnced tree implements the list t node v Additions nd serches tke O(logk) time nd O(k) spce, where k is the numer of children of v. This lterntive mkes sense only when k is firly lrge. A hshing scheme. The chllenge is to find scheme lncing spce with speed. For lrge trees nd lphets hshing is very ttrctive t lest for some of the nodes Implementtion Issues (3) When m nd Σ re lrge enough, the est design is proly miture of the ove choices. Nodes ner the root of the tree tend to hve the most children, so rrys re sensile choice t those nodes. For nodes in the middle of suffi tree, hshing or lnced trees my e the est choice. Sometimes the lphet size is eplicitly presented in the time nd spce ounds Construction time is O(m log Σ ),using Θ(m Σ ) spce. m is the size of the string
21 Applictions of Suffi Trees 6 Applictions of Suffi Trees Ect string mtching Sustring prolem for dtse Longest common sustring Suffi rrys 62 Ect String Mtching () Ect mtching prolem: given pttern P of length n nd tet T of length m, find ll occurrences of P in T in O(n+m) time. Overview of the ST pproch: Built ST for tet T in O(m) time Mtch the chrcters of P long the unique pth in ST until either P is ehusted or no more mtches re possile In the ltter cse, P doesn t pper nywhere in T In the former cse, every lef in the sutree elow the point of the lst mtch is numered with strting loction of P in T, nd every strting loction of P in T numers such lef ST pproch spends O(m) preprocessing time nd then O(n+k) serch time, where k is the numer of occurrences of P in T 63 2
22 Ect String Mtching (2) When serch termintes t n element node, P ppers ectly once in the source string T. When the serch for P termintes t rnch node, ech element node in the sutree rooted t this rnch node gives different occurrence of P. c c c c c c Notes: P = ; T = c Pttern P mtches pth down to the point shown y n rrow, nd s required, the leves elow tht point re numered nd Sustring Prolem for Dtse Input: dtse D ( set of strings) nd string S Output: find ll the strings in D contining S s sustring Usge: identity of the person Ect string mtching methods: cnnot work Suffi tree: D is stored in O(m) spce, where m is the totl length of ll the strings in D. Suffi tree is uilt in O(m) time Ech lookup of S (the length of S is n) costs O(n) time 65 Longest common sustring () Input: two strings S nd S 2 Output: find the longest sustring S common to S nd S 2 Emple: S =common-sustring S 2 =common-susequence Then, S=common-sus 66 22
23 Longest common sustring (2) Build suffi tree for S nd S 2 Ech lef represents either suffi from one of S nd S 2, or suffi from oth S nd S 2 Mrk ech internl node v with (2) if there is lef in the sutree of v representing suffi from S (S 2 ) The pth-lel of ny internl node mrked oth nd 2 is sustring common to oth S nd S 2, nd the longest such string is the longest common sustring. 67 Longest common sustring (3) S = c, S 2 =, S = 68 Suffi Arrys () A suffi rry of n m-chrcter string S, is n rry of integers in the rnge to m, specifying the leicogrphic order of the m suffies of S. Emple: S = c 69 23
24 Suffi Arrys (2) A suffi rry of S cn e otined from the suffi tree T of S y performing leicl depth-first serch of T 70 Suffi Arrys: Ect string mtching Given two strings T nd P, where T = m nd P = n, find ll the occurrences of P in T? Using the inry serch on the suffi rry of T, ll the occurrences of P in T cn e found in O(n logm) time. Emple: let T = c nd P = c 7 References Dn Gusfield: Algorithms on Strings, Trees, nd Sequences. University of Cliforni, Dvis.Cmridge University Press,997 El Hunt et l.: A dtse inde to lrge iologicl sequences. Slides t VLDB, 200 R.C.T. Lee nd Chin Lung Lu.: Suffi Trees. Slides t CS 533 Algorithms for Moleculr Biology 72 24
Outline. CSE 326: Data Structures. Priority Queues Leftist Heaps & Skew Heaps. Announcements. New Heap Operation: Merge
CSE 26: Dt Structures Priority Queues Leftist Heps & Skew Heps Outline Announcements Leftist Heps & Skew Heps Reding: Weiss, Ch. 6 Hl Perkins Spring 2 Lectures 6 & 4//2 4//2 2 Announcements Written HW
More informationToday s Outline. One More Operation. Priority Queues. New Operation: Merge. Leftist Heaps. Priority Queues. Admin: Priority Queues
Tody s Outline Priority Queues CSE Dt Structures & Algorithms Ruth Anderson Spring 4// Admin: HW # due this Thursdy / t :9pm Printouts due Fridy in lecture. Priority Queues Leftist Heps Skew Heps 4// One
More informationSuffix trees and their uses
Prt I Suffi trees nd their uses Introdution to suffi trees A suffi tree is dt struture tht eposes the internl struture of string in deeper wy thn does the fundmentl preproessing disussed in Setion?? Suffi
More information9.3. Regular Languages
9.3. REGULAR LANGUAGES 139 9.3. Regulr Lnguges 9.3.1. Properties of Regulr Lnguges. Recll tht regulr lnguge is the lnguge ssocited to regulr grmmr, i.e., grmmr G = (N, T, P, σ) in which every production
More informationINF 4130 Exercise set 4
INF 4130 Exercise set 4 Exercise 1 List the order in which we extrct the nodes from the Live Set queue when we do redth first serch of the following grph (tree) with the Live Set implemented s LIFO queue.
More informationA ppendix to. I soquants. Producing at Least Cost. Chapter
A ppendix to Chpter 0 Producing t est Cost This ppendix descries set of useful tools for studying firm s long-run production nd costs. The tools re isoqunts nd isocost lines. I soqunts FIGURE A0. SHOWS
More informationArithmetic and Geometric Sequences
Arithmetic nd Geometric Sequences A sequence is list of numbers or objects, clled terms, in certin order. In n rithmetic sequence, the difference between one term nd the next is lwys the sme. This difference
More informationBurrows-Wheeler Transform and FM Index
Burrows-Wheeler Trnsform nd M Index Ben ngmed You re free to use these slides. If you do, plese sign the guestbook (www.lngmed-lb.org/teching-mterils), or emil me (ben.lngmed@gmil.com) nd tell me briefly
More informationAddition and Subtraction
Addition nd Subtrction Nme: Dte: Definition: rtionl expression A rtionl expression is n lgebric expression in frction form, with polynomils in the numertor nd denomintor such tht t lest one vrible ppers
More informationWhat is Monte Carlo Simulation? Monte Carlo Simulation
Wht is Monte Crlo Simultion? Monte Crlo methods re widely used clss of computtionl lgorithms for simulting the ehvior of vrious physicl nd mthemticl systems, nd for other computtions. Monte Crlo lgorithm
More information(a) by substituting u = x + 10 and applying the result on page 869 on the text, (b) integrating by parts with u = ln(x + 10), dv = dx, v = x, and
Supplementry Questions for HP Chpter 5. Derive the formul ln( + 0) d = ( + 0) ln( + 0) + C in three wys: () by substituting u = + 0 nd pplying the result on pge 869 on the tet, (b) integrting by prts with
More informationMeasuring Search Trees
Mesuring Serch Trees Christin Bessiere 1, Bruno Znuttini 2, nd Cèsr Fernández 3 1 LIRMM-CNRS, Montpellier, Frnce 2 GREYC, Cen, Frnce 3 Univ. de Lleid, Lleid, Spin Astrct. The SAT nd CSP communities mke
More information3: Inventory management
INSE6300 Ji Yun Yu 3: Inventory mngement Concordi Februry 9, 2016 Supply chin mngement is bout mking sequence of decisions over sequence of time steps, fter mking observtions t ech of these time steps.
More informationCH 71 COMPLETING THE SQUARE INTRODUCTION FACTORING PERFECT SQUARE TRINOMIALS
CH 7 COMPLETING THE SQUARE INTRODUCTION I t s now time to py our dues regrding the Qudrtic Formul. Wht, you my sk, does this men? It mens tht the formul ws merely given to you once or twice in this course,
More informationCache CPI and DFAs and NFAs. CS230 Tutorial 10
Cche CPI nd DFAs nd NFAs CS230 Tutoril 10 Multi-Level Cche: Clculting CPI When memory ccess is ttempted, wht re the possible results? ccess miss miss CPU L1 Cche L2 Cche Memory L1 cche hit L2 cche hit
More informationTrigonometry - Activity 21 General Triangle Solution: Given three sides.
Nme: lss: p 43 Mths Helper Plus Resoure Set. opyright 003 rue. Vughn, Tehers hoie Softwre Trigonometry - tivity 1 Generl Tringle Solution: Given three sides. When the three side lengths '', '' nd '' of
More informationProblem Set 2 Solutions
Msshusetts Institute of Tehnology Hnout 6 6.854J/18.415J: Avne Algorithms Wenesy, Septemer 21, 2005 Dvi Krger Prolem Set 2 Solutions Prolem 1. We ugment every noe in the sply tree with the numer.es of
More informationMARKET POWER AND MISREPRESENTATION
MARKET POWER AND MISREPRESENTATION MICROECONOMICS Principles nd Anlysis Frnk Cowell Note: the detil in slides mrked * cn only e seen if you run the slideshow July 2017 1 Introduction Presenttion concerns
More informationBuckling of Stiffened Panels 1 overall buckling vs plate buckling PCCB Panel Collapse Combined Buckling
Buckling of Stiffened Pnels overll uckling vs plte uckling PCCB Pnel Collpse Comined Buckling Vrious estimtes hve een developed to determine the minimum size stiffener to insure the plte uckles while the
More informationControlling a population of identical MDP
Controlling popultion of identicl MDP Nthlie Bertrnd Inri Rennes ongoing work with Miheer Dewskr (CMI), Blise Genest (IRISA) nd Hugo Gimert (LBRI) Trends nd Chllenges in Quntittive Verifiction Mysore,
More information3/1/2016. Intermediate Microeconomics W3211. Lecture 7: The Endowment Economy. Today s Aims. The Story So Far. An Endowment Economy.
1 Intermedite Microeconomics W3211 Lecture 7: The Endowment Economy Introduction Columbi University, Spring 2016 Mrk Den: mrk.den@columbi.edu 2 The Story So Fr. 3 Tody s Aims 4 Remember: the course hd
More informationGet Solution of These Packages & Learn by Video Tutorials on KEY CONCEPTS
FREE Downlod Study Pckge from wesite: www.tekoclsses.com & www.mthsbysuhg.com Get Solution of These Pckges & Lern y Video Tutorils on www.mthsbysuhg.com KEY CONCEPTS THINGS TO REMEMBER :. The re ounded
More informationTHE FINAL PROOF SUPPORTING THE TURNOVER FORMULA.
THE FINAL PROOF SUPPORTING THE TURNOVER FORMULA. I would like to thnk Aris for his mthemticl contriutions nd his swet which hs enled deeper understnding of the turnover formul to emerge. His contriution
More informationCSCI 104 Splay Trees. Mark Redekopp
CSCI 0 Sply Trees Mrk edekopp Soures / eding Mteril for these slides ws derived from the following soures https://www.s.mu.edu/~sletor/ppers/selfdjusting.pdf http://digitl.s.usu.edu/~lln/ds/notes/ch.pdf
More informationChoice of strategic variables under relative profit maximization in asymmetric oligopoly
Economics nd Business Letters () 5-6 04 Choice of strtegic vriles under reltive profit mximiztion in symmetric oligopoly Atsuhiro Stoh Ysuhito Tnk * Fculty of Economics Doshish University Kyoto Jpn Received:
More informationECON 105 Homework 2 KEY Open Economy Macroeconomics Due November 29
Instructions: ECON 105 Homework 2 KEY Open Economy Mcroeconomics Due Novemer 29 The purpose of this ssignment it to integrte the explntions found in chpter 16 ok Kennedy with the D-S model nd the Money
More informationTechnical Report Global Leader Dry Bulk Derivatives. FIS Technical - Grains And Ferts. Highlights:
Technicl Report Technicl Anlyst FIS Technicl - Grins And Ferts Edwrd Hutn 44 20 7090 1120 Edwrdh@freightinvesr.com Highlights: SOY The weekly schstic is wrning slowing momentum in the mrket. USD 966 ¼
More information"Multilateralism, Regionalism, and the Sustainability of 'Natural' Trading Blocs"
"Multilterlism, Regionlism, nd the Sustinility of 'Nturl' Trding Blocs" y Eric Bond Deprtment of Economics Penn Stte June, 1999 Astrct: This pper compres the mximum level of world welfre ttinle in n incentive
More informationTechnical Report Global Leader Dry Bulk Derivatives. FIS Technical - Grains And Ferts. Highlights:
Technicl Report Technicl Anlyst FIS Technicl - Grins And Ferts Edwrd Hutn 44 20 7090 1120 Edwrdh@freightinvesr.com Highlights: SOY The weekly chrt is chowing lower high suggesting wekness going forwrd,
More informationJOURNAL THE ERGODIC TM CANDLESTICK OSCILLATOR ROBERT KRAUSZ'S. Volume 1, Issue 7
ROBERT KRUSZ'S JOURNL Volume 1, Issue 7 THE ERGODIC TM CNDLESTICK OSCILLTOR S ometimes we re lucky (due to our diligence) nd we find tool tht is useful nd does the jo etter thn previous tools, or nswers
More informationSolutions to Exercises, Set 3
Shool of Computer Siene, University of Nottinghm G5MAL Mhines nd their Lnguges, Spring 1 Thorsten Altenkirh Solutions to Exerises, Set 3 Fridy 3rd Mrh 1 1. () () L(+ +ǫ) = {L(E +F) = L(E) L(F)} L() L(
More informationReinforcement Learning. CS 188: Artificial Intelligence Fall Grid World. Markov Decision Processes. What is Markov about MDPs?
CS 188: Artificil Intelligence Fll 2010 Lecture 9: MDP 9/2/2010 Reinforcement Lerning [DEMOS] Bic ide: Receive feedbck in the form of rewrd Agent utility i defined by the rewrd function Mut (lern to) ct
More informationRoma December 2008 Cadastre and agriculture subsidies : the Spanish experience
Cdstre nd griculture susidies : the Spnish experience Evolution of the Common Agriculturl Policy (CAP), The role of Cdstre The LPIS nd the SIGPAC Towrds Interoperility Evolution of Common Agriculturl Policy
More informationUNIVERSITY OF NOTTINGHAM. Discussion Papers in Economics BERTRAND VS. COURNOT COMPETITION IN ASYMMETRIC DUOPOLY: THE ROLE OF LICENSING
UNIVERSITY OF NOTTINGHAM Discussion Ppers in Economics Discussion Pper No. 0/0 BERTRAND VS. COURNOT COMPETITION IN ASYMMETRIC DUOPOLY: THE ROLE OF LICENSING by Arijit Mukherjee April 00 DP 0/0 ISSN 160-48
More informationInternational Monopoly under Uncertainty
Interntionl Monopoly under Uncertinty Henry Ary University of Grnd Astrct A domestic monopolistic firm hs the option to service foreign mrket through export or y setting up plnt in the host country under
More informationProblem Set 2 Suggested Solutions
4.472 Prolem Set 2 Suggested Solutions Reecc Zrutskie Question : First find the chnge in the cpitl stock, k, tht will occur when the OLG economy moves to the new stedy stte fter the government imposes
More informationInteracting with mathematics in Key Stage 3. Year 9 proportional reasoning: mini-pack
Intercting with mthemtics in Key Stge Yer 9 proportionl resoning: mini-pck Intercting with mthemtics Yer 9 proportionl resoning: mini-pck Crown copyright 00 Contents Yer 9 proportionl resoning: smple unit
More informationDrawing Finite State Machines in L A TEX and TikZ A Tutorial
Drwing Finite Stte Mchines in L A TEX nd TikZ A Tutoril Styki Sikdr nd Dvid Ching ssikdr@nd.edu Version 3 Jnury 7, 208 Introduction L A TEX (pronounced ly-tek) is n open-source, multipltform document preprtion
More informationRoadmap of This Lecture
Reltionl Model Rodmp of This Lecture Structure of Reltionl Dtbses Fundmentl Reltionl-Algebr-Opertions Additionl Reltionl-Algebr-Opertions Extended Reltionl-Algebr-Opertions Null Vlues Modifiction of the
More informationAVL Trees. Height of an AVL Tree. AVL Tree. Balancing Factor
AVL Trees AVL Tree Heigt of n AVL Tree Insertion nd restruturing Removl nd restruturing Costs AVL trees re lned. An AVL Tree is inr ser tree su tt for ever internl node v of T, te eigts of te ildren of
More informationEarning Money. Earning Money. Curriculum Ready ACMNA: 189.
Erning Money Curriculum Redy ACMNA: 189 www.mthletics.com Erning EARNING Money MONEY Different jos py different mounts of moneys in different wys. A slry isn t pid once in yer. It is pid in equl prts
More informationMath F412: Homework 4 Solutions February 20, κ I = s α κ α
All prts of this homework to be completed in Mple should be done in single worksheet. You cn submit either the worksheet by emil or printout of it with your homework. 1. Opre 1.4.1 Let α be not-necessrily
More informationConditions for FlexiLink
Conditions for FlexiLink Your policy 1 Wht your policy covers FlexiLink is single-premium investment-linked pln designed to increse the vlue of your investment. Through this pln, you cn invest in one or
More informationA Fuzzy Inventory Model With Lot Size Dependent Carrying / Holding Cost
IOSR Journl of Mthemtics (IOSR-JM e-issn: 78-578,p-ISSN: 9-765X, Volume 7, Issue 6 (Sep. - Oct. 0, PP 06-0 www.iosrournls.org A Fuzzy Inventory Model With Lot Size Dependent Crrying / olding Cost P. Prvthi,
More information8.1 External solid plastering
8.1 Externl solid plstering Aims nd ojectives At the end of these ctivity sheets, lerners should e le to: understnd the preprtion of ckgrounds identify the mterils used for externl plstering identify the
More informationChapter55. Algebraic expansion and simplification
Chpter55 Algebric expnsion nd simplifiction Contents: A The distributive lw B The product ( + b)(c + d) C Difference of two squres D Perfect squres expnsion E Further expnsion F The binomil expnsion 88
More informationTechnical Report Global Leader Dry Bulk Derivatives
Soybens Mrch 17 - Weekly Soybens Mrch 17 - Dily Weekly Close US$ 1,054 ½ RSI 59 MACD Bullish The hisgrm is widening S1 US$ 1,016 ½ S2 US$ 993 R1 US$ 1,071 R2 US$ 1,096 Dily Close US$ 1,030 RSI 60 MACD
More informationUNIT 7 SINGLE SAMPLING PLANS
UNIT 7 SINGLE SAMPLING PLANS Structure 7. Introduction Objectives 7. Single Smpling Pln 7.3 Operting Chrcteristics (OC) Curve 7.4 Producer s Risk nd Consumer s Risk 7.5 Averge Outgoing Qulity (AOQ) 7.6
More information1 Manipulation for binary voters
STAT 206A: Soil Choie nd Networks Fll 2010 Mnipultion nd GS Theorem Otoer 21 Leturer: Elhnn Mossel Srie: Kristen Woyh In this leture we over mnipultion y single voter: whether single voter n lie out his
More information164 CHAPTER 2. VECTOR FUNCTIONS
164 CHAPTER. VECTOR FUNCTIONS.4 Curvture.4.1 Definitions nd Exmples The notion of curvture mesures how shrply curve bends. We would expect the curvture to be 0 for stright line, to be very smll for curves
More informationA Closer Look at Bond Risk: Duration
W E B E X T E S I O 4C A Closer Look t Bond Risk: Durtion This Extension explins how to mnge the risk of bond portfolio using the concept of durtion. BOD RISK In our discussion of bond vlution in Chpter
More informationEffects of Entry Restriction on Free Entry General Competitive Equilibrium. Mitsuo Takase
CAES Working Pper Series Effects of Entry Restriction on Free Entry Generl Competitive Euilirium Mitsuo Tkse Fculty of Economics Fukuok University WP-2018-006 Center for Advnced Economic Study Fukuok University
More informationPricing Resources on Demand
Pricing Resources on Demnd Costs Courcouetis, Sergios Soursos nd Richrd Weer Athens University of Economics nd Business Emil: courcou, sns@ue.gr University of Cmridge Emil: rrw@sttsl.cm.c.uk Astrct Trditionl
More informationECE 410 Homework 1 -Solutions Spring 2008
ECE 410 Homework 1 -Solution Spring 2008 Prolem 1 For prolem 2-4 elow, ind the voltge required to keep the trnitor on ppling the rule dicued in cl. Aume VDD = 2.2V FET tpe Vt (V) Vg (V) Vi (V) n-tpe 0.5
More informationFIS Technical - Capesize
Technicl Report Technicl Anlyst FIS Technicl - Cpesize Edwrd Hutn 442070901120 Edwrdh@freightinvesr.com Client Reltions Andrew Cullen 442070901120 Andrewc@freightinvesr.com Highlights: Cpesize Index- Holding
More informationExhibit A Covered Employee Notification of Rights Materials Regarding Allied Managed Care Incorporated Allied Managed Care MPN MPN ID # 2360
Covered Notifiction of Rights Mterils Regrding Allied Mnged Cre Incorported Allied Mnged Cre MPN This pmphlet contins importnt informtion bout your medicl cre in cse of workrelted injmy or illness You
More informationMATH 236 ELAC MATH DEPARTMENT FALL 2017 SHORT ANSWER. Write the word or phrase that best completes each statement or answers the question.
MATH 236 ELAC MATH DEPARTMENT FALL 2017 TEST 1 REVIEW SHORT ANSWER. Write the word or phrse tht best completes ech sttement or nswers the question. 1) The supply nd demnd equtions for certin product re
More informationTechnical Report Global Leader Dry Bulk Derivatives. FIS Technical - Grains And Ferts. Highlights:
Technicl Report Technicl Anlyst FIS Technicl - Grins And Ferts Edwrd Hutn 442070901120 Edwrdh@freightinvesr.com Client Reltions Andrew Cullen 442070901120 Andrewc@freightinvesr.com Highlights: SOY remins
More informationPSAS: Government transfers what you need to know
PSAS: Government trnsfers wht you need to know Ferury 2018 Overview This summry will provide users with n understnding of the significnt recognition, presenttion nd disclosure requirements of the stndrd.
More informationGridworld Values V* Gridworld: Q*
CS 188: Artificil Intelligence Mrkov Deciion Procee II Intructor: Dn Klein nd Pieter Abbeel --- Univerity of Cliforni, Berkeley [Thee lide were creted by Dn Klein nd Pieter Abbeel for CS188 Intro to AI
More informationResearch Article Existence of Positive Solution to Second-Order Three-Point BVPs on Time Scales
Hindwi Publishing Corportion Boundry Vlue Problems Volume 2009, Article ID 685040, 6 pges doi:10.1155/2009/685040 Reserch Article Existence of Positive Solution to Second-Order hree-point BVPs on ime Scles
More informationproduction for Community & Culture Project Reference e 2 design episodes Bogotá: Building a Sustainable City and Affordable Green Housing.
Community & Culture Project Reference e 2 design episodes Bogotá: Building Sustinble City nd Affordble Green Housing. 1) Red the bckground essy nd discussion questions for e 2 design episodes Bogotá: Building
More informationPushdown Automata. Courtesy: Costas Busch RPI
Pushdown Automt Courtesy: Costs Busch RPI Pushdown Automt Pushdown Automt Pushdown Automt Pushdown Automt Pushdown Automt Pushdown Automt Non-Determinism:NPDA PDAs re non-deterministic: non-deterministic
More informationOutline. CS 188: Artificial Intelligence Spring Speeding Up Game Tree Search. Minimax Example. Alpha-Beta Pruning. Pruning
CS 188: Artificil Intelligence Spring 2011 Lecture 8: Gme, MDP 2/14/2010 Pieter Abbeel UC Berkeley Mny lide dpted from Dn Klein Outline Zero-um determinitic two plyer gme Minimx Evlution function for non-terminl
More informationChapter 2: Relational Model. Chapter 2: Relational Model
Chpter : Reltionl Model Dtbse System Concepts, 5 th Ed. See www.db-book.com for conditions on re-use Chpter : Reltionl Model Structure of Reltionl Dtbses Fundmentl Reltionl-Algebr-Opertions Additionl Reltionl-Algebr-Opertions
More informationASYMMETRIC SWITCHING COSTS CAN IMPROVE THE PREDICTIVE POWER OF SHY S MODEL
Document de trvil 2012-14 / April 2012 ASYMMETRIC SWITCHIG COSTS CA IMPROVE THE PREDICTIVE POWER OF SHY S MODEL Evens Slies OFCE-Sciences-Po Asymmetric switching costs cn improve the predictive power of
More informationCSE 21 Winter 2016 Homework 6 Due: Wednesday, May 11, 2016 at 11:59pm. Instructions
CSE 1 Winter 016 Homework 6 Due: Wednesday, May 11, 016 at 11:59pm Instructions Homework should be done in groups of one to three people. You are free to change group members at any time throughout the
More informationConditions for GrowthLink
Importnt: This is smple of the policy document. To determine the precise terms, conditions nd exclusions of your cover, plese refer to the ctul policy nd ny endorsement issued to you. Conditions for GrowthLink
More informationReleased Assessment Questions, 2017 QUESTIONS
Relese Assessment Questions, 2017 QUESTIONS Gre 9 Assessment of Mthemtis Applie Re the instrutions elow. Along with this ooklet, mke sure you hve the Answer Booklet n the Formul Sheet. You my use ny spe
More informationThe IndoDairy Smallholder Household Survey From Farm-to-Fact
The Centre for Glol Food nd Resources The IndoDiry Smllholder Household Survey From Frm-to-Fct Fctsheet 7: Diry Frming Costs, Revenue nd Profitility Bckground This fctsheet uilds on the informtion summrised
More informationInformation Acquisition and Disclosure: the Case of Differentiated Goods Duopoly
Informtion Acquisition nd Disclosure: the Cse of Differentited Goods Duopoly Snxi Li Jinye Yn Xundong Yin We thnk Dvid Mrtimort, Thoms Mriotti, Ptrick Rey, Wilfried Snd-Zntmn, Frnces Xu nd Yongsheng Xu
More informationJFE Online Appendix: The QUAD Method
JFE Online Appendix: The QUAD Method Prt of the QUAD technique is the use of qudrture for numericl solution of option pricing problems. Andricopoulos et l. (00, 007 use qudrture s the only computtionl
More informationLong-term Memory Review PROFICIENCY PRACTICE: MONDAY REVIEW
PROFICINCY PRACTIC: MONDAY RVIW : A D 14 cm B 21 cm C 2) Use : The tringles in the figure ove re similr. ) nd re mesures of corresponding sides. ) nd re mesures of nother pir of corresponding sides. 3)
More informationThe Okun curve is non-linear
Economics Letters 70 (00) 53 57 www.elsevier.com/ locte/ econbse The Okun curve is non-liner Mtti Viren * Deprtment of Economics, 004 University of Turku, Turku, Finlnd Received 5 My 999; ccepted 0 April
More informationEconomics Department Fall 2013 Student Learning Outcomes (SLOs) Assessment Economics 4 (Principles of Microeconomics)
Jnury 2014 Economics Deprtment Fll 2013 Stuent Lerning Outcomes (SLOs) Assessment Economics 4 (Principles of Microeconomics) Lerning Outcome Sttement: In the Fll 2013 semester the Economics Deprtment engge
More informationMath 205 Elementary Algebra Fall 2010 Final Exam Study Guide
Mth 0 Elementr Algebr Fll 00 Finl Em Stud Guide The em is on Tuesd, December th from :0m :0m. You re llowed scientific clcultor nd " b " inde crd for notes. On our inde crd be sure to write n formuls ou
More informationThe Market Approach to Valuing Businesses (Second Edition)
BV: Cse Anlysis Completed Trnsction & Guideline Public Comprble MARKET APPROACH The Mrket Approch to Vluing Businesses (Second Edition) Shnnon P. Prtt This mteril is reproduced from The Mrket Approch to
More informationIntroduction to Greedy Algorithms: Huffman Codes
Introduction to Greedy Algorithms: Huffman Codes Yufei Tao ITEE University of Queensland In computer science, one interesting method to design algorithms is to go greedy, namely, keep doing the thing that
More informationInterest. Interest. Curriculum Ready ACMNA: 211, 229,
Inteest Cuiulum Redy ACMNA: 211, 229, 234 www.mthletis.om INTEREST The whole point of Finnil Mths is to pedit wht will hppen to money ove time. This is so you n e peped y knowing how muh money you will
More informationThe MA health reform and other issues
The MA helth reorm nd other issues Gruer: three key issues or ny reorm Poolin Need wy to ornize helth cre other thn need Otherwise -- dverse selection Prolem: current system leves out smll irms Aordility
More informationFinancial Mathematics 3: Depreciation
Finncil Mthemtics 3: Deprecition Student Book - Series M-1 25% p.. over 8 yers Mthletics Instnt Workooks Copyright Finncil mthemtics 3: Deprecition Student Book - Series M Contents Topics Topic 1 - Modelling
More informationTechnical Report Global Leader Dry Bulk Derivatives
Soybens Mrch 17 - Weekly Soybens Mrch 17 - Dily Source Bloomberg Weekly Close US$ 1,026 7/8 RSI 56 MACD Bullish, the hisgrm is flt S1 US$ 1,032 ½ S2 US$ 1,001 R1 US$ 1,072 R2 US$ 1,080 Dily Close US$ 1,042
More informationProblem Set 4 - Solutions. Suppose when Russia opens to trade, it imports automobiles, a capital-intensive good.
roblem Set 4 - Solutions uestion Suppose when ussi opens to trde, it imports utomobiles, cpitl-intensive good. ) According to the Heckscher-Ohlin theorem, is ussi cpitl bundnt or lbor bundnt? Briefly explin.
More informationChapter 3: The Reinforcement Learning Problem. The Agent'Environment Interface. Getting the Degree of Abstraction Right. The Agent Learns a Policy
Chpter 3: The Reinforcement Lerning Problem The Agent'Environment Interfce Objectives of this chpter: describe the RL problem we will be studying for the reminder of the course present idelized form of
More informationThis paper is not to be removed from the Examination Halls
This pper is not to be remove from the Exmintion Hlls UNIVESITY OF LONON FN3092 ZA (279 0092) BSc egrees n iploms for Grutes in Economics, Mngement, Finnce n the Socil Sciences, the iploms in Economics
More informationRicardian Model. Mercantilism: 17 th and 18 th Century. Adam Smith s Absolute Income Hypothesis, End of 18 th Century: Major Shift in Paradigm
Mercntilism: th nd th Century Ricrdin Model lesson in Comprtive dvntge Trde ws considered s Zero-Sum Gme It ws viewed mens to ccumulte Gold & Silver Exports were encourged Imports were discourged End of
More informationchecks are tax current income.
Humn Short Term Disbility Pln Wht is Disbility Insurnce? An esy explntion is; Disbility Insurnce is protection for your pycheck. Imgine if you were suddenly disbled, unble to work, due to n ccident or
More informationSET 1C Binary Trees. 2. (i) Define the height of a binary tree or subtree and also define a height balanced (AVL) tree. (2)
SET 1C Binary Trees 1. Construct a binary tree whose preorder traversal is K L N M P R Q S T and inorder traversal is N L K P R M S Q T 2. (i) Define the height of a binary tree or subtree and also define
More information1 Solutions to Tute09
s to Tute0 Questions 4. - 4. are straight forward. Q. 4.4 Show that in a binary tree of N nodes, there are N + NULL pointers. Every node has outgoing pointers. Therefore there are N pointers. Each node,
More informationSection 2.2 Trigonometry: The Triangle Identities
Se. 2.2 Trigonometry: The Tringle Identities 7 Setion 2.2 Trigonometry: The Tringle Identities DJENT ND OPPOSITE SIDES The study of tringle trigonometry is entered round the ute ngles in right tringle.
More informationIs the Armington Elasticity Really Constant across Importers?
MPRA Munich Personl RePEc Archive Is the Armington Elsticity Relly Constnt cross Importers? Hn Yilmzudy June 2009 Online t http://mpr.u.uni-muenchen.de/15954/ MPRA Pper No. 15954, posted 30. June 2009
More informationFirst Assignment, Federal Income Tax, Spring 2019 O Reilly. For Monday, January 14th, please complete problem set one (attached).
First Assignment, Federl Income Tx, Spring 2019 O Reilly For Mondy, Jnury 14th, plese complete problem set one (ttched). Federl Income Tx Spring 2019 Problem Set One Suppose tht in 2018, Greene is 32,
More informationThis paper is not to be removed from the Examination Halls UNIVERSITY OF LONDON
~~FN3092 ZA 0 his pper is not to be remove from the Exmintion Hlls UNIESIY OF LONDON FN3092 ZA BSc egrees n Diploms for Grutes in Economics, Mngement, Finnce n the Socil Sciences, the Diploms in Economics
More informationThe phases of a simple compiler: Compiler Construction SMD163. From Intermediate To Target: An Optimizing Compiler: Lecture 13: Instruction selection
Compiler Constrution SMD163 The phses of simple ompiler: Lexer Prser Stti Anlysis IA32 Code Genertor Leture 13: Instrution seletion Viktor Leijon & Peter Jonsson with slides y John Nordlnder Contins mteril
More informationCS 188 Introduction to Artificial Intelligence Fall 2018 Note 4
CS 188 Introduction to Artificil Intelligence Fll 2018 Note 4 These lecture notes re hevily bsed on notes originlly written by Nikhil Shrm. Non-Deterministic Serch Picture runner, coming to the end of
More informationTechnical Report Global Leader Dry Bulk Derivatives
Soybens November 16 - Weekly Soybens November 16 - Dily Source Bloomberg Weekly Close US$ 952 ½ RSI 43 MACD Berish, the hisgrm is flttening S1 US$ 943 ¼ S2 US$ 937 R1 US$ 977 ¾ R2 US$ 985 Dily Close US$
More informationPatterns and functions recursive number patterns Write the next 3 numbers in each sequence by following the rule:
Ptterns n funtions reursive numer ptterns Look roun you, n you see pttern? A pttern is n rrngement of shpes, numers or ojets forme oring to rule. Ptterns re everywhere, you n fin them in nture, rt, musi
More informationUNinhabited aerial vehicles (UAVs) are becoming increasingly
A Process Algebr Genetic Algorithm Sertc Krmn Tl Shim Emilio Frzzoli Abstrct A genetic lgorithm tht utilizes process lgebr for coding of solution chromosomes nd for defining evolutionry bsed opertors is
More informationAutarky more likely than complete specialization
Autrky more likely thn complete specilition Antonio Quesd Deprtment d Economi, Universitt Rovir i Virgili, Avingud de l Universitt, 4304 Reus, Spin 3th Jnury 00 38.9 Astrct This pper mesures the strength
More informationOption exercise with temptation
Economic Theory 2008) 34: 473 501 DOI 10.1007/s00199-006-0194-3 RESEARCH ARTICLE Jinjun Mio Option exercise with tempttion Received: 25 Jnury 2006 / Revised: 5 December 2006 / Published online: 10 Jnury
More information