====== Course Outline ====== The course outline is a guideline to topics that will be discussed in the course, and when they will be discussed: ===== Week 1 Jan-6-2016 ===== Introduction to C and Unix {{:week_1.pdf|}} ===== Week 2 Jan-13-2016 ===== Continue with C ===== Week 3 Jan-20-2016 ===== Files and streams, reading and writing to files. may be start in testing here is a good gdb tutorial [[https://www.cs.umd.edu/~srhuang/teaching/cmsc212/gdb-tutorial-handout.pdf]] Week 3 slides {{:week_3.pdf|Testing}} ===== Week 4 Jan-27-2016 ===== {{:lecture_4_pointers.pdf|Pointers and arrays}} **Practice problems for the lab test** {{:labtest_practice_1.pdf|here}} ===== Week 5 Feb-3-2016 ===== **lab test** 1 {{:functions.pdf|}} ===== Week 6 Feb-10-2016 ===== ===== Reading week ===== ===== Week 7 Feb-24-2016 ===== Structs and dynamic memory allocation {{:structs_and_more.pdf|}} ===Solutions for first lab test Section 1=== Keep in mind these are not the optimal solutions by any mean, it is one of the many correct ways of solving the problem For first problem (string length terminated by ZZ){{:sstring.c|}} problem 2 elections {{:election.c|}} problem 3 elections with run off {{:election_1.c|}} for problem 2 and three, you can use this test case {{:lta3_00_in.txt|}} ===Solutions for first lab test Section 2=== problem 1 Interleaving 2 strings {{:interleave.c|}} Problem 2 checking if rectangle {{:isrectangle.c|}} problem 3 removing repeated digits from a string {{:repeat.c|}} ===== Week 8 Mar-2-2016 ===== {{:lecture_6_debugging.pdf|Testing and Debugging}} **Drop Deadline ** march 4 **Lab test 2** ===== Week 9 Mar-9-2016 ===== Introduction to {{:shell_1.pdf|Linux and shell}} ===== Week 10 Mar-16-2016 ===== Continue with {{:lecture_7_linux_1_part_2.pdf|sh}} ====== Lab test 2 ====== Please see lab 8 page. Test cases for labtest 2 are posted there ===== Week 11 Mar-23-2016 ===== Grep and sed here is the slides for {{:grep.pdf|grep}} and here is the slides for {{:sed.pdf|sed}} Today is the course evaluation, please be there at the beginning of the class for a good cheat sheet for grep [[http://staff.washington.edu/weller/grep.html]] ===== Week 12 Mar-30-2016 ===== {{:awk.pdf|}} **Lab test 3** ===== Final Exam ===== Awk {{:awk_exercises.pdf|practice problems}} For problem 1 {{:emp.txt|emp.txt}} the {{:fe_awk.txt|}} → to use awk -f fe_awk.txt emp.txt For problem 2{{:countries.txt|countries.txt}} the {{:fc_awk.txt|}} → to use awk -f fc_awk.txt countries.txt **List of topics for exam preparation {{:final_exam_topics.pdf|}}** + shell script (sh not bash)