Recursive Definition of Well-Balanced Parentheses

  • Thread starter Thread starter EvLer
  • Start date Start date
  • Tags Tags
    Definition
EvLer
Messages
454
Reaction score
0
Can someone check this problem, please?

problem:
give a recursive definition for the set of strings of well-balanced parentheses:

my solution:
1. a set of single parentheses ()
2. nesting of strings already in the set
3. any concatenation of the strings already in the set

thanks in advance.
 
Physics news on Phys.org
Well, this is alright except for 2. What exactly is a "nesting of strings already in the set"? You have be more specific. You can make it more formal by saying
1. () is in the set
2. if B is in the set, then __ is in the set
3. if A and B are in the set, then AB is in the set
 
do I just say "(B)", i was not sure that is "formal" enough.
 
Sure, that's plenty formal. It means that if the string B is in the set, then if you concatenate the strings (, B, and ), the result will also be in the set.
 
Prove $$\int\limits_0^{\sqrt2/4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx = \frac{\pi^2}{8}.$$ Let $$I = \int\limits_0^{\sqrt 2 / 4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx. \tag{1}$$ The representation integral of ##\arcsin## is $$\arcsin u = \int\limits_{0}^{1} \frac{\mathrm dt}{\sqrt{1-t^2}}, \qquad 0 \leqslant u \leqslant 1.$$ Plugging identity above into ##(1)## with ##u...
Back
Top