Recursive Definition of Well-Balanced Parentheses

  • Thread starter Thread starter EvLer
  • Start date Start date
  • Tags Tags
    Definition
Click For Summary

Homework Help Overview

The discussion revolves around defining a recursive set of well-balanced parentheses. Participants are exploring the formalization of the recursive definition and its components.

Discussion Character

  • Conceptual clarification, Mathematical reasoning

Approaches and Questions Raised

  • Participants are attempting to clarify the definition of "nesting" in the context of well-balanced parentheses. Questions arise about the formality of the proposed definitions and the specific structure of the recursive rules.

Discussion Status

Some participants are providing guidance on how to formalize the recursive definition, while others are questioning the clarity and specificity of the terms used. Multiple interpretations of the nesting concept are being explored.

Contextual Notes

There is a focus on ensuring that the definitions are precise and formal, with an emphasis on the structure of the recursive rules. Participants are considering the implications of their definitions on the set of well-balanced parentheses.

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.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 11 ·
Replies
11
Views
1K
Replies
6
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 11 ·
Replies
11
Views
2K
Replies
1
Views
977
  • · Replies 2 ·
Replies
2
Views
929