I need an algorithm that can recognize words (based on a dictionary) in a sequence of characters without spaces.
let's say, for example, the sequence: it is
spaceless,
it must recognize space and less.
and there may be situations where more words can be recognized. it’s hard to give such an example, but I will try:
example: spaceslight
recognized words: space and light (1)
recognized words: spaces and light (2)
so that the algorithm can also find such options.
source
share