Question: Exercise 3 5 Skyline language The pen of a plotter moves on a grid. If it currently is at a point p = ( x
Exercise Skyline language
The pen of a plotter moves on a grid. If it currently is at a point then it accepts
three different commands: upwardsdownwards and right The pen will move to the point
or respectively and draws a line from to Initially, the pen is
at the origin
A word over the alphabet represents a sequence of commands and therefore a line. For
example, the word ururdddru represents the line
a A line is a Skyline, if it
does not visit any point twice,
only visits points with and
ends at a points with
In particular, the empty word and the example given above are not Skylines.
Examples for Skylines:
Give a context free grammar which generates all sequences of commands that represent Skylines.
Briefly explain why all words that are generated by your grammar satisfy the three conditions.
b Show that the set of Skyline words is not regular.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
