Publication | Closed Access
Uniform Random Generation of Balanced Parenthesis Strings
36
Citations
2
References
1980
Year
EngineeringPseudo-random SequenceComputational ComplexitySoftware AnalysisFormal VerificationEmpirical TestingString-searching AlgorithmString ProcessingComputer EngineeringProbability TheoryComputer ScienceUniform Random GenerationAutomated RepairPseudorandom Number GeneratorError Repair SchemesProgram AnalysisSoftware TestingFormal MethodsProgram SynthesisSymbolic ExecutionBalanced Parenthesis Strings
The empirical testing of error repair schemes for skeletons of source programs in a block-structured language leads to the problem of generating balanced parenthesis strings in a uniform random manner. An efficient generator which works from left to right must compute the correct probability for the next symbol at each stage of the generation. The associated enumeration problem may be solved by adopting a geometric interpretation usually associated with random walk problems. This solution leads immediately to an O ( n ) algorithm for the generator.
| Year | Citations | |
|---|---|---|
Page 1
Page 1