Current Topics in HCI - Winter Semester 2004/2005

Assignment 7 - Matrices
Due on Thursday, December 16, 2004 during class

Description

In the last lecture, we talked about how to use matrices to represent state transitions. In this assignment, you will work through a simple example.

Task

Let's say we have a TV with three channels, 1 to 3 (we will use only three channels for simplicity). The TV's remote has two buttons (CH_UP and CH_DOWN) for cycling through the channels in both directions. It also has 3 buttons for jumping to a specific channel directly.

  1. Draw a state diagram of the TV's channels, labelling all of the interconnections appropriately.
  2. Recall that state transitions can be represented by the matrix formula s' = sB. What is s for each of the three channels?
  3. Write the matrix B for each of the five buttons (CH_UP, CH_DOWN, 0, 1, 2).
  4. Show, using matrix algebra, that CH_UP is the "undo" for CH_DOWN and vice versa.
  5. Is it possible to "undo" the state transition from pressing the 0, 1 and 2 buttons? Write the matrices or prove that they do not exist.

Extra Credit: Suppose now your TV has 99 channels. In addition to the CH_UP and CH_DOWN buttons, you have a numerical keypad with keys 0 to 9 for jumping to any channel. Channels are always input as two digit numbers (i.e. 01, 02, ... 99). What do the matrices for CH_UP, CH_DOWN and the 10 keys on the numerical keypad look like now? Is there a way to reduce the size of these matrices using a matrix transform?

You may work on this assignment by yourself or in groups of 2. It may be helpful to refer to the reading.

Submission

Hand in your submission before the end of the lecture on Thursday, December 16.

If you wish to submit your assignment electronically, email a PDF to This email address is being protected from spambots. You need JavaScript enabled to view it. before the due date. Please note that no other format (Word, OpenOffice, etc...) will be accepted. The subject of your email should be "CTHCI Assignment 7"; be sure to use this exact subject line as it will be used to filter assignment submissions for grading.

Grading

The assignment will be graded on the following rough scale:
  • 1.0 - exceptional work that clearly went above and beyond what was expected from the exercise
  • 2.0 - exercise was completed satisfactorily as per the assignment specification
  • 3.0 - exercise was completed, but has some problems
  • 4.0 - incomplete exercise
  • 5.0 - little or no effort was put into the exercise

Late assignments will be graded with a penalty of 0.5 per 24 hour period after the due date.

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.