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

Unit v computer, number system
Unit  v computer, number systemUnit  v computer, number system
Unit v computer, number systemindra Kishor
 
Computer programming mcqs
Computer programming mcqsComputer programming mcqs
Computer programming mcqssaadkhan672
 
57085327 evaluacion-de-multiplos-y-divisores-5º
57085327 evaluacion-de-multiplos-y-divisores-5º57085327 evaluacion-de-multiplos-y-divisores-5º
57085327 evaluacion-de-multiplos-y-divisores-5ºJacqueline Segura Aguilera
 
Rules of integration
Rules of integrationRules of integration
Rules of integrationklawdet
 
binary arithmetic rules
binary arithmetic rulesbinary arithmetic rules
binary arithmetic rulesstudent
 
Linear differential equation with constant coefficient
Linear differential equation with constant coefficientLinear differential equation with constant coefficient
Linear differential equation with constant coefficientSanjay Singh
 
Class 2 CBSE Maths Sample Paper Term 1 Model 1
Class 2 CBSE Maths Sample Paper Term 1 Model 1Class 2 CBSE Maths Sample Paper Term 1 Model 1
Class 2 CBSE Maths Sample Paper Term 1 Model 1Sunaina Rawat
 
Module 1 polynomial functions
Module 1   polynomial functionsModule 1   polynomial functions
Module 1 polynomial functionsdionesioable
 
NUMEROS PRIMOS
NUMEROS PRIMOSNUMEROS PRIMOS
NUMEROS PRIMOSSuxyer
 
Digital Systems Design Using Verilog 1st edition by Roth John Lee solution ma...
Digital Systems Design Using Verilog 1st edition by Roth John Lee solution ma...Digital Systems Design Using Verilog 1st edition by Roth John Lee solution ma...
Digital Systems Design Using Verilog 1st edition by Roth John Lee solution ma...endokayle
 

Mais procurados (12)

Unit v computer, number system
Unit  v computer, number systemUnit  v computer, number system
Unit v computer, number system
 
Computer programming mcqs
Computer programming mcqsComputer programming mcqs
Computer programming mcqs
 
57085327 evaluacion-de-multiplos-y-divisores-5º
57085327 evaluacion-de-multiplos-y-divisores-5º57085327 evaluacion-de-multiplos-y-divisores-5º
57085327 evaluacion-de-multiplos-y-divisores-5º
 
Rules of integration
Rules of integrationRules of integration
Rules of integration
 
binary arithmetic rules
binary arithmetic rulesbinary arithmetic rules
binary arithmetic rules
 
Linear differential equation with constant coefficient
Linear differential equation with constant coefficientLinear differential equation with constant coefficient
Linear differential equation with constant coefficient
 
Class 2 CBSE Maths Sample Paper Term 1 Model 1
Class 2 CBSE Maths Sample Paper Term 1 Model 1Class 2 CBSE Maths Sample Paper Term 1 Model 1
Class 2 CBSE Maths Sample Paper Term 1 Model 1
 
Binary codes
Binary codesBinary codes
Binary codes
 
PISA matemáticas:Vuelo espacial
PISA matemáticas:Vuelo espacialPISA matemáticas:Vuelo espacial
PISA matemáticas:Vuelo espacial
 
Module 1 polynomial functions
Module 1   polynomial functionsModule 1   polynomial functions
Module 1 polynomial functions
 
NUMEROS PRIMOS
NUMEROS PRIMOSNUMEROS PRIMOS
NUMEROS PRIMOS
 
Digital Systems Design Using Verilog 1st edition by Roth John Lee solution ma...
Digital Systems Design Using Verilog 1st edition by Roth John Lee solution ma...Digital Systems Design Using Verilog 1st edition by Roth John Lee solution ma...
Digital Systems Design Using Verilog 1st edition by Roth John Lee solution ma...
 

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
 
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
 
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
 
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
 
Maieee03
Maieee03Maieee03
Maieee03
 
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
 
Aieee maths-2003
Aieee maths-2003Aieee maths-2003
Aieee maths-2003
 

Último

Use of mutants in understanding seedling development.pptx
Use of mutants in understanding seedling development.pptxUse of mutants in understanding seedling development.pptx
Use of mutants in understanding seedling development.pptxRenuJangid3
 
Stages in the normal growth curve
Stages in the normal growth curveStages in the normal growth curve
Stages in the normal growth curveAreesha Ahmad
 
