Code: BCA302 Data Structures with C Prof.(Dr.) Monalisa Banerjee By.

Slides:



Advertisements
Similar presentations
1 DATA ABSTRACTION: USER DEFINED TYPES AND THE CLASS.
Advertisements

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.
Basic Definitions Data Structures: Data Structures: A data structure is a systematic way of organizing and accessing data. Or, It’s the logical relationship.
INTRODUCTION TO DATA STRUCTURE. Topics To Be Discussed………………………. Meaning of Data Structure Classification of Data Structure Data Structure Operations.
Data Structures Data structures permit the storage of related data for use in your program. –Arrays.
Data Structures 1- Course Syllabus. 2- Introduction about Data Structures.
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.
Prof. Amr Goneid, AUC1 CSCE 210 Data Structures and Algorithms Prof. Amr Goneid AUC Part 1. Data Modeling and ADTs.
Object Oriented Data Structures
Introduction to Data Structures. Definition Data structure is representation of the logical relationship existing between individual elements of data.
Representing variables according to the ISO/IEC standard.
Unit III : Introduction To Data Structures and Analysis Of Algorithm 10/8/ Objective : 1.To understand primitive storage structures and types 2.To.
Computer Science Department Data Structures and Algorithms Lecture 1.
Prepared By Ms.R.K.Dharme Head Computer Department.
Data Structure & File Systems Hun Myoung Park, Ph.D., Public Management and Policy Analysis Program Graduate School of International Relations International.
Chapter 9 (modified) Abstract Data Types and Algorithms Nell Dale John Lewis.
Data Design and Implementation. Definitions of Java TYPES Atomic or primitive type A data type whose elements are single, non-decomposable data items.
ABSTRACT DATA TYPES Data types, data structures, abstract data types, Java/C++ classes, C++ structs.
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 
Prof. amr Goneid, AUC1 CSCE 110 PROGRAMMING FUNDAMENTALS WITH C++ Prof. Amr Goneid AUC Part 13. Abstract Data Types (ADT’s)
Data Design and Implementation. Definitions Atomic or primitive type A data type whose elements are single, non-decomposable data items Composite type.
Topic 2 Collections. 2-2 Objectives Define the concepts and terminology related to collections Discuss the abstract design of collections.
Stacks A stack is a linear data structure that can be accessed only at one of its ends for storing and retrieving data LIFO (Last In First Out) structure.
Stack Data Structure By Marwa M. A. Elfattah. Stack - What A stack is one of the most important non- primitive linear data structure in computer science.
REEM ALMOTIRI Information Technology Department Majmaah University.
CPS120: Introduction to Computer Science Nell Dale John Lewis Abstract Data Types.
C LANGUAGE UNIT 3. UNIT 3 Arrays Arrays – The concept of array – Defining arrays – Initializing arrays.
CSE 373, Copyright S. Tanimoto, 2002 Abstract Data Types - 1 Abstract Data Types Motivation Abstract Data Types Example Using math. functions to describe.
Lecture 1 Data Structures Aamir Zia. Introduction Course outline Rules and regulations Course contents Good Programming Practices Data Types and Data.
Code: BCA302 Data Structures with C Prof.(Dr.) Monalisa Banerjee By.
9/27/2016IT 1791 Abstraction A tool (concept) to manage complexity Hide irrelevant details; focus on the features needed Primitive date types are already.
Introduction toData structures and Algorithms
Data Structure By Amee Trivedi.
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.
Lecture 1 (UNIT -4) TREE SUNIL KUMAR CIT-UPES.
Course Developer/Writer: A. J. Ikuomola
Data Structure Interview Question and Answers
Chapter 10-1: Structure.
MEMORY REPRESENTATION OF STACKS
Abstraction A tool (concept) to manage complexity
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.
Data Structures Interview / VIVA Questions and Answers
11.1 The Concept of Abstraction
Cinda Heeren / Geoffrey Tien
Data Structures and Database Applications Abstract Data Types
Introduction to Data Structure
structures and their relationships." - Linus Torvalds
Abstract Data Types (ADTs)
Trees and Binary Trees.
structures and their relationships." - Linus Torvalds
Introduction to Data Structures
ITEC 2620M Introduction to Data Structures
CSCI 3333 Data Structures Array
Data structures and algorithms
Java Programming Review 1
Dynamic Data Structures and Generics
Introduction to Data Structure
Abstract Data Types, Elementary Data Structures and Arrays
Chapter 9: Pointers and String
CS2013 Lecture 7 John Hurley Cal State LA.
C Language B. DHIVYA 17PCA140 II MCA.
structures and their relationships." - Linus Torvalds
Abstract Data Types Stacks CSCI 240
A type is a collection of values
LINEAR DATA STRUCTURES
11.1 The Concept of Abstraction
Abstract Data Types (ADTs)
Presentation transcript:

