A representation approach to the tower of Hanoi problem
|
|
- Janice Blair
- 6 years ago
- Views:
Transcription
1 Uiversity of Wollogog Research Olie Departmet of Computig Sciece Workig Paper Series Faculty of Egieerig ad Iformatio Scieces 98 A represetatio approach to the tower of Haoi problem M. C. Er Uiversity of Wollogog Recommeded Citatio Er, M. C., A represetatio approach to the tower of Haoi problem, Departmet of Computig Sciece, Uiversity of Wollogog, Workig Paper 8-8, 98, 3p. Research Olie is the ope access istitutioal repository for the Uiversity of Wollogog. For further iformatio cotact the UOW Library: research-pubs@uow.edu.au
2 A REPRESENTATION APPROACH TO THE TOWER OF HANOI PROBLEM M. C. ER Departmet of Computig Sciece, The Uiversity of Wollogog, Post Office Box 44, Wollogog, N.S.W Australia ABSTRACT By makig the movig directio of each disc explicit i the represetatio, a bit-strig so costructed ca be used to drive the Tower of Haoi algorithm. The behaviour of disc moves is further aalyzed based o the bit-strig represetatio. It has bee show that the bit-strig for movig discs ca be used to geerate successively the Gray codes of bits. Keywords ad phases: Tower of Haoi, represetatio approach, Gray codes, combiatorial algorithms. CR Categories: 5.30, 5.39
3 A REPRESENTATION APPROACH TO THE TOWER OF HANOI PROBLEM M. C. ER Departmet of Computig Sciece, The Uiversity of Wollogog, Post Office Box 44, Wollogog, N.S.W Australia.. INTRODUCTION Algorithms for the Tower of Haoi problem are ofte used i the itroductory texts o computer programmig for demostratig the power of recursio (Hayes, 977j Dijkstra, 97; Dromey, 98). Iterestig though these recursive algorithms are, begiers are ot always coviced that these algorithms will work util they are ru. Give such recursive algorithms, it is ot obvious how to move discs aroud util oe actually steps through the programs. Hayes (977), Buema ad Levy (980) preset two iterative algorithms for solvig the Tower of Haoi problem, tha the recursive solutios. is always moved i the cyclic order. hopig that they are less mysterious It is however ot clear why the smallest disc At ay rate, they did ot argue that their solutios are the optimal oes; amely, to move the tower of discs from ~ oe peg to the other peg i the miimum umber of steps. A aalysis is clearly ecessary. It is a commo experiece i the Articifical Itelligece research (Korf, 980) that a suitable represetatio may lead to a efficiet ad trasparet algorithm. It is the theme of this paper to examie the Tower of Haoi problem i this light. By ecodig the disc moves ito a bit-strig, we show that a straight forward iteractive algorithm ca be costructed. More importat, the bit-strig leds a had to a aalysis of the behaviour of the algorithm.
4 THE PROBLEM The Tower of Haoi problem ivolves three pegs (PI, P2 ad P3) ad discs (0, O 2, 0... O) such that 0 < O < 0 < < O' where 0 is the smallest disc. Iitially, all the discs are placed o a peg pi as a pyramid with 0 o the top. The task is to move these discs from Pi to Pj such that i ~ j, subject to the followig costraits: Cl : Oly the top disc of a tower may be moved from oe.2eg to the other; C2 No disc may rest upo a smaller disc at ay time; C3 Oly oe disc may be moved at a time. 3. OTHER ITERATIVE SOLUTIONS Hayes (977) gives reasos to believe that the smallest-disc moves must alterate with other disc moves. However, he did ot explai why the smallest disc must move cyclically. Nor did Buema ad Levy (980) give reasos to support their algorithm that the smallest disc must always move i the clockwise directio. Clearly, to move discs from peg (PI) to peg 3 (P3), oe eeds ot have to move discs from PI to peg 2 (P2), the move them to P3. Buema ad Levy's algorithm therefore does ot provide a optimal solutio uder certai circumstaces. Cosider the geeral case. Suppose the smallest disc (0 ) is o top of PI, ad the other two discs O. ad O. are o top of P2 ad P3 respectively.. J Clearly 0 < 0i ad 0 < OJ. Suppose we have just moved 0, either 0i or o. will be moved i the ext move. As O. ~ D., the ext move is a uique J. J solutio depedig o which of O. ad O. is smaller. Suppose 0. < D., the. J. J ext move is to move 0i o top of OJ' After that, we have to move, Now we have two choices; either to move 0 o top of 0i or to move 0 to P2. It is uder these circumstaces that both Hayes (977), ad Buema ad Levy (980) fail to satisfy us that oe choice is better tha the other. A deeper aalysis is clearly called for.
5 TREE AND BIT-STRING REPRESENTATION Suppose the three pegs are arraged i a circle as show i figure. pl :'\ atic0ckwise( ( \\clockwise P3 \"~ P2 Figure Arragemet of Pegs Defie the clockwise directio as Pl + P2 + P3 + PI, ad the aticlockwise directio as Pl + P3 + P2 + Pl. Ay top disc ca be moved to its eighbourig peg i either clockwise or aticlockwise directio at ay movemet. We ca view the clockwise ad aticlockwise moves as traversal of left ad right braches of a biary tree respectively. It is the possible to represet the directios of disc moves as a biary tree. I other words, we make explicit the directios of disc moves i the represetatio. Suppose we are asked to move discs from a peg to its eighbourig peg i the clockwise directio, we ca assume that the source is Pl, ad the destiatio is P2 without loss of geerality. This ca be expressed formally as follows: PI i P2. Whe =, oly disc D I ca be moved from PI to P2 i the clockwise directio i oe step: Whe N = 2, the smallest disc D should be moved i the aticlockwise l directio from PI to P3. The the larger disc D will be moved from pi 2 to P2 i the clockwise directio. After that, D will be moved from P3 l to PI i the aticlockwise directio thus completig the task. Namely, PI -' P3 PI.J. P2 P3 ~ P2
6 - 4 - The tree represetatios of disc movig directios are show i figure 2. disc tree represetatio bit-strig represetatio / o = > = Figure 2 Movig towers clockwise
7 - 5 - Whe = 3, the steps are as follows:, { D l, D PI P3 2 D, D, D PI ~ P2 D PI l l. P2 D, D P3 l 2., P2 To move D ad D i the aticlockwise directio, the steps ca be detailed l 2 as follows: PI ~ P2 PI L P3 P2 ~ P3 From the tree represetatio, it is apparet that the tree for movig two discs aticlockwise is the mirror image of the tree for movig them clockwise as show i figure 3. clockwise mirror aticlockwise Figure 3 clockwise ad aticlockwise trees Ideed, the clockwise ad aticlockwise trees are mirror images of each other is~geerally true for ~. PI ~ Hece, it appears that to costruct the tree for D l, D 2,..., D -l' D P2, we simply preped ad apped the mirror image of the tree for D l, D 2..., D -l : PI ~ P2 to the root ad leaf of the followig tree: / If we ow ecode the biary trees by usig Huffma's (952) method (amely left ad right braches are represeted by 0 ad respectively), the biary trees are collapsed ito bit-strigs as show i figure 2. By virtue of the way the biary trees are costructed, we ca geerate the bit-strigs without referrig to the trees. Let BS( ~ ) deotes the bit-strig for movig discs clockwise.
8 - 6 - It is obvious that B8( ~ ) = () Let C(bs) be the oe's complemet of the bit-strig bs. Oe ca easily show that the mirror image of a biary tree is precisely the oe's complemet of its bit-strig. Therefore, B8 ( ~ ) = C (B8(-,).. )) C (BS (-l ~ ) ) (2) For movig discs aticlockwise, D, D 2,..., D : PI ~ P3, oe ca derive that the tree is precisely the mirror image of the clockwise case. results are show i figure 4. The Let BS( ~) be the bit-strig for movig disks aticlockwise. By the ature of biary digits, oe ca easily verify that BS (.(,) C (BS ( Il- )) or BS( ~ ) = C(BS( ~ )) (3) Fially, we establish a property of the bit-strigs so geerated. Property 0 : The bit-strig for movig discs is symmetric with respect to the cetre bit. Proof This property readily follows from () ad (2) by iductio.
9 - 7 - disc tree represetatio bit-strig represetatio = \ = 2 00 = 3 00 = 4 I Figure 4 Movig towers aticlockwise
10 - a 5. HOW TO MAKE MOVES Give a bit-strig for discs«w;~~eed to be able to iterpret it i. -' order to guide the disc moves. First '-C;fa,ll, let us establish some properties. Property Proof D is the first ad last disc to move. Whe =, this is trivially true. I Whe 2, BS (2 ~ ) = C (BS ( ~» C(BS ( ll. ) ) = BS ( ~) BS ( "' ) where BS ( "') is D'S move. Likewise for BS (2... ) Suppose BS ( ~) ad Bs(") preserve this property. The, by (2) BS(+l ~} = C(BS( 'U C(BS("» We have proved by iductio. Likewise for BS (+l '" ). Property 2 Proof D 's moves always alterate with the moves of other discs. Whe =, it is trivial. Whe = 2, BS (2 ~) = BS (,,) BS ( '" ) where BS(l,(.) is D 'S move. This property is obviously true. Similarly for BS (2 J, ) Suppose this property holds for discs. Combie with property, the Dl'S moves must occur at the odd positios. Now we ca prove tqat this property also holds for (+l) discs. By (2) BS (+l ~) = C(BS ( ~» C(BS ( " ) ) Note that oe's complemet does ot chage the positio of its bits idicatig the D'S moves. By virtue of the fact that BS ( "') has D ' s moves as first ad last moves, as well as at odd positios, C(BS ( "» C(BS (,ft» therefore preserves property 2. Likewise for BS(+l "').
11 - 9 - Now, we are i a positio to iterpret the bit-strig. Let {b l, b 2,..., b m } be a bit-strig. For a bit b i, i is odd, 0 is moved accordig to this parity: 0 ad are clockwise ad aticlockwise respectively. For b., i is eve, other disc other tha 0 is moved. Suppose 0 rests o PI ad b. = 0, we caot move the top disc from P3 to PI due to costrait C2. Therefore, we have a uique solutio, amely to move the top disc from p2 to P3. Similar argumet applies to top disc from p. to p.. J summarized i figure 5. b. =. Suppose Moveoisc (P., P.) is to move the J The algorithm for movig D., such that i f I is Switcho 0 ito "{ Case P~If b. = 0 the Moveoisc (P2, P3) edcase else Moveoisc (P3, P2) ; } ~ ~ P2 If b. = 0 the MoveOisc (P3, PI) edcase else Moveoisc (PI, P3) P3 If b. = a the Moveoisc (PI, P2) edcase else MoveOisc (P2, PI) Figure 5 Movig other disc
12 FURTHER ANALYSIS We ow further aalyze the bit-strig for movig discs to reveal the iheret properties of the Tower of Haoi problem. Property 3 The smallest disc always moves i a cyclic order. Proof Whe =, this is trivial. Suppose this property holds for (-l) discs. Namely, all the odd positio bits are havig the same parity. By properties ad 2 ad (2), the odd positio bits of the bit-strig for movig discs agai have the same parity. Property 4 The solutio offered by the bit-strig for movig discs is optimal. Proof Whe =, BS ( ~) for 0 : PI ~ P2 or BS ( ~) for 0 : pi, P2 is obviously optimal. Suppose as (-lll..) ad BS (-l "') are optimal. We ow show that as ( ~) is optimal too. To move discs from PI to P2, we eed to move the top (-l) discs from PI to P3, the move D from pi move the (-l) discs agai from P3 to p2. to P2, ad fially That is, PI ~ P2 D PI " P3 pi ~ P2 P3.4 P2 As as (-l J,) is optimal for D, D,.., D : l 2 -l Pi "' Pj, where i t- j. It follows that as ( Il.) for the composite solutio of movig discs, 0' 2., D : PI ~ P2, is optimal. Similar argumet holds for as ( '" )
13 - - Property 5 Proof The optimal solutio takes 2 - steps. Let S be the umber of bits i BS (.L ) From (2), S 2 * S As Sl = by () Therefore S -l = I i=o 2 i = 2 - As a bit correspods to a takes 2 - steps. step, thus the optimal solutio Property 6 All D., i = odd, move i the same directio. Whereas, all ~ D., J j = eve, move i the opposite directio. Proof From (2), BS(~) = C(BS(-I!l-» C(BS(-l~») where C {BS (-l!l-») = C (C (BS (-2 Il-» I C {BS (-2 ~ )) ) C(C (BS (-2 I).. )» 0 C (C (BS (-2 i. ) ) ) As the cetre bit of BS(!l-) is a idicatio of the movig directio of 0, so the cetre bit of C (BS (-Ill..» idicates the movig directio of D. - As the cetre bits of BS ( ~) ad C{BS (-l.l.» are of differet parity, we have proved that move i opposite directios. D. ~ ad D., such that li-jl =, J Furthermore, C {C {BS (-2 ~ ) ) ) BS (-2 ~ ) C (BS (-3 v.- ) C {BS (-3 U. ) ) As the cetre bits of BS ( ~) ad C {C (BS (-2 ~ )» are havig the same parity, we thus prove that o movig i the same directio. ad D -2 are By iductio, the property holds.
14 - 2 - Property 7 Let M. be the umber of steps take by D. to get to the.. -i destiatio i the optimal solutio. The M. = 2. Proof: As we kow, the cetre bit of BS ( ~) idicates the movig directio of D, ad that is the oly bit to do so. Hece, M = -i Suppose, M. = 2 for 0 < i S.. By (2), BS (i ~ ) Thus, M..- = =C(BS(i-l~» 2 * 2 - i -(i-i) 2 C(BS(i-lJ.». 7. IMPLEMENTATIONS Now we are i a positio to implemet the algorithm. From property 5, we kow that it takes 2 - steps to move discs from a peg to a target peg. So the cotrol loop ca be implemeted as a for-loop. Further, we kow from property 2 that the moves of D alterate'with other disc moves. l Therefore, the body of the for-loop comprises two move-disc istructios; oe for movig D ' aother for movig other discs. A program based o these l ideas has bee writte usig. C, ad is icluded i Appedix A for referece. Notice that the geeratig fuctio, Geerate, successively geerates the bitstrig from disc up to discs based o (2). A momet's reflectio would covice us that to geerate the bit-strig for discs, it is ot ecessary t? geerate all the bit-strigs for disc up to discs. We ca ideed geerate the bit-strig for discs straight away, by takig the advatage of property 6. Before we spell out the details of the directio geeratig fuctio, we prove a property first. Property 8. " 2 i - l + 2 i * J' S 2 _l All b.t pos.t.os where same parity. j=o,,2... ad i=eve, are occupied by bits of Whereas, other bit positios, i-i i... " p 'I * J, are occup.ed by b.ts of 0ppos.te pa.ty.
Recurrence Relations
Recurrece Relatios Aalysis of recursive algorithms, such as: it factorial (it ) { if (==0) retur ; else retur ( * factorial(-)); } Let t be the umber of multiplicatios eeded to calculate factorial(). The
More informationDe Bruijn Sequences for the Binary Strings with Maximum Density
De Bruij Sequeces for the Biary Strigs with Maximum Desity Joe Sawada 1, Brett Steves 2, ad Aaro Williams 2 1 jsawada@uoguelph.ca School of Computer Sciece, Uiversity of Guelph, CANADA 2 brett@math.carleto.ca
More informationDe Bruijn Sequences for the Binary Strings with Maximum Specified Density
De Bruij Sequeces for the Biary Strigs with Maximum Specified Desity Joe Sawada 1, Brett Steves 2, ad Aaro Williams 2 1 jsawada@uoguelph.ca School of Computer Sciece, Uiversity of Guelph, CANADA 2 brett@math.carleto.ca
More informationRecursive Algorithm for Generating Partitions of an Integer. 1 Preliminary
Recursive Algorithm for Geeratig Partitios of a Iteger Sug-Hyuk Cha Computer Sciece Departmet, Pace Uiversity 1 Pace Plaza, New York, NY 10038 USA scha@pace.edu Abstract. This article first reviews the
More informationCS 270 Algorithms. Oliver Kullmann. Growth of Functions. Divide-and- Conquer Min-Max- Problem. Tutorial. Reading from CLRS for week 2
Geeral remarks Week 2 1 Divide ad First we cosider a importat tool for the aalysis of algorithms: Big-Oh. The we itroduce a importat algorithmic paradigm:. We coclude by presetig ad aalysig two examples.
More informationRecursive Algorithms. Recurrences. Recursive Algorithms Analysis
Recursive Algorithms Recurreces Computer Sciece & Egieerig 35: Discrete Mathematics Christopher M Bourke cbourke@cseuledu A recursive algorithm is oe i which objects are defied i terms of other objects
More informationComputability and computational complexity
Computability ad computatioal complexity Lecture 4: Uiversal Turig machies. Udecidability Io Petre Computer Sciece, Åbo Akademi Uiversity Fall 2015 http://users.abo.fi/ipetre/computability/ 21. toukokuu
More informationChapter 4. Fourier Series
Chapter 4. Fourier Series At this poit we are ready to ow cosider the caoical equatios. Cosider, for eample the heat equatio u t = u, < (4.) subject to u(, ) = si, u(, t) = u(, t) =. (4.) Here,
More informationInfinite Sequences and Series
Chapter 6 Ifiite Sequeces ad Series 6.1 Ifiite Sequeces 6.1.1 Elemetary Cocepts Simply speakig, a sequece is a ordered list of umbers writte: {a 1, a 2, a 3,...a, a +1,...} where the elemets a i represet
More informationIP Reference guide for integer programming formulations.
IP Referece guide for iteger programmig formulatios. by James B. Orli for 15.053 ad 15.058 This documet is iteded as a compact (or relatively compact) guide to the formulatio of iteger programs. For more
More informationFortgeschrittene Datenstrukturen Vorlesung 11
Fortgeschrittee Datestruture Vorlesug 11 Schriftführer: Marti Weider 19.01.2012 1 Succict Data Structures (ctd.) 1.1 Select-Queries A slightly differet approach, compared to ra, is used for select. B represets
More informationSums, products and sequences
Sums, products ad sequeces How to write log sums, e.g., 1+2+ (-1)+ cocisely? i=1 Sum otatio ( sum from 1 to ): i 3 = 1 + 2 + + If =3, i=1 i = 1+2+3=6. The ame ii does ot matter. Could use aother letter
More informationLangford s Problem. Moti Ben-Ari. Department of Science Teaching. Weizmann Institute of Science.
Lagford s Problem Moti Be-Ari Departmet of Sciece Teachig Weizma Istitute of Sciece http://www.weizma.ac.il/sci-tea/beari/ c 017 by Moti Be-Ari. This work is licesed uder the Creative Commos Attributio-ShareAlike
More informationSECTION 1.5 : SUMMATION NOTATION + WORK WITH SEQUENCES
SECTION 1.5 : SUMMATION NOTATION + WORK WITH SEQUENCES Read Sectio 1.5 (pages 5 9) Overview I Sectio 1.5 we lear to work with summatio otatio ad formulas. We will also itroduce a brief overview of sequeces,
More informationOn Some Properties of Digital Roots
Advaces i Pure Mathematics, 04, 4, 95-30 Published Olie Jue 04 i SciRes. http://www.scirp.org/joural/apm http://dx.doi.org/0.436/apm.04.46039 O Some Properties of Digital Roots Ilha M. Izmirli Departmet
More informationTR/46 OCTOBER THE ZEROS OF PARTIAL SUMS OF A MACLAURIN EXPANSION A. TALBOT
TR/46 OCTOBER 974 THE ZEROS OF PARTIAL SUMS OF A MACLAURIN EXPANSION by A. TALBOT .. Itroductio. A problem i approximatio theory o which I have recetly worked [] required for its solutio a proof that the
More informationComparison Study of Series Approximation. and Convergence between Chebyshev. and Legendre Series
Applied Mathematical Scieces, Vol. 7, 03, o. 6, 3-337 HIKARI Ltd, www.m-hikari.com http://d.doi.org/0.988/ams.03.3430 Compariso Study of Series Approimatio ad Covergece betwee Chebyshev ad Legedre Series
More informationCounting Well-Formed Parenthesizations Easily
Coutig Well-Formed Parethesizatios Easily Pekka Kilpeläie Uiversity of Easter Filad School of Computig, Kuopio August 20, 2014 Abstract It is well kow that there is a oe-to-oe correspodece betwee ordered
More informationMath 104: Homework 2 solutions
Math 04: Homework solutios. A (0, ): Sice this is a ope iterval, the miimum is udefied, ad sice the set is ot bouded above, the maximum is also udefied. if A 0 ad sup A. B { m + : m, N}: This set does
More informationNICK DUFRESNE. 1 1 p(x). To determine some formulas for the generating function of the Schröder numbers, r(x) = a(x) =
AN INTRODUCTION TO SCHRÖDER AND UNKNOWN NUMBERS NICK DUFRESNE Abstract. I this article we will itroduce two types of lattice paths, Schröder paths ad Ukow paths. We will examie differet properties of each,
More informationSquare-Congruence Modulo n
Square-Cogruece Modulo Abstract This paper is a ivestigatio of a equivalece relatio o the itegers that was itroduced as a exercise i our Discrete Math class. Part I - Itro Defiitio Two itegers are Square-Cogruet
More informationUC Berkeley CS 170: Efficient Algorithms and Intractable Problems Handout 17 Lecturer: David Wagner April 3, Notes 17 for CS 170
UC Berkeley CS 170: Efficiet Algorithms ad Itractable Problems Hadout 17 Lecturer: David Wager April 3, 2003 Notes 17 for CS 170 1 The Lempel-Ziv algorithm There is a sese i which the Huffma codig was
More informationOPTIMAL ALGORITHMS -- SUPPLEMENTAL NOTES
OPTIMAL ALGORITHMS -- SUPPLEMENTAL NOTES Peter M. Maurer Why Hashig is θ(). As i biary search, hashig assumes that keys are stored i a array which is idexed by a iteger. However, hashig attempts to bypass
More informationAnalysis of Experimental Measurements
Aalysis of Experimetal Measuremets Thik carefully about the process of makig a measuremet. A measuremet is a compariso betwee some ukow physical quatity ad a stadard of that physical quatity. As a example,
More informationCS284A: Representations and Algorithms in Molecular Biology
CS284A: Represetatios ad Algorithms i Molecular Biology Scribe Notes o Lectures 3 & 4: Motif Discovery via Eumeratio & Motif Represetatio Usig Positio Weight Matrix Joshua Gervi Based o presetatios by
More informationarxiv: v1 [math.nt] 10 Dec 2014
A DIGITAL BINOMIAL THEOREM HIEU D. NGUYEN arxiv:42.38v [math.nt] 0 Dec 204 Abstract. We preset a triagle of coectios betwee the Sierpisi triagle, the sum-of-digits fuctio, ad the Biomial Theorem via a
More informationU8L1: Sec Equations of Lines in R 2
MCVU Thursda Ma, Review of Equatios of a Straight Lie (-D) U8L Sec. 8.9. Equatios of Lies i R Cosider the lie passig through A (-,) with slope, as show i the diagram below. I poit slope form, the equatio
More informationSequences, Mathematical Induction, and Recursion. CSE 2353 Discrete Computational Structures Spring 2018
CSE 353 Discrete Computatioal Structures Sprig 08 Sequeces, Mathematical Iductio, ad Recursio (Chapter 5, Epp) Note: some course slides adopted from publisher-provided material Overview May mathematical
More informationLecture XVI - Lifting of paths and homotopies
Lecture XVI - Liftig of paths ad homotopies I the last lecture we discussed the liftig problem ad proved that the lift if it exists is uiquely determied by its value at oe poit. I this lecture we shall
More informationw (1) ˆx w (1) x (1) /ρ and w (2) ˆx w (2) x (2) /ρ.
2 5. Weighted umber of late jobs 5.1. Release dates ad due dates: maximimizig the weight of o-time jobs Oce we add release dates, miimizig the umber of late jobs becomes a sigificatly harder problem. For
More informationThe picture in figure 1.1 helps us to see that the area represents the distance traveled. Figure 1: Area represents distance travelled
1 Lecture : Area Area ad distace traveled Approximatig area by rectagles Summatio The area uder a parabola 1.1 Area ad distace Suppose we have the followig iformatio about the velocity of a particle, how
More information4.3 Growth Rates of Solutions to Recurrences
4.3. GROWTH RATES OF SOLUTIONS TO RECURRENCES 81 4.3 Growth Rates of Solutios to Recurreces 4.3.1 Divide ad Coquer Algorithms Oe of the most basic ad powerful algorithmic techiques is divide ad coquer.
More informationMath 2112 Solutions Assignment 5
Math 2112 Solutios Assigmet 5 5.1.1 Idicate which of the followig relatioships are true ad which are false: a. Z Q b. R Q c. Q Z d. Z Z Z e. Q R Q f. Q Z Q g. Z R Z h. Z Q Z a. True. Every positive iteger
More informationEE260: Digital Design, Spring n MUX Gate n Rudimentary functions n Binary Decoders. n Binary Encoders n Priority Encoders
EE260: Digital Desig, Sprig 2018 EE 260: Itroductio to Digital Desig MUXs, Ecoders, Decoders Yao Zheg Departmet of Electrical Egieerig Uiversity of Hawaiʻi at Māoa Overview of Ecoder ad Decoder MUX Gate
More informationInverse Matrix. A meaning that matrix B is an inverse of matrix A.
Iverse Matrix Two square matrices A ad B of dimesios are called iverses to oe aother if the followig holds, AB BA I (11) The otio is dual but we ofte write 1 B A meaig that matrix B is a iverse of matrix
More informationCHAPTER 10 INFINITE SEQUENCES AND SERIES
CHAPTER 10 INFINITE SEQUENCES AND SERIES 10.1 Sequeces 10.2 Ifiite Series 10.3 The Itegral Tests 10.4 Compariso Tests 10.5 The Ratio ad Root Tests 10.6 Alteratig Series: Absolute ad Coditioal Covergece
More informationA Combinatorial Proof of a Theorem of Katsuura
Mathematical Assoc. of America College Mathematics Joural 45:1 Jue 2, 2014 2:34 p.m. TSWLatexiaTemp 000017.tex A Combiatorial Proof of a Theorem of Katsuura Bria K. Miceli Bria Miceli (bmiceli@triity.edu)
More information6.3 Testing Series With Positive Terms
6.3. TESTING SERIES WITH POSITIVE TERMS 307 6.3 Testig Series With Positive Terms 6.3. Review of what is kow up to ow I theory, testig a series a i for covergece amouts to fidig the i= sequece of partial
More informationP. Z. Chinn Department of Mathematics, Humboldt State University, Arcata, CA
RISES, LEVELS, DROPS AND + SIGNS IN COMPOSITIONS: EXTENSIONS OF A PAPER BY ALLADI AND HOGGATT S. Heubach Departmet of Mathematics, Califoria State Uiversity Los Ageles 55 State Uiversity Drive, Los Ageles,
More informationAppendix to Quicksort Asymptotics
Appedix to Quicksort Asymptotics James Alle Fill Departmet of Mathematical Scieces The Johs Hopkis Uiversity jimfill@jhu.edu ad http://www.mts.jhu.edu/~fill/ ad Svate Jaso Departmet of Mathematics Uppsala
More information(A sequence also can be thought of as the list of function values attained for a function f :ℵ X, where f (n) = x n for n 1.) x 1 x N +k x N +4 x 3
MATH 337 Sequeces Dr. Neal, WKU Let X be a metric space with distace fuctio d. We shall defie the geeral cocept of sequece ad limit i a metric space, the apply the results i particular to some special
More informationPH 425 Quantum Measurement and Spin Winter SPINS Lab 1
PH 425 Quatum Measuremet ad Spi Witer 23 SPIS Lab Measure the spi projectio S z alog the z-axis This is the experimet that is ready to go whe you start the program, as show below Each atom is measured
More information1 of 7 7/16/2009 6:06 AM Virtual Laboratories > 6. Radom Samples > 1 2 3 4 5 6 7 6. Order Statistics Defiitios Suppose agai that we have a basic radom experimet, ad that X is a real-valued radom variable
More informationLecture 9: Hierarchy Theorems
IAS/PCMI Summer Sessio 2000 Clay Mathematics Udergraduate Program Basic Course o Computatioal Complexity Lecture 9: Hierarchy Theorems David Mix Barrigto ad Alexis Maciel July 27, 2000 Most of this lecture
More informationClassification of problem & problem solving strategies. classification of time complexities (linear, logarithmic etc)
Classificatio of problem & problem solvig strategies classificatio of time complexities (liear, arithmic etc) Problem subdivisio Divide ad Coquer strategy. Asymptotic otatios, lower boud ad upper boud:
More informationQuadratic Functions. Before we start looking at polynomials, we should know some common terminology.
Quadratic Fuctios I this sectio we begi the study of fuctios defied by polyomial expressios. Polyomial ad ratioal fuctios are the most commo fuctios used to model data, ad are used extesively i mathematical
More informationAxioms of Measure Theory
MATH 532 Axioms of Measure Theory Dr. Neal, WKU I. The Space Throughout the course, we shall let X deote a geeric o-empty set. I geeral, we shall ot assume that ay algebraic structure exists o X so that
More informationa 2 +b 2 +c 2 ab+bc+ca.
All Problems o the Prize Exams Sprig 205 The source for each problem is listed below whe available; but eve whe the source is give, the formulatio of the problem may have bee chaged. Solutios for the problems
More informationCSE 1400 Applied Discrete Mathematics Number Theory and Proofs
CSE 1400 Applied Discrete Mathematics Number Theory ad Proofs Departmet of Computer Scieces College of Egieerig Florida Tech Sprig 01 Problems for Number Theory Backgroud Number theory is the brach of
More informationUniversity of Twente The Netherlands
Faculty of Mathematical Scieces t Uiversity of Twete The Netherlads P.O. Box 7 7500 AE Eschede The Netherlads Phoe: +3-53-4893400 Fax: +3-53-48934 Email: memo@math.utwete.l www.math.utwete.l/publicatios
More informationIf a subset E of R contains no open interval, is it of zero measure? For instance, is the set of irrationals in [0, 1] is of measure zero?
2 Lebesgue Measure I Chapter 1 we defied the cocept of a set of measure zero, ad we have observed that every coutable set is of measure zero. Here are some atural questios: If a subset E of R cotais a
More informationThe Random Walk For Dummies
The Radom Walk For Dummies Richard A Mote Abstract We look at the priciples goverig the oe-dimesioal discrete radom walk First we review five basic cocepts of probability theory The we cosider the Beroulli
More informationSEQUENCE AND SERIES NCERT
9. Overview By a sequece, we mea a arragemet of umbers i a defiite order accordig to some rule. We deote the terms of a sequece by a, a,..., etc., the subscript deotes the positio of the term. I view of
More informationSOME TRIBONACCI IDENTITIES
Mathematics Today Vol.7(Dec-011) 1-9 ISSN 0976-38 Abstract: SOME TRIBONACCI IDENTITIES Shah Devbhadra V. Sir P.T.Sarvajaik College of Sciece, Athwalies, Surat 395001. e-mail : drdvshah@yahoo.com The sequece
More informationECE-S352 Introduction to Digital Signal Processing Lecture 3A Direct Solution of Difference Equations
ECE-S352 Itroductio to Digital Sigal Processig Lecture 3A Direct Solutio of Differece Equatios Discrete Time Systems Described by Differece Equatios Uit impulse (sample) respose h() of a DT system allows
More informationTEACHER CERTIFICATION STUDY GUIDE
COMPETENCY 1. ALGEBRA SKILL 1.1 1.1a. ALGEBRAIC STRUCTURES Kow why the real ad complex umbers are each a field, ad that particular rigs are ot fields (e.g., itegers, polyomial rigs, matrix rigs) Algebra
More informationConvergence of random variables. (telegram style notes) P.J.C. Spreij
Covergece of radom variables (telegram style otes).j.c. Spreij this versio: September 6, 2005 Itroductio As we kow, radom variables are by defiitio measurable fuctios o some uderlyig measurable space
More informationU8L1: Sec Equations of Lines in R 2
MCVU U8L: Sec. 8.9. Equatios of Lies i R Review of Equatios of a Straight Lie (-D) Cosider the lie passig through A (-,) with slope, as show i the diagram below. I poit slope form, the equatio of the lie
More informationSome Explicit Formulae of NAF and its Left-to-Right. Analogue Based on Booth Encoding
Vol.7, No.6 (01, pp.69-74 http://dx.doi.org/10.1457/ijsia.01.7.6.7 Some Explicit Formulae of NAF ad its Left-to-Right Aalogue Based o Booth Ecodig Dog-Guk Ha, Okyeo Yi, ad Tsuyoshi Takagi Kookmi Uiversity,
More informationThe "Last Riddle" of Pierre de Fermat, II
The "Last Riddle" of Pierre de Fermat, II Alexader Mitkovsky mitkovskiy@gmail.com Some time ago, I published a work etitled, "The Last Riddle" of Pierre de Fermat " i which I had writte a proof of the
More informationsubcaptionfont+=small,labelformat=parens,labelsep=space,skip=6pt,list=0,hypcap=0 subcaption ALGEBRAIC COMBINATORICS LECTURE 8 TUESDAY, 2/16/2016
subcaptiofot+=small,labelformat=pares,labelsep=space,skip=6pt,list=0,hypcap=0 subcaptio ALGEBRAIC COMBINATORICS LECTURE 8 TUESDAY, /6/06. Self-cojugate Partitios Recall that, give a partitio λ, we may
More informationNUMERICAL METHODS FOR SOLVING EQUATIONS
Mathematics Revisio Guides Numerical Methods for Solvig Equatios Page 1 of 11 M.K. HOME TUITION Mathematics Revisio Guides Level: GCSE Higher Tier NUMERICAL METHODS FOR SOLVING EQUATIONS Versio:. Date:
More informationRank Modulation with Multiplicity
Rak Modulatio with Multiplicity Axiao (Adrew) Jiag Computer Sciece ad Eg. Dept. Texas A&M Uiversity College Statio, TX 778 ajiag@cse.tamu.edu Abstract Rak modulatio is a scheme that uses the relative order
More informationCHAPTER I: Vector Spaces
CHAPTER I: Vector Spaces Sectio 1: Itroductio ad Examples This first chapter is largely a review of topics you probably saw i your liear algebra course. So why cover it? (1) Not everyoe remembers everythig
More informationCS537. Numerical Analysis and Computing
CS57 Numerical Aalysis ad Computig Lecture Locatig Roots o Equatios Proessor Ju Zhag Departmet o Computer Sciece Uiversity o Ketucky Leigto KY 456-6 Jauary 9 9 What is the Root May physical system ca be
More informationL = n i, i=1. dp p n 1
Exchageable sequeces ad probabilities for probabilities 1996; modified 98 5 21 to add material o mutual iformatio; modified 98 7 21 to add Heath-Sudderth proof of de Fietti represetatio; modified 99 11
More informationBeurling Integers: Part 2
Beurlig Itegers: Part 2 Isomorphisms Devi Platt July 11, 2015 1 Prime Factorizatio Sequeces I the last article we itroduced the Beurlig geeralized itegers, which ca be represeted as a sequece of real umbers
More informationAn Introduction to Randomized Algorithms
A Itroductio to Radomized Algorithms The focus of this lecture is to study a radomized algorithm for quick sort, aalyze it usig probabilistic recurrece relatios, ad also provide more geeral tools for aalysis
More informationRADICAL EXPRESSION. If a and x are real numbers and n is a positive integer, then x is an. n th root theorems: Example 1 Simplify
Example 1 Simplify 1.2A Radical Operatios a) 4 2 b) 16 1 2 c) 16 d) 2 e) 8 1 f) 8 What is the relatioship betwee a, b, c? What is the relatioship betwee d, e, f? If x = a, the x = = th root theorems: RADICAL
More informationSeptember 2012 C1 Note. C1 Notes (Edexcel) Copyright - For AS, A2 notes and IGCSE / GCSE worksheets 1
September 0 s (Edecel) Copyright www.pgmaths.co.uk - For AS, A otes ad IGCSE / GCSE worksheets September 0 Copyright www.pgmaths.co.uk - For AS, A otes ad IGCSE / GCSE worksheets September 0 Copyright
More informationSection 5.1 The Basics of Counting
1 Sectio 5.1 The Basics of Coutig Combiatorics, the study of arragemets of objects, is a importat part of discrete mathematics. I this chapter, we will lear basic techiques of coutig which has a lot of
More informationNumber Representation
Number Represetatio 1 Number System :: The Basics We are accustomed to usig the so-called decimal umber system Te digits :: 0,1,2,3,4,5,6,7,8,9 Every digit positio has a weight which is a power of 10 Base
More informationAMS Mathematics Subject Classification : 40A05, 40A99, 42A10. Key words and phrases : Harmonic series, Fourier series. 1.
J. Appl. Math. & Computig Vol. x 00y), No. z, pp. A RECURSION FOR ALERNAING HARMONIC SERIES ÁRPÁD BÉNYI Abstract. We preset a coveiet recursive formula for the sums of alteratig harmoic series of odd order.
More informationCALCULATION OF FIBONACCI VECTORS
CALCULATION OF FIBONACCI VECTORS Stuart D. Aderso Departmet of Physics, Ithaca College 953 Daby Road, Ithaca NY 14850, USA email: saderso@ithaca.edu ad Dai Novak Departmet of Mathematics, Ithaca College
More informationn k <. If an even palindrome subsequence consists 2
Fidig all Palidrome Subsequeces o a Strig K.R. Chuag 1, R.C.T. Lee 2 ad C.H. Huag 3* 1, 2 Departmet of Computer Sciece, Natioal Chi-Na Uiversity, Puli, Natou Hsieh, Taiwa 545 3 Departmet of Computer Sciece
More informationRepresenting transformations by matrices
Teachig Further Mathematics FP Give each pair of studets a copy of the sheet below elarged oto A. Represetig trasformatios by matrices Studets have to multiply the matri by the positio vector of each verte
More informationSimilarity Solutions to Unsteady Pseudoplastic. Flow Near a Moving Wall
Iteratioal Mathematical Forum, Vol. 9, 04, o. 3, 465-475 HIKARI Ltd, www.m-hikari.com http://dx.doi.org/0.988/imf.04.48 Similarity Solutios to Usteady Pseudoplastic Flow Near a Movig Wall W. Robi Egieerig
More informationThe Growth of Functions. Theoretical Supplement
The Growth of Fuctios Theoretical Supplemet The Triagle Iequality The triagle iequality is a algebraic tool that is ofte useful i maipulatig absolute values of fuctios. The triagle iequality says that
More informationRandom Models. Tusheng Zhang. February 14, 2013
Radom Models Tusheg Zhag February 14, 013 1 Radom Walks Let me describe the model. Radom walks are used to describe the motio of a movig particle (object). Suppose that a particle (object) moves alog the
More informationPolynomials with Rational Roots that Differ by a Non-zero Constant. Generalities
Polyomials with Ratioal Roots that Differ by a No-zero Costat Philip Gibbs The problem of fidig two polyomials P(x) ad Q(x) of a give degree i a sigle variable x that have all ratioal roots ad differ by
More informationIntermediate Math Circles November 4, 2009 Counting II
Uiversity of Waterloo Faculty of Mathematics Cetre for Educatio i Mathematics ad Computig Itermediate Math Circles November 4, 009 Coutig II Last time, after lookig at the product rule ad sum rule, we
More informationA Note on the Symmetric Powers of the Standard Representation of S n
A Note o the Symmetric Powers of the Stadard Represetatio of S David Savitt 1 Departmet of Mathematics, Harvard Uiversity Cambridge, MA 0138, USA dsavitt@mathharvardedu Richard P Staley Departmet of Mathematics,
More informationChapter 9 - CD companion 1. A Generic Implementation; The Common-Merge Amplifier. 1 τ is. ω ch. τ io
Chapter 9 - CD compaio CHAPTER NINE CD-9.2 CD-9.2. Stages With Voltage ad Curret Gai A Geeric Implemetatio; The Commo-Merge Amplifier The advaced method preseted i the text for approximatig cutoff frequecies
More informationBinary codes from graphs on triples and permutation decoding
Biary codes from graphs o triples ad permutatio decodig J. D. Key Departmet of Mathematical Scieces Clemso Uiversity Clemso SC 29634 U.S.A. J. Moori ad B. G. Rodrigues School of Mathematics Statistics
More informationAlgorithm of Superposition of Boolean Functions Given with Truth Vectors
IJCSI Iteratioal Joural of Computer Sciece Issues, Vol 9, Issue 4, No, July ISSN (Olie: 694-84 wwwijcsiorg 9 Algorithm of Superpositio of Boolea Fuctios Give with Truth Vectors Aatoly Plotikov, Aleader
More information6 Integers Modulo n. integer k can be written as k = qn + r, with q,r, 0 r b. So any integer.
6 Itegers Modulo I Example 2.3(e), we have defied the cogruece of two itegers a,b with respect to a modulus. Let us recall that a b (mod ) meas a b. We have proved that cogruece is a equivalece relatio
More informationMath 113 Exam 3 Practice
Math Exam Practice Exam will cover.-.9. This sheet has three sectios. The first sectio will remid you about techiques ad formulas that you should kow. The secod gives a umber of practice questios for you
More informationChapter 1. Complex Numbers. Dr. Pulak Sahoo
Chapter 1 Complex Numbers BY Dr. Pulak Sahoo Assistat Professor Departmet of Mathematics Uiversity Of Kalyai West Begal, Idia E-mail : sahoopulak1@gmail.com 1 Module-2: Stereographic Projectio 1 Euler
More informationA sequence of numbers is a function whose domain is the positive integers. We can see that the sequence
Sequeces A sequece of umbers is a fuctio whose domai is the positive itegers. We ca see that the sequece,, 2, 2, 3, 3,... is a fuctio from the positive itegers whe we write the first sequece elemet as
More informationMathematical Induction
Mathematical Iductio Itroductio Mathematical iductio, or just iductio, is a proof techique. Suppose that for every atural umber, P() is a statemet. We wish to show that all statemets P() are true. I a
More informationMA131 - Analysis 1. Workbook 3 Sequences II
MA3 - Aalysis Workbook 3 Sequeces II Autum 2004 Cotets 2.8 Coverget Sequeces........................ 2.9 Algebra of Limits......................... 2 2.0 Further Useful Results........................
More informationAn Intuitionistic fuzzy count and cardinality of Intuitionistic fuzzy sets
Malaya Joural of Matematik 4(1)(2013) 123 133 A Ituitioistic fuzzy cout ad cardiality of Ituitioistic fuzzy sets B. K. Tripathy a, S. P. Jea b ad S. K. Ghosh c, a School of Computig Scieces ad Egieerig,
More informationEE260: Digital Design, Spring n Binary Addition. n Complement forms. n Subtraction. n Multiplication. n Inputs: A 0, B 0. n Boolean equations:
EE260: Digital Desig, Sprig 2018 EE 260: Itroductio to Digital Desig Arithmetic Biary Additio Complemet forms Subtractio Multiplicatio Overview Yao Zheg Departmet of Electrical Egieerig Uiversity of Hawaiʻi
More informationTHE ASYMPTOTIC COMPLEXITY OF MATRIX REDUCTION OVER FINITE FIELDS
THE ASYMPTOTIC COMPLEXITY OF MATRIX REDUCTION OVER FINITE FIELDS DEMETRES CHRISTOFIDES Abstract. Cosider a ivertible matrix over some field. The Gauss-Jorda elimiatio reduces this matrix to the idetity
More informationProof of Fermat s Last Theorem by Algebra Identities and Linear Algebra
Proof of Fermat s Last Theorem by Algebra Idetities ad Liear Algebra Javad Babaee Ragai Youg Researchers ad Elite Club, Qaemshahr Brach, Islamic Azad Uiversity, Qaemshahr, Ira Departmet of Civil Egieerig,
More informationHoggatt and King [lo] defined a complete sequence of natural numbers
REPRESENTATIONS OF N AS A SUM OF DISTINCT ELEMENTS FROM SPECIAL SEQUENCES DAVID A. KLARNER, Uiversity of Alberta, Edmoto, Caada 1. INTRODUCTION Let a, I deote a sequece of atural umbers which satisfies
More informationContext-free grammars and. Basics of string generation methods
Cotext-free grammars ad laguages Basics of strig geeratio methods What s so great about regular expressios? A regular expressio is a strig represetatio of a regular laguage This allows the storig a whole
More informationMarkscheme May 2015 Calculus Higher level Paper 3
M5/5/MATHL/HP3/ENG/TZ0/SE/M Markscheme May 05 Calculus Higher level Paper 3 pages M5/5/MATHL/HP3/ENG/TZ0/SE/M This markscheme is the property of the Iteratioal Baccalaureate ad must ot be reproduced or
More informationMA131 - Analysis 1. Workbook 2 Sequences I
MA3 - Aalysis Workbook 2 Sequeces I Autum 203 Cotets 2 Sequeces I 2. Itroductio.............................. 2.2 Icreasig ad Decreasig Sequeces................ 2 2.3 Bouded Sequeces..........................
More informationDouble Stage Shrinkage Estimator of Two Parameters. Generalized Exponential Distribution
Iteratioal Mathematical Forum, Vol., 3, o. 3, 3-53 HIKARI Ltd, www.m-hikari.com http://dx.doi.org/.9/imf.3.335 Double Stage Shrikage Estimator of Two Parameters Geeralized Expoetial Distributio Alaa M.
More information