Announcements

  1. (Jan 26) Course page is online.
  2. (Jan 26) Please register to the Moodle system. You will submit your assignments using Moodle.
  3. (Mar 17) Homework assignment 1 is available.
  4. (Apr 5) Midterm information is updated.
  5. (Apr 24) Homework assignment 2 is available.
  6. (May 10) Homework assignment 3 is available.
  7. (May 26) Homework assignment 4 is available.
  8. (Jun 6) Final information is updated.

Course Description

This course introduces the abstract data types of lists, stacks and queues, and shows how one can implement them in C++ using fundamental data structures. It also introduces recursion and algorithm analysis.

Instructor

Aynur Dayanık (Office: EA 426, Email: )

Section 1

Lectures: Mon 08:30-10:20 (B-Z01), Wed 13:30-15:20 (B-Z01)

Section 2

Lectures: Mon 10:30-12:20 (B-113), Wed 15:30-17:20 (B-113)

Teaching Assistants

Office Hours

Texts

  1. Frank M. Carrano and Timothy Henry, Data Abstraction and Problem Solving with C++: Walls and Mirrors, 7th edition, Pearson, 2017 (textbook, ebook).
  2. Harvey M. Deitel and Paul J. Deitel, C++ How to Program, any edition, Prentice Hall, 2011 or newer (recommended).

Lectures

Topics

Contents

Introduction

[ Slides ]

Functions

[ Slides ]

  • Ch. 6 (Deitel)

Pointers and Arrays

[ Slides ]

Case Study

[ Slides ]

Multidimensional Arrays

[ Slides ]

  • Ch. 8 (Deitel)

Recursion

[ Slides ]

  • Ch. 2 (Carrano)

Algorithm Analysis

[ Slides ]

Abstract Data Types

[ Slides ]

  • Ch. 1 (Carrano)

Lists

[ Slides ]

Stacks

[ Slides ]

  • Ch. 5, Ch. 6, Ch. 7 (Carrano)

Queues

[ Slides ]

  • Ch. 13, Ch. 14 (Carrano)

Standard Template Library

[ Slides ]

  • Interlude 7 (Carrano)

Exams

Homework

  1. Assignment 1: Due 23:59, April 7, 2023
  2. Assignment 2: Due
  3. Assignment 3: Due
  4. Assignment 4: Due

Homework assignments will be posted on this page. Assignments are expected to be turned in by 23:59 on the due date. You should upload your solutions to the homework assignments using Moodle before the deadline.

Late submissions will not be accepted. Thus, please make sure that you start working on the assignments early enough and submit them on time.

Please make sure you fully understand the Bilkent University Policy on Academic Honesty (in Turkish) and the Rules and Regulations of the Higher Education Council (YOK) (in Turkish). Cheating on exams and homework assignments will be punished according to these regulations.

A very important guideline on academic integrity is the Honor Code for Introductory Programming Courses (CS 101/2 and 201/2) in our department. Please make sure that you are fully aware of these guidelines.

Grading Policy

Homework:20%
Midterm exam:40%
Final exam:40%

In order to be able to take the final exam, a student must

Otherwise, the student will receive the FZ grade.

The instructor also reserve the right to set other thresholds for passing grades.

Advice

When you are in doubt, ask. Use office hours. If you cannot visit us during office hours, you can always ask questions or arrange meetings by e-mail. Study regularly for the course and attend classes. Do your assignments on time and pay attention to the instructions for submitting assignments. Always make sure that the code you submitted does compile and run correctly.

Related Links