程序代写代做代考 C Haskell 11/9/2020 Grok | COMP30026 Practice Exam

11/9/2020 Grok | COMP30026 Practice Exam
Queson 8 Part C (3 marks)
Queson 8 Part C (3 marks)
Give an example of two finite languages, and , over alphabet , for which .
Instrucons
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 ,ε{