Fundamentals of Computer Science II (CSC-152 97F)
Outline of Class 1: Introduction
- CS 152 is primarily a course in Data Structures
- A data structure is a formalism for organizing and managing
data. Often, the way your organize the information in
your program permits or inhibits particular operations.
Different structures may also provide different costs
(in time or space of different operations).
- An algorithm expresses the steps involved in a procedure.
- CS 152 is also a course in procedural and object-oriented programming.
- Presumably, you've seen a little bit of each in 152 (or
in whatever CS courses you've taken before 151).
- Yes, we'll talk more about each.
- We will be using Java as our implementation language
in 152. Note that the language is much less important than
the concepts we learn. We are using Java because it felt
appropriate for this course.
- Before we delve too far into these issues, we should ground
ourselves somewhat by asking ourselves a few questions
(and I'll be asking these of the class).
- What is Computer Science?
- What is Computer Programming?
- How are they similar? How are they different?
- What is an algorithm?
- What is a computer program?
- We also want to ask ourselves some practical questions.
- What programming languages do we know?
- What CS or programming concepts are we least comfortable with?
- How comfortable are we with the workstations and Unix?
- Finally, I'd like you to reflect on the course (and you'll be doing
this again on the introductory survey).
- Why are you taking this course?
- What do you expect to get out of this class?
- A data structure is a structure designed to organize data.
You may already be familiar with two basic data structures:
the list and the vector.
- Both lists and vectors gather data into a sequence.
- More importantly, they provide facilities for manipulating the
- You can extract an element from the sequence.
- You can change an element in the sequence.
- (Sometimes) you can insert or remove an element from the
- Vectors and lists differ in the operations they provide and the
costs associated with each operation.
- In designing your own data structures, you will be concerned with
- The interface -- the operations the data structure
- The implementation -- how you actually provide those
operations (and how you store the data to provide those
- The efficiency of your implementation.
- The applications of the data structure.
- (Note that we want a clear barrier between interface and implementation,
so that a client of one of your data structures need only know
what you do and not how you do it.)
- This term, we will be looking at each of these aspects of a number of
the key data structures in CS.
- Computer Scientists have developed a number of strategies for looking
at algorithm and data design, including
- procedural / imperative
- While individual definitions of each category may differ, most
definitions have some similarities.
- As you might guess, object-oriented languages concern themselves with
- You might have a sense of what a "real world object is".
- In computerese, an object is a collection of information
(sometimes called "attributes") and operations that
the object can perform (called "methods").
- We often categorize objects into classes. A class specifies
common aspects of a set of objects. These aspects are often
generic attributes and specifications of methods (E.g., "all objects in
this class have a color, a size, and can draw themselves.")
- When creating new objects, we must specify the class to
which they belong.
- Most object-oriented languages support inheritance, in which
classes can be based upon other classes. For example, we
might say that trees are a subclass of plants.
- A subclass "inherits" the attributes and methods of its
- Many object-oriented languages are event-driven. That is,
you can specify "when this event happens, call this method
of this object."
Disclaimer Often, these pages were created "on the fly" with little, if any, proofreading. Any or all of the information on the pages may be incorrect. Please contact me if you notice errors.
Source text last modified Tue Oct 7 16:50:02 1997.
This page generated on Wed Nov 5 12:38:53 1997 by SiteWeaver.
Contact our webmaster at firstname.lastname@example.org