Generation of Well-Formed Parenthesis Strings in Constant Worst-Case Time
|
|
- Laurence Black
- 5 years ago
- Views:
Transcription
1 Ž. JOURNAL OF ALGORITHMS 29, ARTICLE NO. AL Generaton of Well-Formed Parenthess Strngs n Constant Worst-Case Tme Tmothy R. Walsh Department of Computer Scence, Unersty of Quebec at Montreal, Montreal, Quebec, Canada H3C 3P8 Receved June 3, 1997; revsed Aprl 24, 1998 Prosurows and Rusey ŽJ. Algorthms 11 Ž 1990., publshed a recursve algorthm for generatng well-formed parenthess strngs of length 2n and challenged the reader to fnd a loop-free verson of ther algorthm. We present two nonrecursve versons of ther algorthm, one of whch generates each strng n OŽ n. worst-case tme and requres space for only OŽ 1. extra nteger varables, and the other generates each strng n OŽ. 1 worst-case tme and uses OŽ n. extra space Academc Press 1. INTRODUCTION In PR, Prosurows and Rusey publshed a recursve algorthm for generatng well-formed parenthess strngs of length 2 n and challenged the reader to fnd a loop-free verson of ther algorthm. Loop-free generaton algorthms for other representatons of bnary trees have snce appeared ŽvB, LvBR. ; we present here what we beleve to be the frst loop-free generaton algorthm for well-formed parenthess strngs, although we have receved reports of unpublshed algorthms. In Secton 2 we descrbe the ProsurowsRusey Gray code. In Secton 3 we apply Chase s graylex order Ch to derve a nonrecursve verson of t that generates each strng n OŽ n. worst-case tme and uses OŽ 1. extra space Žthat s, OŽ 1. extra nteger varables rather than bts.. In Secton 4 we apply Ehrlch s auxlary array ŽBER, Eh. to derve another verson that generates each strng n OŽ. 1 worst-case tme and uses OŽ n. extra space. 2. THE PROSKUROWSKIRUSKEY GRAY CODE FOR WELL-FORMED PARENTHESIS STRINGS A well-formed parenthess strng, or Dyc word, of length 2 n s a strng of n 0 s and n 1 s such that no prefx contans more 0 s than 1 s. In PR $25.00 Copyrght 1998 by Academc Press All rghts of reproducton n any form reserved.
2 166 TIMOTHY R. WALSH Prosurows and Rusey present the followng recursve descrpton of a Gray code n whch each word of length 2n s changed to ts successor by transposng a sngle par of letters. For the Dyc word y 1 0 x, the Ž. 1 operatons flp and nsert are defned as flp y 1 01x and nsertž y x. These defntons are extended to lsts, and two other operatons on lsts are defned: A B means A followed by B and A R means A reversed. The lsts TŽ n,.,1n, whch conssts of all of the words of length 2n wth the prefx 1 0, are generated by means of the followng recurson: Ž. flp T Ž n,2. f 1 n, R flpž T Ž n, 1.. TŽ n,. Ž 2.1. nsertž T Ž n 1, 1.. f 1 n, 10 n n f n. Ž. The frst word n T n, turns out to be n Ž 10. f 1 and n 3, n1 frstž T Ž n, Ž 10. f 1 n or Ž 2.2. Ž 1 and n 2., 10 n n f n Žwe added the condtons and n 3 and or Ž 1 and n 2. to mae the formulae n PR wor for the trval case n whch 1 and. Ž. n 2. The last word n T n, s 1 0 Ž 10. n. In PR a recursve algorthm s gven that generates TŽ n,. n OŽ 1. average tme per word, and two Gray codes are gven for the lst of all of the Dyc words of length 2n: TŽ n 1, 1. wth the prefx 10 removed, and TŽ n, n. TŽ n, n 1. TŽ n,2. T R Ž n, A NONRECURSIVE GENERATION ALGORITHM THAT USES OŽ. 1 EXTRA SPACE To obtan a nonrecursve algorthm for generatng TŽ n,., we generated the lsts TŽ n,. for 1 n 5 by hand from the recurson Ž 2.1. Žsee Fg. 1. and observed the pattern followed by the moton of the th occurrence of 1 from the left, whch we abbrevate as 1, n an nterval of words n whch 11, 12,..., 11 stay n one place. By defnton, 11, 12,..., 1 are fxed n poston; we call the other occurrences of 1 free. The rghtmost poston that 1 can have s 2 1; we call a free 1 that s not n ts rghtmost poston a lberal 1.
3 LOOP-FREE PARENTHESIS GENERATION 167 Ž. FIG. 1. T n,, the lst of well-formed parenthess strngs of length 2n wth prefx 1 0, 1 n 5. THEOREM 1. The set of words of TŽ n,. n whch 1 1,1 2,...,11 stay n one place s an nteral of consecute words and s parttoned nto subnterals n whch 1 s statonary too. As we pass from subnteral to subnteral, 1 moes one poston at a tme, ether mong rghtward from ts leftmost poston adjacent to 1 Ž 1 except that 11 starts n poston 2 wth one zero between t and 1. to ts rghtmost poston Ž poston 2 1 n the word., or else mong leftward from ts rghtmost poston to ts leftmost poston. Fnally, 1 moes rghtward f and only f the number of lberal 1 s to ts left s een. Proof. For n the statement of the theorem s vacuously true, snce the one word n TŽ n, n. has no free 1 s. For n we assume t to be true for TŽ n, 1. and TŽ n 1, 1., and prove t for TŽ n,.. More precsely, we prove the last statement of the theoremabout the drecton of moton of 1snce the other statements of the theorem are easly verfed. Suppose that 1, so that, by the frst lne of Ž 2.1., TŽ n,1. flpžtž n,2... In TŽ n,1. flpžtž n, 2.., 1 s a free 1 n poston 3, ts 2
4 168 TIMOTHY R. WALSH leftmost and ts rghtmost poston; n TŽ n, 2., 12 s fxed. Each 1, 2, has the same number of lberal 1 s to ts left n the correspondng words n TŽ n, 1. and n TŽ n, 2., and t moves n the same drecton n both lsts. So the last statement of the theorem holds for TŽ n,1.. Now suppose 1, so that, by the second lne of Ž 2.1., TŽ n,. flpžt R Ž n, 1.. nsertžtž n 1, 1... We compare both the drecton of moton of each free 1 and the number of lberal 1 s to ts left n TŽ n,., TŽ n, 1., and TŽ n 1, 1.. The flp operator, actng on TŽ n, 1., converts 11 from a fxed 1 to a free 1 n poston 2, whch s not ts rghtmost poston 2 1. For each 1, 1, the number of lberal 1 s to the left of 1 s greater by 1 for a word n flpžtž n, 1.. than for the correspondng word n TŽn, 1.. Reversng the lst flpžtž n, 1.. reverses the drecton of moton of 1, so that t moves n flpžt R Ž n, 1.. n the drect opposte to that n whch t moves n TŽ n, 1., whch s consstent wth the dfference n the number of lberal 1 s to ts left. The nsert operator, actng on TŽ n 1, 1., creates 1 whch s fxed, so that each free 1 has the same number of lberal 1 s to ts left n the correspondng words n nsertžtž n 1, 1.. and n TŽ n 1, 1,. and t moves n the same drecton. In passng from the last word of flpžt R Ž n, 1.., whch s the frst word of flpžtž n, 1.., to the frst word of nsertžtž n 1, 1.., 1 1, whch has no free 1 s to ts left, moves rghtward from poston 2 to poston 3. So the last statement of the theorem holds for TŽ n,.,1n. The result follows by nducton frst on n and then, for each n, on n. COROLLARY. Let g be the poston of 1 n a word n TŽ n,.. Then the correspondng lst of words g1 gn has the property that the set of words n whch the prefx g1 g1 s fxed s an nteral of consecute words and s parttoned nto subnterals n whch g s fxed too, and as we pass from subnteral to subnteral, the sequence sž g g. 1 1 of alues assumed by g s gen by sž. Ž 2, 3,...,21. and sž g1 g2 g1. Ž g 1,...,21. f g 2 j 1 1 for an even number of j, 1 j 1, Ž 2 1,..., g 1 1. f g j 2 j 1 for an odd number of j, 1 j 1. j
5 LOOP-FREE PARENTHESIS GENERATION 169 Snce sž p. s monotone for any prefx p, the lst of words g1 gn s n graylex order Ch. The successor to a gven word s determned from the followng generc algorthm for fndng the next word n any lst that s n graylex order Žmore generally, n any lst of words n whch all of the words wth a gven prefx form an nterval of adjacent words; Wa1, Wa2. : Search for the potthe largest such that g s not at ts last value n sž g g. 1 1 ; f there s a pvot, then change g to ts next value n sž g g. 1 1 ; change each g, 1 j n, to ts frst value n sž g g. j 1 j1 ; otherwse g1 gn s the last word n the lst. Rather than store the auxlary array g1 g n, we modfy the generc algorthm so that t acts on each Dyc word drectly. For each from n down to 1, f there s an even number of lberal 1 s to the left of 1, then 1 s movng rght and ts last poston s 2 1, and otherwse 1 s movng left and ts last poston s adjacent to 1 Ž 1 never moves left.. If all of these 1 s are n ther last postons, then the word s the last one. Otherwse, the pvot s the ndex of the frst 1 we fnd that s not n ts last poston; 1 gets moved by one poston to ts rght or left, dependng on the drecton n whch t s movng, and f n, then all of the 1 s to ts rght must be moved to ther frst postons. By examnng Fg. 2, the reader can verfy that only 1 and 1 actually have to be moved: each 1, 1 j j 1, s n ts rghtmost poston, whch was ts last poston and becomes ts frst poston after 1 and 11 have moved, because the number of lberal 1 s to ts left always changes by 1. Whle scannng a Dyc word from rght to left to fnd the pvot, we could scan the word from left to rght each tme we encounter a 1 to count the lberal 1 s to ts left, mang the worst-case tme complexty On Ž 2.. To mae the algorthm run n On Ž. tme, we mantan a varable Odd that s true f the total number of lberal 1 s n a gven word s odd. Before scannng a word, we ntalze a Boolean varable Left to Odd, and we 1 1 FIG. 2. The suffx begnnng wth 1 before and after 1 moves. There are four cases to consder, dependng upon whether 1 moves rght or left, and whether or not t moves to or from ts rghtmost poston. The arrows ndcate the drecton of moton of each 1.
6 170 TIMOTHY R. WALSH change t whenever a lberal 1 s encountered, so that as each 1 s examned, the varable Left s true f that 1 s movng leftward. We also mantan a Boolean varable Last, whch becomes true f the current word turns out to be the last one n TŽ n,.. If we are generatng TŽ n,., then we generate frstžtž n,.. from Ž 2.2., we ntalze Last to false, and we ntalze Odd to true f n 2 and n, snce, by Ž 2.2., frstžtž n,.. has only one lberal 1 Ž 1. maxž3, 1., and otherwse we set Odd to false, because then frstžtž n,.. has no lberal 1 s. Then we execute the updatng algorthm Next gven n Fg. 3 untl Last becomes true. If we are generatng all of the Dyc words of length 2n by generatng TŽ n 1, 1. wthout the prefx 10, then the updatng algorthm can be executed as s: 12, whch s free but at ts rghtmost poston n TŽ n 1, 1., s smply renamed 1, whch s now fxed. 1 FIG. 3. Fndng the successor to a gven word n TŽ n,. n On Ž. worst-case tme and OŽ. 1 extra space.
7 LOOP-FREE PARENTHESIS GENERATION 171 To generate TŽ n, n. TŽ n, n 1. TŽ n,2. T R Ž n, 1., we begn as f we were generatng TŽ n, n., set n, and then execute the updatng algorthm wth followng changes: change lne 5 to whle 1 do ; n lne 7, change f j 2 1 to f j 2 1 and ; nsert the followng code after lne 22: f then We pass from TŽ n,. to TŽ n, 1. or to T R Ž n,1.. 4 pj 1 1; 1; Only 1 moves. 4 Odd not Odd; The drectons of moton are reversed for any ; f 1, then 11 s a new lberal 1; f 1, then the lst s reversed. 4 return end f; 4. FINDING THE NEXT WELL-FORMED PARENTHESIS STRING IN OŽ. 1 WORST-CASE TIME We store three auxlary arrays: the array g1g2 gn of postons of the occurrences of 1, the array dd 1 2 d n, where d 1 f 1 s movng rght Ž g s ncreasng. and 0 otherwse, and the array ee 1 2 en ntroduced n BER and Eh to fnd the pvot n OŽ. 1 worst-case tme. Once the pvot s found, the Dyc word and all of the auxlary arrays are also updated n OŽ. 1 tme. From Fg. 2 t would appear that d 2, d 3,...,dn must all be changed from 1 to 0; however, each of these dm changes when t s needed Ž when m becomes the pvot., so that the total wor done to generate each new Dyc word s OŽ. 1. For the frst word n TŽ n,., the values of g 1, g 2,..., gn can be obtaned from Ž 2.2., d 1, f maxž 1, 3., and 0 otherwse, and e for all. After generatng the frst word of TŽ n,., we execute the algorthm QucNext to Fg. 4 untl Last becomes true. To generate all of the length 2n Dyc words as the lst TŽ n, n. TŽ n, n 1. TŽ n,2. T R Ž n, 1., we begn as f we were generatng TŽ n, n., ntalze to n, and then execute QucNext wth the followng changes: change lne 3 to f 1 then ; change lne 22 to f then We pass from TŽ n,. to TŽ n, 1. or to T R Ž n,1.. 4 pj 1 1; 1; Only 1 moves. dm, m, wll be updated later. 4 else f n then
8 172 TIMOTHY R. WALSH FIG. 4. Fndng the successor to a gven word n TŽ n,. n OŽ 1. worst-case tme and On Ž. extra space. The algorthms of Fgs. 3 and 4, plus algorthms for fndng the poston of a Dyc word n TŽ n,. and the Dyc word n a gven poston n TŽ n,. n On Ž. arthmetc operatons, were programmed n Modula-2 and tested. The two generaton algorthms ran n roughly the same total tme, whch s often the case when average-case OŽ. 1 -tme algorthms are made loop-free. The elmnaton of auxlary arrays s not a sgnfcant advantage for a computer, but does mae the algorthm easer to execute by hand, so that both algorthms have ther advantages. The lstngs for these programs and other related results are contaned n a research report Wa1 that s avalable from the author on request. The observant reader may notce the
9 LOOP-FREE PARENTHESIS GENERATION 173 comments n Fg. 4 explanng the array ee e ntroduced n BER 1 2 n and Eh and used there and n many other places to fnd the pvot n OŽ. 1 worst-case tme, and may want to prove, or to obtan a proof ŽWa1, Wa2., that t wors for any lst of words n whch all of the words wth the same proper prefx g g g form an nterval of adjacent words Ž whether or not the lst s n graylex order., provded only that n each such proper subnterval of the lst, g assumes at least two dstnct values. REFERENCES BER J. R. Btner, G. Ehrlch, and E. M. Rengold, Effcent generaton of the bnary reflected Gray code and ts applcatons, Comm. ACM 19 Ž 1976., Ch P. J. Chase, Combnaton generaton and graylex orderng, Proceedngs of the 18th Mantoba Conference on Numercal Mathematcs and Computng, Wnnpeg, 1988, Congressus Numerantum 69 Ž 1989., Eh G. Ehrlch, Loopless algorthms for generatng permutatons, combnatons, and other combnatoral confguratons, J. ACM 20 Ž 1973., PR A. Prosurows and F. Rusey, Generatng bnary trees by transpostons, J. Algorthms 11 Ž 1990., LvBR J. M. Lucas, D. R. van Baronagen, and F. Rusey, On rotatons and the generaton of bnary trees, J. Algorthms 15 Ž 1993., vb D. R. van Baronagen, A loopless algorthm for generatng bnary tree sequences, Inform. Process. Lett. 39 Ž 1991., Wa1 T. R. Walsh, A Smple Sequencng and Ranng Method That Wors on Almost all Gray Codes, Research Report 243, Department of Mathematcs and Computer Scence, Unversty of Quebec at Montreal, Aprl Wa2 T. R. Walsh, Gray codes for nvolutons, submtted for publcaton.
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 information15-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 informationParallel 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 information332 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 informationCS 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 informationDr. A. Sudhakaraiah* V. Rama Latha E.Gnana Deepika
Internatonal Journal Of Scentfc & Engneerng Research, Volume, Issue 6, June-0 ISSN - Splt Domnatng Set of an Interval Graph Usng an Algorthm. Dr. A. Sudhakaraah* V. Rama Latha E.Gnana Deepka Abstract :
More informationTests for Two Correlations
PASS Sample Sze Software Chapter 805 Tests for Two Correlatons Introducton The correlaton coeffcent (or correlaton), ρ, s a popular parameter for descrbng the strength of the assocaton between two varables.
More informationarxiv: v2 [math.co] 6 Apr 2016
On the number of equvalence classes of nvertble Boolean functons under acton of permutaton of varables on doman and range arxv:1603.04386v2 [math.co] 6 Apr 2016 Marko Carć and Modrag Žvkovć Abstract. Let
More informationCyclic Scheduling in a Job shop with Multiple Assembly Firms
Proceedngs of the 0 Internatonal Conference on Industral Engneerng and Operatons Management Kuala Lumpur, Malaysa, January 4, 0 Cyclc Schedulng n a Job shop wth Multple Assembly Frms Tetsuya Kana and Koch
More informationParsing 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 informationMeasures of Spread IQR and Deviation. For exam X, calculate the mean, median and mode. For exam Y, calculate the mean, median and mode.
Part 4 Measures of Spread IQR and Devaton In Part we learned how the three measures of center offer dfferent ways of provdng us wth a sngle representatve value for a data set. However, consder the followng
More informationTests 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 informationEDC Introduction
.0 Introducton EDC3 In the last set of notes (EDC), we saw how to use penalty factors n solvng the EDC problem wth losses. In ths set of notes, we want to address two closely related ssues. What are, exactly,
More informationEvaluating Performance
5 Chapter Evaluatng Performance In Ths Chapter Dollar-Weghted Rate of Return Tme-Weghted Rate of Return Income Rate of Return Prncpal Rate of Return Daly Returns MPT Statstcs 5- Measurng Rates of Return
More informationFinal 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 informationUnderstanding 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 informationEconomic 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 informationAdvisory. Category: Capital
Advsory Category: Captal NOTICE* Subject: Alternatve Method for Insurance Companes that Determne the Segregated Fund Guarantee Captal Requrement Usng Prescrbed Factors Date: Ths Advsory descrbes an alternatve
More informationTCOM501 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 informationProduction 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 informationA DUAL EXTERIOR POINT SIMPLEX TYPE ALGORITHM FOR THE MINIMUM COST NETWORK FLOW PROBLEM
Yugoslav Journal of Operatons Research Vol 19 (2009), Number 1, 157-170 DOI:10.2298/YUJOR0901157G A DUAL EXTERIOR POINT SIMPLEX TYPE ALGORITHM FOR THE MINIMUM COST NETWORK FLOW PROBLEM George GERANIS Konstantnos
More informationCOS 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 informationElements 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 informationFinite 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 informationMathematical Thinking Exam 1 09 October 2017
Mathematcal Thnkng Exam 1 09 October 2017 Name: Instructons: Be sure to read each problem s drectons. Wrte clearly durng the exam and fully erase or mark out anythng you do not want graded. You may use
More informationThe 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 informationA MODEL OF COMPETITION AMONG TELECOMMUNICATION SERVICE PROVIDERS BASED ON REPEATED GAME
A MODEL OF COMPETITION AMONG TELECOMMUNICATION SERVICE PROVIDERS BASED ON REPEATED GAME Vesna Radonć Đogatovć, Valentna Radočć Unversty of Belgrade Faculty of Transport and Traffc Engneerng Belgrade, Serba
More informationTopics on the Border of Economics and Computation November 6, Lecture 2
Topcs on the Border of Economcs and Computaton November 6, 2005 Lecturer: Noam Nsan Lecture 2 Scrbe: Arel Procacca 1 Introducton Last week we dscussed the bascs of zero-sum games n strategc form. We characterzed
More informationMgtOp 215 Chapter 13 Dr. Ahn
MgtOp 5 Chapter 3 Dr Ahn Consder two random varables X and Y wth,,, In order to study the relatonshp between the two random varables, we need a numercal measure that descrbes the relatonshp The covarance
More informationarxiv: v1 [math.nt] 29 Oct 2015
A DIGITAL BINOMIAL THEOREM FOR SHEFFER SEQUENCES TOUFIK MANSOUR AND HIEU D. NGUYEN arxv:1510.08529v1 [math.nt] 29 Oct 2015 Abstract. We extend the dgtal bnomal theorem to Sheffer polynomal sequences by
More informationElton, 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 informationCreating a zero coupon curve by bootstrapping with cubic splines.
MMA 708 Analytcal Fnance II Creatng a zero coupon curve by bootstrappng wth cubc splnes. erg Gryshkevych Professor: Jan R. M. Röman 0.2.200 Dvson of Appled Mathematcs chool of Educaton, Culture and Communcaton
More informationLecture 5: Introduction to Entropy Coding. Thinh Nguyen Oregon State University
Lecture 5: Introducton to Entropy Codng Thnh guyen Oregon State Unversty Codes Defntons: Aphabet: s a coecton of symbos. Letters (symbos): s an eement of an aphabet. Codng: the assgnment of bnary sequences
More informationOPERATIONS 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 informationISE 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 informationLecture Note 2 Time Value of Money
Seg250 Management Prncples for Engneerng Managers Lecture ote 2 Tme Value of Money Department of Systems Engneerng and Engneerng Management The Chnese Unversty of Hong Kong Interest: The Cost of Money
More informationScribe: Chris Berlind Date: Feb 1, 2010
CS/CNS/EE 253: Advanced Topcs n Machne Learnng Topc: Dealng wth Partal Feedback #2 Lecturer: Danel Golovn Scrbe: Chrs Berlnd Date: Feb 1, 2010 8.1 Revew In the prevous lecture we began lookng at algorthms
More informationAvailable online at ScienceDirect. Procedia Computer Science 24 (2013 ) 9 14
Avalable onlne at www.scencedrect.com ScenceDrect Proceda Computer Scence 24 (2013 ) 9 14 17th Asa Pacfc Symposum on Intellgent and Evolutonary Systems, IES2013 A Proposal of Real-Tme Schedulng Algorthm
More informationHow to Share a Secret, Infinitely
How to Share a Secret, Infntely Ilan Komargodsk Mon Naor Eylon Yogev Abstract Secret sharng schemes allow a dealer to dstrbute a secret pece of nformaton among several partes such that only qualfed subsets
More informationNumber of women 0.15
. Grouped Data (a Mdponts Trmester (months Number o women Relatve Frequency Densty.5 [0, 3 40 40/400 = 0.60 0.60/3 = 0. 4.5 [3, 6 60 60/400 = 0.5 0.5/3 = 0.05 7.5 [6, 9 00 00/400 = 0.5 0.5/3 = 0.0833 0.60
More informationLinear Combinations of Random Variables and Sampling (100 points)
Economcs 30330: Statstcs for Economcs Problem Set 6 Unversty of Notre Dame Instructor: Julo Garín Sprng 2012 Lnear Combnatons of Random Varables and Samplng 100 ponts 1. Four-part problem. Go get some
More informationFinancial mathematics
Fnancal mathematcs Jean-Luc Bouchot jean-luc.bouchot@drexel.edu February 19, 2013 Warnng Ths s a work n progress. I can not ensure t to be mstake free at the moment. It s also lackng some nformaton. But
More informationApplications 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 informationTo find a non-split strong dominating set of an interval graph using an algorithm
IOSR Journal of Mathematcs (IOSR-JM) e-issn: 2278-5728,p-ISSN: 219-765X, Volume 6, Issue 2 (Mar - Apr 201), PP 05-10 To fnd a non-splt rong domnatng set of an nterval graph usng an algorthm Dr A Sudhakaraah*,
More informationECE 586GT: Problem Set 2: Problems and Solutions Uniqueness of Nash equilibria, zero sum games, evolutionary dynamics
Unversty of Illnos Fall 08 ECE 586GT: Problem Set : Problems and Solutons Unqueness of Nash equlbra, zero sum games, evolutonary dynamcs Due: Tuesday, Sept. 5, at begnnng of class Readng: Course notes,
More informationDeterministic 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 informationFinance 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 informationFall 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 informationFast Laplacian Solvers by Sparsification
Spectral Graph Theory Lecture 19 Fast Laplacan Solvers by Sparsfcaton Danel A. Spelman November 9, 2015 Dsclamer These notes are not necessarly an accurate representaton of what happened n class. The notes
More informationII. 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 informationPartial ARTIAL Incompatible based Lower Bound of NC* For MAX-CSPs
Egyptan Computer Scence Journal,ECS,Vol. 37 No., January 03 ISSN-0-586 Partal ARTIAL Incompatble based Lower Bound of NC* For MAX-CSPs Ashraf M. Bhery, Soher M. Khams, and Wafaa A. Kabela Dvson of Computer
More informationLecture 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 informationAC : THE DIAGRAMMATIC AND MATHEMATICAL APPROACH OF PROJECT TIME-COST TRADEOFFS
AC 2008-1635: THE DIAGRAMMATIC AND MATHEMATICAL APPROACH OF PROJECT TIME-COST TRADEOFFS Kun-jung Hsu, Leader Unversty Amercan Socety for Engneerng Educaton, 2008 Page 13.1217.1 Ttle of the Paper: The Dagrammatc
More information>1 indicates country i has a comparative advantage in production of j; the greater the index, the stronger the advantage. RCA 1 ij
69 APPENDIX 1 RCA Indces In the followng we present some maor RCA ndces reported n the lterature. For addtonal varants and other RCA ndces, Memedovc (1994) and Vollrath (1991) provde more thorough revews.
More informationSurvey 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 informationPrice 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 informationSolution 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 informationConvergence Complexity of Optimistic Rate-Based Flow-Control Algorithms*
Journal of Algorthms 30, 106143 Ž 1999. Artcle ID agm.1998.0970, avalable onlne at http:www.dealbrary.com on Convergence Complexty of Optmstc Rate-Based Flow-Control Algorthms* Yehuda Afek, Yshay Mansour,
More informationAppendix for Solving Asset Pricing Models when the Price-Dividend Function is Analytic
Appendx for Solvng Asset Prcng Models when the Prce-Dvdend Functon s Analytc Ovdu L. Caln Yu Chen Thomas F. Cosmano and Alex A. Hmonas January 3, 5 Ths appendx provdes proofs of some results stated n our
More informationFast Valuation of Forward-Starting Basket Default. Swaps
Fast Valuaton of Forward-Startng Basket Default Swaps Ken Jackson Alex Krenn Wanhe Zhang December 13, 2007 Abstract A basket default swap (BDS) s a credt dervatve wth contngent payments that are trggered
More informationChapter 5 Student Lecture Notes 5-1
Chapter 5 Student Lecture Notes 5-1 Basc Busness Statstcs (9 th Edton) Chapter 5 Some Important Dscrete Probablty Dstrbutons 004 Prentce-Hall, Inc. Chap 5-1 Chapter Topcs The Probablty Dstrbuton of a Dscrete
More informationAnalysis of Variance and Design of Experiments-II
Analyss of Varance and Desgn of Experments-II MODULE VI LECTURE - 4 SPLIT-PLOT AND STRIP-PLOT DESIGNS Dr. Shalabh Department of Mathematcs & Statstcs Indan Insttute of Technology Kanpur An example to motvate
More informationPivot Points for CQG - Overview
Pvot Ponts for CQG - Overvew By Bran Bell Introducton Pvot ponts are a well-known technque used by floor traders to calculate ntraday support and resstance levels. Ths technque has been around for decades,
More informationThe convolution computation for Perfectly Matched Boundary Layer algorithm in finite differences
The convoluton computaton for Perfectly Matched Boundary Layer algorthm n fnte dfferences Herman Jaramllo May 10, 2016 1 Introducton Ths s an exercse to help on the understandng on some mportant ssues
More informationCapability Analysis. Chapter 255. Introduction. Capability Analysis
Chapter 55 Introducton Ths procedure summarzes the performance of a process based on user-specfed specfcaton lmts. The observed performance as well as the performance relatve to the Normal dstrbuton are
More informationA Single-Product Inventory Model for Multiple Demand Classes 1
A Sngle-Product Inventory Model for Multple Demand Classes Hasan Arslan, 2 Stephen C. Graves, 3 and Thomas Roemer 4 March 5, 2005 Abstract We consder a sngle-product nventory system that serves multple
More informationCascade 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 informationThe 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 informationYORK 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 informationWHAT ARE REGISTERED SHARES?
Regstered Shares Secton BECOME A REGISTERED SHAREHOLDER AND RECEIVE A LOYALTY BONUS +10% WHAT ARE? Holdng regstered shares means that your shares are regstered n your name, makng t easer for you to receve
More informationarxiv: v1 [cs.ds] 16 Jul 2015
The Complexty of All-swtches Strategy Improvement John Fearnley and Rahul Savan Unversty of Lverpool arxv:1507.04500v1 [cs.ds] 16 Jul 2015 Abstract. Strategy mprovement s a wdely-used and well-studed class
More informationA Bootstrap Confidence Limit for Process Capability Indices
A ootstrap Confdence Lmt for Process Capablty Indces YANG Janfeng School of usness, Zhengzhou Unversty, P.R.Chna, 450001 Abstract The process capablty ndces are wdely used by qualty professonals as an
More informationRostering from Staffing Levels
Rosterng from Staffng Levels a Branch-and-Prce Approach Egbert van der Veen, Bart Veltman 2 ORTEC, Gouda (The Netherlands), Egbert.vanderVeen@ortec.com 2 ORTEC, Gouda (The Netherlands), Bart.Veltman@ortec.com
More informationISE Cloud Computing Index Methodology
ISE Cloud Computng Index Methodology Index Descrpton The ISE Cloud Computng Index s desgned to track the performance of companes nvolved n the cloud computng ndustry. Index Calculaton The ISE Cloud Computng
More informationAn Efficient Heuristic Algorithm for m- Machine No-Wait Flow Shops
An Effcent Algorthm for m- Machne No-Wat Flow Shops Dpak Laha and Sagar U. Sapkal Abstract We propose a constructve heurstc for the well known NP-hard of no-wat flow shop schedulng. It s based on the assumpton
More informationEquilibrium 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 informationThe Optimal Interval Partition and Second-Factor Fuzzy Set B i on the Impacts of Fuzzy Time Series Forecasting
Ch-Chen Wang, Yueh-Ju Ln, Yu-Ren Zhang, Hsen-Lun Wong The Optmal Interval Partton and Second-Factor Fuzzy Set B on the Impacts of Fuzzy Tme Seres Forecastng CHI-CHEN WANG 1 1 Department of Fnancal Management,
More informationCS 541 Algorithms and Programs. Exam 1 Solutions
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
More informationS yi a bx i cx yi a bx i cx 2 i =0. yi a bx i cx 2 i xi =0. yi a bx i cx 2 i x
LEAST-SQUARES FIT (Chapter 8) Ft the best straght lne (parabola, etc.) to a gven set of ponts. Ths wll be done by mnmzng the sum of squares of the vertcal dstances (called resduals) from the ponts to the
More informationIntroduction. Why One-Pass Statistics?
BERKELE RESEARCH GROUP Ths manuscrpt s program documentaton for three ways to calculate the mean, varance, skewness, kurtoss, covarance, correlaton, regresson parameters and other regresson statstcs. Although
More informationWe consider the problem of scheduling trains and containers (or trucks and pallets)
Schedulng Trans and ontaners wth Due Dates and Dynamc Arrvals andace A. Yano Alexandra M. Newman Department of Industral Engneerng and Operatons Research, Unversty of alforna, Berkeley, alforna 94720-1777
More informationGames 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 informationAn Application of Alternative Weighting Matrix Collapsing Approaches for Improving Sample Estimates
Secton on Survey Research Methods An Applcaton of Alternatve Weghtng Matrx Collapsng Approaches for Improvng Sample Estmates Lnda Tompkns 1, Jay J. Km 2 1 Centers for Dsease Control and Preventon, atonal
More informationA Graph-Theoretic Characterization of AND-OR Deadlocks
A Graph-Theoretc Characterzaton of AND-OR Deadlocks Valmr C Barbosa Maro R F Benevdes Programa de Engenhara de Sstemas e Computação, COPPE Insttuto de Matemátca Unversdade Federal do Ro de Janero Caxa
More informationarxiv: v1 [q-fin.pm] 13 Feb 2018
WHAT IS THE SHARPE RATIO, AND HOW CAN EVERYONE GET IT WRONG? arxv:1802.04413v1 [q-fn.pm] 13 Feb 2018 IGOR RIVIN Abstract. The Sharpe rato s the most wdely used rsk metrc n the quanttatve fnance communty
More informationSurvey of Math Test #3 Practice Questions Page 1 of 5
Test #3 Practce Questons Page 1 of 5 You wll be able to use a calculator, and wll have to use one to answer some questons. Informaton Provded on Test: Smple Interest: Compound Interest: Deprecaton: A =
More informationProblem Set 6 Finance 1,
Carnege Mellon Unversty Graduate School of Industral Admnstraton Chrs Telmer Wnter 2006 Problem Set 6 Fnance, 47-720. (representatve agent constructon) Consder the followng two-perod, two-agent economy.
More informationGlobal Optimization in Multi-Agent Models
Global Optmzaton n Mult-Agent Models John R. Brge R.R. McCormck School of Engneerng and Appled Scence Northwestern Unversty Jont work wth Chonawee Supatgat, Enron, and Rachel Zhang, Cornell 11/19/2004
More informationNotes on experimental uncertainties and their propagation
Ed Eyler 003 otes on epermental uncertantes and ther propagaton These notes are not ntended as a complete set of lecture notes, but nstead as an enumeraton of some of the key statstcal deas needed to obtan
More informationIn 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 informationm-inductive Properties of Logic Circuits Hamid Savoj, Alan Mishchenko, and Robert Brayton University of California, Berkeley
m-inductve Propertes of Logc Crcuts Hamd Savoj, lan Mshcheno, and Robert Brayton Unversty of Calforna, Bereley bstract Ths paper ntroduces the concept of m-nductveness over a set of sgnals S n a sequental
More informationSIMPLE FIXED-POINT ITERATION
SIMPLE FIXED-POINT ITERATION The fed-pont teraton method s an open root fndng method. The method starts wth the equaton f ( The equaton s then rearranged so that one s one the left hand sde of the equaton
More informationLecture Note 1: Foundations 1
Economcs 703 Advanced Mcroeconomcs Prof. Peter Cramton ecture Note : Foundatons Outlne A. Introducton and Examples B. Formal Treatment. Exstence of Nash Equlbrum. Exstence wthout uas-concavty 3. Perfect
More informationStochastic job-shop scheduling: A hybrid approach combining pseudo particle swarm optimization and the Monte Carlo method
123456789 Bulletn of the JSME Journal of Advanced Mechancal Desgn, Systems, and Manufacturng Vol.10, No.3, 2016 Stochastc job-shop schedulng: A hybrd approach combnng pseudo partcle swarm optmzaton and
More informationDr.Ram Manohar Lohia Avadh University, Faizabad , (Uttar Pradesh) INDIA 1 Department of Computer Science & Engineering,
Vnod Kumar et. al. / Internatonal Journal of Engneerng Scence and Technology Vol. 2(4) 21 473-479 Generalzaton of cost optmzaton n (S-1 S) lost sales nventory model Vnod Kumar Mshra 1 Lal Sahab Sngh 2
More informationreferences Chapters on game theory in Mas-Colell, Whinston and Green
Syllabus. Prelmnares. Role of game theory n economcs. Normal and extensve form of a game. Game-tree. Informaton partton. Perfect recall. Perfect and mperfect nformaton. Strategy.. Statc games of complete
More informationMembers not eligible for this option
DC - Lump sum optons R6.2 Uncrystallsed funds penson lump sum An uncrystallsed funds penson lump sum, known as a UFPLS (also called a FLUMP), s a way of takng your penson pot wthout takng money from a
More informationMacroeconomic 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 informationPhysics 4A. Error Analysis or Experimental Uncertainty. Error
Physcs 4A Error Analyss or Expermental Uncertanty Slde Slde 2 Slde 3 Slde 4 Slde 5 Slde 6 Slde 7 Slde 8 Slde 9 Slde 0 Slde Slde 2 Slde 3 Slde 4 Slde 5 Slde 6 Slde 7 Slde 8 Slde 9 Slde 20 Slde 2 Error n
More informationMacroeconomic 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