Determine the longest string which is described by the given Directed Acyclic Word Graph.

Category: QuestionsDetermine the longest string which is described by the given Directed Acyclic Word Graph.
Editor">Editor Staff asked 2 months ago

Determine the longest string which is described by the given Directed Acyclic Word Graph.
 
(a) BATS
 
(b) BOATS
 
(c) BOT
 
(d) BAT
 
I’d like to ask this question from Propositional and Directed Acyclic Word Graph in chapter Graph of Data Structures & Algorithms I
 
The question was asked during an internship interview.

1 Answers
Editor">Editor Staff answered 2 months ago

The correct option is (a) BATS
 
The best I can explain: Starting from the initial state and choosing B, A, T, S respectively.