SlideShare uma empresa Scribd logo
1 de 9
Baixar para ler offline
they’re everywhere…
*
Catalan Numbers
and their many combinatorics applications*
A TOUR OF THE
What are the Catalan numbers?
a sequence of natural numbers
that shows up as the solution to lots of counting problems
1, 1, 2, 5, 14, 42, 132, 429, …
see a pattern?
it’s ok, I don’t
either…
What are the Catalan numbers?
the recursive pattern:
(this will make much more sense when we look at some example problems)
C0 = 1 Cn+1 =
nX
i=0
CiCn iand
e.g. C4 = C0C3 + C1C2 + C2C1 + C3C0
Problem 1: Parentheses
the problem:
# ways to add parentheses to a product of n+1 letters so
that the order of operations is changed?
n = 2
order of ops should be explicit: (abc) => ((ab)c)
an example: ((ab)c) (a(bc))
n = 3 (((ab)c) d)
((a(bc)) d)
((ab) (cd))
(a ((bc)d))
(a (b(cd)))
Catalan.
recursion:
C2 = 2
C3 = 5
C2C0
C1C1
C0C2
+
+
split the n+1 letters into
two, nonzero length
sections. now you have
two smaller problems that
you know how to solve.
Problem 2: Full Rooted Binary Trees
the problem: # full rooted binary trees with n+1 leaves?
binary tree where each vertex has either 0 or 2 leaves
an example:
n = 2
C2 = 2
n = 3
Catalan.
recursion: C2C0
C3 = 5C1C1
C0C2
+
+
choose how many leaves
will be to the right and left
of the root vertex. now
make all full trees with
that # leaves.
Problem 2: Full Rooted Binary Trees
n = 3
relation to.
parentheses:
(the trees are just
flipped upside-down,
and the edges are
longer for visual effect)
a b c d
(ab)
((ab)c)
(((ab)c)d)
a b c d
((a(bc))d)
(bc)
(a(bc))
a b c d
((ab)(cd))
a b c d
(a((bc)d))
a b c d
(a(b(cd)))
Problem 3: Polygon Triangulation
the problem:
# ways to draw diagonals in a n+2 sided polygon to make
n triangles?
an example:
n = 2
n = 3
Catalan.
recursion:
C2 = 2
relation to.
parentheses:
a
b c
d a
b c
da
b c
da
b c
d a
b c
d
(((ab)c)d) ((a(bc))d) ((ab)(cd)) (a((bc)d)) (a(b(cd)))
full explanation
tbd (b/c over
counting is
complicated)
Example 4: Tiled Step Diagrams
the problem:
# ways to “tile” (divide) a step diagram with side length n
into n rectangles?
an example:
n = 2
n = 3
Catalan.
recursion:
C2 = 2
relation to.
parentheses:
ab
bc
cd
ab
bc
cd
ab
bc
cd
ab
bc
cd
ab
bc
cd
(((ab)c)d) ((a(bc))d) ((ab)(cd)) (a((bc)d)) (a(b(cd)))
choose the largest rectangle you can fit. now you have
smaller step diagrams leftover that you know how to tile.
Example 5: NE Lattice Paths
the problem:
# north-east lattice paths from (0,0) to (n,n) that don’t
cross y=x line?
an example:
n = 2
n = 3
Catalan.
recursion:
C2 = 2
choose point (i,i) where the path will first touch
y=x line. now you have smaller path problems.
relation to.
parentheses:
north = letter | east = “(“
add “)” every time an added
letter completes a product
(((ab)c)d) ((a(bc))d) ((ab)(cd)) (a((bc)d)) (a(b(cd)))

Mais conteúdo relacionado

Mais procurados

Tuyển tập 500 bài Bất Đẳng Thức cổ điển
Tuyển tập 500 bài Bất Đẳng Thức cổ điểnTuyển tập 500 bài Bất Đẳng Thức cổ điển
Tuyển tập 500 bài Bất Đẳng Thức cổ điểnNguyễn Việt Long
 
