11/9/2020 Grok | COMP30026 Practice Exam
Ques on 8 Part C (3 marks)
Ques on 8 Part C (3 marks)
Give an example of two finite languages, and , over alphabet , for which .
Instruc ons
Expressyouranswerwithtwolistsofstrings,languageL :: [String]andlanguageM :: [String].
Format:
To represent a finite language as a Haskell expression of type [String], include each
of the language’s strings in the list. You may list the strings in any order. Forexample,thefinitelanguage couldberepresentedas[“”, “a”,
“b”, “abba”].
https://groklearning.com/learn/unimelb-comp30026-2020-s2/prac-exam/22/
1/1
Cheng
}b ,a{ = Σ M L
∗)M ∖ L( ⊈ )∗ M ∖ ∗L(
}abba ,b ,a ,ε{