COSC 350 - Fall 2020

Course Information

  • Instructor: Dr. Aaron Garrett (garrettal@wofford.edu)
  • Class Meeting (Olin 103): MWF 10:30a-11:20a
  • Office Hours (Zoom): MW 3:00p-4:00p; or by appointment
  • Textbook: None, but LearnCPP is one of many free resources available online
  • Required Software Mimir Classroom (available in bookstore)
  • Final Exam: 9 Dec 2020 from 9:00a-12:00p

Catalog Description

An introduction to the formal study of data structures, such as arrays, stacks, queues, lists, and trees, along with algorithm design and analysis of efficiency.

Prerequisite: COSC 235 with a minimum grade of C.

Goals

  • Understand abstraction and how it helps to control complexity
  • Understand the concept of an abstract data type (ADT) and how to implement custom ADTs
  • Understand how to use and implement common CS data structures
  • Understand how memory is managed within a C++ program
  • Understand how to use arrays, structures, and pointers to implement ADTs
  • Understand tradeoffs among various implementations for a given interface
  • Understand recursion and be able to use it to solve problems
  • Understand the concepts of algorithmic complexity and “Big O” notation
  • Be able to determine the time complexity of an algorithm
  • Be familiar with commonly used algorithms for interacting with data structures
  • Be able to implement ADTs in C++
  • Be proficient with the C++ programming language

Grades

Your grade in the course will be based on a combination of assignments, projects, and exams.

Assignments
Assignments are short exercises that reinforce the core concepts.
Projects
Projects are more complex problems that require a combination of concepts.
Exams
Exams are timed assessments of conceptual understanding.
Homeworks
Homeworks are ungraded (but recommended) practice with the course material.
Artifact Points
Assignments 20
Projects 40
Midterm Exam 20
Final Exam 20
Total 100

An alternative grading scheme is available for those who would benefit from it. Under the alternative scheme, only the final exam counts toward the final score (at 5x points). Note that the final exam is comprehensive and very applied. Success on it requires that students have practiced throughout the term, and completing the assignments and projects are the best way to practice. Students do not choose the standard or alternative grading scheme; instead, points will be calculated both ways, and the higher final point total will be used to determine the grade at the end of the term.

The usual grading scale will be applied to the accumulated points: 93–100: A, 90–92: A-, 87–89: B+, 83–86: B, 80–82: B-, 77–79: C+, 73–76: C, 70–72: C-, 60–69: D, 0–59: F.

Policies

Attendance

You are expected to attend class meetings and come to class prepared. That includes having completed assigned readings, problem sets, and tutorials.

You are expected to dedicate your attention to what is going on in class and to participate fully in classroom activities, including discussions. No laptops or tablets are to be used in class unless being used for a classroom exercise. (Notes may be taken using a device if needed as an approved accommodation.)

Refer to the General Policy Regarding Attendance in the Wofford College Student Handbook. The policy makes you responsible for catching up on missed classes. If you must be absent for class, please email me in advance to let me know.

Make-up exams are not available. If you have a legitimate, excused absence during the midterm exam, then you must make it up during the final exam period.

Assignment Deadlines

Late assignments will not be accepted without a legitimate excuse. All assignments are expected to be submitted by 11:55p ET on the posted deadline.

Academic Integrity

The Honor Code requires faculty, staff, and students to maintain a high standard of individual honor and integrity. While I may specify some assignments as collaborative, work represented as your own must be your own. If you have any doubt about what is appropriate for a given assignment, you should contact me for clarification.

Accommodations

If you have a disability that requires assistance or accommodation, or if you have questions related to any accommodations for testing, note takers, readers, etc., please contact Dean Beth Wallace by telephone at (864) 597-4371 or in person by visiting the Hugh R. Black Infirmary. You must arrange accommodations during the first week of classes.

Tentative Schedule

Generally, assignments are due on Wednesdays and projects are due on Fridays.

This YouTube series might be helpful for basic C++ language understanding. And this YouTube series focuses on data structures. Both have individual videos linked below.

