Dynamic nested brackets

Forskningsoutput: TidskriftsbidragArtikel i vetenskaplig tidskrift

Abstract

We consider the problem of maintaining a string of n brackets '('or')' under the operation reverse(i) that changes the ith bracket from '('to')' or vice versa, and returns 'yes' if and only if the resulting string is properly balanced. We show that this problem can be solved on the RAM in time O(log n/log log n) per operation using linear space and preprocessing. Moreover, we show that this is optimal in the sense that every data structure supporting reverse (no matter its space and preprocessing complexity) needs time Omega(Iog n/log log n) per operation in the cell probe model. (C) 2004 Elsevier Inc. All rights reserved.

Detaljer

Författare
Forskningsområden

Ämnesklassifikation (UKÄ) – OBLIGATORISK

  • Datavetenskap (datalogi)
Originalspråkengelska
Sidor (från-till)75-83
TidskriftInformation and Computation
Volym193
Utgivningsnummer2
StatusPublished - 2004
PublikationskategoriForskning
Peer review utfördJa