Words, Words, I Am So Sick of Words! Joseph Malkevitch Mathematics (York College)

Similar documents
Section 1.8. Simplifying Expressions

Formal languages and computation models

Phil 320 Chapter 1: Sets, Functions and Enumerability I. Sets Informally: a set is a collection of objects. The objects are called members or

Recursively Defined Functions

Compiler Construction

Coding elements related to Catalan numbers by Dyck words

1.3 Functions and Equivalence Relations 1.4 Languages

1. [5 points each] True or False. If the question is currently open, write O or Open.

CS6160 Theory of Computation Problem Set 2 Department of Computer Science, University of Virginia

University of Nevada, Las Vegas Computer Science 456/656 Fall 2016

Taibah University College of Computer Science & Engineering Course Title: Discrete Mathematics Code: CS 103. Chapter 2. Sets

CIS 194: Homework 6. Due Monday, February 25. Fibonacci numbers

Algorithms on Words Introduction CHAPTER 1

The Associahedra and Permutohedra Yet Again

Decimal Binary Conversion Decimal Binary Place Value = 13 (Base 10) becomes = 1101 (Base 2).

A.1 Numbers, Sets and Arithmetic

Announcements. CS243: Discrete Structures. Strong Induction and Recursively Defined Structures. Review. Example (review) Example (review), cont.

CGF Lecture 2 Numbers

Recursive Definitions and Structural Induction

58093 String Processing Algorithms. Lectures, Autumn 2013, period II

arxiv: v1 [math.co] 13 Dec 2007

1.4. Skills You Need: Working With Radicals. Investigate

Complexity Theory. Compiled By : Hari Prasad Pokhrel Page 1 of 20. ioenotes.edu.np

PRIMITIVITY ON PARTIAL ARRAYS

CSE 20 DISCRETE MATH WINTER

The Further Mathematics Support Programme

1.1 - Introduction to Sets

1. Find f(1), f(2), f(3), and f(4) if f(n) is defined recursively by f(0) = 1 and for n = 0, 1, 2,

Proof Techniques Alphabets, Strings, and Languages. Foundations of Computer Science Theory

SYNERGY INSTITUTE OF ENGINEERING & TECHNOLOGY,DHENKANAL LECTURE NOTES ON DIGITAL ELECTRONICS CIRCUIT(SUBJECT CODE:PCEC4202)

Lemma (x, y, z) is a Pythagorean triple iff (y, x, z) is a Pythagorean triple.

Mathematical Induction

GSAC TALK: THE WORD PROBLEM. 1. The 8-8 Tessellation. Consider the following infinite tessellation of the open unit disc. Actually, we want to think

IT 201 Digital System Design Module II Notes

CS402 - Theory of Automata FAQs By

Efficient validation and construction of border arrays

Test Bank Ver. 5.0: Data Abstraction and Problem Solving with C++: Walls and Mirrors, 5 th edition, Frank M. Carrano

Suggested Foundation Topics for Paper 2

Chapter Summary. Mathematical Induction Recursive Definitions Structural Induction Recursive Algorithms

ST MARY S COLLEGE FORM ONE COURSE OUTLINE MATHEMATICS. Term 1. Addition and subtraction. Multiplication and division facts

Chapter 18 out of 37 from Discrete Mathematics for Neophytes: Number Theory, Probability, Algorithms, and Other Stuff by J. M. Cargal.

AUBER (Models of Computation, Languages and Automata) EXERCISES

SUBJECT: YEAR: Half Term:

On-line multiplication in real and complex base

Glynda, the good witch of the North

Introduction to Boolean Algebra

Review of Operations on the Set of Real Numbers

<The von Koch Snowflake Investigation> properties of fractals is self-similarity. It means that we can magnify them many times and after every

Recursion defining an object (or function, algorithm, etc.) in terms of itself. Recursion can be used to define sequences

CHAPTER TWO LANGUAGES. Dr Zalmiyah Zakaria

Enumerating Tilings of Rectangles by Squares with Recurrence Relations

YEAR 7 SCHEME OF WORK - EXTENSION

Recursive Definitions

ECE G205 Fundamentals of Computer Engineering Fall Exercises in Preparation to the Midterm

Introduction to Boolean Algebra

Recursive Definitions Structural Induction Recursive Algorithms

