World's most popular travel blog for travel bloggers.

[Solved]: Is there a known method for constructing a grammar given a finite set of finite strings?

, , No Comments
Problem Detail: 

From my reading it seems that most grammars are concerned with generating an infinite number of strings. What if you worked the other way around?

If given n strings of m length, it should be possible to make a grammar that will generate those strings, and just those strings.

Is there a known method for doing this? Ideally a technique name I can research. Alternatively, how would I go about doing a literature search to find such a method?

Asked By : Gustav Bertram

Answered By : D.W.

Best Answer from StackOverflow

Question Source : http://cs.stackexchange.com/questions/53279

0 comments:

Post a Comment

Let us know your responses and feedback