Data Structures and Database Applications Abstract Data Types

Slides:



Advertisements
Similar presentations
Chapter 9: Data Structures I
Advertisements

CISH 4960 Introduction to Programming Lecture 101 Introduction to Programming Lecture 10 Recursion/Data Structures Tom Blough
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.
Chapter 12: Data Structures
Unit 11 1 Unit 11: Data Structures H We explore some simple techniques for organizing and managing information H This unit focuses on: Abstract Data Types.
©The McGraw-Hill Companies, Inc. Permission required for reproduction or display. ETC - 1 What comes next? Recursion (Chapter 15) Recursive Data Structures.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Java Software Solutions Foundations of Program Design Sixth Edition by Lewis.
1 Data Structures  We can now explore some advanced techniques for organizing and managing information  Chapter 12 of the book focuses on: dynamic 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.
Chapter 12 Collections. © 2004 Pearson Addison-Wesley. All rights reserved12-2 Collections A collection is an object that helps us organize and manage.
COMPSCI 125 Spring 2005 ©TheMcGraw-Hill Companies, Inc. Permission required for reproduction or display. Odds and Ends Strings (from Chapter 9) StringTokenizer.
1 ES 314 Advanced Programming Lec 2 Sept 3 Goals: Complete the discussion of problem Review of C++ Object-oriented design Arrays and pointers.
Liang, Introduction to Java Programming, Ninth Edition, (c) 2013 Pearson Education, Inc. All rights reserved. 1 Chapter 22 Lists, Stacks, Queues, and Priority.
FEN 2012UCN Technology - Computer Science 1 Data Structures and Collections Principles revisited.NET: –Two libraries: System.Collections System.Collections.Generics.
© 2006 Pearson Education Chapter 12: Data Structures Presentation slides for Java Software Solutions for AP* Computer Science A 2nd Edition by John Lewis,
Computer Science Department Data Structures and Algorithms Lecture 1.
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.
Data Design and Implementation. Definitions of Java TYPES Atomic or primitive type A data type whose elements are single, non-decomposable data items.
Chapter 12 Collections. © 2004 Pearson Addison-Wesley. All rights reserved12-2 Collections A collection is an object that helps us organize and manage.
ELC 310 Day 24. © 2004 Pearson Addison-Wesley. All rights reserved12-2 Agenda Questions? Problem set 5 Parts A & B Corrected  Good results  2 A’s, 1.
Chapter 12: Collections by Lewis and Loftus (Updated by Dan Fleck) Coming up: Collections.
Stacks And Queues Chapter 18.
Final Review. From ArrayLists to Arrays The ArrayList : used to organize a list of objects –It is a class in the Java API –the ArrayList class uses an.
Abstract Data Type EnhanceEdu.
 Array is a data structure were elements are stored in consecutive memory location.in the array once the memory is allocated.it cannot be extend any more.
1 Principles revisited.NET: Two libraries: System.Collections System.Collections.Generics Data Structures and Collections.
CPS120: Introduction to Computer Science Nell Dale John Lewis Abstract Data Types.
Code: BCA302 Data Structures with C Prof.(Dr.) Monalisa Banerjee By.
Chapter 3 Lists, Stacks, Queues. Abstract Data Types A set of items – Just items, not data types, nothing related to programming code A set of operations.
9/27/2016IT 1791 Abstraction A tool (concept) to manage complexity Hide irrelevant details; focus on the features needed Primitive date types are already.
Mohammed I DAABO COURSE CODE: CSC 355 COURSE TITLE: Data Structures.
Java Software Solutions Foundations of Program Design Seventh Edition
Chapter 4 Linked Structures.
12 Collections Software Solutions Lewis & Loftus java 5TH EDITION
G64ADS Advanced Data Structures
Fundamentals of Programming II Overview of Collections
CSCI-255 LinkedList.
Data Structure Interview Question and Answers
CS2006- Data Structures I Chapter 5 Linked Lists I.
Midterm Review.
CS Data Structures Chapter 8 Lists Mehmet H Gunes
Sequences and Iterators
Chapter 20 Lists, Stacks, Queues, and Priority Queues
Planning & System installation
Abstraction A tool (concept) to manage complexity
University of Central Florida COP 3330 Object Oriented Programming
Chapter 12: Data Structures
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.
Chapter 12 Collections.
ECET 370 HELPS Education Your Life-- ecet370helps.com.
ECET 370 HELPS Lessons in Excellence- -ecet370helps.com.
ECET370 Education for Service-- ecet370.com. ECET 370 Entire Course (Devry) For more course tutorials visit ECET 370 Week 1 Lab 1 ECET.
ECET 370 HELPS Education for Service- - ecet370helps.com.
structures and their relationships." - Linus Torvalds
Linked node problem 3 What set of statements turns this picture:
structures and their relationships." - Linus Torvalds
Chapter 13 Collections.
Chapter 12 Collections.
PAC Intro to “big o” Lists Professor: Evan Korth New York University
Chapter 12 Collections.
Introduction to Data Structure
Chapter 12 Collections.
Water : Container  Data : Data Structure
Data Structures and Database Applications ACST 3330
structures and their relationships." - Linus Torvalds
Chapter 20 Lists, Stacks, Queues, and Priority Queues
Abstract Data Types (ADTs)
Presentation transcript:

Data Structures and Database Applications Abstract Data Types

Abstraction Collections can be implemented in many different ways Collections should be abstractions That is, they should hide unneeded details We want to separate the interface of the structure from its underlying implementation This helps manage complexity and makes it possible to change the implementation without changing the interface

Abstract Data Types An abstract data type (ADT) is an organized collection of information and a set of operations used to manage that information The set of operations defines the interface to the ADT In one sense, as long as the ADT fulfills the promises of the interface, it doesn't matter how the ADT is implemented Objects are a good programming mechanism to create ADTs because their internal details are encapsulated

Dynamic Structures A static data structure, like an Array, has a fixed size This meaning is different from the meaning of the static modifier Arrays are static because once you define the number of elements it can hold, the size doesn’t change A dynamic data structure grows and shrinks at execution time as required by its contents A dynamic data structure is implemented using object references as links

Object References An object reference is a variable that stores the address of an object A reference also can be called a pointer References often are depicted graphically: student John Smith 40725 3.58

Classic Data Structures Classic linear data structures include Lists, ArrayLists, LinkedLists, Queues and Stacks Classic nonlinear data structures include Dictionaries, Hashtables, Trees and Binary Search Trees