Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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.
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
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started