Teaching / [FEB22012X] Programming (2013)
This is the course page for Programming (Econometrics), academic year 2013-14, block 1.
Lecture notes and slides
The lecture notes are available for download /here/. The econometrics study association (Econometrisch Dispuut) has agreed to print them for you for a small fee less than what you would pay for printing them yourself.Lecture slides in pdf:
- #1 / 2013-09-02
- #2 / 2013-09-09
- #3 / 2013-09-16
- #4 / 2013-09-23
- #5 / 2013-09-30
- #6 / 2013-10-07
- #7 / 2013-10-14
Exercises
Exercises will be posted here and in blackboard. The answers _must_ be submitted via blackboard. When submitting your answer, include all the matlab source files (the script- and function files with the .m extension) in a zip, and upload that through blackboard's exercise completion functionality. Note that although the Matlab environment is handy in testing individual lines of code by writing them directly in the command prompt, the solution you submit must consist solely of the source files (the ones of .m extension) that are executable independently.
I recommend getting used to the command prompt of matlab as it includes functionalities commonly available in text-based user environments (for example, browsing command history with up- and down arrows). Note that you can use the command prompt also for showing function documentation with command help (e.g. 'help fprintf'), and for finding function names with lookfor (e.g. 'lookfor print').
Exercises in pdf:
- #1: deadline 2013-09-08 23:59 CET
- #2: deadline 2013-09-15 23:59 CET
- #3: deadline 2013-09-22 23:59 CET
- #4: deadline 2013-09-29 23:59 CET
- #5: deadline 2013-10-06 23:59 CET
- #6: deadline 2013-10-13 23:59 CET
- #7: deadline 2013-10-18 23:59 CET
There are 7 exercises (one / week). Each awards 7.15% of the final grade, so the maximum possible to be achieved from the exercises is 50%. The other 50% comes from the written exam. The exercises are graded according to the following scheme:
- Up to 6% from completing the exercise succesfully. Code that does not run awards _always_ 0% from the whole exercise - do not submit crap. If you manage to complete only part of the exercise, submit it and state clearly in comments which part you did and which not
- 1.15% for code clarity (functions, indenting, comments, variable names)
Exam
The exam will be a standard one with three essay questions. Note that you are _not_ allowed to bring with you any extra material to the exam: only a pen(cil), a sharpener, and an eraser are allowed. An example exam including sample answers can be found /here/.Other material
Data files used in the exercises:
Additional learning material:
- Book used in inleiding and voortgezet programmeren is C. Horstmann: Java Concepts, 6th ed., Wiley. Sections 1-6 and 12 compose the material required as pre-knowledge for this course.
- Internet is full of tutorials to programming in all possible languages. For example, see Wikiversity.
- Fun (at least IMHO) mathematical programming assignments can be found in the Project Euler. These are good learning material also for others than the pre-master students.
- The official Matlab learning resources page has a lot of learning material available.
Errata
- 3. Exercise: you can assume that the starting radius of a fire is 1. The threshold for declaring state of emergency should be according to currently burning area, not according to the total area that is burned. "Visualize forest" in the pseudo-code should read "Visualize Alentejo".
- 6. Exercise. P2: "Output of the function is the closest point stored in the tree and its distance to the query point". Algorithm 2, L17: ... "and |d| < bd". Algorithm 2, L3-4: the leftarrows should be '='.