Code: BCA302 Data Structures with C Prof.(Dr.) Monalisa Banerjee By

Basic concepts of data representation: abstract and system defined types, primitive data structures

Data Type Data Type is a term which refers to the kinds of data that variables may hold in any programming language. Eg. In ‘C’ - int, float & char Data classification – a) Abstract Data Type (ADT) & b) System Defined Data Type (SDT)

Abstract Data Type ADT - a term which refers to the basic mathematical concept that defines mathematical concept that defines the data type at logical level. the data type at logical level. Abstraction is the structuring of a Abstraction is the structuring of a nebulous problem into well defined nebulous problem into well defined entities by defining their data & entities by defining their data & operations which are coupled with operations which are coupled with each other. each other.

Abstract Data Type With abstraction a well defined entity can be created which can be properly handled & these entities define the data structure of a set of items. With abstraction a well defined entity can be created which can be properly handled & these entities define the data structure of a set of items. Definition – An ADT is defined by Definition – An ADT is defined by i) Set of values i) Set of values ii) Operations on these values ii) Operations on these values

Abstract Data Type Examples – a) Integers a) Integers i) Values: …, -2, -1, 0, 1, 2, … i) Values: …, -2, -1, 0, 1, 2, … ii) Operations: +, -, %, <, … ii) Operations: +, -, %, <, … b) Stack b) Stack i) Values: set of elements of same type i) Values: set of elements of same type ii) Operations: Push, Pop ii) Operations: Push, Pop

System Defined Data Type SDT - a mapping which specifies how every object of ADT is to be represented every object of ADT is to be represented in the environment where it is going to in the environment where it is going to be implemented. be implemented. This requires that every function of ADT This requires that every function of ADT must be written using the functions of must be written using the functions of implementing data type. implementing data type.

Data Structure Data structure is a way of organizing data that specifies: i) A set of data elements or a data object ii) A set of operations which may legally be applied to elements of this data object Example – A data object “integers” along with a description of how arithmetic operations +, -, /, etc can be applied to it constitutes a data structure definition

Data Structure Data structure can be classified by many ways: 1) Primitive & Non-Primitive Primitive data structure defines a set of primitive elements which do not involve any other elements as its subparts. Primitive data structure defines a set of primitive elements which do not involve any other elements as its subparts. Example - data structure defined for integers, characters etc.

Data Structure Non-primitive data structure defines a set of derived elements. Non-primitive data structure defines a set of derived elements. Example – In ‘C’ a ‘struct’ data structure can consist of a set of elements which may be of different data types.

Data Structure 2) Linear & Non-linear Linear data structure defines such a set of operations which do not create hierarchical structures among the elements of its data object. Linear data structure defines such a set of operations which do not create hierarchical structures among the elements of its data object. Example – array, single linked list etc.

Data Structure Non-linear or hierarchical data structure defines such a set of operations which create an hierarchical structure among the elements of its data object. Non-linear or hierarchical data structure defines such a set of operations which create an hierarchical structure among the elements of its data object. Example – Binary tree.