1 / 11

CS211 Data Structures

Learn about data structures, their importance, and practical applications. Understand common implementations and how to use them in programming. Get a solid grasp of data organization techniques.

dransom
Download Presentation

CS211 Data Structures

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CS211Data Structures Sami Rollins srollins@mtholyoke.edu Spring 2005

  2. Introduction • What is a data structure? • Why do we need data structures? • What should you know about data structures?

  3. Administrative Information • Course Website • Syllabus • Academic Dishonesty • Tentative Calendar http://www.mtholyoke.edu/courses/srollins/cs211/

  4. Assignments • Reading – Chapter 1 • Homework 0 – due Monday

  5. Data Structures • What is a data structure?

  6. Data Structures • What is a data structure? • “a scheme for organizing related pieces of information.“ -http://www.webopedia.com/TERM/D/data_structure.html • Example “pieces of information”… • Typically describes the operations which can be performed on the data and/or how data are organized to support those operations • An example data structure from CS 101…

  7. Arrays • Primitive data structure • What are the operations supported by an array?

  8. Arrays • Primitive data structure • What are the operations supported by an array? • Insert data item (location) • Access data item (location) • When would you choose to use an array? • Would you ever need different functionality?

  9. Common Data Structures • Stacks – Last In First Out (LIFO) • Insert on top • Remove top element • Queues – First In First Out (FIFO) • Insert at end • Remove from beginning • Trees - Hierarchy • Root • Parent • Children

  10. In this course… • You will learn • Data structures and their operations • Common implementations of data structures • How to use data structures in a program

  11. C Programming Review • What is an algorithm? • What is a variable? How do you declare a variable? • What is a function? • What is an if statement? When would you use one? • What is a loop? What are the different types of loops? When would you use each type? • What is a pointer? • What is an array? • What is a structure?

More Related