Journal Volumes


Visitors
ALL : 2,315,973
TODAY : 9,273
ONLINE : 1,114

  JOURNAL DETAIL



Ranking and Unranking of Well-formed Parenthesis String: A Unified Approach


Paper Type 
Contributed Paper
Title 
Ranking and Unranking of Well-formed Parenthesis String: A Unified Approach
Author 
Ro-yu Wu,Jou-Ming Chang, An-Hang Chen and Chun-Liang Liu
Email 
spade@mail.ntcb.edu.tw
Abstract:

                A string s of length 2n is called a well-formed parenthesis string (w.f.p. string for short), if it consists of n left parentheses than left parentheses. W.f.p. strings are represented in the literature by different types of integer sequences including P-, X-, and T-sequences. In this paper, we introduce a new class of sequences, called L-sequences, which originates from the so-called RD-sequences for representing k-ary trees and their generalization, called  non-regular trees. This paper deals with the ranking and unranking of w.f.p. strings in lexicographic order under these representations. We give linear-time transformations between L-sequences and other type of sequences, and design linear time ranking and unranking algorithms for all these sequence types.

Start & End Page 
648 - 659
Received Date 
2011-06-20
Revised Date 
Accepted Date 
2012-04-27
Full Text 
  Download
Keyword 
ranking algorithms, unranking algorithms, well-formed parenthesis strings, lexicographic order
Volume 
Vol.39 No.4 (OCTOBER 2012)
DOI 
Citation 
Wu R., Chang J., Chen A. and Liu C., Ranking and Unranking of Well-formed Parenthesis String: A Unified Approach, Chiang Mai J. Sci., 2012; 39(4): 648-659.
SDGs
View:557 Download:236

Search in this journal


Document Search


Author Search

A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z

Popular Search






Chiang Mai Journal of Science

Faculty of Science, Chiang Mai University
239 Huaykaew Road, Tumbol Suthep, Amphur Muang, Chiang Mai 50200 THAILAND
Tel: +6653-943-467




Faculty of Science,
Chiang Mai University




EMAIL
cmjs@cmu.ac.th




Copyrights © Since 2021 All Rights Reserved by Chiang Mai Journal of Science