20 April: See [this].
Candidate: You must prepare your solution to this programming exercise in advance. The designated platform, on which your solution must be demonstrated and on which it will be marked, is the `gcc' compiler running on `Linux'. If you develop a solution on another platform, it is your responsibility to ensure that it works correctly on the designated platform. Read the information under the [prac' guide], [on C and code modularity], [missed pracs] and [plagiarism] links on the home page. It is better to have a program that does only part of the prac' but that compiles and runs than to have a more complex program that crashes or, even worse, does not compile. So keep copies of old working partial solutions.
Unless otherwise noted, you must write all the code yourself, and may not use any external library routines, standard I/O (e.g. printf) and mathematical (e.g. log) routines excepted.
Prac's are marked on the performance of the program and on your understanding of it. I.e. Perfect program with zero understanding => zero marks! (``Forgetting'' is not an acceptable explanation.)
The on-line versions of the prac's may include [links], corrections and supplementary material and are to be taken as the reference documents.
Demonstrators: Are not obliged to mark programs that do not compile or that crash. Time allowing, they will try to help in tracking down errors, but they are not required to mark programs in such a state, particularly those that do not compile.
NB. Note that each week's prac' groups are set their own specific problems. Make sure that you do the correct problem for your week! You will get zero marks if you solve the wrong problem.
The exam, and the prac' work (1--5), are both hurdles (50%) for CSE2304. If you fail one, or the other, or both, the highest mark that you can get is 44%(N).
Here, as if any ignored characters
were never in the input.|
skewed chSet1 chSet2 f fileName
fileName(break ties arbitrarily) where
chSet1is a set of ``real characters'' not to be ignored on input (all other characters are ignored),
chSet2is a set of ``preferred characters'', &
fis a ``minimum skew'' (fraction) of preferred characters that the substring must contain,
skewed ABCD AD 0.8 example
substring = 9..23 (15), AD-skew = 12/15 = 0.8, ADACADACADDCADA
1.1 -3.3 1.0 -0.5 0.0 1.0 -3.14 1.1 -0.2
fileName(break ties arbitrarily),
part = 2..5 (4), sum = 1.5, 1.0 -0.5 0.0 1.0