Data Structures What The Course Is About Data structures is concerned with the representation and manipulation of data.

Slides:



Advertisements
Similar presentations
Data Structures.
Advertisements

Computer Science 112 Fundamentals of Programming II Overview of Collections.
ADVANCED DATA STRUCTURES AND ALGORITHM ANALYSIS Chapter 3 Lists, Stacks, and Queues.
 Abstract Data Type Abstract Data Type  What is the difference? What is the difference?  Stacks Stacks  Stack operations Stack operations  Parsing.
©Brooks/Cole, 2003 Chapter 12 Abstract Data Type.
CHAPTER 3 COLLECTIONS Abstract Data Types. 2 A data type consists of a set of values or elements, called its domain, and a set of operators acting on.
CS 307 Fundamentals of Computer Science 1 Abstract Data Types many slides taken from Mike Scott, UT Austin.
Lists A list is a finite, ordered sequence of data items. Two Implementations –Arrays –Linked Lists.
CS 104 Introduction to Computer Science and Graphics Problems Data Structure & Algorithms (4) Data Structures 11/18/2008 Yang Song.
Review for Test 2 i206 Fall 2010 John Chuang. 2 Topics  Operating System and Memory Hierarchy  Algorithm analysis and Big-O Notation  Data structures.
©Brooks/Cole, 2003 Chapter 12 Abstract Data Type.
The Most Commonly-used Data Structures
Basic Definitions Data Structures: Data Structures: A data structure is a systematic way of organizing and accessing data. Or, It’s the logical relationship.
1 ES 314 Advanced Programming Lec 2 Sept 3 Goals: Complete the discussion of problem Review of C++ Object-oriented design Arrays and pointers.
C o n f i d e n t i a l Developed By Nitendra NextHome Subject Name: Data Structure Using C Title: Overview of Data Structure.
Instructor: Dr. Sahar Shabanah Fall Lectures ST, 9:30 pm-11:00 pm Text book: M. T. Goodrich and R. Tamassia, “Data Structures and Algorithms in.
Prof. Amr Goneid, AUC1 CSCE 210 Data Structures and Algorithms Prof. Amr Goneid AUC Part 1. Data Modeling and ADTs.
ISOM MIS 215 Module 3 – Stacks and Queues. ISOM Where are we? 2 Intro to Java, Course Java lang. basics Arrays Introduction NewbieProgrammersDevelopersProfessionalsDesigners.
October 18, Algorithms and Data Structures Lecture V Simonas Šaltenis Nykredit Center for Database Research Aalborg University
Introduction to Data Structures. Definition Data structure is representation of the logical relationship existing between individual elements of data.
Design and Analysis of Algorithms CSC201 Shahid Hussain 1.
Chapter 3 List Stacks and Queues. Data Structures Data structure is a representation of data and the operations allowed on that data. Data structure is.
Trees. Introduction to Trees Trees are very common in computer science They come in different forms They are used as data representation in many applications.
Computer Science Department Data Structures and Algorithms Lecture 1.
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.
Java Collections An Introduction to Abstract Data Types, Data Structures, and Algorithms David A Watt and Deryck F Brown © 2001, D.A. Watt and D.F. Brown.
Min Chen School of Computer Science and Engineering Seoul National University Data Structure: Chapter 1.
October 18, Algorithms and Data Structures Lecture V Simonas Šaltenis Nykredit Center for Database Research Aalborg University
Chapter 9 Abstract Data Types and Algorithms Nell Dale John Lewis.
CSE 373: Data Structures and Algorithms Lecture 1: Introduction; ADTs; Stacks; Eclipse.
ACM/JETT Workshop - August 4-5, 2005 Using Visualization Tools To Teach Data Structures and Algorithms Java applets by Dr. R. Mukundan, University of Canterbury,
Chapter 8 Data Abstractions. © 2005 Pearson Addison-Wesley. All rights reserved 8-2 Chapter 8: Data Abstractions 8.1 Data Structure Fundamentals 8.2 Implementing.
Data Structures Lecture 1: Introduction. Course Contents Data Types   Overview, Introductory concepts   Data Types, meaning and implementation  
SOFTWARE DESIGN. INTRODUCTION There are 3 distinct types of activities in design 1.External design 2.Architectural design 3.Detailed design Architectural.
1 Chapter 2 The Big Picture. 2 Overview ● The big picture answers to several questions.  What are data structures?  What data structures do we study?
Elementary Data Organization. Outline  Data, Entity and Information  Primitive data types  Non primitive data Types  Data structure  Definition 
Collections Data structures in Java. OBJECTIVE “ WHEN TO USE WHICH DATA STRUCTURE ” D e b u g.
Computational Complexity of Fundamental Data Structures, Choosing a Data Structure.
Subject Name : Data Structure Using C Title : Linked Lists
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.
Prof. amr Goneid, AUC1 CSCE 110 PROGRAMMING FUNDAMENTALS WITH C++ Prof. Amr Goneid AUC Part 13. Abstract Data Types (ADT’s)
Abstract Data Type EnhanceEdu.
2 Obaid Ullah HOD Computer Science Dept. Superior University Sialkot Campus.
Data-structure-palooza Checkout DataStructures from SVN.
Algorithms and Data Structures Lecture VI
Data Structure and Algorithm Introduction.  The manner in which computer program is being developed is not as simple as you may possibly think.  It.
CSE 373 Data Structures and Algorithms Lecture 1: Introduction; ADTs; Stacks; Eclipse.
Chapter 9 Abstract Data Types and Algorithms Nell Dale John Lewis.
DATA STRUCURES II CSC QUIZ 1. What is Data Structure ? 2. Mention the classifications of data structure giving example of each. 3. Briefly explain.
CPS120: Introduction to Computer Science Nell Dale John Lewis Abstract Data Types.
Introduction toData structures and Algorithms
G64ADS Advanced Data Structures
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.
Course Developer/Writer: A. J. Ikuomola
Fundamentals of Programming II Overview of Collections
Top 50 Data Structures Interview Questions
Chapter 15 Lists Objectives
Data Structures Data Structure is a way of collecting and organising data in such a way that we can perform operations on these data in an effective.
Datastructure.
CSE 373: Data Structures and Algorithms
Chapter 8: Data Abstractions
Data Structures and Database Applications Abstract Data Types
structures and their relationships." - Linus Torvalds
structures and their relationships." - Linus Torvalds
Introduction to Data Structures
Cs212: Data Structures Computer Science Department Lecture 7: Queues.
structures and their relationships." - Linus Torvalds
Presentation transcript:

