CS145 - Fall 2011
Introduction to Databases
Assigned Work
Assignments in CS145 include four different types of work:
  1. Automated quizzes
  2. Challenge problems
  3. Database exercises using (directly or indirectly):
  4. A three-part programming project, using the SQLite database library and the PHP scripting language
All work in CS145, including the programming project, is completed individually, not as teams.

Automated Quizzes
The purpose of the automated quizzes is to ensure that you have learned the basic material in CS145. You will perform the exercises using a quizzing approach pioneered by
Gradiance. (Gradiance was launched at Stanford in a 2002 offering of CS145, it did time as a commercial product partenered with Pearson Education, and now it's offered as a free service.) The automated exercises are based on "root questions," from which the system generates different instances of the quiz each time you take it. Thus, you can test yourself on the same material multiple times, and you receive immediate feedback for each attempt. We strongly encourage you to continue testing on each topic until you complete the quiz with a perfect score at least once.

Challenge Problems
Challenge problems are more difficult and open-ended than the exercises in the automated quizzes. The challenge problems are designed to make you think more deeply about the topics covered. Some (but not all) of the problems are by design very challenging. We do not expect most students to completely solve every challenge problem in the course. Grading of challenge problems is on a relatively coarse scale, and credit is given if you make a good attempt at a problem in the right direction. (See
Challenge Problem Grading for more details.)

Database Exercises
For many of these exercises (but probably not all), we will provide an automated workbench for you to interactively develop, test, and submit your solutions.

Programming Project: AuctionBase
Your programming project is to build an online auction system called AuctionBase. The project is in three parts, included in three of your later assignments. At the back-end, AuctionBase manages all of its data using the SQLite database management library. At the front-end, AuctionBase provides a friendly web interface to its users. AuctionBase is modeled roughly after the
eBay online auction system. In fact, we will give you a considerable amount of real data downloaded from eBay quite some years ago (courtesy of the University of Wisconsin), to initially populate your AuctionBase system.

We will expect certain minimal functionality in each AuctionBase system -- beyond that, possibilities are unlimited. Minimal functionality includes a variety of queries and browsing capabilities over the current items up for auction, the bids on those items, and the sellers and bidders. AuctionBase also must provide a means for entering bids, and for concluding auctions on individual items. Various integrity constraints must be monitored. Although AuctionBase uses SQLite and therefore has transaction support, multi-user issues are not a focus of the project.

Web programming skills are not required for the AuctionBase project. We will provide skeleton PHP code for most aspects of the web interface. Those students savvy in web programming may rewrite or extend the interface as they please.

At the end of the course, there will be a small contest in which we select a few of the best AuctionBase systems to be demonstrated in class and linked to the course home page. No extra credit is given, but winners will be invited to enjoy lunch at the Stanford Faculty Club with Prof. Widom, the TAs, and the other contest winners.

The scope of the AuctionBase project is such that it can easily be completed by each student in the class individually -- partners or teams will not be used.

Programming and System Issues

To develop the project all students will use the open-source SQLite relational database management library and the PHP scripting language, running under Unix. (See Interfacing with Stanford's Unix Machines.) An initial part of the project involves standalone parsing and processing of XML data, which is typically done using Java. We will assume students are proficient already with Unix and Java, but we are not assuming familiarity with web or database programming -- help sessions will be provided.

In general, students are welcome to use alternative languages, systems, and tools if they wish. However, only SQLite and PHP on the Stanford Unix Corn machines will be supported by the course staff, and the specifications for the project must be met regardless of the languages or tools used. We will provide an XML parser in Java for processing the initial XML data, but students may use other tools or languages if they prefer.

Important note: Students using alternative languages, systems, and tools must be able to submit all of their code using the standard submission procedure. Furthermore, the TAs must be able to compile and run all submitted code on the Stanford Unix Corn machines without any additional packages or runtime support, and with no additional effort over that required for projects using the supported languages and tools.

Late Policy

THIS LATE POLICY WILL BE STRICTLY ENFORCED.

Regrade Policy
Automated quizzes and exercises cannot be regraded (but if you find a significant technical error you'll definitely receive extra credit). If you believe you deserve a regrade in other work, please contact the course staff, explaining precisely why. Please do not ask for a regrade on a challenge problem until you have studied our sample solution. Include your name, @stanford username, and an exact pointer to the work in question. The TA responsible for grading the work will contact you.

Please note that sometimes during regrading we discover a grading error or misjudgement in which too many points were awarded. In this case, your score will be lowered. In other words, a regrade request may result in a higher score, a lower score, or no change.

Honor Code

Under the Honor Code at Stanford, each of you is expected to solve the automated quizzes and exercises independently, and to submit your own original work for challenge problems, database queries, and the programming project. On many occasions when working on assignments (but never exams!) it is useful to ask others -- the instructor, the TAs, or other students -- for hints, or to talk generally about aspects of the assignment. Such activity is both acceptable and encouraged, but you must indicate on all submitted work any assistance (human or otherwise) that you received. Any assistance received that is not given proper citation will be considered a violation of the Honor Code. In any event, you are responsible for understanding, performing or writing up, and being able to explain on your own, all quiz answers and other work that you submit. The course staff will pursue aggressively all suspected cases of Honor Code violations, and they will be handled through official University channels.

If you have any questions about this policy or about the degree to which we will pursue Honor Code violations, please discuss your concerns with the course staff immediately.