Meeting Topics LearnCPP YouTube In-class Lab Graded
Aug 31 preprocessor, compiler Chapter 0 https://youtu.be/3tIqpEmWMLI; https://youtu.be/H4s55GgAg0I H00 L01
Sep 2 data types, main function Chapter 1 and 4 https://youtu.be/zB9RI8_wExo H01 L02 A00
Sep 4 control structures Chapter C https://youtu.be/qEgCT87KOfc; https://youtu.be/_1AwR-un4Hk Q01 L03
Sep 7 I/O Chapter 18 https://youtu.be/ruf_pj2hGpw; https://youtu.be/XJhIJ6J5obY H02 L04
Sep 9 functions Chapter 2 https://youtu.be/V9zuox47zr0 H03 L05 A01
Sep 11 functions (parameter passing) Chapter 7 https://youtu.be/IzoFn3dfsPA; https://youtu.be/3cm0VckC8q0 Q02 L06
Sep 14 enumerations, strings Chapter S https://youtu.be/x55jfOd5PEE; https://youtu.be/ijIxcB9qjaU H04 L07
Sep 16 H05 A02
Sep 18 arrays Chapter 6 https://youtu.be/Hw42GkHPyvk; https://youtu.be/ENDaJi08jCU; https://youtu.be/gNgUMA_Ur0U Q03 L08 P01
Sep 21 searching, sorting H06 L09
Sep 23 structs Chapter S https://youtu.be/fLgTtaqqJp0 H07 L10 A03
Sep 25 classes Chapter 8 https://youtu.be/2BP8NhxjrO0; https://youtu.be/Ks97R1knQDY Q04 L11
Sep 28 classes Chapter 8 https://youtu.be/3dHBFBw13E0 H08 L12
Sep 30 memory management https://youtu.be/wJ1L2nSIV1s H09 L13 A04
Oct 2 pointers Chapter 6 https://youtu.be/DTxHyVn0ODg; https://youtu.be/NUZdUSqsCs4; https://youtu.be/FXhALMsHwEY; https://youtu.be/D8cWquReFqw Q05 L14
Oct 5 classes with dynamic memory Chapter 8, 9 https://youtu.be/FXhALMsHwEY; https://youtu.be/D8cWquReFqw H10 L15
Oct 7 https://youtu.be/Z_hPJ_EhceI; https://youtu.be/BvR1Pgzzr38 A05
Oct 9 Midterm Review https://youtu.be/BvR1Pgzzr38; https://youtu.be/BvR1Pgzzr38; https://youtu.be/PocJ5jXv8No P02
Oct 12 Midterm Exam
Oct 14 Midterm Exam
Oct 16 Midterm Recap
Oct 19 algorithm analysis https://www.youtube.com/playlist?list=PL8671F220EC32A00E H11 L16
Oct 21 recursion Chapter 7 https://youtu.be/kS_gr2_-ws8; https://youtu.be/v4cd1O4zkGw H12 L17
Oct 23 sorting revisited https://youtu.be/KEEKn7Me-ms; https://youtu.be/oKndim5-G94 Q06 L18
Oct 26 linked lists https://www.youtube.com/playlist?list=PL2_aWCzGMAwKedT2KfDMB9YA5DgASZb3U H13 L19
Oct 28 ADTs https://youtu.be/92S4zgXN17o H14 L20 A06
Oct 30 List ADT (unordered) https://youtu.be/NobHlGUjV3g; https://youtu.be/vcQIFT79_50 Q07 L21
Nov 2 List ADT (ordered) H15 L22
Nov 4 H16 A07
Nov 6 Stack ADT https://youtu.be/F1F2imiOJfk; https://youtu.be/XuCbpw6Bj1U Q08 L23 P03
Nov 9 Queue ADT H17 L24
Nov 11 tree terminology https://youtu.be/qH6yxkw0u78 H18 L25 A08
Nov 13 Binary Search Tree ADT https://youtu.be/pYT9F8_LFTM Q09 L26
Nov 16 Heap ADT https://youtu.be/t0Cq6tVNRBA H19 L27
Nov 18 Map ADT https://youtu.be/shs0KM3wKv8 H20 L28 A09
Nov 20 Graph ADT Q10 L29
Nov 30
Dec 2 A10
Dec 4 Final Exam review P04
Dec 11 Final Exam

Note: This syllabus is subject to change with notice.