Data Structures

What The Course Is About Data structures is concerned with the representation and manipulation of data.

What The Course Is About Algorithm design methods needed to develop programs that do the data manipulation.

Data Structures and Algorithms s Data structures have operations that manipulate the data. s The design and implementation of these operations involve algorithms that consist of a finite sequence of instructions to perform a task. s Nicolas Wirth coined the expression "data structures + algorithms = programming."

Data Structures and Object-Oriented Programming s Modern object-oriented programming is an ideal mechanism for designing and implementing a data structure. s Java has good object-oriented design constructs that support a modern view of data structures.

Grades  平時 20%  期中考 40%  期末考 40%

Stack s A container of objects that are inserted and removed according to the last-in-first-out (LIFO) principle. s Only the last (the most recently inserted) object can be removed.

Queue s Differs from a stack in that its insertion and removal follows the first-in-first-out (FIFO) principle. s The element which has been in the queue the longest may be removed.

Sequence (or list) s A collection of linearly arranged element (a linear order). s Provides methods for accessing, inserting, and removing arbitrary elements. s Notion of position, before and after. s Stacks and queues are a restricted form of a sequence. s Example, –A,B,C,D,E,F –a_1, a_2, a_3, …

Tree s A collection of objects arranged in a hierarchical fashion. s E.g., organization of corporation, table of contents, dos/unix file systems, family tree.

Tree s Example,

Priority queue s An abstract type for storing a collection of prioritized elements that s supports arbitrary element insertion but support s removal of elements only in order of priority.

Dictionaries s The collection of objects organized for fast lookup using search keys. s Examples, –binary search trees. –AVL trees.

Graphs s Representing a way of connections or relationships between pairs of objects.