Ch2 bieudien du lieu
Ch2 bieudien du lieuCh2 bieudien du lieu
Ch2 bieudien du lieuCao Toa
 
Ironman 4x4 140Amp Dual Battery Kit 12-24 Volt
Ironman 4x4 140Amp Dual Battery Kit 12-24 VoltIronman 4x4 140Amp Dual Battery Kit 12-24 Volt
Ironman 4x4 140Amp Dual Battery Kit 12-24 VoltRimsky Cheng
 
Chuyên đề Đẳng Thức và Bất đẳng thức - Bồi dưỡng HSG môn Toán lớp 9
Chuyên đề Đẳng Thức và Bất đẳng thức - Bồi dưỡng HSG môn Toán lớp 9Chuyên đề Đẳng Thức và Bất đẳng thức - Bồi dưỡng HSG môn Toán lớp 9
Chuyên đề Đẳng Thức và Bất đẳng thức - Bồi dưỡng HSG môn Toán lớp 9BOIDUONGTOAN.COM
 
10 dạng tích phân thường gặp thanh tùng
10 dạng tích phân thường gặp   thanh tùng10 dạng tích phân thường gặp   thanh tùng
10 dạng tích phân thường gặp thanh tùngTrần Hà
 
Giáo án đại số 8 cả năm ( 2 cột ) soạn theo 5 hoạt động trường học mới
Giáo án đại số 8 cả năm ( 2 cột ) soạn theo 5 hoạt động trường học mớiGiáo án đại số 8 cả năm ( 2 cột ) soạn theo 5 hoạt động trường học mới
Giáo án đại số 8 cả năm ( 2 cột ) soạn theo 5 hoạt động trường học mớiLê Hữu Bảo
 
1 dạng bđt xoay vòng
1 dạng bđt xoay vòng1 dạng bđt xoay vòng
1 dạng bđt xoay vòngcuong4012
 
Test 2 Ardışık Sayılar
Test 2 Ardışık SayılarTest 2 Ardışık Sayılar
Test 2 Ardışık Sayılarsorucanavari
 
Teorie cls. a viii geometrie plana
Teorie cls. a viii  geometrie  planaTeorie cls. a viii  geometrie  plana
Teorie cls. a viii geometrie planaDeliaScripcaru
 
Step respponse of rlc circuit by Aditya Pratap Singh Delhi University
Step respponse of rlc circuit by Aditya Pratap Singh Delhi UniversityStep respponse of rlc circuit by Aditya Pratap Singh Delhi University
Step respponse of rlc circuit by Aditya Pratap Singh Delhi UniversityAditya Pratap Singh
 
Interpetarea si Analiza electrocardiogramei.ppt
Interpetarea si Analiza electrocardiogramei.pptInterpetarea si Analiza electrocardiogramei.ppt
Interpetarea si Analiza electrocardiogramei.pptCoeurDepirate1
 
Chứng minh bất đẳng thức bằng phương pháp chọn điểm rơi. (1)
Chứng minh bất đẳng thức bằng phương pháp chọn điểm rơi. (1)Chứng minh bất đẳng thức bằng phương pháp chọn điểm rơi. (1)
Chứng minh bất đẳng thức bằng phương pháp chọn điểm rơi. (1)Sao Băng Lạnh Giá
 
Trắc nghiệm Đường tiệm cận của đồ thị hàm số
Trắc nghiệm Đường tiệm cận của đồ thị hàm sốTrắc nghiệm Đường tiệm cận của đồ thị hàm số
Trắc nghiệm Đường tiệm cận của đồ thị hàm sốVuKirikou
 
Lớp 12 chương 1 dao động cơ
Lớp 12 chương 1 dao động cơLớp 12 chương 1 dao động cơ
Lớp 12 chương 1 dao động cơMinh huynh
 

