Topics | Assignments | Slides | Algorithms | References |
See Course page by Jānis Lazovskis with worksheets. Many more worksheets are in ORTUS.
These are short paper-based algorithmic tasks done in class; about 10-15 minutes long; people who write them from home get 3 extra minutes of work to download the paper, to photograph and to send their solution. We had 15 such exercises. (Sample assignments are just a preview for the real thing, they do not affect grade).
Grading ID | Title | Due Date | Time Est. | Max | Average |
---|---|---|---|---|---|
MK01 | Bitwise operations, flowcharts Sample |
2020-09-14 | 12 min. | 10‰ | TBD |
MK02 | Arrays, Pointers Sample |
2020-09-18 | 12 min. | 10‰ | TBD |
MK03 | Using STL Sample |
2020-10-01 | 12 min. | 10‰ | 8.28‰ |
MK04 | Pointer Operations Sample |
2020-10-07 | 12 min. | 10‰ | TBD |
MK05 | Big-O-Notation Sample |
2020-10-14 | 12 min. | 10‰ | 4.61‰ |
MK06 | Heaps Sample |
2020-10-28 | 12 min. | 10‰ | TBD |
MK07 | Hashtables Sample |
2020-11-05 | 12 min. | 10‰ | TBD |
MK08 | Binary Trees Sample |
2020-11-11 | 12 min. | 10‰ | 8.39‰ |
MK09 | Quicksort Sample |
2020-11-12 | 12 min. | 10‰ | 8.78‰ |
MK10 | Red-Black Trees | 2020-11-30 | 12 min. | 10‰ | TBD |
MK11 | Topological Sort | 2020-12-10 | 30 min. | 20‰ | TBD |
MK12 | Strongly Connected Components | 2020-12-10 | 30 min. | 20‰ | TBD |
MK13 | Dijkstra's Algorithm | 2020-12-10 | 30 min. | 20‰ | TBD |
MK14 | Bellman-Ford Algorithm | 2020-12-10 | 30 min. | 20‰ | TBD |
MK15 | MST Prim's Algorithm | 2020-12-10 | 30 min. | 20‰ | TBD |
Due to the epidemic both exams were remote; notes and external references could be used.
Grading ID | Title | Due Date | Time Est. | Max | Average |
---|---|---|---|---|---|
MIDTERM | Midterm Midterm Solution Sample (Stacks and Queues) |
2020-10-22 | 100 min. | 150‰ | 110.28‰ |
FINAL | Final Sample Final |
2020-12-17 | 120 min. | 150‰ | TBD |
These activities are not graded. Most tools introduced here are not mandatory. We appreciate, if you inform others about your preferred C++ coding practices.
These exercises are meant to write simple C++ programs. We plan 7 or 8 such exercises.
Ortus grade ID | Title | Additional Info | Due Date | Time Est. | Max | Average |
---|---|---|---|---|---|---|
EX1 | Periodic strings | Palindromes (Sample code) | 2020-09-09 | 4h | 20‰ | 12.75‰ |
EX2 | Finding extreme students | N/A | 2020-09-11 | 4h | 20‰ | 16.94‰ |
EX3 | Reverse an ordered tree | Inverted Trees in advertising; What is a stub; Encapsulation in programming. |
2020-09-25 | 12h | 20‰ | 8.88‰ |
EX4 | Matrix Operations | Operators/Templates (Sample code) | 2020-10-05 | 4h | 30‰ | 21.19‰ |
EX5 | Circularly Linked Lists | Makefile (also for unit tests); Catch2TestRunner.cpp. |
2020-10-12 | 4h | 30‰ | 24.38‰ |
EX6 | Shapes and Transformations | Testcases (ZIP) | 2020-10-26 | 12h | 30‰ | 15.00‰ |
EX7 | Aliens | Testcases (ZIP) | 2020-11-09 | 12h | 100‰ | 71.50‰ |
EX8 | Balancing Binary Trees | Testcases (ZIP) | 2020-11-30 | 12h | 100‰ | 59.38‰ |
EX9 | Code Reviews (style, leaks, performance) | 2020-12-04 | 12h | 150‰ | 123.33‰ |
Unzip the directory "workspace-kalvis" so that it located in the same subdirectory as your own workspace. Copy the ex03-alice/grading-default.sh or a similar grading file into your EX03 directory; make the script executable ("chmod u+x grading-default.sh") and run it. If your code needs other compiler options in order to run (and some tests failed because of this grading approach), please let me know by January 4, 2021. Every exercise has a different default grading script. (EX06 does not check your output file with the expected SVG file with diff; instead you can just visually compare the images - your SVG should show the same thing as the expected result.)
ID | Build | T01 | T11 | T12 | T13 | T14 | T15 | Total | Notes |
---|---|---|---|---|---|---|---|---|---|
011 | 2 | 3 | 3 | 3 | 0 | 0 | 3 | 14 | |
081 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | CPP, H files missing |
167 | 2 | 3 | 3 | 3 | 3 | 3 | 3 | 20 | |
370 | 2 | 3 | 3 | 3 | 3 | 3 | 3 | 20 | |
371 | 2 | 3 | 3 | 3 | 0 | 0 | 3 | 14 | |
372 | 2 | 3 | 0 | 3 | 3 | 3 | 3 | 17 | |
373 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | Compilation error |
374 | 2 | 3 | 3 | 3 | 3 | 3 | 3 | 20 | |
376 | 2 | 3 | 3 | 3 | 0 | 0 | 3 | 14 | |
377 | 2 | 3 | 3 | 3 | 3 | 3 | 3 | 20 | |
378 | 2 | 3 | 3 | 3 | 3 | 3 | 3 | 20 | |
380 | 2 | 3 | 3 | 3 | 3 | 3 | 3 | 20 | |
381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | CPP, H files missing |
382 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | CPP, H files missing |
384 | 2 | 3 | 3 | 0 | 0 | 0 | 3 | 11 | |
385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | Version control issue |
386 | 2 | 3 | 3 | 3 | 0 | 0 | 3 | 14 | |
387 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | Version control issue |
ID | Build | T01 | T02 | T03 | T04 | T05 | T06 | Total | Notes |
---|---|---|---|---|---|---|---|---|---|
011 | 2 | 3 | 3 | 3 | 3 | 3 | 3 | 20 | |
081 | 2 | 3 | 3 | 3 | 3 | 3 | 3 | 20 | |
167 | 2 | 3 | 3 | 3 | 3 | 3 | 3 | 20 | |
370 | 2 | 3 | 3 | 3 | 3 | 3 | 3 | 20 | |
371 | 2 | 3 | 3 | 3 | 3 | 3 | 3 | 20 | |
372 | 2 | 3 | 3 | 3 | 3 | 3 | 3 | 20 | |
373 | 2 | 3 | 0 | 3 | 0 | 0 | 3 | 11 | “Invalid age” messages |
374 | 2 | 3 | 3 | 3 | 3 | 3 | 3 | 20 | |
376 | 2 | 3 | 3 | 3 | 3 | 3 | 3 | 20 | |
377 | 2 | 3 | 3 | 3 | 3 | 3 | 3 | 20 | |
378 | 2 | 3 | 3 | 3 | 3 | 3 | 3 | 20 | CPP, H files missing |
380 | 2 | 3 | 3 | 3 | 3 | 3 | 3 | 20 | |
381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | CPP, H files missing |
382 | 2 | 3 | 3 | 3 | 3 | 3 | 3 | 20 | |
384 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | Compilation error |
385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | CPP, H files missing |
386 | 2 | 3 | 3 | 3 | 3 | 3 | 3 | 20 | |
387 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | Version control issue |
ID | T01 | T02 | T03 | T04 | T05 | T06 | T07 | T08 | T09 | T10 | Total | Notes |
---|
ID | T01 | T02 | T03 | T04 | T05 | T06 | T07 | T08 | T09 | T10 | Total | Notes |
---|
ID | T01 | T02 | T03 | T04 | T05 | T06 | T07 | T08 | T09 | T10 | T11 | T12 | T13 | T14 | T15 | Total | Notes |
---|
ID | T01 | T02 | T03 | T04 | T05 | T06 | T07 | T08 | T09 | T10 | T13 | T14 | T15 | Total | Notes |
---|
ID | T01 | T02 | T03 | T04 | T05 | T06 | T07 | T08 | T09 | T10 | Total | Notes |
---|