前缀集:prefix set

原文地址

Let X be a set, and wX be a word, i.e. an element of the free monoid on X . A word vX is called prefix of w when a second word zX exists such that x=vz . A proper prefix of a word u is a prefix v of u not equal to u (sometimes v is required to be non-empty).
Note that the empty word ε and w are prefix of w, and a proper prefix of w if w is non-empty.
The prefix set of w is the set pref(w) of prefixes of w , i.e. if w=w1w2...wn with wjX for each j1,...,n we have

pref(w)=ε,w1,w1w2,...,w1w2...wn1,w.
Some closely related concepts are:
1. A set of words is prefix closed if for every word in the set, any of its prefix is also in the set.
2. The prefix closure of a set S is the smallest prefix closed set containing S, or, equivalently, the union of the prefix sets of words in S.
3. A set S is prefix free if for any word in S, no proper prefixes of the word are in S.


This text is available under the Creative Commons Attribution/Share-Alike License 3.0. You can reuse this document or portions thereof only if you do so under terms that are compatible with the CC-BY-SA license.

评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值