Mais procurados (15)

Tuyển tập 500 bài Bất Đẳng Thức cổ điển
Tuyển tập 500 bài Bất Đẳng Thức cổ điểnTuyển tập 500 bài Bất Đẳng Thức cổ điển
Tuyển tập 500 bài Bất Đẳng Thức cổ điển
 
Ch2 bieudien du lieu
Ch2 bieudien du lieuCh2 bieudien du lieu
Ch2 bieudien du lieu
 
Ironman 4x4 140Amp Dual Battery Kit 12-24 Volt
Ironman 4x4 140Amp Dual Battery Kit 12-24 VoltIronman 4x4 140Amp Dual Battery Kit 12-24 Volt
Ironman 4x4 140Amp Dual Battery Kit 12-24 Volt
 
Chuyên đề Đẳng Thức và Bất đẳng thức - Bồi dưỡng HSG môn Toán lớp 9
Chuyên đề Đẳng Thức và Bất đẳng thức - Bồi dưỡng HSG môn Toán lớp 9Chuyên đề Đẳng Thức và Bất đẳng thức - Bồi dưỡng HSG môn Toán lớp 9
Chuyên đề Đẳng Thức và Bất đẳng thức - Bồi dưỡng HSG môn Toán lớp 9
 
10 dạng tích phân thường gặp thanh tùng
10 dạng tích phân thường gặp   thanh tùng10 dạng tích phân thường gặp   thanh tùng
10 dạng tích phân thường gặp thanh tùng
 
Giáo án đại số 8 cả năm ( 2 cột ) soạn theo 5 hoạt động trường học mới
Giáo án đại số 8 cả năm ( 2 cột ) soạn theo 5 hoạt động trường học mớiGiáo án đại số 8 cả năm ( 2 cột ) soạn theo 5 hoạt động trường học mới
Giáo án đại số 8 cả năm ( 2 cột ) soạn theo 5 hoạt động trường học mới
 
1 dạng bđt xoay vòng
1 dạng bđt xoay vòng1 dạng bđt xoay vòng
1 dạng bđt xoay vòng
 
Test 2 Ardışık Sayılar
Test 2 Ardışık SayılarTest 2 Ardışık Sayılar
Test 2 Ardışık Sayılar
 
4 bit binary full subtractor
4 bit binary full subtractor4 bit binary full subtractor
4 bit binary full subtractor
 
Teorie cls. a viii geometrie plana
Teorie cls. a viii  geometrie  planaTeorie cls. a viii  geometrie  plana
Teorie cls. a viii geometrie plana
 
Step respponse of rlc circuit by Aditya Pratap Singh Delhi University
Step respponse of rlc circuit by Aditya Pratap Singh Delhi UniversityStep respponse of rlc circuit by Aditya Pratap Singh Delhi University
Step respponse of rlc circuit by Aditya Pratap Singh Delhi University
 
Interpetarea si Analiza electrocardiogramei.ppt
Interpetarea si Analiza electrocardiogramei.pptInterpetarea si Analiza electrocardiogramei.ppt
Interpetarea si Analiza electrocardiogramei.ppt
 
Chứng minh bất đẳng thức bằng phương pháp chọn điểm rơi. (1)
Chứng minh bất đẳng thức bằng phương pháp chọn điểm rơi. (1)Chứng minh bất đẳng thức bằng phương pháp chọn điểm rơi. (1)
Chứng minh bất đẳng thức bằng phương pháp chọn điểm rơi. (1)
 
Trắc nghiệm Đường tiệm cận của đồ thị hàm số
Trắc nghiệm Đường tiệm cận của đồ thị hàm sốTrắc nghiệm Đường tiệm cận của đồ thị hàm số
Trắc nghiệm Đường tiệm cận của đồ thị hàm số
 
