Lecture # 02 07/02/2013Dr. Muhammad Umair 1. 07/02/2013Dr. Muhammad Umair 2  Numeric  Integer Numbers  0,10,15,4563 etc.  Fractional Number  10.5,

Slides:



Advertisements
Similar presentations
Slide: 1 Interra Induction Training Data Structure ADT & Complexity.
Advertisements

Analysis of Algorithms
Boolean Algebra. Starter Task State 5 basic data types together with one operation that can be performed on each. We have looked at 4 in the past few.
Lecture - 1 on Data Structures. Prepared by, Jesmin Akhter, Lecturer, IIT,JU Data Type and Data Structure Data type Set of possible values for variables.
Review Binary –Each digit place is a power of 2 –Any two state phenomenon can encode a binary number –The number of bits (digits) required directly relates.
Elementary Data Types Scalar Data Types Numerical Data Types Other
PZ04A Programming Language design and Implementation -4th Edition Copyright©Prentice Hall, PZ04A - Scalar and composite data Programming Language.
Structured Data Types and Encapsulation Mechanisms to create new data types: –Structured data Homogeneous: arrays, lists, sets, Non-homogeneous: records.
Basic Definitions Data Structures: Data Structures: A data structure is a systematic way of organizing and accessing data. Or, It’s the logical relationship.
2 Systems Architecture, Fifth Edition Chapter Goals Describe numbering systems and their use in data representation Compare and contrast various data.
The Design and Analysis of Algorithms
Important Problem Types and Fundamental 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.
Data Structures Winter What is a Data Structure? A data structure is a method of organizing data. The study of data structures is particularly important.
Data Structures Lecture 1: Introduction Azhar Maqsood NUST Institute of Information Technology (NIIT)
SCSC 311 Information Systems: hardware and software
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 8 Data Abstractions Introduction to CS 1 st Semester, 2015 Sanghyun Park.
Shawlands Academy Higher Computing Data Representation.
Unit III : Introduction To Data Structures and Analysis Of Algorithm 10/8/ Objective : 1.To understand primitive storage structures and types 2.To.
Cis303a_chapt03-2a.ppt Range Overflow Fixed length of bits to hold numeric data Can hold a maximum positive number (unsigned) X X X X X X X X X X X X X.
Lecture DS & Algorithms:09 Abstract Data Types. Lecture DS & Algorithms:09 2 Abstract Data Types Data Type: A data type is a collection of values and.
Computer Science Department Data Structures and Algorithms Lecture 1.
Instructor Information: Dr. Radwa El Shawi Room: Week # 1: Overview & Review.
DATA STRUCTURES (CS212D) Week # 1: Overview & Review.
CS212: DATA STRUCTURES Lecture 1: Introduction. What is this course is about ?  Data structures : conceptual and concrete ways to organize data for efficient.
Chapter 2 ARRAYS.
Course Teacher: Moona Kanwal
Arrays.
Data Strcutures.
Data Structure & File Systems Hun Myoung Park, Ph.D., Public Management and Policy Analysis Program Graduate School of International Relations International.
DATA REPRESENTATION, DATA STRUCTURES AND DATA MANIPULATION TOPIC 4 CONTENT: 4.1. Number systems 4.2. Floating point binary 4.3. Normalization of floating.
Data Structures and Algorithms Lecture 3 Instructor: Quratulain Date: 8 th September, 2009.
Data Structures and Algorithms Lecture 1 Instructor: Quratulain Date: 1 st Sep, 2009.
Data Structure Introduction.
Data Structures Lecture 1: Introduction. Course Contents Data Types   Overview, Introductory concepts   Data Types, meaning and implementation  
Views of Data Data – nouns of programming world the objects that are manipulated information that is processed Humans like to group information Classes,
Elementary Data Organization. Outline  Data, Entity and Information  Primitive data types  Non primitive data Types  Data structure  Definition 
Irvine, Kip R. Assembly Language for Intel-Based Computers 6/e, Signed Integers The highest bit indicates the sign. 1 = negative, 0 = positive.
Chapter 12 Abstract Data Type. Understand the concept of an abstract data type (ADT). Understand the concept of a linear list as well as its operations.
DATA STRUCTURES (CS212D) Overview & Review Instructor Information 2  Instructor Information:  Dr. Radwa El Shawi  Room: 
REEM ALMOTIRI Information Technology Department Majmaah University.
Data Structure and Algorithms
Computer Science: A Structured Programming Approach Using C1 Objectives ❏ To introduce the basic concepts of linked lists ❏ To introduce the basic concepts.
BITS Pilani Pilani Campus Data Structure and Algorithms Design Dr. Maheswari Karthikeyan Lecture1.
Software Design and Development Storing Data Computing Science.
1 Scalar and composite data Programming Language Design and Implementation (4th Edition) by T. Pratt and M. Zelkowitz Prentice Hall, 2001 Section
Scalar and composite data Programming Language Design and Implementation (4th Edition) by T. Pratt and M. Zelkowitz Prentice Hall, 2001 Section
Chapter 9: Data types and data structures OCR Computing for A Level © Hodder Education 2009.
UNIT-V ABSTRACT DATA TYPE 1.LIST 2.STACK 3.QUEUE EC6301-II-ECE-C.
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
Course Developer/Writer: A. J. Ikuomola
The Design and Analysis of Algorithms
Data Structure Interview Question and Answers
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.
Arrays.
Introduction to Data Structure
Data Structures (CS212D) Overview & Review.
Chapter 15 Lists Objectives
كلية المجتمع الخرج البرمجة - المستوى الثاني
Introduction to Data Structures
Week # 1: Overview & Review
Data Structures (CS212D) Overview & Review.
Binary Trees: Motivation
Introduction to Data Structures
By Yogesh Neopaney Assistant Professor Department of Computer Science
COP3530- Data Structures Introduction
Presentation transcript:

