Dynamic Nested Brackets

Stephen Alstrup, Theis Rauhe, Thore Husfeldt

Research output: Book / Anthology / ReportReportResearch

Abstract

We consider the problem of maintaining a string of brackets like (()(()))of length n under a single operation reverse(i). The operation reverse(i)  changes the the letter from '(' to) ` ' or vice versa, and returns `yes' if and only if the updated string is balanced.
We give lower and upper bounds showing that the complexity of reverse(i) is (-)(log n/loglog n).
Original languageEnglish
Place of PublicationCopenhagen
PublisherIT-Universitetet i København
EditionTR-2001-9
Number of pages8
ISBN (Electronic)87-7949-012-3
Publication statusPublished - Nov 2001
Externally publishedYes
SeriesIT University Technical Report Series
NumberTR-2001-9
ISSN1600-6100

Fingerprint

Dive into the research topics of 'Dynamic Nested Brackets'. Together they form a unique fingerprint.

Cite this