Lớp 12 chương 1 dao động cơ
Lớp 12 chương 1 dao động cơLớp 12 chương 1 dao động cơ
Lớp 12 chương 1 dao động cơ
 

Semelhante a A Tour of the Catalan Numbers

Kanodia murolia previousyears
Kanodia murolia previousyearsKanodia murolia previousyears
Kanodia murolia previousyearsAnwesa Roy
 
Sslc maths-5-model-question-papers-english-medium
Sslc maths-5-model-question-papers-english-mediumSslc maths-5-model-question-papers-english-medium
Sslc maths-5-model-question-papers-english-mediummohanavaradhan777
 
Class 9th Mcq for Preparing Exams , Maths
Class 9th Mcq for Preparing Exams , MathsClass 9th Mcq for Preparing Exams , Maths
Class 9th Mcq for Preparing Exams , Mathsalrehmangraphic12
 
AP PGECET Computer Science 2016 question paper
AP PGECET Computer Science 2016 question paperAP PGECET Computer Science 2016 question paper
AP PGECET Computer Science 2016 question paperEneutron
 
Year 13 challenge mathematics problems 107
Year 13 challenge mathematics problems 107Year 13 challenge mathematics problems 107
Year 13 challenge mathematics problems 107Dennis Almeida
 
Aieee 2003 maths solved paper by fiitjee
Aieee 2003 maths solved paper by fiitjeeAieee 2003 maths solved paper by fiitjee
Aieee 2003 maths solved paper by fiitjeeMr_KevinShah
 
BITSAT 2018 Question Bank - Maths
BITSAT 2018 Question Bank - MathsBITSAT 2018 Question Bank - Maths
BITSAT 2018 Question Bank - Mathsyash bansal
 
Notes and formulae mathematics
Notes and formulae mathematicsNotes and formulae mathematics
Notes and formulae mathematicsZainonie Ma'arof
 

Semelhante a A Tour of the Catalan Numbers (20)

Kanodia murolia previousyears
Kanodia murolia previousyearsKanodia murolia previousyears
Kanodia murolia previousyears
 
1
11
1
 
Presentation (7).pptx
Presentation (7).pptxPresentation (7).pptx
Presentation (7).pptx
 
AMU - Mathematics - 1999
AMU - Mathematics  - 1999AMU - Mathematics  - 1999
AMU - Mathematics - 1999
 
Sslc maths-5-model-question-papers-english-medium
Sslc maths-5-model-question-papers-english-mediumSslc maths-5-model-question-papers-english-medium
Sslc maths-5-model-question-papers-english-medium
 
Class 9th Mcq for Preparing Exams , Maths
Class 9th Mcq for Preparing Exams , MathsClass 9th Mcq for Preparing Exams , Maths
Class 9th Mcq for Preparing Exams , Maths
 
AP PGECET Computer Science 2016 question paper
AP PGECET Computer Science 2016 question paperAP PGECET Computer Science 2016 question paper
AP PGECET Computer Science 2016 question paper
 
Mtc ssample05
Mtc ssample05Mtc ssample05
Mtc ssample05
 
Mtc ssample05
Mtc ssample05Mtc ssample05
Mtc ssample05
 
Year 13 challenge mathematics problems 107
Year 13 challenge mathematics problems 107Year 13 challenge mathematics problems 107
Year 13 challenge mathematics problems 107
 
CAT -2010 Unsolved Paper
CAT -2010 Unsolved PaperCAT -2010 Unsolved Paper
CAT -2010 Unsolved Paper
 
Maieee03
Maieee03Maieee03
Maieee03
 
Aieee 2003 maths solved paper by fiitjee
Aieee 2003 maths solved paper by fiitjeeAieee 2003 maths solved paper by fiitjee
Aieee 2003 maths solved paper by fiitjee
 
brain gate
brain gatebrain gate
brain gate
 
DS Q&A
DS Q&ADS Q&A
DS Q&A
 
