.. (לתיקייה המכילה) | ||
Did you update the homework after it was published? | |
Yes - Removed the label Enc, it's not relevant to this homework. - Fixed a typo in the example, node2 changed to node3. - Added ExpKey to the test. - Fixed pointers in ExpKey. - Fixed text in dry part that was unreadable. |
What is the label ExpKey for? | |
It's only meant to help you compare your result to the expected correct result. |
Can the images be empty (nCols and nRows are 0)? | |
Yes. In that case, the program should exit and the key should remain empty (contains -1s), similar to the case where the image is illegal. |
Are the in-line inputs/outputs of the subroutine "isLegal" words or bytes? | |
words. |
Can we use variables that we defined in previous homework? Do they count as global? | |
You can use internal variables you define as long as your subroutines don't rely on their value to work. The subroutines must be implemented with the exact interface that we defined in the homework. In other words, we must be able to test each of the functions individually by only relying on the interface we defined in the homework. Note: This applies only to functions we asked you to implement. |
Should we submit two programs for parts A and B? | |
No, part A is just an introduction to prepare for part B. You only need to submit one program which finds a key. |
Are the input parameters of the subroutines defined in the homework passed by value or by address? | |
All input parameters are passed by value, unless explicitly stated that they are passed as an address. |
Do we need to check if the images are legal inside the defined subroutines throughout the program? | |
No, you can check if the images are legal and are not empty in the beginning and assume that they are legal inside the subroutines (except for isLegal subroutine obviously). |
Do we need to submit a printed version of the code? | |
No, the instruction in the beginning of the homework is incorrect. |