CS 70

Homework 7

  • LHS Cow speaking

    This week you will practice the following:

    • Converting a class to a class template.
    • Adapting an implementation to a change in encoding.
    • Implementing a self-balancing binary search tree.
    • Testing the correctness of your data structure.

Getting Started

This assignment is paired, and your repository belongs to your pair. Your pairing for Homeworks 7 and 8 came from the Homeworks 7–8 pairing board, and the repository is named after your group—there is nothing to accept and no team to create.

Both of you have push access to that one repository, so you are working in the same place rather than each having a copy to reconcile later.

  • Hedgehog speaking

    The link says the page doesn't exist!

  • LHS Cow speaking

    That usually means you are not in the CS 70 GitHub organization yet, rather than that your repository is missing. GitHub hides what you cannot see rather than admitting it is there.

  • Cat speaking

    So "not found" and "not allowed" look the same on purpose.

  • LHS Cow speaking

    Exactly—so that nobody can go fishing for the names of private repositories. On the server, cs70-fix-access will check your membership and sort most of this out for you.

Clone your repository on the CS 70 server to get started:

git clone https://github.com/hmc-cs70-fall2026/repo.git

Steps

For these first two parts, the code is pretty much following the Homework 6 specification for tree functionality.

At this point, we'll begin enhancing our TreeSet class template, so you will want to read through the specifications below, but remember, you don't need to start implementing them yet! We'll guide you through the enhancements step-by-step.

As in other assignments, we encourage you to keep the specification document open in a separate window or tab for reference.

Ask for (and give each other) help!

Post your questions there, and be sure to answer each other's.

Resources

Please refer (frequently!) to these specifications for the data structure you will be implementing:

You may also want to review Section 16.1 of the

and, from our help section,


Grading

Completing this assignment is worth 98 points and your submission will be graded as follows:

  • 3 points: Planning (Completeness, not Correctness)
  • 14 points: Repository Status (Code compiles, Correct files submitted, no cpplint errors)
  • 20 points: Coding Style
  • 26 points: Writing Tests
  • 35 points: Implementation Correctness

(When logged in, completion status appears here.)