Outline. Unlimited Register Machine. Intuitive Definition. What is Effective Procedure. Basic Concepts Computable Function

Size: px
Start display at page:

Download "Outline. Unlimited Register Machine. Intuitive Definition. What is Effective Procedure. Basic Concepts Computable Function"

Transcription

1 Outline UnlimitedRegisterMachine Xiaofeng Gao Department of Computer Science and Engineering Shanghai Jiao Tong University, P.R.China CS363-Computability Theory SpecialthanksisgiventoProf.YuxiFuforsharinghisteachingmaterials. CSC363-Computability Theory@SJTU Xiaofeng Gao 1/45 CSC363-Computability Theory@SJTU Xiaofeng Gao 2/45 What is Effective Procedure Intuitive Methods for addition, multiplication Givenn,findingthenthprimenumber. Differentiating a polynomial. FindingthehighestcommonfactoroftwonumbersHCF(x,y) Euclidean algorithm Giventwonumbersx,y,decidingwhetherxisamultipleofy. An algorithm or effective procedure is a mechanical rule, or automatic method, or programme for performing some mathematical operations. Blackbox: input output Their implementation requires no ingenuity, intelligence, inventiveness. CSC363-Computability Theory@SJTU Xiaofeng Gao 4/45 CSC363-Computability Theory@SJTU Xiaofeng Gao 5/45

2 What is effective procedure? Algorithm : Consider the function g(n) defined as follows: g(n) = Question: Is g(n) effective? 1, ifthereisarunofexactlynconsecutive7 s inthedecimalexpansionof π, 0, otherwise. Theanswerisunknown theanswerisnegative. Analgorithmisaprocedurethatconsistsofafinitesetofinstructions which,givenaninputfromsomesetofpossibleinputs,enablesusto obtain an output through a systematic execution of the instructions that terminates in a finite number of steps. Other Examples: Theorem Proving is in general not effective/algorithmic. Proof Verification is effective/algorithmic. CSC363-Computability Theory@SJTU Xiaofeng Gao 6/45 CSC363-Computability Theory@SJTU Xiaofeng Gao 7/45 When an algorithm or effective procedure is used to calculate the value of a numerical function then the function in question is effectively calculable(or algorithmically computable, effectively computable, computable). Examples: HCF(x, y) is computable; g(n) is non-computable. An (URM) is an idealized computer. Nolimitationinthesizeofthenumbersitcanreceiveasinput. No limitation in the amount of working space available. Inputs and outpus are restricted to natural numbers.(coding for others) From Shepherdson& Sturgis[1963] s description. Shepherdson, J. C.& Sturgis, H.E., Computability of Recursive Functions, Journal of Association for Computing Machinery (Journal of ACM), 10, , CSC363-Computability Theory@SJTU Xiaofeng Gao 9/45 CSC363-Computability Theory@SJTU Xiaofeng Gao 11/45

3 Register Program AURMhasaninfinitenumberofregisterlabeledR 1,R 2,R 3,... R 1 R 2 R 3 R 4 R 5 R 6 R 7 r 1 r 2 r 3 r 4 r 5 r 6 r 7 Every register can hold a natural number at any moment. The registers can be equivalently written as for example AURMalsohasaprogram,whichisafinitelistofinstructions. An instruction is a recognized simple operations(calculation with numbers)toalterthecontentsoftheregisters.(i 1,,I s ) [r 1 r 2 r 3 ] 3 1 [r 4] 4 4 [r 5r 6 r 7...] 5 or simply [r 1,r 2,r 3 ] 3 1 [r 4] 4 4 [r 5,r 6,r 7 ] 7 5. CSC363-Computability Theory@SJTU Xiaofeng Gao 12/45 CSC363-Computability Theory@SJTU Xiaofeng Gao 14/45 Configuration and s Example: The initial registers are: Type Response of the URM Zero Z(n) Replacer n by0.(0 R n,orr n :=0) Successor S(n) Add1tor n.(r n +1 R n,orr n :=r n +1) Transfer T(m,n) Copyr m tor n.(r m R n,orr n :=r m ) Jump J(m,n,q) Ifr m =r n,gototheq-thinstruction; otherwise go to the next instruction. Z(n), S(n), T(m, n) are arithmetic instructions. The program is: I 1 : J(1,2,6) I 2 : S(2) I 3 : S(3) I 4 : J(1,2,6) I 5 : J(1,1,2) I 6 : T(3,1) R 1 R 2 R 3 R 4 R 5 R 6 R CSC363-Computability Theory@SJTU Xiaofeng Gao 15/45 CSC363-Computability Theory@SJTU Xiaofeng Gao 17/45

4 Configuration and Computation OperationofURMunderaprogramP P = {I 1,I 2,,I s } URM Configuration: the contents of the registers + the current instruction number. Initial configuration, computation, final configuration. URMstartsbyobeyinginstructionI 1 WhenURMfinishesobeyingI k,itproceedstothenext instruction in the computation, ifi k isnotajumpinstruction,thenthenextinstructionisi k+1 ; ifi k =J(m,n,q)thennextinstructionis(1)I q,ifr m =r n ;or(2) I k+1,otherwise. ComputationstopswhenthenextinstructionisI v,wherev>s. ifk =s,andi s isanarithmeticinstruction; ifi k =J(m,n,q),r m =r n andq >s; ifi k =J(m,n,q),r m r n andk =s. CSC363-Computability Theory@SJTU Xiaofeng Gao 18/45 CSC363-Computability Theory@SJTU Xiaofeng Gao 19/45 Flow Diagram Some Notation J(m,m,q)is alertunconditional jump Computations that never stop SupposePistheprogramofaURManda 1,a 2,a 3,...arethe numbers stored in the registers. P(a 1,a 2,a 3,...)istheinitialconfiguration. P(a 1,a 2,a 3,...) meansthatthecomputationconverges. P(a 1,a 2,a 3,...) meansthatthecomputationdiverges. P(a 1,a 2,...,a m )isp(a 1,a 2,...,a m,0,0,...). CSC363-Computability Theory@SJTU Xiaofeng Gao 20/45 CSC363-Computability Theory@SJTU Xiaofeng Gao 21/45