Factoring - Special Products

To illustrate what is intended the following are three write ups by students. Diagonalization

Discrete Mathematics. Kruskal, order, sorting, induction

SET DEFINITION 1 elements members

Year 7 Knowledge/Content Understanding Skills Students will

Stage 1 Place Value Calculations Geometry Fractions Data. Name and describe (using appropriate vocabulary) common 2d and 3d shapes

Algorithms in Systems Engineering ISE 172. Lecture 1. Dr. Ted Ralphs

Fractal Trees. Gandhi Games

Information Theory and Coding Prof. S. N. Merchant Department of Electrical Engineering Indian Institute of Technology, Bombay

DVA337 HT17 - LECTURE 4. Languages and regular expressions

Recursion defining an object (or function, algorithm, etc.) in terms of itself. Recursion can be used to define sequences

PAPER Constructing the Suffix Tree of a Tree with a Large Alphabet

Rational and Irrational Numbers

This book is licensed under a Creative Commons Attribution 3.0 License

Computer Science 236 Fall Nov. 11, 2010

Chapter 1: Number and Operations

Muskogee Public Schools Curriculum Map Sixth Grade Math

NAME UNIT 4 ALGEBRA II. NOTES PACKET ON RADICALS, RATIONALS d COMPLEX NUMBERS

36 Modular Arithmetic

PITSCO Math Individualized Prescriptive Lessons (IPLs)

Chapter 3. Set Theory. 3.1 What is a Set?

On the computation of the n'th decimal digit of various transcendental numbers. Abstract

Algebra II Chapter 6: Rational Exponents and Radical Functions

Finite Math - J-term Homework. Section Inverse of a Square Matrix

Gate Level Minimization Map Method

Induction and Recursion. CMPS/MATH 2170: Discrete Mathematics

Square Difference Prime Labeling for Some Snake Graphs

Integrated Math I. IM1.1.3 Understand and use the distributive, associative, and commutative properties.

What we still don t know about addition and multiplication

CS402 Theory of Automata Solved Subjective From Midterm Papers. MIDTERM SPRING 2012 CS402 Theory of Automata

Notes for Comp 454 Week 2

MAA MD-DC-VA Section meeting, November Creative Approaches to Discrete Mathematics Brian Heinold Mount St. Mary s University

Year 7: Long term plan

CMPSCI 250: Introduction to Computation. Lecture #28: Regular Expressions and Languages David Mix Barrington 2 April 2014

Turing Machine Languages

Big Mathematical Ideas and Understandings

On-line multiplication in real and complex base

Mathematics Background

Mathematics. Year 7. Autumn Term

Mathematics Appendix 1: Examples of formal written methods for addition, subtraction, multiplication and division

Lesson 29: Fourier Series and Recurrence Relations

1. Draw the state graphs for the finite automata which accept sets of strings composed of zeros and ones which:

PROGRAMMING IN C AND C++:

Developing Year 5 expectations Mastering Y5 expectations Going to greater depth with Y5 expectations

Transcription:

Words, Words, I Am So Sick of Words! Joseph Malkevitch Mathematics (York College)

What is mathematics about? The study of numbers. The study of shapes. But it should be viewed as: The study of patterns.

When we see: 12334421 we usually view it as a number (base 10 or base 5). When we think about numbers we think about whether they are real, integers, complex, or rational. If an integer, we ask if the number is prime, a perfect square, etc.

However we could view 12334421 as a word or a string from the alphabet: a. 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 or b. 1, 2, 3, 4

What patterns do you notice for the string 12334421

Some answers: Each letter in the alphabet appears twice. There are two squares: 33; 44 12 appears as a prefix but not a suffix. 21 appears as a suffix.

"Multiplying" or "combining" two strings means that they are concatenated or juxtaposed. Examples: x multiplied by xz is xxz or x 2 z xz multiplied by x is xzx Multiplication does NOT commute.

Vocabulary: Factor or subword: xz is a factor of zx 2 zyx Square: xyxy is a square as is uu Cube: abcabcabc is a cube as is u 3

Palindrome: racecar or 121 (read the same forwards and backwards) Prefix: xz is a prefix of xz 3 y Suffix: zy is a suffix of xz 3 y

What area of mathematics do such problems belong to? Generally: Discrete mathematics Combinatorics More specifically: Combinatorics on words

