Algorithms and Data Structures 2003: Lab Exercises and Tests

Note: access to solutions linked from here will be withdrawn during periods when similar exercises may be set as lab work or coursework in courses currently taught at Queen Mary.

Weekly lab exercises

  • Week 2 with solutions available here.
  • Week 3 with solutions available here.
  • Week 4 with solutions available here.
  • Week 5 with solutions available here.
  • Week 6 with solutions (showing several different techniques) here.
  • Week 7 with solutions available here.
  • Week 8 with solutions (showing several different techniques) available here.
  • Week 9 No labsheet this week. Work on last year's first term-time test (with solutions here), or May exam
  • Week 10 with solutions available here.
  • Week 11 with solutions available here.
  • Week 12 with solutions available here.

    Last year's second term-time test can be found here with answers here.
    This year's only term-time test can be found here with solutions, results and some comment here.

    Note that where solutions are given, they will include supporting code which will allow you to test the method. Please note that under examination conditions, if you are asked to write a method to do something you should write just that method (and possibly auxiliary methods which you define yourself to make it work), and not the supporting code. No exam question will ask or expect you to write the main method which starts off execution of a Java program, or code to prompt a human user to type anything or code to display any results to a human user.


    Matthew Huntbach
    Last modified: 15 August 2007