Towards the exam
about a week before the exam we want to stress some relevant things.
In general, the material for the exam is everything that was taught on lectures, tutorial etc..(see one exception below regarding dynamic arrays).
You need to write your code in C in the ansi version that you used when compiling your HW.
One thing we will allow in the exam though it is not of the ansi standard is you can define variables
wherever you want in the code (not just at the beginning of the block).
Something specific regarding arrays:
In the lecture Tal mentioned dynamic arrays (malloc\free functions...), it will not be part of the material for the exam.
Pay attention (I said and wrote it many times on all recent HW) you can only define arrays where their size is known
at compile time (even after we allow to define variables everywhere in the code, this is not related to one another).
The instructions that appear on the exam form will be published here about 2-3 days before the exam, so you could go over
them earlier. Pay attention that these are general instructions, and in any question we can allow\forbid to use thinks that contradict
the general instructions, so read all the instructions and questions discription carefully (of course we will be there to help if
something in the instrcutions will need clarification). Good Luck!
|עדכון אחרון ב- 16/7/2019, 20:38:51 Last updated on 16/7/2019, 20:38:51 Последняя модификация 16/7/2019, 20:38:51 تمت الحتلنة الأخيرة ب- 16/7/2019, 20:38:51|
HW5 was graded, resubmission is now open
|Even if you do not submit it is recommended that to solve it for yourself before the exam.|
|פורסם ב- 15/7/2019, 19:39:42 Created on 15/7/2019, 19:39:42 Создано 15/7/2019, 19:39:42 تم النشر ب- 15/7/2019, 19:39:42|
HW4 Resub graded
|Grades are on site.|
|פורסם ב- 3/7/2019, 09:41:49 Created on 3/7/2019, 09:41:49 Создано 3/7/2019, 09:41:49 تم النشر ب- 3/7/2019, 09:41:49|
|This exercise is a shorten one, containing 2 questions on recursion and complexity.|
For students that submitted all exercises 1-4 (HW0 not count), you do not have to submit this homework
(To avoid emails on this topic an average of 90+ in those 4 exercises will yields to a perfect score on HW grade).
However, students that wants to improve their lowest grade are welcome to submit.
For all students, it is recommended to do this exercise before the exam, as in the exam we will
also consider running times (for example you might got a full grade on question 2 in HW4, however,
I saw some solutions that were O(n^2) time, and the optimal is O(n) time, in HW5 question 2 there is a demand
of optimal running time).
|עדכון אחרון ב- 29/6/2019, 22:05:12 Last updated on 29/6/2019, 22:05:12 Последняя модификация 29/6/2019, 22:05:12 تمت الحتلنة الأخيرة ب- 29/6/2019, 22:05:12|
HW3Resub was graded
|Grades are on site.|
|עדכון אחרון ב- 24/6/2019, 18:21:42 Last updated on 24/6/2019, 18:21:42 Последняя модификация 24/6/2019, 18:21:42 تمت الحتلنة الأخيرة ب- 24/6/2019, 18:21:42|
A message from the lecturer-No lecture this week
|The tutorial on Wednesday well be held as usual.|
|פורסם ב- 23/6/2019, 21:17:50 Created on 23/6/2019, 21:17:50 Создано 23/6/2019, 21:17:50 تم النشر ب- 23/6/2019, 21:17:50|
|I updated the grades after today's meeting, and opened the resubmission of the exercise.|
|פורסם ב- 23/6/2019, 19:56:52 Created on 23/6/2019, 19:56:52 Создано 23/6/2019, 19:56:52 تم النشر ب- 23/6/2019, 19:56:52|
|It seems that all the students that got zero it was because some format|
problem that the server refused to compile (perhaps again those MAC problems
I would really hoped to not deal with it by now...). Come tomorrow and we'll check
what it didn't like. I'll be there from around 10:30 until I finish to meet anyone that needs
me. If there will be no one for some time I will not wait, so don't come too late.
Any questions regarding material are welcome as well.
|פורסם ב- 22/6/2019, 23:16:48 Created on 22/6/2019, 23:16:48 Создано 22/6/2019, 23:16:48 تم النشر ب- 22/6/2019, 23:16:48|
HW4 submission hour
|HW4 submission hour was posponed to 23:00 instead of 17:00|
on Saturday. After submission I will run your files on the server and
the ones that will need could meet me at the Geology class on Sunday, at 10:30
(I will be there until I answer all students, however if you come on 11:30 and no one comes
before I will not wait so try to not come too late).
Students that solve the exercise partially until Saturday, and still want feedback on this part,
just create all other files (of the question\s you didn't solve) as empty c files, don't submit some of the files because in this case the server
give 0 on the spot. For example, if you have a solution for questions 1 and 3, but not yet 2, then
create an empty c file named hw4q2.c and submit it with the files of q1 and q3. If you only submit hw4q1.c
and hw4q3.c you'll get zero as I mentioned, all the files the server expects must be on your submission.
|עדכון אחרון ב- 19/6/2019, 12:41:55 Last updated on 19/6/2019, 12:41:55 Последняя модификация 19/6/2019, 12:41:55 تمت الحتلنة الأخيرة ب- 19/6/2019, 12:41:55|
HW3 grades updated, resubmission was opened
|I updated the grades after our meeting today. I opened resubmission of HW3.|
The max grade will be 100 again, so you could resubmit even if you have one test wrong
(but don't forget HW4).
There was one test in question 3 that some of you got wrong, after looking at it again I think
that you missed something in the definition of the question.
The input example there was (dimensions 3x3):
77 3 5
28 85 0
28 17 19
The floor average of the first row is 28, which makes 77 a good element as it has 28 in its column.
However, some of you instead categorize the 77 as good element decided that the two 28 were good elements,
(if an element is already good it does not have any meaning it has many more elements in the same column with the
value equal to the floor average, you do not have to add 1 to the the counter if it has more than one such element).
I hope it is now clear.
hence your output was 2, instead of 1 (it should be the only good element there).
|עדכון אחרון ב- 16/6/2019, 15:57:58 Last updated on 16/6/2019, 15:57:58 Последняя модификация 16/6/2019, 15:57:58 تمت الحتلنة الأخيرة ب- 16/6/2019, 15:57:58|
HW4 running examples
|I've added screenshots of running examples to all questions.|
|עדכון אחרון ב- 15/6/2019, 18:01:34 Last updated on 15/6/2019, 18:01:34 Последняя модификация 15/6/2019, 18:01:34 تمت الحتلنة الأخيرة ب- 15/6/2019, 18:01:34|
|Pay attention (as usual...) to read all instructions carefully.|
In addition to tests there is also code skeleton for the questions to help
you (hopefully) spend the time more efficiently.
The submission date is 22/6 at 17:00, the weird hour is because I intend to
meet you on the following Sunday to check together things regarding it.
However, afterwards there will be a resubmission with the same maximum grade
so there will be additional week or so for students that will need it (however I assume
that there will be also HW5 on recursion at the same time).
I wrote this exercise from scratch so even though I tried to check that all instructions\problems phrasing
and input\output examples are ok, there might be some things to verify, so in any case you are welcome to ask.
I suggest all of you, until (this) Sunday, to at least look at the execrcise, and if something is unclear ask me on Sunday
or after class on Wednesday.
|עדכון אחרון ב- 14/6/2019, 12:14:21 Last updated on 14/6/2019, 12:14:21 Последняя модификация 14/6/2019, 12:14:21 تمت الحتلنة الأخيرة ب- 14/6/2019, 12:14:21|
HW3 was graded
|The grades are on site.|
I will be on Sunday 16/6, 10:30-12:20 at the Geology class for
students that wants to check what was wrong and also for general
questions on the material. Afterwards I will open the resubmission.
|פורסם ב- 14/6/2019, 09:26:50 Created on 14/6/2019, 09:26:50 Создано 14/6/2019, 09:26:50 تم النشر ب- 14/6/2019, 09:26:50|
First of all I extended the submission to 9/6 (as my intention was schedule a meeting after
The auto check will occur, however Sunday 9/6 is Shavuot so this is a holiday).
We might do it on Wednesday, but I'll have to check first.
Some other (small) issue regarding the exercise is when you print a floating point (flaot\double)
with a precision of one digit, there might be small differences between different compilers (and OS),
so if for example you got 8.3 in some example and the output I gave (or appeared on the exercise)
is 8.3 (assuming that not all values are different) this should be ok, becuase when you submit
your exercise will run on the server that produced the output.
|עדכון אחרון ב- 2/6/2019, 21:59:54 Last updated on 2/6/2019, 21:59:54 Последняя модификация 2/6/2019, 21:59:54 تمت الحتلنة الأخيرة ب- 2/6/2019, 21:59:54|
HW2 resub checked
|The grades are on site.|
I prepared (hopefully for the last time) a report for some of you that
continue to not doing things in accordance with what we instruct you (and what
is written on the exercise itself). I would really hope that from now on any problem
I mentioned there will not occur again. It could be found in the recitation slides folder.
|פורסם ב- 28/5/2019, 16:30:51 Created on 28/5/2019, 16:30:51 Создано 28/5/2019, 16:30:51 تم النشر ب- 28/5/2019, 16:30:51|
|I assume you all got the message that our class on|
Wednesday was changed to Ullam 702, but in any case
I notify here also.
|עדכון אחרון ב- 28/5/2019, 11:58:19 Last updated on 28/5/2019, 11:58:19 Последняя модификация 28/5/2019, 11:58:19 تمت الحتلنة الأخيرة ب- 28/5/2019, 11:58:19|
|The exercise has instructions file (that as usual you all should|
read before starting it, in particular I've added the scope of the relevant material,
to avoid things that some of you did in the previous exercises, and some more things.
(Not relevant for most of you, but some used other header files than stdio.h, the instruction
of not doing it has appearead before, but I marked it again in red).
|עדכון אחרון ב- 27/5/2019, 18:35:44 Last updated on 27/5/2019, 18:35:44 Последняя модификация 27/5/2019, 18:35:44 تمت الحتلنة الأخيرة ب- 27/5/2019, 18:35:44|
HW2 question 1 remark
|I wanted to clarify something that might confused you,|
regarding the differences between cases E and the case that the discriminant
is zero (clearly both could happen simultaneously if both roots are zero) . As I understand this question,
first of all (by the appearence of the conditions)
we check whether zero is a root, If so, we print E. If not, the only relevant case
(after non of the above cases of the question was reached) is the case where
the discriminant equals 0, and 0 is not a root, hence we don't print anything.
|עדכון אחרון ב- 20/5/2019, 18:43:34 Last updated on 20/5/2019, 18:43:34 Последняя модификация 20/5/2019, 18:43:34 تمت الحتلنة الأخيرة ب- 20/5/2019, 18:43:34|
HW2 resubmission opened
|I opened a resubmission of HW2, and updated all grades |
after meeting with you today. We might do this kind of meeting
for next exercises as well (of course there will be a message any time
we schedule such meeting).
The resubmission is again up to a 100 grade, as the report of HW1resub
was very close to the due date of HW2.
It is open for the next 7 days, HW3 will be published after the next class.
|עדכון אחרון ב- 19/5/2019, 17:45:25 Last updated on 19/5/2019, 17:45:25 Последняя модификация 19/5/2019, 17:45:25 تمت الحتلنة الأخيرة ب- 19/5/2019, 17:45:25|
Meeting regarding HW2
As many of you wrote me regarding this exercise and thing went wrong on the server
check, I will be at the Geology class on Sunday 19/5 at 10:30, to meet any one of you
in person, see if there were problems or not (and if so how to fix them) so you are very welcome to come.
Afterwards, I will open the resubmission. If it will work fine we might repeat it
also for the next exercises.
I see this message as a personal reply to all students wrote to me on this topic on email.
|עדכון אחרון ב- 16/5/2019, 09:44:38 Last updated on 16/5/2019, 09:44:38 Последняя модификация 16/5/2019, 09:44:38 تمت الحتلنة الأخيرة ب- 16/5/2019, 09:44:38|
HW2 Server Report
As you requested, I copied the server output on HW2 (on the recitation slides).
However, it is not always so clear "what it wants" with its error\warning messages,
so I'll still answer to all your replies regarding "what's wrong" then I'll open a
resubmission. Pay attention that this server unfortunately does not compile even
if you have warnings, but don't worry about this issue, this is something I will
double check for anyone that asked.
|עדכון אחרון ב- 15/5/2019, 17:42:03 Last updated on 15/5/2019, 17:42:03 Последняя модификация 15/5/2019, 17:42:03 تمت الحتلنة الأخيرة ب- 15/5/2019, 17:42:03|
HW2 was graded
|Students that got low grades and think that their submission|
works 100% in their computer please verify the following before apply:
1) Your output was verified using Diffmerge.
2) Your compiler flags are 100% identical to the ones I instructed you to use
(all those instructions are on site, both on file for the ones that us cmd and in message I put
for students using codeblocks) and your program compiled with 0 error and 0 warnings.
3) Your format of submission is corrrect (i.e., file names, student.txt file atc...).
If one of 1-3 is wrong and you identify it, please submit again when resubmission will open (soon..).
Otherwise you could reply and I will check what was wrong, assuming there was some problem indeed.
|עדכון אחרון ב- 13/5/2019, 20:09:53 Last updated on 13/5/2019, 20:09:53 Последняя модификация 13/5/2019, 20:09:53 تمت الحتلنة الأخيرة ب- 13/5/2019, 20:09:53|
This week classes
This week there is a one time change.
The tutorial will be on Tuesday at the usual hour,
and the lecture will be on Wednesday, at the usual hour,
however it will start about 8:45 not 8:30.
As for the rooms, the tutorial on Tuesday will be at the usual room (for lecture)
on Rabin's building. The lecture on Wednesday will be at the Geology class at
the international building.
(this is again one time change, in the foliowing weeks we will remain in Ullman 104).
|עדכון אחרון ב- 12/5/2019, 10:50:23 Last updated on 12/5/2019, 10:50:23 Последняя модификация 12/5/2019, 10:50:23 تمت الحتلنة الأخيرة ب- 12/5/2019, 10:50:23|
HW1 Resub Checked
|Hello all, |
The resubmission of HW1 was checked. On the positive side, there were almost no
problems of wrong names (still only one MAC problem), on the negative side, there were some repeated errors
I would like to mention for all of you (again I prepared a specific report that could be found in the recitation slides, everyone that submitted
HW1 again should see it even if you got 100, because for some of you I changed things before that happened).
1) In our version of C (ansi c) variables are defined ONLY at the beginning of the block. Some of you wrote codes like:
int a, b; (that's ok)
int c, d...(that's not legal in ansi c).
I mentioned this point in class also.
Anyone that its program compiled like that does not compile using our flags. Even if you repeat the course or do not
come to classes, you are obligate to know the current info for this semester, and I was very clear on the subject of how to
compile. In HW1 I really tried to be as forgiving as possible. But I'm not going to continue fix things you should be aware of
in all HW so pay attention please.
2) Some of you ( I assume students that repeat the course) used material that we didn't see yet (also on lecture) to solve question 2.
This is not acceptable, the material of any exercise is what we did up to it. I try to write very clearly which material not to use but I can't
guess anything you'll may do. In any case you have doubt of whether you could use something or not which we didn't study yet, ask me BEFOREHAND, don't
assume it yourself. In 90% the answer will be no so it is in your favour to verity.
3) This is a small thing I saw at one student's code only and I fixed it, but pay attention that our version of c preffered the /* .....*/
for comments and not the //. If that will be the only problem for some student it will not hurt you, but still use /*....*/ for comments.
I tried to do everything in my power to let you know all the things that went wrong in HW1, so it will not repeated in the next HW.
I really hope this will be the case, I'm not gonna check each time manually for errors that should be avioded, so please pay attention
again, if I corrected you at some point of the technical stuff or the code.
|עדכון אחרון ב- 11/5/2019, 19:20:08 Last updated on 11/5/2019, 19:20:08 Последняя модификация 11/5/2019, 19:20:08 تمت الحتلنة الأخيرة ب- 11/5/2019, 19:20:08|
HW2 question 2
|Some of you found the description of the question to be confusing, so |
I'll rephrase the problematic part.
You get 3 number and an operation. If any pair of numbers (among those three)
using the given operation (+ of *) gives you the third number, you should print O,
otherwise you should print X. For example for 9,11, 2 and + operation (coded by 0)
you should print O because the sum of the pair 9,2 is 11 which is the third number.
In the case where the input is 5,2,14 and * operations (coded by 1) you should print
X as no pair of these 3 number has a multiplication which equals the third number, as
5*2=10, 5*14=70, 2*14=28.
Hope it is clear now.
|עדכון אחרון ב- 3/5/2019, 11:33:20 Last updated on 3/5/2019, 11:33:20 Последняя модификация 3/5/2019, 11:33:20 تمت الحتلنة الأخيرة ب- 3/5/2019, 11:33:20|
HW1 resubmission opened
|Anyone can submit (even if you didn't submit HW1 at the original submission).|
As I wrote in the previous message, the maximum grade will be 100 only for the resubmission of HW1.
|פורסם ב- 28/4/2019, 12:44:05 Created on 28/4/2019, 12:44:05 Создано 28/4/2019, 12:44:05 تم النشر ب- 28/4/2019, 12:44:05|
homework 1 was graded.
I prepared a report for students that got zero to identify
the problems for each one. It is in the Tutorial page on site.
Unfortunetly, though some of you understood very well how to
submit there were some that didn't pay attention to some things
I've repeated and demonstrated in class to not do.
In any case, since it is the first exercise that got tested (HW0 was
only to see that you manage to submit), you could resubmit HW1 (which
will open soon) and get a maximum grade of 100 (usually in resubmission the
maximum grade is 90). I'm doing this since I want you to will fix your problems,
so in the next exercises we will not have anymore any format problems.
In later exercises I will not be that patient and write a report everytime so
I hope it will help you figure out some wrong things, and from here we all could
concentrate on the c language only, not the technical aspects of submission.
|עדכון אחרון ב- 28/4/2019, 12:39:35 Last updated on 28/4/2019, 12:39:35 Последняя модификация 28/4/2019, 12:39:35 تمت الحتلنة الأخيرة ب- 28/4/2019, 12:39:35|
|Hello all, hope you enjoy the holiday..|
HW2 is on site. We did not see the material for question 1
on tutorial yet, but we will the next week (and you saw it in the lecture).
You might start with question 2 that deals with logical expressions, pay attention
that you can not use if-else in question2 (also written very clearly in the instructions).
|עדכון אחרון ב- 25/4/2019, 13:31:36 Last updated on 25/4/2019, 13:31:36 Последняя модификация 25/4/2019, 13:31:36 تمت الحتلنة الأخيرة ب- 25/4/2019, 13:31:36|
|HW1 is now on site.|
Pay attention to all instructions, which we discussed in class.
|עדכון אחרון ב- 7/4/2019, 21:10:15 Last updated on 7/4/2019, 21:10:15 Последняя модификация 7/4/2019, 21:10:15 تمت الحتلنة الأخيرة ب- 7/4/2019, 21:10:15|
Reminder- no lecture or tutorial this week
This week there is no lecture nor tutorial because of the elections (on Tuesday)
and exams both of us should be present on Wednesday. See you next week.
|עדכון אחרון ב- 7/4/2019, 20:42:32 Last updated on 7/4/2019, 20:42:32 Последняя модификация 7/4/2019, 20:42:32 تمت الحتلنة الأخيرة ب- 7/4/2019, 20:42:32|
Defining the compiler flags in codeblocks
|I have added instructions on how to define |
the compiler flags in codeblocks, in the recitation folder.
Students that follow it could avoid compiling of the cmd, so I hope
it will make your life easier.
Students that do not use codeblocks
should still compile of the cmd to verify their programs has no errors\warnings.
|עדכון אחרון ב- 28/3/2019, 19:52:33 Last updated on 28/3/2019, 19:52:33 Последняя модификация 28/3/2019, 19:52:33 تمت الحتلنة الأخيرة ب- 28/3/2019, 19:52:33|
Tutorial 1 file problem
I've asked the technical support to check it,
they didn't see any problem when they try to view
the file, however they tried to change something that hopefully
solved the problem.
|עדכון אחרון ב- 28/3/2019, 18:44:10 Last updated on 28/3/2019, 18:44:10 Последняя модификация 28/3/2019, 18:44:10 تمت الحتلنة الأخيرة ب- 28/3/2019, 18:44:10|
Files not seen in the system
I tried to upload again the file containing the compilation instructions of the cmd (it is
not in the recitation folder and I hope you could see it), I also uploaded again tutorial 0
that we saw last week. Unfortunetly, the material now is only available to students registered
to the course and I can't check it directly.
|עדכון אחרון ב- 27/3/2019, 14:18:07 Last updated on 27/3/2019, 14:18:07 Последняя модификация 27/3/2019, 14:18:07 تمت الحتلنة الأخيرة ب- 27/3/2019, 14:18:07|
We have a new classroom in Ulman building, room 104.
We will go over all the things that you didn't see
last time because the fauly projector.
|פורסם ב- 26/3/2019, 17:44:04 Created on 26/3/2019, 17:44:04 Создано 26/3/2019, 17:44:04 تم النشر ب- 26/3/2019, 17:44:04|
A link to the software comparing files DiffMerge could
be found here
|פורסם ב- 25/3/2019, 21:53:37 Created on 25/3/2019, 21:53:37 Создано 25/3/2019, 21:53:37 تم النشر ب- 25/3/2019, 21:53:37|
HW0 was published
|It is very important exercises to make sure that you know all the surrounding|
things for the homework submition and in general for the course, before we dive
deeper into the c language.
|פורסם ב- 24/3/2019, 12:10:13 Created on 24/3/2019, 12:10:13 Создано 24/3/2019, 12:10:13 تم النشر ب- 24/3/2019, 12:10:13|
Copiling of the cmd
|I put an explanation file in the course material. |
Go over it, download the necessary softwares, HW0
which deals with everything we've talked about on the first class
will be published soon. It will not be graded, and I'm not sure it
will be for submission but it is important for you to do it anyway.
Have a good semester!
|פורסם ב- 23/3/2019, 17:18:15 Created on 23/3/2019, 17:18:15 Создано 23/3/2019, 17:18:15 تم النشر ب- 23/3/2019, 17:18:15|
|All the information and course material are placed on this site. The site address is: https://webcourse.cs.technion.ac.il/234126/Spring2019|
All course announcements will be posted on the site, and you should also get them by e-mail.
If you are not registered yet, you can subscribe to this mailing list manually (using the "Auto Update" menu option on this site).
|פורסם ב- 23/3/2019, 17:03:52 Created on 23/3/2019, 17:03:52 Создано 23/3/2019, 17:03:52 تم النشر ب- 23/3/2019, 17:03:52|