It's UWAweek 47

help2200

This forum is provided to promote discussion amongst students enrolled in CITS2200 Data Structures and Algorithms.

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 176 articles.
Currently 15 other people reading this forum.


 UWA week 13 (1st semester, week 5) ↓
SVG not supported

Login to reply

👍x5
helpful
12:05pm Wed 27th Mar, ANONYMOUS

Hi, I have found an error in the testing code that may cause the code to crash on different seeds/starting parameters. In test_get_rank_time(), on line 103, the variable "size" is defined to be a random integer between 0 and SIZE inclusive. Later, on line 106, the function random.randint(1, len(runs)), where len(runs) = size (which can be zero). If size = 0, then on line 106, the function random.randint(1,0) is called, which will throw an error, regardless of what is in our code. Can we either (a) be assured that initial conditions will be chosen such that this error will not occur, and if it does occur, we will not be penalised, or (b) get the error fixed (for instance, by changing line 103 to size = random.randint(1, SIZE) )? Thanks very much!

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  8:08AM Aug 25 2024
Privacy policy