Question: Suppose that a CS student wants to encode events taking place in an ice - hockey game to a string using alphabet Gamma =
Suppose that a CS student wants to encode events taking place in an icehockey game to a string
using alphabet Gamma a b c x y where
a b c stnd and rd wing of the home team enters the ice
stnd and rd wing of the visiting team enters the ice
x home team scores
y visitor scores
end of period
For simplicity, we assume that only full wings can be changed, which takes place when the game
is paused ie individual players cannot change at anytime Valid strings include exactly two
delimiters to indicate the end of the st and nd period. The game ends when the string ends, ie
there is no final symbol. Moreover, at the start of each period both teams must put some wing
on ice, ie each period starts with two symbols of which one is from a b c and the other from
in either order After that wings can change and both teams can score. Hence, eg
abaxc is a valid yet short string corresponding to a game that home team won
a Let A denote the language corresponding to all valid strings, ie entries that are correctly
recorded. Show that A is a regular language. Hint: give first a RE for one period.
b Let B denote those interesting games where at no point in time either team leads by more than
goal. Is B regular or nonregular? Argue why!
c Plusminus statistic is an often used performance metric: a goal means for the wing, and
when opponent scores the wing on ice receives Let C denote the games where home teams
st wing has a positive plusminus statistic. Show that C is contextfree.
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
