Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
969 views2 pages

CT111-3-2 COMT Assignment

This document outlines an individual assignment on computing theory consisting of two parts. Part A involves designing automata like NFA and DFA, and generating regular expressions to model programming language constructs. Part B examines complexity analysis and decidability problems related to code snippets. Students must submit documentation and references for their own original work. Plagiarism will not be accepted.

Uploaded by

Ellie Ng
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
969 views2 pages

CT111-3-2 COMT Assignment

This document outlines an individual assignment on computing theory consisting of two parts. Part A involves designing automata like NFA and DFA, and generating regular expressions to model programming language constructs. Part B examines complexity analysis and decidability problems related to code snippets. Students must submit documentation and references for their own original work. Plagiarism will not be accepted.

Uploaded by

Ellie Ng
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

Computing Theory Individual Assignment Page 1 of 2

The coursework is 50% of the assessment for the module.

Learning Outcomes

Design automata to generate regular expressions for specified languages.


Demonstrate complexity and decidability of problems.

Assessment Criteria

IMPORTANT: This is an individual 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 number of constructs for


iterations, which would allow for parts of the code to be executed for a number of cycles.
Choose a programming language that supports iterations, and specify the chosen iteration
construct. Provide a citation to the authorized reference for that language.
i) Design a Non-deterministic Finite Automata (NFA) for the chosen iteration
construct.
[5 Marks]
ii) Provide the corresponding quintuple and state transition table for the NFA.
[5 Marks]
iii) Convert the NFA to an appropriate DFA by showing all the conversion steps.
Remember that the DFA should cover all the input alphabet for the language.
[10 Marks]
iv) Generate the related Regular Expression from the DFA, showing all the steps in the
conversion process.
[5 Marks]

Asia Pacific University of Technology and Innovation 2019


Computing Theory Individual Assignment Page 2 of 2

PART B: Complexity & Decidability

i) Specify a short snippet of a program code that employs the construct from Part A,
indicating the complexity for each line of the code snippet.
[5 Marks]
ii) Using the snippet, demonstrate the complexities for the Best Case and Worst Case
scenarios.
[5 Marks]
iii) Modify the code snippet so that its complexity would be significantly increased.
Explain the new complexity.
[5 Marks]

iv) Discuss the Computability of the snippet, providing sufficient justification for your
explanation.
[5 Marks]
v) Explain how the Decidability of the code snippet can be determined.
[5 Marks]

Deliverables

You are required to submit:

Documentation (hardcopy)
1. Cover page
2. Results (Part A, B)
3. References

CD Content (softcopy)
1. Documentation report (.docx/.doc/.rtf)

WARNING:
This is an individual assignment. Therefore, although discussions may take place,
each student should produce original work. Plagiarism will not be condoned.

Asia Pacific University of Technology and Innovation 2019

You might also like