PLEASE NOTE: this server,, will be unavailable on WEDNESDAY 7th December, from 1pm until 4pm.
Web-based programs, such as csmarks, cssubmit, and the help fora, will all be unavailable.
  It's UWAweek 49


This forum is provided to promote discussion amongst students enrolled in Open Source Tools and Scripting.

Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.

How do I ask a good question?
Displaying selected article
Showing 1 of 564 articles.
Currently 4 other people reading this forum.

 UWA week 21 (1st semester, week 12) ↓
SVG not supported

Login to reply

3:32pm Fri 27th May, Michael W.

> There may be an error in Michael's marking. For the word rank script, he seems to be calculating rank as the 'nth row' in an ordered list, rather than doing a proper rank algorithm, that traverses the list and only increments rank if words have different frequencies. For instance, [10 this, 10 is, 10 a 9 list], "9" should be considered the 2nd highest, not the fourth. I don't believe 'cat' should be ranked the 381st most common in Alice in Wonderland. > > Perhaps I am wrong. I will look more into this.
Hi, That is not how ranks work. The 3 10's in your example are equal first, and the 9 is fourth. For example, Alice is position 32 or 33 in the ranked list, so I accepted either (seeing I said to pick one). Similarly, in your example, I would have accepted rank 1, 2 or 3 for the words that scored 10. Cheers MichaelW

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  1:17AM Sep 14 2022
Privacy policy