I am working on a project that my professor asked.
I need an algoritm to create a fsa for strings
takes this sentences: "ali goes to school"
and create a graph like this
the graphical part of drawing a chart like this is not important.
the question is how can I create this.
this project is for a lesson named "The Formal Languages & Automata".
Professor wnats a peogram that take some strings from a text file and draw a common fsa for them, a fsa that all of strings in that file can be parsed with taht.
I need a serious help. so please share your knowledge with me