BITSAT 2018 Question Bank - Maths
BITSAT 2018 Question Bank - MathsBITSAT 2018 Question Bank - Maths
BITSAT 2018 Question Bank - Maths
 
Practice sheet 5
Practice sheet 5Practice sheet 5
Practice sheet 5
 
AMU - Mathematics - 2004
AMU - Mathematics  - 2004AMU - Mathematics  - 2004
AMU - Mathematics - 2004
 
Nift pg technology sample question paper gat
Nift pg technology sample question paper gatNift pg technology sample question paper gat
Nift pg technology sample question paper gat
 
Notes and formulae mathematics
Notes and formulae mathematicsNotes and formulae mathematics
Notes and formulae mathematics
 

Último

Film Coated Tablet and Film Coating raw materials.pdf
Film Coated Tablet and Film Coating raw materials.pdfFilm Coated Tablet and Film Coating raw materials.pdf
Film Coated Tablet and Film Coating raw materials.pdfPharmatech-rx
 
TEST BANK for Organic Chemistry 6th Edition.pdf
TEST BANK for Organic Chemistry 6th Edition.pdfTEST BANK for Organic Chemistry 6th Edition.pdf
TEST BANK for Organic Chemistry 6th Edition.pdfmarcuskenyatta275
 
The importance of continents, oceans and plate tectonics for the evolution of...
The importance of continents, oceans and plate tectonics for the evolution of...The importance of continents, oceans and plate tectonics for the evolution of...
The importance of continents, oceans and plate tectonics for the evolution of...Sérgio Sacani
 
RACEMIzATION AND ISOMERISATION completed.pptx
RACEMIzATION AND ISOMERISATION completed.pptxRACEMIzATION AND ISOMERISATION completed.pptx
RACEMIzATION AND ISOMERISATION completed.pptxArunLakshmiMeenakshi
 
Molecular and Cellular Mechanism of Action of Hormones such as Growth Hormone...
Molecular and Cellular Mechanism of Action of Hormones such as Growth Hormone...Molecular and Cellular Mechanism of Action of Hormones such as Growth Hormone...
Molecular and Cellular Mechanism of Action of Hormones such as Growth Hormone...Ansari Aashif Raza Mohd Imtiyaz
 
Land use land cover change analysis and detection of its drivers using geospa...
Land use land cover change analysis and detection of its drivers using geospa...Land use land cover change analysis and detection of its drivers using geospa...
Land use land cover change analysis and detection of its drivers using geospa...MohammedAhmed246550
 
WASP-69b’s Escaping Envelope Is Confined to a Tail Extending at Least 7 Rp
WASP-69b’s Escaping Envelope Is Confined to a Tail Extending at Least 7 RpWASP-69b’s Escaping Envelope Is Confined to a Tail Extending at Least 7 Rp
WASP-69b’s Escaping Envelope Is Confined to a Tail Extending at Least 7 RpSérgio Sacani
 
A Giant Impact Origin for the First Subduction on Earth
A Giant Impact Origin for the First Subduction on EarthA Giant Impact Origin for the First Subduction on Earth
A Giant Impact Origin for the First Subduction on EarthSérgio Sacani
 
Isolation of AMF by wet sieving and decantation method pptx
Isolation of AMF by wet sieving and decantation method pptxIsolation of AMF by wet sieving and decantation method pptx
Isolation of AMF by wet sieving and decantation method pptxGOWTHAMIM22
 
Biochemistry and Biomolecules - Science - 9th Grade by Slidesgo.pptx
Biochemistry and Biomolecules - Science - 9th Grade by Slidesgo.pptxBiochemistry and Biomolecules - Science - 9th Grade by Slidesgo.pptx
Biochemistry and Biomolecules - Science - 9th Grade by Slidesgo.pptxjayabahari688
 