Norwegian Mathematician: (Axel Thue (1863-1922)) Also the American mathematician Marston Morse (1892-1977).

Originally developed as theoretical mathematics combinatorics on words has increasingly many applications in biology: DNA can be viewed as strings from the 4 letter alphabet: A, C, G, T with special rules about how pairing occurs!

What pattern do you think generated these numbers? 1, 1, 2, 3, 5, 8, 13, 21, 34,...,

These are the famous Fibonacci numbers, where the next term is obtained by summing the previous two. They arise as a way to mode the population of rabbit pairs that don't ever die.

We can express this using a recursion equation: Fn = Fn " 1 + Fn " 2 using the initial conditions: 1 and 1

Note: Since integers commute we also have: Fn = Fn " 2 + Fn " 1

Using analogy we can construct a sequence of Fibonacci words, using two letters, and the "multiplication" given by the recursion, where we concatenate strings.

A next word is gotten by concatenating the previous two: a, ab, aba, abaab, abaababa,..., The recursion being: fn = fn " 1 fn " 2

What about using: fn = fn " 2 fn " 1 a, ab, aab, abaab, aababaab,..., This is not the same as the prior sequence, because here multiplication does not commute. Does it have interesting properties like the Fibonacci words?

Some properties of the Fibonacci sequence of words, and the "infinite" word formed so that each word of the sequence is a prefix of the infinite word: f = abaababaabaab...

* The words of the Fibonacci sequence end alternately in ab and ba * Suppressing the last two letters of a Fibonacci word, or prefixing the complement of the last two letters, creates a palindrome. Example: abaababa abaaba is a palindrome ababaababa is a palindrome

* The subwords 11 and 000 never occur * As the size of the initial section of the infinite word grows, the ratio of the number letters to the number of a's and the ratio of the number of a's to b's approaches the Golden Ratio, phi, (1 + 5 ) / 2

* The infinite Fibonacci word is recurrent; every subword occurs infinitely often. * If w is a subword of the infinite Fibonacci word, then so is w's reversal

* Two factors of the same length anywhere in the infinite Fibonacci word have the property that the difference between the number of b's they contain never exceeds 1

Question: Are there infinite length words in an alphabet A that avoid squares? Easy theorem: Words over any alphabet with two symbols contain squares!

Amazing theorem: Axel Thue: There is a square free word sequence on an alphabet of three letters.

A word is cube free if it contains no factor of the form uuu, where u is a finite non-empty word. A word is strongly cube free if it contains no subsequence of the form uua, where u is a finite non-empty word and a is the first symbol in u.

Theorem (Axel Thue) The Thue-Morse sequence is strongly cube free.

There are many approaches to the Thue-Morse sequence. This one is rather appealing because it involves simple ideas from discrete mathematics and counting in binary.

Let TMn to denote the nth term of the Thue-Morse sequence where n takes on the values 0, 1, 2, 3,... To find the value of TMn write n in binary. If this number has an even number of ones set TMn to 0, otherwise to 1!

So the Thue-Morse sequence is without commas between terms to show an infinite word: 01101001100101101001011001101 001... Note: lots of squares but no cubes.

Here is another lovely approach using the idea of replacing a seed word using morphisms, functions which replace symbols in the alphabet with other symbols.

Morphism Rule: Replace 0 in the string by 01 and 1 in the string by 10. Use 0 as your starting string. (0# 01 and 1 # 0) 0 01 0110 01101001 0110100110010110

Is there a morphism approach to the Fibonacci word? Yes! a # ab b # a

a # ab b # a a ab aba abaab abaababa abaababaabaab Nifty!

Bibliography: Crochemore, M. and W. Rytter, Text Algorithms, Oxford University Press, 1994. Crochemore, M. and C. Hancart, T. Lecroq, Algorithms on Strings, Cambridge U. Press, 2007. Gusfield, D., Algorithms on Strings, Trees, and Sequences, Cambridge U. Press, New York, 1997. Lothaire, M., Combinatorics on Words, Addison-Wesley, 1983. Lothaire, M., Algebraic Combinatorics on Words, Cambridge University Press, New York, 2002. Lothaire, M. Applied Combinatorics on Words, Cambridge U. Press, New York, 2005.