Uploaded by wai jie Ng

Assignment

advertisement
Computing Theory
Assignment
Page 1 of 2
The coursework is 50% of the assessment for the module.
Learning Outcomes
1
2
Demonstrate the working of automata to generate regular
expressions for specified languages(C3,PLO7)
Demonstrate complexity and computability of
problems(A3,PLO9)
Part A
Part B
Assessment Criteria
IMPORTANT: This is a group assignment. All submitted components must be your
own work or appropriately accredited.
Referencing:
If you use ideas from external sources, e.g. books / magazines / internet
/ forums, then proper citation should be done using the Harvard Name
convention within your solution. Failure to reference design / ideas
properly is considered as plagiarism.
Tasks
PART A: Automata
Most programming languages would support a number of constructs for iterations
(loops). Choose a programming language that supports the above, and specify the chosen
programming language and the iteration construct (the command used to perform the
iteration). Design a Non-deterministic Finite Automata (NFA) for the syntax of the
chosen construct.
[10 Marks]
i)
Provide the corresponding quintuple and state transition table for the NFA.
[10 Marks]
ii) Generate the related Regular Expression from the NFA, showing all the steps in
the conversion process.
[10 Marks]
Guideline: Length approximately 200 words.
Asia Pacific University of Technology and Innovation
2022
Computing Theory
Assignment
Page 2 of 2
Deliverables (Part – A)
You are required to submit:
Documentation (hardcopy)
1. Cover page
2. Results
3. References
Tasks
PART B: Complexity
i)
Specify a short snippet of a program code that employs the construct from Part A,
indicating the Best Case and Worst Case complexities of the code snippet.
[10 Marks]
ii) Discuss the Computability of the snippet, providing sufficient justification for your
explanation.
[10 Marks]
Guideline: Length approximately 200 words.
Deliverables
You are required to submit:
Documentation (hardcopy)
1. Marksheet (1 page)
2. Cover page
3. Results (Part A, B)
4. References
Asia Pacific University of Technology and Innovation
2022
Download