GBSN - Microbiology (Unit 7) Microbiology in Everyday Life
GBSN - Microbiology (Unit 7) Microbiology in Everyday LifeGBSN - Microbiology (Unit 7) Microbiology in Everyday Life
GBSN - Microbiology (Unit 7) Microbiology in Everyday LifeAreesha Ahmad
 
Climate extremes likely to drive land mammal extinction during next supercont...
Climate extremes likely to drive land mammal extinction during next supercont...Climate extremes likely to drive land mammal extinction during next supercont...
Climate extremes likely to drive land mammal extinction during next supercont...Sérgio Sacani
 
GBSN - Microbiology Lab (Compound Microscope)
GBSN - Microbiology Lab (Compound Microscope)GBSN - Microbiology Lab (Compound Microscope)
GBSN - Microbiology Lab (Compound Microscope)Areesha Ahmad
 
NUMERICAL Proof Of TIme Electron Theory.
NUMERICAL Proof Of TIme Electron Theory.NUMERICAL Proof Of TIme Electron Theory.
NUMERICAL Proof Of TIme Electron Theory.syedmuneemqadri
 
Emergent ribozyme behaviors in oxychlorine brines indicate a unique niche for...
Emergent ribozyme behaviors in oxychlorine brines indicate a unique niche for...Emergent ribozyme behaviors in oxychlorine brines indicate a unique niche for...
Emergent ribozyme behaviors in oxychlorine brines indicate a unique niche for...Sérgio Sacani
 
Mining Activity and Investment Opportunity in Myanmar.pptx
Mining Activity and Investment Opportunity in Myanmar.pptxMining Activity and Investment Opportunity in Myanmar.pptx
Mining Activity and Investment Opportunity in Myanmar.pptxKyawThanTint
 
Jet reorientation in central galaxies of clusters and groups: insights from V...
Jet reorientation in central galaxies of clusters and groups: insights from V...Jet reorientation in central galaxies of clusters and groups: insights from V...
Jet reorientation in central galaxies of clusters and groups: insights from V...Sérgio Sacani
 
In-pond Race way systems for Aquaculture (IPRS).pptx
In-pond Race way systems for Aquaculture (IPRS).pptxIn-pond Race way systems for Aquaculture (IPRS).pptx
In-pond Race way systems for Aquaculture (IPRS).pptxMAGOTI ERNEST
 
Microbial bio Synthesis of nanoparticles.pptx
Microbial bio Synthesis of nanoparticles.pptxMicrobial bio Synthesis of nanoparticles.pptx
Microbial bio Synthesis of nanoparticles.pptxCherry
 
NuGOweek 2024 full programme - hosted by Ghent University
NuGOweek 2024 full programme - hosted by Ghent UniversityNuGOweek 2024 full programme - hosted by Ghent University
NuGOweek 2024 full programme - hosted by Ghent Universitypablovgd
 

Último (20)

Film Coated Tablet and Film Coating raw materials.pdf
Film Coated Tablet and Film Coating raw materials.pdfFilm Coated Tablet and Film Coating raw materials.pdf
Film Coated Tablet and Film Coating raw materials.pdf
 
TEST BANK for Organic Chemistry 6th Edition.pdf
TEST BANK for Organic Chemistry 6th Edition.pdfTEST BANK for Organic Chemistry 6th Edition.pdf
TEST BANK for Organic Chemistry 6th Edition.pdf
 
The importance of continents, oceans and plate tectonics for the evolution of...
The importance of continents, oceans and plate tectonics for the evolution of...The importance of continents, oceans and plate tectonics for the evolution of...
The importance of continents, oceans and plate tectonics for the evolution of...
 
RACEMIzATION AND ISOMERISATION completed.pptx
RACEMIzATION AND ISOMERISATION completed.pptxRACEMIzATION AND ISOMERISATION completed.pptx
RACEMIzATION AND ISOMERISATION completed.pptx
 
