Please use this page as your cover sheet when handing in your work. One page must be submitted for each member of the group. You must retain this sheet as proof of your marks in case there are any queries when checking your class record.
Copies of the prac sheet and this cover sheet are also available on the web site for the course, at http://www.cs.ru.ac.za/courses/CSc301/Translators/
Unless otherwise specified, your submission is due before 2.00 pm on the day of your next practical session.
SURNAME (not first name, please): _____________________ Student Number: __________
Mark Awarded: _____________ Signature of Marker: __________________
SURNAMES of Group Members (NOT first names, please): ________________________________________________
Folder in which the electronc submission has been made ______________________________________________
Other people with whom you collaborated (you need not give the names of tutors):
DECLARATION
Signature _____________________________________________ Date _____________________
.-----------------------------------------------------------------------------------. | | Sieve | Queens | Empty | | | | Code Size | Code Size | Code Size | | | | | | | | | Free Pascal | | | | Sieve limit | |-----------------+-------------+-------------+-------------+-----------------------| | Optimized | | | | | | Free Pascal | | | | Sieve limit | |-----------------+-------------+-------------+-------------+-----------------------| | Modula-2 | | | | Sieve limit | |-----------------+-------------+-------------+-------------+-----------------------| | Optimized M-2 | | | | Sieve limit | |-----------------+-------------+-------------+-------------+-----------------------' | Borland C | | | | |-----------------+-------------+-------------+-------------| | Borland C++ | | | | |-----------------+-------------+-------------+-------------| | Watcom C | | | | |-----------------+-------------+-------------+-------------| | Watcom C++ | | | | |-----------------+-------------+-------------+-------------| | C# | | | | |-----------------+-------------+-------------+-------------+-----------------------. | Parva | N/A | N/A | N/A | Sieve limit | |-----------------+-------------+-------------+-------------+-----------------------' | Modula-2 via | | | | | Borland C | | | | `-----------------------------------------------------------' Remember to comment on the differences, and on the maximum sieve size . How many solutions are there to the N Queens problem? Do you see a trend? 2 3 4 5 6 7 8 9 10 11 12 .---------------------------------------------------------------------------------------. | | | | | | | | | | | | `---------------------------------------------------------------------------------------' Time taken to execute the Sieve program and the Queens programs .-------------------------------------------------------------------. | Sieve: Number of iterations | Size of sieve | |----------------------------------------+--------------------------| | Queens: Number of iterations | Board Size | |----------------------------------------+--------------------------| | | Sieve | Queens | Queens1 | |--------------------------+-------------+-------------+------------| | Free Pascal | | | | | | | | | |--------------------------+-------------+-------------+------------| | Free Pascal (optimized) | | | | | | | | | |--------------------------+-------------+-------------+------------| | Modula-2 | | | | | | | | | |--------------------------+-------------+-------------+------------| | Modula-2 (optimized) | | | | | | | | | |--------------------------+-------------+-------------+------------| | C# | | | | | | | | | |--------------------------+-------------+-------------+------------| | Java (with JIT) | | | | | | | | | |--------------------------+-------------+-------------+------------| | Java -Xint - interpret | | | | | | | | | |--------------------------+-------------+-------------+------------| | Parva | | | | | | | | | |--------------------------+-------------+-------------+------------| | Parva (optimized) | | | | | | | | | `-------------------------------------------------------------------'