A train starts with an engine and ends with a caboose. In between the engines and the caboose there are zero or more carriages.
A two-engined-train has two engines in front else there is one engine in front.
Express the possible sequences of trains using the XBNF notation and the given symbols:
Very short and simple but hides the difference between one
and two engined trains.
Solution 2
More complex but has all the terms in the problem.
Solution 3
Shows the structure well but not the terminology.
Short.
Solution 3
New Exercise 1
Suppose the second train.... if it exists is after the last carriage
and before the caboose.
New Exercise 2
Suppose the second train.... if it exists is after the last carriage
and before the caboose. Also each carriage is refrigerated or not
refrigerated.
Glossary