Molecular and Cellular Mechanism of Action of Hormones such as Growth Hormone...
Molecular and Cellular Mechanism of Action of Hormones such as Growth Hormone...Molecular and Cellular Mechanism of Action of Hormones such as Growth Hormone...
Molecular and Cellular Mechanism of Action of Hormones such as Growth Hormone...
 
Land use land cover change analysis and detection of its drivers using geospa...
Land use land cover change analysis and detection of its drivers using geospa...Land use land cover change analysis and detection of its drivers using geospa...
Land use land cover change analysis and detection of its drivers using geospa...
 
WASP-69b’s Escaping Envelope Is Confined to a Tail Extending at Least 7 Rp
WASP-69b’s Escaping Envelope Is Confined to a Tail Extending at Least 7 RpWASP-69b’s Escaping Envelope Is Confined to a Tail Extending at Least 7 Rp
WASP-69b’s Escaping Envelope Is Confined to a Tail Extending at Least 7 Rp
 
A Giant Impact Origin for the First Subduction on Earth
A Giant Impact Origin for the First Subduction on EarthA Giant Impact Origin for the First Subduction on Earth
A Giant Impact Origin for the First Subduction on Earth
 
Isolation of AMF by wet sieving and decantation method pptx
Isolation of AMF by wet sieving and decantation method pptxIsolation of AMF by wet sieving and decantation method pptx
Isolation of AMF by wet sieving and decantation method pptx
 
Biochemistry and Biomolecules - Science - 9th Grade by Slidesgo.pptx
Biochemistry and Biomolecules - Science - 9th Grade by Slidesgo.pptxBiochemistry and Biomolecules - Science - 9th Grade by Slidesgo.pptx
Biochemistry and Biomolecules - Science - 9th Grade by Slidesgo.pptx
 
GBSN - Microbiology (Unit 7) Microbiology in Everyday Life
GBSN - Microbiology (Unit 7) Microbiology in Everyday LifeGBSN - Microbiology (Unit 7) Microbiology in Everyday Life
GBSN - Microbiology (Unit 7) Microbiology in Everyday Life
 
Climate extremes likely to drive land mammal extinction during next supercont...
Climate extremes likely to drive land mammal extinction during next supercont...Climate extremes likely to drive land mammal extinction during next supercont...
Climate extremes likely to drive land mammal extinction during next supercont...
 
GBSN - Microbiology Lab (Compound Microscope)
GBSN - Microbiology Lab (Compound Microscope)GBSN - Microbiology Lab (Compound Microscope)
GBSN - Microbiology Lab (Compound Microscope)
 
NUMERICAL Proof Of TIme Electron Theory.
NUMERICAL Proof Of TIme Electron Theory.NUMERICAL Proof Of TIme Electron Theory.
NUMERICAL Proof Of TIme Electron Theory.
 
Emergent ribozyme behaviors in oxychlorine brines indicate a unique niche for...
Emergent ribozyme behaviors in oxychlorine brines indicate a unique niche for...Emergent ribozyme behaviors in oxychlorine brines indicate a unique niche for...
Emergent ribozyme behaviors in oxychlorine brines indicate a unique niche for...
 
Mining Activity and Investment Opportunity in Myanmar.pptx
Mining Activity and Investment Opportunity in Myanmar.pptxMining Activity and Investment Opportunity in Myanmar.pptx
Mining Activity and Investment Opportunity in Myanmar.pptx
 
Jet reorientation in central galaxies of clusters and groups: insights from V...
Jet reorientation in central galaxies of clusters and groups: insights from V...Jet reorientation in central galaxies of clusters and groups: insights from V...
Jet reorientation in central galaxies of clusters and groups: insights from V...
 
In-pond Race way systems for Aquaculture (IPRS).pptx
In-pond Race way systems for Aquaculture (IPRS).pptxIn-pond Race way systems for Aquaculture (IPRS).pptx
In-pond Race way systems for Aquaculture (IPRS).pptx
 
