COSC261-17S1 (C) Semester One 2017

Formal Languages and Compilers

15 points, 0.1250 EFTS
20 Feb 2017 - 25 Jun 2017

Description

This course deals with fundamental concepts and techniques in computer science. It covers automata, formal languages, compilers, computability and complexity theory.

We will cover topics from the following list:
• finite automata and regular expressions
• pushdown automata and context-free grammars
• Turing machines and recursively enumerable languages
• undecidability and the halting problem
• complexity classes and the P=NP problem
• lexical analysis and scanners
• syntactic analysis and parsers
• semantic analysis and optimisation
• code generation

Learning Outcomes

After successful completion of this course, students are able to:

  • differentiate formal languages at the various levels of the Chomsky hierarchy,
  • compare the expressiveness of different kinds of automata,
  • apply conversions between languages, automata, regular expressions and grammars,
  • separate undecidable, inefficiently decidable and efficiently decidable problems,
  • use familiar techniques to generate automata and grammars for unfamiliar languages,
  • outline the structure of compilers,
  • analyse the lexical and syntactic structure of programs,
  • use regular expressions and context-free grammars for constructing compilers,
  • produce recursive-descent parsers, and
  • change components of a compiler to deal with new program constructs.

Pre-requisites

Restrictions

COSC202, COSC222

Timetable 2017

Students must attend one activity from each section.

Lecture A
Activity Day Time Location Weeks
01 Monday 12:00 - 13:00 A2 Lecture Theatre 20 Feb - 9 Apr
1 May - 4 Jun
Lecture B
Activity Day Time Location Weeks
01 Wednesday 09:00 - 10:00 A2 Lecture Theatre 20 Feb - 9 Apr
1 May - 4 Jun
Lecture C
Activity Day Time Location Weeks
01 Friday 14:00 - 15:00 A2 Lecture Theatre 20 Feb - 9 Apr
1 May - 4 Jun
Computer Lab A
Activity Day Time Location Weeks
01 Thursday 15:00 - 17:00 Erskine 131 Lab 1 (23/2-6/4, 4/5-1/6)
Erskine 240 (23/2-6/4, 4/5-1/6)
20 Feb - 9 Apr
1 May - 4 Jun
02 Monday 15:00 - 17:00 Erskine 136 Lab 4 (20/2-3/4, 1/5-29/5)
Erskine 445 (20/2-3/4, 1/5-29/5)
20 Feb - 9 Apr
1 May - 4 Jun
03 Tuesday 09:00 - 11:00 Erskine 131 Lab 1 (21/2-4/4, 2/5-30/5)
Erskine 121 (21/2-4/4, 2/5-30/5)
20 Feb - 9 Apr
1 May - 4 Jun
04 Tuesday 11:00 - 13:00 Erskine 101 (21/2-4/4, 2/5-30/5)
Erskine 131 Lab 1 (21/2-4/4, 2/5-30/5)
20 Feb - 9 Apr
1 May - 4 Jun
05 Thursday 09:00 - 11:00 Erskine 136 Lab 4 (23/2-6/4, 4/5-1/6)
Erskine 111 (23/2-6/4, 4/5-1/6)
20 Feb - 9 Apr
1 May - 4 Jun

Examination and Formal Tests

Test A
Activity Day Time Location Weeks
01 Monday 18:30 - 20:00 Erskine 134 Lab 3 (27/3)
Erskine 001 Crypt 1 (27/3)
Erskine 010 Crypt 2 (27/3)
Erskine 136 Lab 4 (27/3)
Erskine 131 Lab 1 (27/3)
Erskine 133 Lab 2 (27/3)
27 Mar - 2 Apr

Timetable Note

Depending on final student numbers, some of the advertised lab/tutorial streams may not run. Final lab/tutorial options will be available for self-allocation closer to the start of the semester through My Timetable.

Course Coordinator / Lecturer

Walter Guttmann

Lecturer

Kourosh Neshatian

Assessment

Assessment Due Date Percentage 
Quizzes 15%
Assignment Superquiz 10%
Lab Test 15%
Final Exam 60%

Textbooks

No textbooks are required, but see the following book for additional information:
• Carol Critchlow and David Eck; Foundations of Computation; version 2.3.1, 2011, available here

More advanced or comprehensive books are:
• Michael Sipser; Introduction to the Theory of Computation; third edition, Cengage Learning, 2013
• John Hopcroft, Rajeev Motwani and Jeffrey Ullman; Introduction to Automata Theory, Languages and Computation; Pearson, 2006
• Dexter Kozen; Automata and Computability; Springer, 1997
• Reinhard Wilhelm and Dieter Maurer; Compiler Design; Addison-Wesley, 1995
• Niklaus Wirth; Compiler Construction; Addison-Wesley, 1996
• Alfred Aho, Monica Lam, Ravi Sethi and Jeffrey Ullman; Compilers: Principles, Techniques, and Tools; second edition, Pearson, 2007

Notes

There are several important documents available online about departmental regulations, policies and guidelines at the following site. We expect all students to be familiar with these.

Notices about this class will be posted to the class forum in the Learn system.

COSC students will also be made members of a class called “CSSE Notices”, where general notices will be posted that apply to all classes (such as information about building access or job opportunities).

Additional Course Outline Information

Grade moderation

The Computer Science department's grading policy states that in order to pass a course you must meet two requirements:
1. You must achieve an average grade of at least 50% over all assessment items.
2. You must achieve an average mark of at least 45% on invigilated assessment items.
If you satisfy both these criteria, your grade will be determined by the following University- wide scale for converting marks to grades: an average mark of 50% is sufficient for a C- grade, an average mark of 55% earns a C grade, 60% earns a B- grade and so forth. However if you do not satisfy both the passing criteria you will be given either a D or E grade depending on marks. Marks are sometimes scaled to achieve consistency between courses from year to year.

Students may apply for special consideration if their performance in an assessment is affected by extenuating circumstances beyond their control.

Applications for special consideration should be submitted via the Examinations Office website within five days of the assessment.

Where an extension may be granted for an assessment, this will be decided by direct application to the Department and an application to the Examinations Office may not be required.

Special consideration is not available for items worth less than 10% of the course.

Students prevented by extenuating circumstances from completing the course after the final date for withdrawing, may apply for special consideration for late discontinuation of the course. Applications must be submitted to the Examinations Office within five days of the end of the main examination period for the semester.

Fees

Domestic fee $817.00

International fee $3,525.00

For further information see Computer Science and Software Engineering.

All COSC261 Occurrences

  • COSC261-17S1 (C) Semester One 2017