Locating and isolating a gene, FISH, GISH, Chromosome walking and jumping, te...
Locating and isolating a gene, FISH, GISH, Chromosome walking and jumping, te...Locating and isolating a gene, FISH, GISH, Chromosome walking and jumping, te...
Locating and isolating a gene, FISH, GISH, Chromosome walking and jumping, te...Silpa
 
300003-World Science Day For Peace And Development.pptx
300003-World Science Day For Peace And Development.pptx300003-World Science Day For Peace And Development.pptx
300003-World Science Day For Peace And Development.pptxryanrooker
 
Module for Grade 9 for Asynchronous/Distance learning
Module for Grade 9 for Asynchronous/Distance learningModule for Grade 9 for Asynchronous/Distance learning
Module for Grade 9 for Asynchronous/Distance learninglevieagacer
 
Bhiwandi Bhiwandi ❤CALL GIRL 7870993772 ❤CALL GIRLS ESCORT SERVICE In Bhiwan...
Bhiwandi Bhiwandi ❤CALL GIRL 7870993772 ❤CALL GIRLS  ESCORT SERVICE In Bhiwan...Bhiwandi Bhiwandi ❤CALL GIRL 7870993772 ❤CALL GIRLS  ESCORT SERVICE In Bhiwan...
Bhiwandi Bhiwandi ❤CALL GIRL 7870993772 ❤CALL GIRLS ESCORT SERVICE In Bhiwan...Monika Rani
 
FAIRSpectra - Enabling the FAIRification of Spectroscopy and Spectrometry
FAIRSpectra - Enabling the FAIRification of Spectroscopy and SpectrometryFAIRSpectra - Enabling the FAIRification of Spectroscopy and Spectrometry
FAIRSpectra - Enabling the FAIRification of Spectroscopy and SpectrometryAlex Henderson
 
Zoology 5th semester notes( Sumit_yadav).pdf
Zoology 5th semester notes( Sumit_yadav).pdfZoology 5th semester notes( Sumit_yadav).pdf
Zoology 5th semester notes( Sumit_yadav).pdfSumit Kumar yadav
 
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune WaterworldsBiogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune WaterworldsSérgio Sacani
 
Pulmonary drug delivery system M.pharm -2nd sem P'ceutics
Pulmonary drug delivery system M.pharm -2nd sem P'ceuticsPulmonary drug delivery system M.pharm -2nd sem P'ceutics
Pulmonary drug delivery system M.pharm -2nd sem P'ceuticssakshisoni2385
 
Velocity and Acceleration PowerPoint.ppt
Velocity and Acceleration PowerPoint.pptVelocity and Acceleration PowerPoint.ppt
Velocity and Acceleration PowerPoint.pptRakeshMohan42
 
CURRENT SCENARIO OF POULTRY PRODUCTION IN INDIA
CURRENT SCENARIO OF POULTRY PRODUCTION IN INDIACURRENT SCENARIO OF POULTRY PRODUCTION IN INDIA
CURRENT SCENARIO OF POULTRY PRODUCTION IN INDIADr. TATHAGAT KHOBRAGADE
 
development of diagnostic enzyme assay to detect leuser virus
development of diagnostic enzyme assay to detect leuser virusdevelopment of diagnostic enzyme assay to detect leuser virus
development of diagnostic enzyme assay to detect leuser virusNazaninKarimi6
 
Proteomics: types, protein profiling steps etc.
Proteomics: types, protein profiling steps etc.Proteomics: types, protein profiling steps etc.
Proteomics: types, protein profiling steps etc.Silpa
 
Introduction of DNA analysis in Forensic's .pptx
Introduction of DNA analysis in Forensic's .pptxIntroduction of DNA analysis in Forensic's .pptx
Introduction of DNA analysis in Forensic's .pptxrohankumarsinghrore1
 
An introduction on sequence tagged site mapping
An introduction on sequence tagged site mappingAn introduction on sequence tagged site mapping
An introduction on sequence tagged site mappingadibshanto115
 
Chemistry 5th semester paper 1st Notes.pdf
Chemistry 5th semester paper 1st Notes.pdfChemistry 5th semester paper 1st Notes.pdf
Chemistry 5th semester paper 1st Notes.pdfSumit Kumar yadav
 
Factory Acceptance Test( FAT).pptx .
Factory Acceptance Test( FAT).pptx       .Factory Acceptance Test( FAT).pptx       .
Factory Acceptance Test( FAT).pptx .Poonam Aher Patil
 
GBSN - Microbiology (Unit 2)
GBSN - Microbiology (Unit 2)GBSN - Microbiology (Unit 2)
GBSN - Microbiology (Unit 2)Areesha Ahmad
 

Último (20)

