It's UWAweek 48

help2003/help4407

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 3 other people reading this forum.


 UWA week 15 (1st semester, week 7) ↓
SVG not supported

Login to reply

👍x1
helpful
9:56am Tue 12th Apr, Ryan B.

Hi Anon,

(I am waiting on a clarification from Michael, but this is my current interpretation will may help get you thinking.)

We have a number of text files in the directory, which will likely have common words between them (e.g. "and", "the", "of"). Each of these files will have its own ranking of the words, and some files will probably have similar rankings; e.g. 10 files each have the 2nd most common word as "the", and 5 files have the 2nd most common word as "and". If we run ./commond_words -nth 2 text_files_directory, we would expect it to print "the", as this is the common word for the largest number of files.

Hope this helps!

Ryan (lab guy).

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