5 WhatdoesitmeanthataURMcomputesa(partial)n-aryfunctionf? LetPbetheprogramofaURManda 1,...,a n,b N.When computationp(a 1,...,a n )convergestobifp(a 1,...,a n ) and r 1 =binthefinalconfiguration.wewritep(a 1,...,a n ) b. PURM-computesf if,foralla 1,...,a n,b N, P(a 1,...,a n ) bifff(a 1,...,a n ) =b Function f is URM-computable if there is a program that URM-computes f. (We abbreviate URM-computable to computable ) CSC363-Computability Theory@SJTU Xiaofeng Gao 23/45 CSC363-Computability Theory@SJTU Xiaofeng Gao 24/45 s Examples ConstructaURMthatcomputesx+y. Let C bethesetofcomputablefunctionsand C n bethesetofn-arycomputablefunctions. I 1 : J(3,2,5) I 2 : S(1) I 3 : S(3) I 4 : J(1,1,1) CSC363-Computability Theory@SJTU Xiaofeng Gao 25/45 CSC363-Computability Theory@SJTU Xiaofeng Gao 26/45

6 Examples ConstructaURMthatcomputesx 1 = I 1 : J(1,4,8) I 2 : S(3) I 3 : J(1,3,7) I 4 : S(2) I 5 : S(3) I 6 : J(1,1,3) I 7 : T(2,1) { x 1, ifx >0, 0, ifx =0. Examples ConstructaURMthatcomputesx 2 = I 1 : J(1,2,6) I 2 : S(3) I 3 : S(2) I 4 : S(2) I 5 : J(1,1,1) I 6 : T(3,1) { x/2, ifxiseven, undefined, ifxisodd. CSC363-Computability Theory@SJTU Xiaofeng Gao 27/45 CSC363-Computability Theory@SJTU Xiaofeng Gao 28/45 Function Defined by Program Predicate and Decision Problem GivenanyprogramPandn 1,bythinkingoftheeffectofPon initialconfigurationsoftheforma 1,,a n,0,0,,thereisa uniquen-aryfunctionthatpcomputes,denotedbyf (n) P. { f (n) b, P (a ifp(a1,...,a 1,...,a n ) = n ) b, undefined, ifp(a 1,...,a n ). Thevalueofapredicateiseither true or false. Theanswerofadecisionproblemiseither yes or no. Example:Giventwonumbersx,y,checkwhetherxisamultipleofy. Input:x,y; Output: Yes or No. The operation amounts to calculation of the function { 1, ifxisamultipleofy, f(x,y) = 0, if otherwise. Thusthepropertyorpredicate xisamultipleofy isalgorithmically or effectively decidable, or just decidable if function f is computable. CSC363-Computability Theory@SJTU Xiaofeng Gao 29/45 CSC363-Computability Theory@SJTU Xiaofeng Gao 31/45

7 Decidable Predicate and Decidable Problem Computability on other Domains SupposethatM(x 1,...,x n )isann-arypredicateofnaturalnumbers. Thecharacteristicfunctionc M (x),wherex =x 1,...,x n,isgivenby { f (n) 1, ifm(x)holds, P (a 1,...,a n ) = 0, if otherwise. ThepredicateM(x)isdecidableifc M iscomputable;itisundecidable otherwise. SupposeDisanobjectdomain.AcodingofDisanexplicitand effectiveinjection α :D N.Wesaythatanobjectd Discoded by the natural number α(d). Afunctionf :D Dextendstoanumericfunctionf : N N.We saythatf iscomputableiff iscomputable. f = α f α 1 CSC363-Computability Theory@SJTU Xiaofeng Gao 32/45 CSC363-Computability Theory@SJTU Xiaofeng Gao 33/45 Example Example(Continued) Considerthedomain Z.Anexplicitcodingisgivenbythefunction α where { 2n, ifn 0, α(n) = 2n 1, ifn<0. Then α 1 isgivenby α 1 (m) = { m, ifmiseven, (m+1), ifmisodd. Considerthefunctionf(x) =x 1onZ,thenf : N Nisgivenby 1 ifx =0(i.e.x=α(0)), f (x) = x 2 ifx >0andxiseven(i.e.x = α(n),n >0), x+2 ifxisodd (i.e.x=α(n),n <0). Itisaroutineexercisetowriteaprogramthatcomputesf,hence x 1isacomputablefunctionon Z. CSC363-Computability Theory@SJTU Xiaofeng Gao 34/45 CSC363-Computability Theory@SJTU Xiaofeng Gao 35/45

8 Remark Finiteness s are more advanced than Turing Machines. Models can be classified into three groups: CM(Counter Machine Model). RAM(Random Access Machine Model). RASP(Random Access Stored Program Machine Model). EveryURMusesonlyafixedfinitenumberofregisters,nomatter howlargeaninputnumberis. ThisisafinepropertyofCounterMachineModel. The Model belongs to the CM class. CSC363-Computability Theory@SJTU Xiaofeng Gao 37/45 CSC363-Computability Theory@SJTU Xiaofeng Gao 38/45 Sequential Composition Lemma GivenProgramsPandQ,howdoweconstructthesequential composition P; Q? ThejumpinstructionsofPandQmustbemodified. StandardForm:AprogramP=I 1,...,I s isinstandardformif,for everyjumpinstructionj(m,n,q)wehaveq s+1. ForanyprogramPthereisaprogramP instandardformsuchthat anycomputationunderp isidenticaltothecorresponding computationunderp.inparticular,foranya 1,,a n,b, P(a 1,,a n ) bifandonlyifp (a 1,,a n ) b, andhencef (n) P =f (n) P foreveryn>0. CSC363-Computability Theory@SJTU Xiaofeng Gao 40/45 CSC363-Computability Theory@SJTU Xiaofeng Gao 41/45

9 Proof Join/Concatenation SupposethatP=I 1,I 2,,I s.putp =I1,I 2,,I s where ifi k isnotajumpinstruction,thenik =I k; { ifi k isnotajumpinstruction,thenik = Ik ifq s+1, J(m,n,s+1) ifq >s+1. LetPandQbeprogramsoflengthss,trespectively,instandardform. ThejoinorconcatenationofPandQ,writtenPQor P Q,isaprogram I 1,I 2,,I s,i s+1,,i s+t wherep=i 1,,I s andtheinstructions I s+1,,i s+t aretheinstructionsofqwitheachjumpj(m,n,q) replacedbyj(m,n,s+q). CSC363-Computability Theory@SJTU Xiaofeng Gao 42/45 CSC363-Computability Theory@SJTU Xiaofeng Gao 43/45 Program as Subroutine ThenotationP[l 1,...,l n l]standsforthefollowingprogram: I 1 : T(l 1,1) SupposetheprogramPcomputesf. Letρ(P)betheleastnumberisuchthattheregisterR i isnotusedby the program P.. I n : T(l n,n) I n+1 : Z(n+1). I ρ(p) : Z(ρ(P)) _ : P _ : T(1,l) CSC363-Computability Theory@SJTU Xiaofeng Gao 44/45 CSC363-Computability Theory@SJTU Xiaofeng Gao 45/45

Automata and Formal Languages - CM0081 Turing Machines

Automata and Formal Languages - CM0081 Turing Machines Automata and Formal Languages - CM0081 Turing Machines Andrés Sicard-Ramírez Universidad EAFIT Semester 2018-1 Turing Machines Alan Mathison Turing (1912 1954) Automata and Formal Languages - CM0081. Turing

More information

Divide-and-Conquer Applications Sorting Networks. Outline. 1 Divide-and-Conquer. 2 Applications. 3 Sorting Networks

Divide-and-Conquer Applications Sorting Networks. Outline. 1 Divide-and-Conquer. 2 Applications. 3 Sorting Networks Outline DivideandConquer Xiaofeng Gao Department of Computer Science and Engineering Shanghai Jiao Tong University, P.R.China X033533-Algorithm: Analysis and Theory 1 2 3 SpecialthanksisgiventoProf.YijiaChenforsharinghisteachingmaterials.

More information

CDT314 FABER Formal Languages, Automata and Models of Computation MARK BURGIN INDUCTIVE TURING MACHINES

CDT314 FABER Formal Languages, Automata and Models of Computation MARK BURGIN INDUCTIVE TURING MACHINES CDT314 FABER Formal Languages, Automata and Models of Computation MARK BURGIN INDUCTIVE TURING MACHINES 2012 1 Inductive Turing Machines Burgin, M. Inductive Turing Machines, Notices of the Academy of

More information

Gray code for permutations with a fixed number of cycles

Gray code for permutations with a fixed number of cycles Discrete Mathematics ( ) www.elsevier.com/locate/disc Gray code for permutations with a fixed number of cycles Jean-Luc Baril LE2I UMR-CNRS 5158, Université de Bourgogne, B.P. 47 870, 21078 DIJON-Cedex,

More information

Pin-Permutations and Structure in Permutation Classes

Pin-Permutations and Structure in Permutation Classes and Structure in Permutation Classes Frédérique Bassino Dominique Rossin Journées de Combinatoire de Bordeaux, feb. 2009 liafa Main result of the talk Conjecture[Brignall, Ruškuc, Vatter]: The pin-permutation

More information

Monotone Sequences & Cauchy Sequences Philippe B. Laval

Monotone Sequences & Cauchy Sequences Philippe B. Laval Monotone Sequences & Cauchy Sequences Philippe B. Laval Monotone Sequences & Cauchy Sequences 2 1 Monotone Sequences and Cauchy Sequences 1.1 Monotone Sequences The techniques we have studied so far require

More information

Sets. Gazihan Alankuş (Based on original slides by Brahim Hnich et al.) August 6, Outline Sets Equality Subset Empty Set Cardinality Power Set

Sets. Gazihan Alankuş (Based on original slides by Brahim Hnich et al.) August 6, Outline Sets Equality Subset Empty Set Cardinality Power Set Gazihan Alankuş (Based on original slides by Brahim Hnich et al.) August 6, 2012 Gazihan Alankuş (Based on original slides by Brahim Hnich et al.) Gazihan Alankuş (Based on original slides by Brahim Hnich

More information

Honors Algebra 2 Assignment Sheet - Chapter 1

Honors Algebra 2 Assignment Sheet - Chapter 1 Assignment Sheet - Chapter 1 #01: Read the text and the examples in your book for the following sections: 1.1, 1., and 1.4. Be sure you read and understand the handshake problem. Also make sure you copy

More information

An improvement to the Gilbert-Varshamov bound for permutation codes

An improvement to the Gilbert-Varshamov bound for permutation codes An improvement to the Gilbert-Varshamov bound for permutation codes Yiting Yang Department of Mathematics Tongji University Joint work with Fei Gao and Gennian Ge May 11, 2013 Outline Outline 1 Introduction

More information

Generating indecomposable permutations

Generating indecomposable permutations Discrete Mathematics 306 (2006) 508 518 www.elsevier.com/locate/disc Generating indecomposable permutations Andrew King Department of Computer Science, McGill University, Montreal, Que., Canada Received

More information

Computing and Communications 2. Information Theory -Channel Capacity

Computing and Communications 2. Information Theory -Channel Capacity 1896 1920 1987 2006 Computing and Communications 2. Information Theory -Channel Capacity Ying Cui Department of Electronic Engineering Shanghai Jiao Tong University, China 2017, Autumn 1 Outline Communication

More information

NUMBER THEORY AMIN WITNO

NUMBER THEORY AMIN WITNO NUMBER THEORY AMIN WITNO.. w w w. w i t n o. c o m Number Theory Outlines and Problem Sets Amin Witno Preface These notes are mere outlines for the course Math 313 given at Philadelphia

More information

Restricted Permutations Related to Fibonacci Numbers and k-generalized Fibonacci Numbers

Restricted Permutations Related to Fibonacci Numbers and k-generalized Fibonacci Numbers Restricted Permutations Related to Fibonacci Numbers and k-generalized Fibonacci Numbers arxiv:math/0109219v1 [math.co] 27 Sep 2001 Eric S. Egge Department of Mathematics Gettysburg College 300 North Washington

More information

Outline. Sets of Gluing Data. Constructing Manifolds. Lecture 3 - February 3, PM

Outline. Sets of Gluing Data. Constructing Manifolds. Lecture 3 - February 3, PM Constructing Manifolds Lecture 3 - February 3, 2009-1-2 PM Outline Sets of gluing data The cocycle condition Parametric pseudo-manifolds (PPM s) Conclusions 2 Let n and k be integers such that n 1 and

More information

Cardinality of Accumulation Points of Infinite Sets

Cardinality of Accumulation Points of Infinite Sets International Mathematical Forum, Vol. 11, 2016, no. 11, 539-546 HIKARI Ltd, www.m-hikari.com http://dx.doi.org/10.12988/imf.2016.6224 Cardinality of Accumulation Points of Infinite Sets A. Kalapodi CTI

More information

Modular Arithmetic. Kieran Cooney - February 18, 2016

Modular Arithmetic. Kieran Cooney - February 18, 2016 Modular Arithmetic Kieran Cooney - kieran.cooney@hotmail.com February 18, 2016 Sums and products in modular arithmetic Almost all of elementary number theory follows from one very basic theorem: Theorem.

More information

Number Theory - Divisibility Number Theory - Congruences. Number Theory. June 23, Number Theory

Number Theory - Divisibility Number Theory - Congruences. Number Theory. June 23, Number Theory - Divisibility - Congruences June 23, 2014 Primes - Divisibility - Congruences Definition A positive integer p is prime if p 2 and its only positive factors are itself and 1. Otherwise, if p 2, then p

More information

Evaluation of CORDIC Algorithm for the processing of sine and cosine functions

Evaluation of CORDIC Algorithm for the processing of sine and cosine functions International Journal of Business and Management Invention ISSN (Online): 2319 8028, ISSN (Print): 2319 801X Volume 6 Issue 3 March. 2017 PP 50-54 Evaluation of CORDIC Algorithm for the processing of sine

More information

A slope of a line is the ratio between the change in a vertical distance (rise) to the change in a horizontal

A slope of a line is the ratio between the change in a vertical distance (rise) to the change in a horizontal The Slope of a Line (2.2) Find the slope of a line given two points on the line (Objective #1) A slope of a line is the ratio between the change in a vertical distance (rise) to the change in a horizontal

More information

Grade 6 Math Circles. Divisibility

Grade 6 Math Circles. Divisibility Faculty of Mathematics Waterloo, Ontario N2L 3G1 Introduction Grade 6 Math Circles November 12/13, 2013 Divisibility A factor is a whole number that divides exactly into another number without a remainder.

More information

Some algorithmic and combinatorial problems on permutation classes

Some algorithmic and combinatorial problems on permutation classes Some algorithmic and combinatorial problems on permutation classes The point of view of decomposition trees PhD Defense, 2009 December the 4th Outline 1 Objects studied : Permutations, Patterns and Classes

More information

CMPSCI 250: Introduction to Computation. Lecture #14: The Chinese Remainder Theorem David Mix Barrington 4 October 2013

CMPSCI 250: Introduction to Computation. Lecture #14: The Chinese Remainder Theorem David Mix Barrington 4 October 2013 CMPSCI 250: Introduction to Computation Lecture #14: The Chinese Remainder Theorem David Mix Barrington 4 October 2013 The Chinese Remainder Theorem Infinitely Many Primes Reviewing Inverses and the Inverse

More information

CSE 20 DISCRETE MATH. Fall

CSE 20 DISCRETE MATH. Fall CSE 20 DISCRETE MATH Fall 2017 http://cseweb.ucsd.edu/classes/fa17/cse20-ab/ Today's learning goals Define and compute the cardinality of a set. Use functions to compare the sizes of sets. Classify sets

More information

Gauss and AGM. Burton Rosenberg. January 30, 2004

Gauss and AGM. Burton Rosenberg. January 30, 2004 Gauss and AGM Burton Rosenberg January 3, 24 Introduction derivation of equation. what has it to do w/ the lemniscate agm properties of I elliptic integrals The Elliptic Integral of the First Kind Define

More information

COMPSCI 575/MATH 513 Combinatorics and Graph Theory. Lecture #30: The Cycle Index (Tucker Section 9.3) David Mix Barrington 30 November 2016

COMPSCI 575/MATH 513 Combinatorics and Graph Theory. Lecture #30: The Cycle Index (Tucker Section 9.3) David Mix Barrington 30 November 2016 COMPSCI 575/MATH 513 Combinatorics and Graph Theory Lecture #30: The Cycle Index (Tucker Section 9.3) David Mix Barrington 30 November 2016 The Cycle Index Review Burnside s Theorem Colorings of Squares

More information

2.2. Special Angles and Postulates. Key Terms

2.2. Special Angles and Postulates. Key Terms And Now From a New Angle Special Angles and Postulates. Learning Goals Key Terms In this lesson, you will: Calculate the complement and supplement of an angle. Classify adjacent angles, linear pairs, and

More information

On Hultman Numbers. 1 Introduction

On Hultman Numbers. 1 Introduction 47 6 Journal of Integer Sequences, Vol 0 (007, Article 076 On Hultman Numbers Jean-Paul Doignon and Anthony Labarre Université Libre de Bruxelles Département de Mathématique, cp 6 Bd du Triomphe B-050

More information

Permutation Groups. Definition and Notation

Permutation Groups. Definition and Notation 5 Permutation Groups Wigner s discovery about the electron permutation group was just the beginning. He and others found many similar applications and nowadays group theoretical methods especially those

More information

Counting Snakes, Differentiating the Tangent Function, and Investigating the Bernoulli-Euler Triangle by Harold Reiter

Counting Snakes, Differentiating the Tangent Function, and Investigating the Bernoulli-Euler Triangle by Harold Reiter Counting Snakes, Differentiating the Tangent Function, and Investigating the Bernoulli-Euler Triangle by Harold Reiter In this paper we will examine three apparently unrelated mathematical objects One

More information

Proofs of a Trigonometric Inequality

Proofs of a Trigonometric Inequality Proofs of a Trigonometric Inequality Abstract A trigonometric inequality is introduced and proved using Hölder s inequality Cauchy-Schwarz inequality and Chebyshev s order inequality AMS Subject Classification:

More information

To wards Empirical and Scientific Theories of Computation

To wards Empirical and Scientific Theories of Computation To wards Empirical and Scientific Theories of Computation (Extended Abstract) Steven Meyer Pragmatic C Software Corp., Minneapolis, MN, USA smeyer@tdl.com Abstract The current situation in empirical testing

More information

PROOFS OF SOME BINOMIAL IDENTITIES USING THE METHOD OF LAST SQUARES

PROOFS OF SOME BINOMIAL IDENTITIES USING THE METHOD OF LAST SQUARES PROOFS OF SOME BINOMIAL IDENTITIES USING THE METHOD OF LAST SQUARES MARK SHATTUCK AND TAMÁS WALDHAUSER Abstract. We give combinatorial proofs for some identities involving binomial sums that have no closed

More information

Launchpad Maths. Arithmetic II

Launchpad Maths. Arithmetic II Launchpad Maths. Arithmetic II LAW OF DISTRIBUTION The Law of Distribution exploits the symmetries 1 of addition and multiplication to tell of how those operations behave when working together. Consider

More information

arxiv: v1 [math.co] 31 Dec 2018

arxiv: v1 [math.co] 31 Dec 2018 arxiv:1901.00026v1 [math.co] 31 Dec 2018 PATTERN AVOIDANCE IN PERMUTATIONS AND THEIR 1. INTRODUCTION SQUARES Miklós Bóna Department of Mathematics University of Florida Gainesville, Florida Rebecca Smith

More information

Oracle Turing Machine. Kaixiang Wang

Oracle Turing Machine. Kaixiang Wang Oracle Turing Machine Kaixiang Wang Pre-background: What is Turing machine Oracle Turing Machine Definition Function Complexity Why Oracle Turing Machine is important Application of Oracle Turing Machine

More information

Fermat s little theorem. RSA.

Fermat s little theorem. RSA. .. Computing large numbers modulo n (a) In modulo arithmetic, you can always reduce a large number to its remainder a a rem n (mod n). (b) Addition, subtraction, and multiplication preserve congruence:

More information

The congruence relation has many similarities to equality. The following theorem says that congruence, like equality, is an equivalence relation.

The congruence relation has many similarities to equality. The following theorem says that congruence, like equality, is an equivalence relation. Congruences A congruence is a statement about divisibility. It is a notation that simplifies reasoning about divisibility. It suggests proofs by its analogy to equations. Congruences are familiar to us

More information

Outline. Communications Engineering 1

Outline. Communications Engineering 1 Outline Introduction Signal, random variable, random process and spectra Analog modulation Analog to digital conversion Digital transmission through baseband channels Signal space representation Optimal

More information

Stanford University CS261: Optimization Handout 9 Luca Trevisan February 1, 2011

Stanford University CS261: Optimization Handout 9 Luca Trevisan February 1, 2011 Stanford University CS261: Optimization Handout 9 Luca Trevisan February 1, 2011 Lecture 9 In which we introduce the maximum flow problem. 1 Flows in Networks Today we start talking about the Maximum Flow

More information

REU 2006 Discrete Math Lecture 3

REU 2006 Discrete Math Lecture 3 REU 006 Discrete Math Lecture 3 Instructor: László Babai Scribe: Elizabeth Beazley Editors: Eliana Zoque and Elizabeth Beazley NOT PROOFREAD - CONTAINS ERRORS June 6, 006. Last updated June 7, 006 at :4

More information

Notes for Recitation 3

Notes for Recitation 3 6.042/18.062J Mathematics for Computer Science September 17, 2010 Tom Leighton, Marten van Dijk Notes for Recitation 3 1 State Machines Recall from Lecture 3 (9/16) that an invariant is a property of a

More information

Functions of several variables

Functions of several variables Chapter 6 Functions of several variables 6.1 Limits and continuity Definition 6.1 (Euclidean distance). Given two points P (x 1, y 1 ) and Q(x, y ) on the plane, we define their distance by the formula

More information

Elementary Combinatorics

Elementary Combinatorics 184 DISCRETE MATHEMATICAL STRUCTURES 7 Elementary Combinatorics 7.1 INTRODUCTION Combinatorics deals with counting and enumeration of specified objects, patterns or designs. Techniques of counting are

More information

Overview: The works of Alan Turing ( )

Overview: The works of Alan Turing ( ) Overview: The works of Alan Turing (1912-1954) Dan Hallin 2005-10-21 Introduction Course in Computer Science (CD5600) The methodology of Science in Technology (CT3620) Mälardalen

More information

Distribution of the Number of Corners in Tree-like and Permutation Tableaux

Distribution of the Number of Corners in Tree-like and Permutation Tableaux Distribution of the Number of Corners in Tree-like and Permutation Tableaux Paweł Hitczenko Department of Mathematics, Drexel University, Philadelphia, PA 94, USA phitczenko@math.drexel.edu Aleksandr Yaroslavskiy

More information

TOPOLOGY, LIMITS OF COMPLEX NUMBERS. Contents 1. Topology and limits of complex numbers 1

TOPOLOGY, LIMITS OF COMPLEX NUMBERS. Contents 1. Topology and limits of complex numbers 1 TOPOLOGY, LIMITS OF COMPLEX NUMBERS Contents 1. Topology and limits of complex numbers 1 1. Topology and limits of complex numbers Since we will be doing calculus on complex numbers, not only do we need

More information

DISCRETE FOURIER TRANSFORM AND FILTER DESIGN

DISCRETE FOURIER TRANSFORM AND FILTER DESIGN DISCRETE FOURIER TRANSFORM AND FILTER DESIGN N. C. State University CSC557 Multimedia Computing and Networking Fall 2001 Lecture # 03 Spectrum of a Square Wave 2 Results of Some Filters 3 Notation 4 x[n]

More information

arxiv: v2 [math.gm] 31 Dec 2017

arxiv: v2 [math.gm] 31 Dec 2017 New results on the stopping time behaviour of the Collatz 3x + 1 function arxiv:1504.001v [math.gm] 31 Dec 017 Mike Winkler Fakultät für Mathematik Ruhr-Universität Bochum, Germany mike.winkler@ruhr-uni-bochum.de

More information

Goldbach Conjecture (7 th june 1742)

Goldbach Conjecture (7 th june 1742) Goldbach Conjecture (7 th june 1742) We note P the odd prime numbers set. P = {p 1 = 3, p 2 = 5, p 3 = 7, p 4 = 11,...} n 2N\{0, 2, 4}, p P, p n/2, q P, q n/2, n = p + q We call n s Goldbach decomposition

More information

Two congruences involving 4-cores

Two congruences involving 4-cores Two congruences involving 4-cores ABSTRACT. The goal of this paper is to prove two new congruences involving 4- cores using elementary techniques; namely, if a 4 (n) denotes the number of 4-cores of n,

More information

Awareness and Understanding in Computer Programs A Review of Shadows of the Mind by Roger Penrose

Awareness and Understanding in Computer Programs A Review of Shadows of the Mind by Roger Penrose Awareness and Understanding in Computer Programs A Review of Shadows of the Mind by Roger Penrose John McCarthy Computer Science Department Stanford University Stanford, CA 94305. jmc@sail.stanford.edu

More information

X = {1, 2,...,n} n 1f 2f 3f... nf

X = {1, 2,...,n} n 1f 2f 3f... nf Section 11 Permutations Definition 11.1 Let X be a non-empty set. A bijective function f : X X will be called a permutation of X. Consider the case when X is the finite set with n elements: X {1, 2,...,n}.

More information

DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI

DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI Department of Computer Science and Engineering CS6503 THEORY OF COMPUTATION 2 Mark Questions & Answers Year / Semester: III / V Regulation: 2013 Academic year:

More information

p 1 MAX(a,b) + MIN(a,b) = a+b n m means that m is a an integer multiple of n. Greatest Common Divisor: We say that n divides m.

p 1 MAX(a,b) + MIN(a,b) = a+b n m means that m is a an integer multiple of n. Greatest Common Divisor: We say that n divides m. Great Theoretical Ideas In Computer Science Steven Rudich CS - Spring Lecture Feb, Carnegie Mellon University Modular Arithmetic and the RSA Cryptosystem p- p MAX(a,b) + MIN(a,b) = a+b n m means that m

More information

18 Completeness and Compactness of First-Order Tableaux

18 Completeness and Compactness of First-Order Tableaux CS 486: Applied Logic Lecture 18, March 27, 2003 18 Completeness and Compactness of First-Order Tableaux 18.1 Completeness Proving the completeness of a first-order calculus gives us Gödel s famous completeness

More information

LECTURE 3: CONGRUENCES. 1. Basic properties of congruences We begin by introducing some definitions and elementary properties.

LECTURE 3: CONGRUENCES. 1. Basic properties of congruences We begin by introducing some definitions and elementary properties. LECTURE 3: CONGRUENCES 1. Basic properties of congruences We begin by introducing some definitions and elementary properties. Definition 1.1. Suppose that a, b Z and m N. We say that a is congruent to

More information

The Math Behind Futurama: The Prisoner of Benda

The Math Behind Futurama: The Prisoner of Benda of Benda May 7, 2013 The problem (informally) Professor Farnsworth has created a mind-switching machine that switches two bodies, but the switching can t be reversed using just those two bodies. Using

More information

R&D Meets Production: The Dark Side

R&D Meets Production: The Dark Side R&D Meets Production: The Dark Side J.P.Lewis zilla@computer.org Disney The Secret Lab Disney/Lewis: R&D Production The Dark Side p.1/46 R&D Production Issues R&D Production interaction is not always easy.

More information

Chapter 6.1. Cycles in Permutations

Chapter 6.1. Cycles in Permutations Chapter 6.1. Cycles in Permutations Prof. Tesler Math 184A Fall 2017 Prof. Tesler Ch. 6.1. Cycles in Permutations Math 184A / Fall 2017 1 / 27 Notations for permutations Consider a permutation in 1-line

More information

CMPSCI 250: Introduction to Computation. Lecture #14: The Chinese Remainder Theorem David Mix Barrington 24 February 2012

CMPSCI 250: Introduction to Computation. Lecture #14: The Chinese Remainder Theorem David Mix Barrington 24 February 2012 CMPSCI 250: Introduction to Computation Lecture #14: The Chinese Remainder Theorem David Mix Barrington 24 February 2012 The Chinese Remainder Theorem Infinitely Many Primes Reviewing Inverses and the

More information

Wilson s Theorem and Fermat s Theorem

Wilson s Theorem and Fermat s Theorem Wilson s Theorem and Fermat s Theorem 7-27-2006 Wilson s theorem says that p is prime if and only if (p 1)! = 1 (mod p). Fermat s theorem says that if p is prime and p a, then a p 1 = 1 (mod p). Wilson

More information

A Cryptosystem Based on the Composition of Reversible Cellular Automata

A Cryptosystem Based on the Composition of Reversible Cellular Automata A Cryptosystem Based on the Composition of Reversible Cellular Automata Adam Clarridge and Kai Salomaa Technical Report No. 2008-549 Queen s University, Kingston, Canada {adam, ksalomaa}@cs.queensu.ca

More information

Multiplayer Pushdown Games. Anil Seth IIT Kanpur

Multiplayer Pushdown Games. Anil Seth IIT Kanpur Multiplayer Pushdown Games Anil Seth IIT Kanpur Multiplayer Games we Consider These games are played on graphs (finite or infinite) Generalize two player infinite games. Any number of players are allowed.

More information

Permutation Groups. Every permutation can be written as a product of disjoint cycles. This factorization is unique up to the order of the factors.

Permutation Groups. Every permutation can be written as a product of disjoint cycles. This factorization is unique up to the order of the factors. Permutation Groups 5-9-2013 A permutation of a set X is a bijective function σ : X X The set of permutations S X of a set X forms a group under function composition The group of permutations of {1,2,,n}

More information

PATTERN AVOIDANCE IN PERMUTATIONS ON THE BOOLEAN LATTICE

PATTERN AVOIDANCE IN PERMUTATIONS ON THE BOOLEAN LATTICE PATTERN AVOIDANCE IN PERMUTATIONS ON THE BOOLEAN LATTICE SAM HOPKINS AND MORGAN WEILER Abstract. We extend the concept of pattern avoidance in permutations on a totally ordered set to pattern avoidance

More information

Plan. Related courses. A Take-Away Game. Mathematical Games , (21-801) - Mathematical Games Look for it in Spring 11

Plan. Related courses. A Take-Away Game. Mathematical Games , (21-801) - Mathematical Games Look for it in Spring 11 V. Adamchik D. Sleator Great Theoretical Ideas In Computer Science Mathematical Games CS 5-25 Spring 2 Lecture Feb., 2 Carnegie Mellon University Plan Introduction to Impartial Combinatorial Games Related

More information

Math 127: Equivalence Relations

Math 127: Equivalence Relations Math 127: Equivalence Relations Mary Radcliffe 1 Equivalence Relations Relations can take many forms in mathematics. In these notes, we focus especially on equivalence relations, but there are many other

More information

CITS2211 Discrete Structures Turing Machines

CITS2211 Discrete Structures Turing Machines CITS2211 Discrete Structures Turing Machines October 23, 2017 Highlights We have seen that FSMs and PDAs are surprisingly powerful But there are some languages they can not recognise We will study a new

More information

Sets. Definition A set is an unordered collection of objects called elements or members of the set.

Sets. Definition A set is an unordered collection of objects called elements or members of the set. Sets Definition A set is an unordered collection of objects called elements or members of the set. Sets Definition A set is an unordered collection of objects called elements or members of the set. Examples:

More information

arxiv: v1 [math.co] 30 Nov 2017

arxiv: v1 [math.co] 30 Nov 2017 A NOTE ON 3-FREE PERMUTATIONS arxiv:1712.00105v1 [math.co] 30 Nov 2017 Bill Correll, Jr. MDA Information Systems LLC, Ann Arbor, MI, USA william.correll@mdaus.com Randy W. Ho Garmin International, Chandler,

More information

Multiagent Systems: Intro to Game Theory. CS 486/686: Introduction to Artificial Intelligence

Multiagent Systems: Intro to Game Theory. CS 486/686: Introduction to Artificial Intelligence Multiagent Systems: Intro to Game Theory CS 486/686: Introduction to Artificial Intelligence 1 Introduction So far almost everything we have looked at has been in a single-agent setting Today - Multiagent

More information

arxiv: v1 [math.gm] 29 Mar 2015

arxiv: v1 [math.gm] 29 Mar 2015 arxiv:1504.001v1 [math.gm] 9 Mar 015 New results on the stopping time behaviour of the Collatz 3x + 1 function Mike Winkler March 7, 015 Abstract Let σ n = 1 + n log 3. For the Collatz 3x + 1 function

More information

Implementation of Recursively Enumerable Languages in Universal Turing Machine

Implementation of Recursively Enumerable Languages in Universal Turing Machine Implementation of Recursively Enumerable Languages in Universal Turing Machine Sumitha C.H, Member, ICMLC and Krupa Ophelia Geddam Abstract This paper presents the design and working of a Universal Turing

More information

Lecture 2. 1 Nondeterministic Communication Complexity

Lecture 2. 1 Nondeterministic Communication Complexity Communication Complexity 16:198:671 1/26/10 Lecture 2 Lecturer: Troy Lee Scribe: Luke Friedman 1 Nondeterministic Communication Complexity 1.1 Review D(f): The minimum over all deterministic protocols

More information

Computability of Tilings

Computability of Tilings Computability of Tilings Grégory Lafitte and Michael Weiss Abstract Wang tiles are unit size squares with colored edges. To know whether a given finite set of Wang tiles can tile the plane while respecting

More information

Multiagent Systems: Intro to Game Theory. CS 486/686: Introduction to Artificial Intelligence

Multiagent Systems: Intro to Game Theory. CS 486/686: Introduction to Artificial Intelligence Multiagent Systems: Intro to Game Theory CS 486/686: Introduction to Artificial Intelligence 1 1 Introduction So far almost everything we have looked at has been in a single-agent setting Today - Multiagent

More information

Outline for today s lecture Informed Search Optimal informed search: A* (AIMA 3.5.2) Creating good heuristic functions Hill Climbing

Outline for today s lecture Informed Search Optimal informed search: A* (AIMA 3.5.2) Creating good heuristic functions Hill Climbing Informed Search II Outline for today s lecture Informed Search Optimal informed search: A* (AIMA 3.5.2) Creating good heuristic functions Hill Climbing CIS 521 - Intro to AI - Fall 2017 2 Review: Greedy

More information

MATH 433 Applied Algebra Lecture 12: Sign of a permutation (continued). Abstract groups.

MATH 433 Applied Algebra Lecture 12: Sign of a permutation (continued). Abstract groups. MATH 433 Applied Algebra Lecture 12: Sign of a permutation (continued). Abstract groups. Permutations Let X be a finite set. A permutation of X is a bijection from X to itself. The set of all permutations

More information

Some t-homogeneous sets of permutations

Some t-homogeneous sets of permutations Some t-homogeneous sets of permutations Jürgen Bierbrauer Department of Mathematical Sciences Michigan Technological University Houghton, MI 49931 (USA) Stephen Black IBM Heidelberg (Germany) Yves Edel

More information

In Exercises 1-12, graph one cycle of the given function. State the period, amplitude, phase shift and vertical shift of the function.

In Exercises 1-12, graph one cycle of the given function. State the period, amplitude, phase shift and vertical shift of the function. 0.5 Graphs of the Trigonometric Functions 809 0.5. Eercises In Eercises -, graph one ccle of the given function. State the period, amplitude, phase shift and vertical shift of the function.. = sin. = sin.

More information

Counting integral solutions

Counting integral solutions Thought exercise 2.2 25 Counting integral solutions Question: How many non-negative integer solutions are there of x 1 + x 2 + x 3 + x 4 =10? Give some examples of solutions. Characterize what solutions

More information

CS 4700: Foundations of Artificial Intelligence

CS 4700: Foundations of Artificial Intelligence CS 4700: Foundations of Artificial Intelligence selman@cs.cornell.edu Module: Adversarial Search R&N: Chapter 5 1 Outline Adversarial Search Optimal decisions Minimax α-β pruning Case study: Deep Blue

More information

1.6 Congruence Modulo m

1.6 Congruence Modulo m 1.6 Congruence Modulo m 47 5. Let a, b 2 N and p be a prime. Prove for all natural numbers n 1, if p n (ab) and p - a, then p n b. 6. In the proof of Theorem 1.5.6 it was stated that if n is a prime number

More information

PRIMES 2017 final paper. NEW RESULTS ON PATTERN-REPLACEMENT EQUIVALENCES: GENERALIZING A CLASSICAL THEOREM AND REVISING A RECENT CONJECTURE Michael Ma

PRIMES 2017 final paper. NEW RESULTS ON PATTERN-REPLACEMENT EQUIVALENCES: GENERALIZING A CLASSICAL THEOREM AND REVISING A RECENT CONJECTURE Michael Ma PRIMES 2017 final paper NEW RESULTS ON PATTERN-REPLACEMENT EQUIVALENCES: GENERALIZING A CLASSICAL THEOREM AND REVISING A RECENT CONJECTURE Michael Ma ABSTRACT. In this paper we study pattern-replacement

More information

Distribution of Primes

Distribution of Primes Distribution of Primes Definition. For positive real numbers x, let π(x) be the number of prime numbers less than or equal to x. For example, π(1) = 0, π(10) = 4 and π(100) = 25. To use some ciphers, we

More information

MAT Modular arithmetic and number theory. Modular arithmetic

MAT Modular arithmetic and number theory. Modular arithmetic Modular arithmetic 1 Modular arithmetic may seem like a new and strange concept at first The aim of these notes is to describe it in several different ways, in the hope that you will find at least one

More information

Graphs of Tilings. Patrick Callahan, University of California Office of the President, Oakland, CA

Graphs of Tilings. Patrick Callahan, University of California Office of the President, Oakland, CA Graphs of Tilings Patrick Callahan, University of California Office of the President, Oakland, CA Phyllis Chinn, Department of Mathematics Humboldt State University, Arcata, CA Silvia Heubach, Department

More information

Weighted Polya Theorem. Solitaire

Weighted Polya Theorem. Solitaire Weighted Polya Theorem. Solitaire Sasha Patotski Cornell University ap744@cornell.edu December 15, 2015 Sasha Patotski (Cornell University) Weighted Polya Theorem. Solitaire December 15, 2015 1 / 15 Cosets

More information

Permutation Tableaux and the Dashed Permutation Pattern 32 1

Permutation Tableaux and the Dashed Permutation Pattern 32 1 Permutation Tableaux and the Dashed Permutation Pattern William Y.C. Chen, Lewis H. Liu, Center for Combinatorics, LPMC-TJKLC Nankai University, Tianjin 7, P.R. China chen@nankai.edu.cn, lewis@cfc.nankai.edu.cn

More information

Modular Arithmetic. claserken. July 2016

Modular Arithmetic. claserken. July 2016 Modular Arithmetic claserken July 2016 Contents 1 Introduction 2 2 Modular Arithmetic 2 2.1 Modular Arithmetic Terminology.................. 2 2.2 Properties of Modular Arithmetic.................. 2 2.3

More information

Mathematical Foundations of Computer Science Lecture Outline August 30, 2018

Mathematical Foundations of Computer Science Lecture Outline August 30, 2018 Mathematical Foundations of omputer Science Lecture Outline ugust 30, 2018 ounting ounting is a part of combinatorics, an area of mathematics which is concerned with the arrangement of objects of a set

More information

JMG. Review Module 1 Lessons 1-20 for Mid-Module. Prepare for Endof-Unit Assessment. Assessment. Module 1. End-of-Unit Assessment.

JMG. Review Module 1 Lessons 1-20 for Mid-Module. Prepare for Endof-Unit Assessment. Assessment. Module 1. End-of-Unit Assessment. Lesson Plans Lesson Plan WEEK 161 December 5- December 9 Subject to change 2016-2017 Mrs. Whitman 1 st 2 nd Period 3 rd Period 4 th Period 5 th Period 6 th Period H S Mathematics Period Prep Geometry Math

More information

of the hypothesis, but it would not lead to a proof. P 1

of the hypothesis, but it would not lead to a proof. P 1 Church-Turing thesis The intuitive notion of an effective procedure or algorithm has been mentioned several times. Today the Turing machine has become the accepted formalization of an algorithm. Clearly

More information

Computability of Tilings

Computability of Tilings Computability of Tilings Grégory Lafitte 1 and Michael Weiss 2 1 Laboratoire d Informatique Fondamentale de Marseille (LIF), CNRS Aix-Marseille Université, 39, rue Joliot-Curie, F-13453 Marseille Cedex

More information

CCO Commun. Comb. Optim.

CCO Commun. Comb. Optim. Communications in Combinatorics and Optimization Vol. 2 No. 2, 2017 pp.149-159 DOI: 10.22049/CCO.2017.25918.1055 CCO Commun. Comb. Optim. Graceful labelings of the generalized Petersen graphs Zehui Shao

More information

THE TAYLOR EXPANSIONS OF tan x AND sec x

THE TAYLOR EXPANSIONS OF tan x AND sec x THE TAYLOR EXPANSIONS OF tan x AND sec x TAM PHAM AND RYAN CROMPTON Abstract. The report clarifies the relationships among the completely ordered leveled binary trees, the coefficients of the Taylor expansion

More information

Primitive Roots. Chapter Orders and Primitive Roots

Primitive Roots. Chapter Orders and Primitive Roots Chapter 5 Primitive Roots The name primitive root applies to a number a whose powers can be used to represent a reduced residue system modulo n. Primitive roots are therefore generators in that sense,

More information

Combinatorics in the group of parity alternating permutations

Combinatorics in the group of parity alternating permutations Combinatorics in the group of parity alternating permutations Shinji Tanimoto (tanimoto@cc.kochi-wu.ac.jp) arxiv:081.1839v1 [math.co] 10 Dec 008 Department of Mathematics, Kochi Joshi University, Kochi

More information

Halting Problem. Implement HALT? Today. Halt does not exist. Halt and Turing. Another view of proof: diagonalization. P - program I - input.

Halting Problem. Implement HALT? Today. Halt does not exist. Halt and Turing. Another view of proof: diagonalization. P - program I - input. Today. Halting Problem. Implement HALT? Finish undecidability. Start counting. HALT (P,I) P - program I - input. Determines if P(I) (P run on I) halts or loops forever. Notice: Need a computer with the

More information

1 = 3 2 = 3 ( ) = = = 33( ) 98 = = =

1 = 3 2 = 3 ( ) = = = 33( ) 98 = = = Math 115 Discrete Math Final Exam December 13, 2000 Your name It is important that you show your work. 1. Use the Euclidean algorithm to solve the decanting problem for decanters of sizes 199 and 98. In

More information