Lecture # 02 07/02/2013Dr. Muhammad Umair 1

07/02/2013Dr. Muhammad Umair 2  Numeric  Integer Numbers  0,10,15,4563 etc.  Fractional Number  10.5, 78.67, 20.0  Character  A, X, U, o, r etc.

 Integer Numbers  Binary Number System  positive integers only  Maximum decimal Value  2 n – 1  Minimum decimal Value 00  No of values 2n2n 07/02/2013Dr. Muhammad Umair 3

 Integer Numbers  Ones Compliment  negative numbers  Minimum Value  -2 n  Maximum Value  2 n-1 -1  No. of Values  2 n /02/2013Dr. Muhammad Umair 4

 Integer Numbers  Two’s Compliment  negative number  Minimum Value  -2 n-1  Maximum Value  2 n-1 -1  No. of Values 2n2n  Binary Coded Decimal 07/02/2013Dr. Muhammad Umair 5

 Fractional Number  Mantissa  Base  Exponent   5778 x  Mantissa  5778  Base  10  Exponent  -2 07/02/2013Dr. Muhammad Umair 6

 Character  byte size  Minimum no. of bits required to represent a character value  Byte  No. of bits used to represent one character in the system  Hardware & Software Implementation 07/02/2013Dr. Muhammad Umair 7

 Data Type  is the collection of objects and the set of operations that act on those objects.  Abstract Data Type  is a data type that is organized in such a way that the specification of the objects and the specification of the operations on the objects is separated from the representation of the objects and the implementation of the operations. 07/02/2013Dr. Muhammad Umair 8

 Storage Representation of User Data  Understandable for computer  Retrieval of Stored Data  Understandable for user  Transformation of User Data  Operations to transform data from one to another 07/02/2013Dr. Muhammad Umair 9

 Domain ( D )  Range of values  Function ( F )  Set of operations  Axioms ( A )  Set of rules 07/02/2013Dr. Muhammad Umair 10

07/02/2013Dr. Muhammad Umair 11  Logical or mathematical model of a particular organization of data  Arrays  String  Link List  Tree  Graph  Stacks & Queues

07/02/2013Dr. Muhammad Umair 12  Traversing  Searching  Inserting  Deleting  Sorting  Merging

Data Structure Physical Arrays, Linked List Logical Strings, Stack, Queues, Tree, Graphs 07/02/2013Dr. Muhammad Umair 13

Data Structure Linear Arrays, Linked List, Strings, Stack, Queues Non-Linear Tree, Graphs, Sets 07/02/2013Dr. Muhammad Umair 14

07/02/2013Dr. Muhammad Umair 15  Identifier keeps the base address  Length = UB - LB - 1  Address of particular element  Base = B,  Size of element = W,  Lower Bound = LB,  Index = I  Loc (A[ I ]) = B + W * ( I - LB)

07/02/2013Dr. Muhammad Umair 16  No. of Rows = M, No. of Columns= N  Row Major  Loc (A[I][J]) = B + W * [N (I-RLB) + (J-CLB)]  Column Major  Loc (A[I][J]) = B + W * [M (J-CLB) + (I-RLB)]

07/02/2013Dr. Muhammad Umair 17  Row Major  A[I][J][K] = BA + W * [ ( I – 1LB) * M * N + ( J - 2LB ) * N + ( K - 3LB)]  Column Major  A[I][J][K] = BA + W * [ ( K – 3LB) * L * M + ( J - 2LB ) * M + ( I - 1LB)]