![]() |
.. (לתיקייה המכילה) | |
In Question 1, do all the functions obtain a social network as a parameter? | |
Yes. All the functions in Question 1 (in all 3 missions) require a social network. That's, in addition to all other parameters each functions obtains int A[N][N]. Recall that global variables are not allowed. You are, of course, allowed to chose another variable name for the network. |
In Question 2, are we allowed to change the code of main()? | |
No. |
Does the previous question include srand? | |
Yes. Again, you are not allowed to change main(). In additional, I would like to remind you that srand should be called ONLY once per a program execution! If you read the exercise carefully, you will find some clues on how to solves those problems. |
In Question 2, what exactly should Jack do? | |
Jack is the head of Missing Persons' Unit. Informally, his job is to supervise the searching process. That is, to use all the available information to optimize the searching process so that the missing person will be found as soon as possible The searching process is carried out as described in Question 2. Meaning, that each day Jack DECIDES where to send Martin and Danny. |
In Question 1, Part 3: | |
The size of a ROW in a classroom is c. The number of students is N. The ONLY assumption is that a classroom has enough seats (at least N) That's all. NO further information is a available. NO additional assumptions can be made. |
In the functions of Question 1 can we define/use additional matrices? | |
Well, Yes and No. A good implementation of the functions does not require any additional matrices. So, "YES", however note that the solutions using additional matrices will NOT obtain the whole score! |
What about using additional (1-D) arrays in Question 1? | |
The point here is not to use unnecessary space. This idea "hides" in the last comment on page 1. So the answer about 1-D arrays is: "use them at your own risk". If the usage of a new array will cause a real "overkill" you might not obtain the whole score. Though the policy with 1-D arrays will be much "softer" than with the matrices. Note that there are good and simple solutions that do not require additional arrays or matrices. |
In the file woatrace.c you defined enum bool_e {TRUE,FALSE}. | |
No. In the context of this exercise this has absolutely no meaning. You are NOT allowed to change this definition. In general, one of the purposes of this exercise is to demonstrate that when working on a large piece of software, in the majority of the times you will have do deal with "what is given" rather than with "what is better/nicer" etc.. In addition, a clever usage of enum in this question should not depend on the order of the values. |