Use of mutants in understanding seedling development.pptx
Use of mutants in understanding seedling development.pptxUse of mutants in understanding seedling development.pptx
Use of mutants in understanding seedling development.pptx
 
Stages in the normal growth curve
Stages in the normal growth curveStages in the normal growth curve
Stages in the normal growth curve
 
Locating and isolating a gene, FISH, GISH, Chromosome walking and jumping, te...
Locating and isolating a gene, FISH, GISH, Chromosome walking and jumping, te...Locating and isolating a gene, FISH, GISH, Chromosome walking and jumping, te...
Locating and isolating a gene, FISH, GISH, Chromosome walking and jumping, te...
 
300003-World Science Day For Peace And Development.pptx
300003-World Science Day For Peace And Development.pptx300003-World Science Day For Peace And Development.pptx
300003-World Science Day For Peace And Development.pptx
 
Module for Grade 9 for Asynchronous/Distance learning
Module for Grade 9 for Asynchronous/Distance learningModule for Grade 9 for Asynchronous/Distance learning
Module for Grade 9 for Asynchronous/Distance learning
 
Bhiwandi Bhiwandi ❤CALL GIRL 7870993772 ❤CALL GIRLS ESCORT SERVICE In Bhiwan...
Bhiwandi Bhiwandi ❤CALL GIRL 7870993772 ❤CALL GIRLS  ESCORT SERVICE In Bhiwan...Bhiwandi Bhiwandi ❤CALL GIRL 7870993772 ❤CALL GIRLS  ESCORT SERVICE In Bhiwan...
Bhiwandi Bhiwandi ❤CALL GIRL 7870993772 ❤CALL GIRLS ESCORT SERVICE In Bhiwan...
 
FAIRSpectra - Enabling the FAIRification of Spectroscopy and Spectrometry
FAIRSpectra - Enabling the FAIRification of Spectroscopy and SpectrometryFAIRSpectra - Enabling the FAIRification of Spectroscopy and Spectrometry
FAIRSpectra - Enabling the FAIRification of Spectroscopy and Spectrometry
 
Zoology 5th semester notes( Sumit_yadav).pdf
Zoology 5th semester notes( Sumit_yadav).pdfZoology 5th semester notes( Sumit_yadav).pdf
Zoology 5th semester notes( Sumit_yadav).pdf
 
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune WaterworldsBiogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
 
Pulmonary drug delivery system M.pharm -2nd sem P'ceutics
Pulmonary drug delivery system M.pharm -2nd sem P'ceuticsPulmonary drug delivery system M.pharm -2nd sem P'ceutics
Pulmonary drug delivery system M.pharm -2nd sem P'ceutics
 
Velocity and Acceleration PowerPoint.ppt
Velocity and Acceleration PowerPoint.pptVelocity and Acceleration PowerPoint.ppt
Velocity and Acceleration PowerPoint.ppt
 
CURRENT SCENARIO OF POULTRY PRODUCTION IN INDIA
CURRENT SCENARIO OF POULTRY PRODUCTION IN INDIACURRENT SCENARIO OF POULTRY PRODUCTION IN INDIA
CURRENT SCENARIO OF POULTRY PRODUCTION IN INDIA
 
development of diagnostic enzyme assay to detect leuser virus
development of diagnostic enzyme assay to detect leuser virusdevelopment of diagnostic enzyme assay to detect leuser virus
development of diagnostic enzyme assay to detect leuser virus
 
Proteomics: types, protein profiling steps etc.
Proteomics: types, protein profiling steps etc.Proteomics: types, protein profiling steps etc.
Proteomics: types, protein profiling steps etc.
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Introduction of DNA analysis in Forensic's .pptx
Introduction of DNA analysis in Forensic's .pptxIntroduction of DNA analysis in Forensic's .pptx
Introduction of DNA analysis in Forensic's .pptx
 
An introduction on sequence tagged site mapping
An introduction on sequence tagged site mappingAn introduction on sequence tagged site mapping
An introduction on sequence tagged site mapping
 
Chemistry 5th semester paper 1st Notes.pdf
Chemistry 5th semester paper 1st Notes.pdfChemistry 5th semester paper 1st Notes.pdf
Chemistry 5th semester paper 1st Notes.pdf
 
Factory Acceptance Test( FAT).pptx .
Factory Acceptance Test( FAT).pptx       .Factory Acceptance Test( FAT).pptx       .
Factory Acceptance Test( FAT).pptx .
 
GBSN - Microbiology (Unit 2)
GBSN - Microbiology (Unit 2)GBSN - Microbiology (Unit 2)
GBSN - Microbiology (Unit 2)
 

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)))