in Theory of Computation
566 views
1 vote
1 vote
if x=10 and y= 1010

x is a proper prefix of y

if x =11 and y = 101101

is x a proper prefix of y?? or is it only a substring

proper prefixes must contain from the zeroth element and not just any part in between?
in Theory of Computation
by
566 views

2 Answers

0 votes
0 votes
Best answer
If y=101101

then its proper prefixes are

λ,1,10,101,1011,10110

x is a prefix of y if xz=y and x is not equal to y.

No, x is not a proper prefix of y.

It is a substring.

substring is any consecutive symbols taken from a string.
selected by

2 Comments

thank you :)
0
0
welcome :)
0
0
0 votes
0 votes
No its not proper prefix of y