CS211 Data Structures Sami Rollins Fall 2004.

Slides:



Advertisements
Similar presentations
Chapter 1: INTRODUCTION TO DATA STRUCTURE
Advertisements

Data Structure (Part I) Stacks and Queues. Introduction to Stack An stack is a ordered list in which insertion and deletions are made at one end. –The.
Alford Academy Business Education and Computing1 Advanced Higher Computing Based on Heriot-Watt University Scholar Materials Stack and Queues.
CS 206 Introduction to Computer Science II 03 / 04 / 2009 Instructor: Michael Eckmann.
CS 206 Introduction to Computer Science II 03 / 23 / 2009 Instructor: Michael Eckmann.
Structures. An array allows us to store a collection of variables However, the variables must be of the same type to be stored in an array E.g. if we.
Data Structures & Algorithms
Fall 2007CS 2251 Trees Chapter 8. Fall 2007CS 2252 Chapter Objectives To learn how to use a tree to represent a hierarchical organization of information.
CS Data Structures Chapter 3 Stacks and Queues.
CS 112 Intro to Computer Science II Sami Rollins Fall 2006.
Lists A list is a finite, ordered sequence of data items. Two Implementations –Arrays –Linked Lists.
Introduction to Data Structure, Spring 2007 Slide- 1 California State University, Fresno Introduction to Data Structure Introduction of Concepts Ming Li.
CS 206 Introduction to Computer Science II 11 / 04 / 2009 Instructor: Michael Eckmann.
CS 104 Introduction to Computer Science and Graphics Problems Data Structure & Algorithms (4) Data Structures 11/18/2008 Yang Song.
CS 112 Intro to Computer Science II Sami Rollins Spring 2007.
CS 410 Applied Algorithms Applied Algorithms Lecture #1 Introduction, class information, first problems.
CS 206 Introduction to Computer Science II 10 / 26 / 2009 Instructor: Michael Eckmann.
CS211 Data Structures Sami Rollins Fall 2004.
Chapter 12 C Data Structures Acknowledgment The notes are adapted from those provided by Deitel & Associates, Inc. and Pearson Education Inc.
COMP 110 Introduction to Programming Mr. Joshua Stough.
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Chapter 12 – Data Structures Outline 12.1Introduction.
Data Structures from Cormen, Leiserson, Rivest & Stein.
CS 101 Problem Solving and Structured Programming in C Sami Rollins Spring 2003.
CS102 Object-Oriented Intermediate Programming Sami Rollins Spring 2006.
1 Stack Data : a collection of homogeneous elements arranged in a sequence. Only the first element may be accessed Main Operations: Push : insert an element.
Priority Queues and Heaps Bryce Boe 2013/11/20 CS24, Fall 2013.
Chapter 12 Data Structure Associate Prof. Yuh-Shyan Chen Dept. of Computer Science and Information Engineering National Chung-Cheng University.
Digital Electronics Data Structures LISP
Week7 Stack Data Structures & Algorithms. Introduction to Stacks and Queues Widely used data structures Ordered List of element Easy to implement Easy.
Damian Gordon.  What is a queue?  It’s a structure that conforms to the principle of First In, First Out (FIFO).  The first item to join the.
Data Structures Lecture 1: Introduction Azhar Maqsood NUST Institute of Information Technology (NIIT)
Introduction to Data Structures. Definition Data structure is representation of the logical relationship existing between individual elements of data.
 2007 Pearson Education, Inc. All rights reserved C Data Structures.
Stacks and Queues Introduction to Computing Science and Programming I.
CS-2852 Data Structures LECTURE 13A Andrew J. Wozniewicz Image copyright © 2010 andyjphoto.com.
ECE 103 Engineering Programming Chapter 61 Abstract Data Types Herbert G. Mayer, PSU CS Status 6/4/2014 Initial content copied verbatim from ECE 103 material.
Course Web Page Most information about the course (including the syllabus) will be posted on the course wiki:
Information and Computer Sciences University of Hawaii, Manoa
For Monday Read Weiss, chapter 7, sections 1-3. Homework –Weiss, chapter 4, exercise 6. Make sure you include parentheses where appropriate.
CS261 – Recitation 5 Fall Outline Assignment 3: Memory and Timing Tests Binary Search Algorithm Binary Search Tree Add/Remove examples 1.
Chapter 9 (modified) Abstract Data Types and Algorithms Nell Dale John Lewis.
9-1 Abstract Data Types Abstract data type A data type whose properties (data and operations) are specified independently of any particular implementation.
A data structure is a type of data storage ….similar to an array. There are many data structures in Java (Stacks, Queues, LinkedList, Sets, Maps, HashTables,
Trees CS 105. L9: Trees Slide 2 Definition The Tree Data Structure stores objects (nodes) hierarchically nodes have parent-child relationships operations.
Data Structures: Advanced Damian Gordon. Advanced Data Structure We’ll look at: – Linked Lists – Trees – Stacks – Queues.
Foundation of Computing Systems Lecture 3 Stacks and Queues.
Arrays and Collections Tonga Institute of Higher Education.
Data Structures Types of Data Structure Data Structure Operations Examples Choosing Data Structures Data Structures in Alice.
CSS446 Spring 2014 Nan Wang  Java Collection Framework ◦ Stack ◦ Queue & Priority Queue 2.
Chapter 16 – Data Structures and Recursion. Data Structures u Built-in –Array –struct u User developed –linked list –stack –queue –tree Lesson 16.1.
Data Structures Chapter 6. Data Structure A data structure is a representation of data and the operations allowed on that data. Examples: 1.Array 2.Record.
ITEC 2620M Introduction to Data Structures Instructor: Prof. Z. Yang Course Website: ec2620m.htm Office: Tel 3049.
Computer Engineering Rabie A. Ramadan Lecture 6.
Data Structures David Kauchak cs302 Spring Data Structures What is a data structure? Way of storing data that facilitates particular operations.
Computer Science: A Structured Programming Approach Using C1 Objectives ❏ To introduce the basic concepts of linked lists ❏ To introduce the basic concepts.
3/3/20161 Stacks and Queues Introduction to Data Structures Ananda Gunawardena.
2 Binary Heaps What if we’re mostly concerned with finding the most relevant data?  A binary heap is a binary tree (2 or fewer subtrees for each node)
CPS120: Introduction to Computer Science Nell Dale John Lewis Abstract Data Types.
Sami Rollins Spring 2006 CS312 Algorithms Sami Rollins Spring 2006.
Set Collection A Bag is a general collection class that implements the Collection interface. A Set is a collection that resembles a Bag with the provision.
Chapter 12 – Data Structures
March 27 – Course introductions; Adts; Stacks and Queues
Chapter 15 Lists Objectives
ITEC 2620M Introduction to Data Structures
Introduction to Data Structures
ITEC 2620M Introduction to Data Structures
MTree An implementation and An example with m=3
Pointers & Dynamic Data Structures
Ալգորիթմներ Stack, Queue, Tree.
Presented by : Aman Gupta PGT CS KV No.1, Narimedu, Madurai
Presentation transcript:

CS211 Data Structures Sami Rollins Fall 2004

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

Administrative Information Course Website Syllabus Academic Dishonesty Tentative Calendar

Assignments Reading – Chapter 1 Homework 0 – due Monday

Data Structures What is a data structure?

Data Structures What is a data structure? –“a scheme for organizing related pieces of information.“ - 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…

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

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?

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

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

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?