Microbial bio Synthesis of nanoparticles.pptx
Microbial bio Synthesis of nanoparticles.pptxMicrobial bio Synthesis of nanoparticles.pptx
Microbial bio Synthesis of nanoparticles.pptx
 
NuGOweek 2024 full programme - hosted by Ghent University
NuGOweek 2024 full programme - hosted by Ghent UniversityNuGOweek 2024 full programme - hosted by Ghent University
NuGOweek 2024 full programme - hosted by Ghent University
 

A Tour of the Catalan Numbers

  • 1. they’re everywhere… * Catalan Numbers and their many combinatorics applications* A TOUR OF THE
  • 2. What are the Catalan numbers? a sequence of natural numbers that shows up as the solution to lots of counting problems 1, 1, 2, 5, 14, 42, 132, 429, … see a pattern? it’s ok, I don’t either…
  • 3. What are the Catalan numbers? the recursive pattern: (this will make much more sense when we look at some example problems) C0 = 1 Cn+1 = nX i=0 CiCn iand e.g. C4 = C0C3 + C1C2 + C2C1 + C3C0
  • 4. Problem 1: Parentheses the problem: # ways to add parentheses to a product of n+1 letters so that the order of operations is changed? n = 2 order of ops should be explicit: (abc) => ((ab)c) an example: ((ab)c) (a(bc)) n = 3 (((ab)c) d) ((a(bc)) d) ((ab) (cd)) (a ((bc)d)) (a (b(cd))) Catalan. recursion: C2 = 2 C3 = 5 C2C0 C1C1 C0C2 + + split the n+1 letters into two, nonzero length sections. now you have two smaller problems that you know how to solve.
  • 5. Problem 2: Full Rooted Binary Trees the problem: # full rooted binary trees with n+1 leaves? binary tree where each vertex has either 0 or 2 leaves an example: n = 2 C2 = 2 n = 3 Catalan. recursion: C2C0 C3 = 5C1C1 C0C2 + + choose how many leaves will be to the right and left of the root vertex. now make all full trees with that # leaves.
  • 6. Problem 2: Full Rooted Binary Trees n = 3 relation to. parentheses: (the trees are just flipped upside-down, and the edges are longer for visual effect) a b c d (ab) ((ab)c) (((ab)c)d) a b c d ((a(bc))d) (bc) (a(bc)) a b c d ((ab)(cd)) a b c d (a((bc)d)) a b c d (a(b(cd)))
  • 7. Problem 3: Polygon Triangulation the problem: # ways to draw diagonals in a n+2 sided polygon to make n triangles? an example: n = 2 n = 3 Catalan. recursion: C2 = 2 relation to. parentheses: a b c d a b c da b c da b c d a b c d (((ab)c)d) ((a(bc))d) ((ab)(cd)) (a((bc)d)) (a(b(cd))) full explanation tbd (b/c over counting is complicated)
  • 8. Example 4: Tiled Step Diagrams the problem: # ways to “tile” (divide) a step diagram with side length n into n rectangles? an example: n = 2 n = 3 Catalan. recursion: C2 = 2 relation to. parentheses: ab bc cd ab bc cd ab bc cd ab bc cd ab bc cd (((ab)c)d) ((a(bc))d) ((ab)(cd)) (a((bc)d)) (a(b(cd))) choose the largest rectangle you can fit. now you have smaller step diagrams leftover that you know how to tile.
  • 9. Example 5: NE Lattice Paths the problem: # north-east lattice paths from (0,0) to (n,n) that don’t cross y=x line? an example: n = 2 n = 3 Catalan. recursion: C2 = 2 choose point (i,i) where the path will first touch y=x line. now you have smaller path problems. relation to. parentheses: north = letter | east = “(“ add “)” every time an added letter completes a product (((ab)c)d) ((a(bc))d) ((ab)(cd)) (a((bc)d)) (a(b(cd)))