Till KTH:s startsida Till KTH:s startsida

Computer assignments

The computer assignments are carried out individually, and examined orally by the computer. Each assignment is worth 2 credits (about 50 hours of work).

  • Assignment 1 (Deadline February 18, 2013)
  • Assignment 2 (Deadline March 18, 2013)
  • Assignment 3 (Deadline April 8, 2013)
    Book a time slot for presentation: in English på svenska

The assignment should be completed before the start of the respective review session. There is no time for help during the sessions. For help with the assignments, please contact Hedvig Kjellström or Johan Boye to book a time, or post a question in the News feed in the menu to the left. Email adresses can be found on the Course overview page.

Grading

Each assignment is graded as A-F(fail) at the review session. In the case of F, the assignment has to be presented again at a later session. The grade depends on how large part of the assigment that was carried out correctly - this is specified on each assigment description. The grade is also affected by delays in the presentation of the assignment. The tables below show how the grades for assignment 1, 2, and 3 decays over time. "Grade Assignment X" corresponds to the grade according to the specification on the assignment description:

Review Session February 18 March 18 April 8 May 1 June 1
Grade Assignment 1
A A B C D E
B B C D E E
C C D E E E
D D E E E E
E E E E E E
Review Session March 18 April 8 May 1 June 1 September 1
Grade Assignment 2
A A B C D E
B B C D E E
C C D E E E
D D E E E E
E E E E E E
Review Session April 8 May 1 June 1 September 1 October 1
Grade Assignment 3
A A B C D E
B B C D E E
C C D E E E
D D E E E E
E E E E E E

In other words: Be on time with the assignments! The first three dates are scheduled; to present before any of the later deadlines in May-October, please make an individual appointment with Hedvig Kjellström or Johan Boye well in advance.

The grades on the individual assignments are weighted together according to the following:

Computer Assignment GradeCriteria (grades for individual assignments, regardless of order)
A (A,A,A), (A,A,B)
B (A,A,C), (A,A,D), (A,A,E), (A,B,B), (A,B,C), (A,B,D), (A,C,C), (B,B,B), (B,B,C)
C (A,B,E), (A,C,D), (A,C,E), (A,D,D), (A,D,E), (B,B,D), (B,B,E), (B,C,C), (B,C,D), (B,C,E), (B,D,D), (C,C,C), (C,C,D)
D (A,E,E), (B,D,E), (B,E,E), (C,C,E), (C,D,D), (C,D,E), (C,E,E), (D,D,D), (D,D,E)
E (D,E,E), (E,E,E)

Lärare Hedvig Kjellström skapade sidan 19 november 2013

kommenterade 14 februari 2014

I don't understand the logic behind this:

"Tip: If you are working on the CSC UNIX system, you do not have enough disc space on your account. You can then use the tmp/ directory on the local hard drive of the Linux machine you are using."

"Furthermore, the initial indexing step is very computationally expensive. It is natural that indexing of such a large data set takes several hours."

"NOTE: The indexing should have been done before the review session."

Where should we place our index when we do it before the review session? We cannot know which computer that will be assigned to us for the review session beforehand so we can't do the indexing like the day before. Even if we knew, /tmp might be cleaned the next day since it's temporary storage. I don't have enough space in my csc home directory. Am I required to bring my own laptop?

Lärare kommenterade 15 februari 2014

Ah! This is an issue. Back in a bit, it might be hard to find a solution before mon but I will try... Thanks. If you have a laptop, this is a good way to solve the problem.

Lärare kommenterade 15 februari 2014

Simple solution, publshed in news soon.

kommenterade 15 februari 2014

I only get 9 matches for the word "snowboard" for the first 10 000 documents, while according to the assignment, we should find 13 matches.

However, after running a "grep -i snowboard", I find 9 documents that has the word "snowboard" but 4 containing the word "snowboardåkare".

Didn't you verify that your Java environment tokenized the words correctly? I think it's ok you don't blame us if we have set up the environment incorrect, but you teachers should have made sure at least you have the correct settings before ;)

In fact, you should have written the code so that it reads files with the UTF-8 encoding (InputStreamReader with Charset UTF-8) instead of the platform default (FileReader). You should maybe also use decimal numbers instead of char literals for å ä ö etc. in the code to make sure the file is not compiled with the wrong charset. The same assignment (with some modifications) has been used the two previous years but you never corrected this? I have read many comments on KTH Social regarding people getting the "wrong" numbers and my friend tried to fix his "bugs" for five hours last Thursday while he actually had no bugs...

Lärare kommenterade 15 februari 2014

Snälla, titta på news, detta har vi gått igenom. Det står där OCH i lydelsen att några tal avviker. Det är inte till för att reta er. Dessa frågor är nya för i år och vi har jobbat otroligt hårt för att få allt klart i tid. Det är väldigt jobbigt och tråkigt att få sådana här arga kommentarer, så moderera dina inlägg i fortsättningen. Vi lärare är människor också...

kommenterade 15 februari 2014

Det var inte alls meningen att vara elak eller så utan snarare ett konkret tips på hur ni kan rätta till det här.

Jag förstår om ni har haft tidspress med att skapa labben, men oavsett så är det ganska irriterande när saker inte stämmer, vilket jag hoppas ni förstår...

kommenterade 15 februari 2014

Jag tror inte han menade illa. Jag kan hålla med några punkter Emil tar upp. För mig är det extremt viktigt att vara säker på att jag har gjort rätt, annars blir jag väldigt nojig inför redovisningen. Och det är svårt att veta om det står att man ska få andra siffror än vad jag får. Jag trodde att den här variationen av siffror gällde åäö, men kan ha missförstått det. Jag kan tänka mig att ni gör ert bästa att få det att bli så bra så möjligt. Det är bara just den biten som jag skulle uppskatta om det ses lite närmare på. :)

Ta inte illa upp, det är inte meningen att få er att må dåligt. :)

Lärare kommenterade 15 februari 2014

To answer the actual question: yes, Johan has rewritten the StringTokenizer since last year. It works on every OS - except Mac which I used to generate the answers. Since we were in a hurry, we found out only when the students started. For assignment 2 we are generating answers on Linux.

There is usually a natural explanation to things, so do not start by assuming that people are stupid/lazy.

kommenterade 15 februari 2014

Aha, I thought the same tokenizer was used this year as last years, and therefore you had observed different results depending on environment the other years as well (and therefore should have fixed the problem for this year). But since you have a new tokenizer this year that was not the case :)

Lärare kommenterade 16 februari 2014

Dear Emil och Simon,

Emil, thanks.

Of course I do not think it is ok with errors in the assignment, and we vere very angry with ourselves when this was discovered.

The reason why I was upset now was 1) that exactly the example above had been discussed at length a couple of days ago, so Emil just had to scroll to get this info; 2) the tone of voice in the post. A tip: avoid irony smileys in texts to people you do not know, they have the opposite effect than intended. But happy smileys are ok! :)

Lärare Hedvig Kjellström ändrade rättigheterna 14 september 2015

Kan därmed läsas av alla och ändras av lärare.