Professional Documents
Culture Documents
Sabourin
=
0
+1
+1
Brackets
(a)
(a(a)a),(a)a(a)
(a(a(a)a)a),(a(a)a(a)a),(a)a(a(a)a),(a)a(a)a(a),
(a(a)a)a(a)
Binary Trees
Polygon Triangles
Dyck Paths
1.
2.
3.
For multiple switches, start from the right and move left.
Additional switches can only switch with values to the left
of what has already been switched and to the right of itself
(i.e. switch lines cant cross):
4.
5.
1.
2.
3.
1.
2.
3.
4.
5.
zero switches: 1
1 3
=2
zero switches: 1, one switch: 1
2 4
1 3 5
=3
zero switches: 1, one switch: 3,
2 4 6
two switches: 1
1 3 5 7
=4
zero switches: 1, one switch: 6,
2 4 6 8
two switches: 6, three switches: 1
1 3 5 7 9
=5
zero switches: 1, one switch: 10,
2 4 6 8 10
two switches: 20, three switches: 10, four switches: 1
=1
n/w
,
=
10
20
10
15
50
50
15
21
105
175
105
21
14
14
42
42
132
132
429
429
Patterns:
1. , = , +1
1
2. =
=0 ,
Relationships:
1. ,0 = 1
2.
,1 =
3.
,2 =
1
2
1 2 2
12
1
Suppose: , = +1
Check Patterns:
1
1.
, = +1
2.
1
=0 ,
1
1 > 0
1
1
1
= + 1
= , +1
( + 1)
1
1
1
1 1
1
=
=0 +1
=0 + 1
+1
2
1
2 1
2 1
2 1
2
=
=
=
+1
1
+1
+1
1
Therefore both patterns are satisfied, , = +1
1
is true, and
1.
, = 1,
2.
, = ,1
3.
, =
1
+1
2 > 0
+1
2 >
+1
1
1,1 +1 2 > 1