Hi,
Let w=abb then w^R (i.e. reverse of w ) = bba.
The problem is that how can we recognize the middle point of abbbba. Left part = abb and right part = bba. Both the parts have same symbols. So how will we know that the left part has ended and the right part has started? We can't use a sentinel while reading the left part because we don't know when the left part would end. If we know we can put a special character to differentiate between the two parts.
Kindly guide me how to solve this problem.
Zulfi.
Let w=abb then w^R (i.e. reverse of w ) = bba.
The problem is that how can we recognize the middle point of abbbba. Left part = abb and right part = bba. Both the parts have same symbols. So how will we know that the left part has ended and the right part has started? We can't use a sentinel while reading the left part because we don't know when the left part would end. If we know we can put a special character to differentiate between the two parts.
Kindly guide me how to solve this problem.
Zulfi.