Skip to search boxSkip to navigationSkip to main content

Dynamic Nested Brackets

  • Lund University
Research Output:
Book / Anthology / Report
Report

Open access

Publication Information

Output type

Research Output:
Book / Anthology / Report
Report

Original language

English

Publication milestones

  • Published - 11/2001

Publication status

Published - 11/2001

Place of publication

Copenhagen

Edition

TR-2001-9

Publisher

IT-Universitetet i København, Denmark

Book series

  • Book series name: IT University Technical Report Series
    Series number: TR-2001-9
    ISSN: 1600-6100

ISBN (Electronic)

87-7949-012-3

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).

Access to documents

Final published version, 84.65 KB