首页> 外文会议>2011 3rd International Conference on Computer Research and Development >Ranking and unranking of well-formed parenthesis strings in diverse representations
【24h】

Ranking and unranking of well-formed parenthesis strings in diverse representations

机译:在各种表示形式中对格式良好的括号字符串进行排名和取消排名

获取原文

摘要

Well-formed parenthesis (w.f.p.) strings can be represented by different types of integer sequences including P-sequences, X-sequences, and T-sequences. In this paper, we introduce a new class of sequences called L-sequences which comes from the so-called RD-sequences for representing k-ary trees. We then search out the relationships among these representations and deal with the problems of ranking and unranking of w.f.p. strings in lexicographic order under these diverse representations. A result shows that the ranking and unranking of w.f.p. strings can be done in O(n) time for all such representations, where n is the number of pairs of balanced parentheses.
机译:格式正确的括号(w.f.p.)字符串可以用不同类型的整数序列表示,包括P序列,X序列和T序列。在本文中,我们介绍了一类称为L序列的新序列,该序列来自于表示k元树的所谓RD序列。然后,我们搜索这些表示之间的关系,并处理w.f.p的排名和取消排名问题。在这些不同的表示形式下,按字典顺序排列的字符串。结果显示w.f.p的排名和排名。对于所有此类表示形式,字符串都可以在O(n)时间内完成,其中n是平衡括号对的数量。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号