SlideShare une entreprise Scribd logo
1  sur  18
INTRODUCTION DATASTRUCTURE
What is Data Structure?
•Data Structure: Data structure is a way to storing and organizing data in a computer
so that it can be used efficiently.
•Data structure is used in almost all program and software system.
•Data structure usually consist of two things:
1. The type of structure that we are going to use stores the data.
2. How efficiently we perform operations onto that data stored in structure so we
can reduce execution time and amount of memory space.
lavparmar.blogspot
Data and Information.
•Data: - Data is a collection of raw facts(or information) and it may or may not be
meaningful.
•Information: - meaningful data is known as Information.
•Example:
Program- set of instruction.
67.8- Weight of person.
13/3/1999- Date of birth of a person.
Define following terms:
(a) Cell:
•The smallest fundamental structural unit which represents a data entity.
•Cell is a memory location which stores elements of data items.
(b) Field: Field is used to store particular kind of data.
(c) Record: a record is a collection of related data items.
For example: Employee details
lavparmar.blogspot
Types of Data Structure
lavparmar.blogspot
 Primitive Data Structure:
•The Data structures that are directly processed by machine using its instructions are
known as primitive data structure.
•Following are the primitive data structure:
Integer:
•Integer represents numerical values which are whole quantities.
•The number of objects are countable can be represented by an integer.
•The set of integer is:{…..-(n+1), -n , ….. , -2, -1,0,1,2,………n,n+1}
•The sign and magnitude method is used to represent integer numbers. In this
method place a sign symbol in front of the number.
•Ex: 1000
lavparmar.blogspot
Real:
(a)The number having fractional part i.e decimal point is called real number.
(b)Common way of representing real number is normalized floating point
representation.
(c)In this method the real number is expressed as a combination of mantissa and
exponent.
(d)Ex: 123.45
Character:
•Character data structure is used to store nonnumeric information.
•It can be letters [A-Z], [a-z], operators and special symbols.
•A character is represented in memory as a sequence bits.
•Two most commonly known character set supported by computer are ASCII and EBCDIC.
Logical:
•A logical data item is a primitive data structure that can assume the values of either “true” or
“false”.
•Most commonly used logical operators Are AND, OR and NOT.
Pointer:
•Pointer is a variable which points to the memory address. This memory address is the
location of other variable in memory.
•It provides homogeneous method of referencing any data structure, regardless of the
structure’s type or complexity.
•Another characteristic is that it provides faster insertion and deletion of elements.
lavparmar.blogspot
 Non Primitive Data Structure:
•The data structures that are not directly processed by machine using its
instructions are known as non primitive data structure.
•Following are the non primitive data structure:
Array:
•Array is an ordered set which consist of a fixed number of object.
•Insertion and deletion operation can be performed on array.
•We can only change the value of the element in array.
List:
•List is an ordered set which consist of variable number of elements or object.
•Insertion and deletion can be performed on list.
File:
•A file is a large list that is stored in the external memory of computer.
•A file may be used as a repository for list items commonly called records.
lavparmar.blogspot
•Non Primitive Data Structure is classified into two categories:
Non linear Data structureLinear Data structure
lavparmar.blogspot
 Linear and Non Linear data structure.
Linear Data Structure:
• In the linear data structure processing of data items is possible in
linear fashion.
• Data are processed one by one sequentially.
• Examples of the linear data structure are:
(A) Array (B) Stack (C) Queue (D) Linked List
(A) Array: Array is an ordered set which consist of a fixed number
of object.
(B) Stack: A stack is a linier list in which insertion and
deletion operations are performed at only one
end of the list.
lavparmar.blogspot
(C) Queue: A queue is a linier list in which insertion is performed at one end called rear
and deletion is performed at another end of the list called front.
(D) Linked list: A linked list is a collection of nodes.
Each node has two fields:
(1) Information
(2) Address, which contains the address of the next node.
lavparmar.blogspot
Non Linear data structure:
In the Non linier data structure processing of data items is not possible in linier
fashion.
Examples of the non linier data structure are:
(A)Tree (B) Graph
(A) Tree: In tree data contains hierarchical relationship
BSPP
CE EC IT
Delhi Bomba
y
(B) Graph: this data structure contains relationship between pairs of elements.
Delhi Bombay
Calcutta Madras
lavparmar.blogspot
1.Operations on Data Structure:
•Traversing: Access each element of the data structure and doing some processing over
the data.
•Inserting: Insertion of new elements into the data structure.
•Deleting: Deletion of specific elements.
•Searching: Searching for a specific element.
•Sorting: Sorting the data in ascending or descending ordered.
•Merging: Combination of two data structure.
lavparmar.blogspot
1.Algorithms:
•Algorithm is a stepwise solution to a problem.
•Algorithm is a finite set of instructions that is followed to accomplish a particular task.
•In mathematics and computing, an algorithm is a procedure for accomplishing some task
which will terminate in a defined end-state.
•The computational complexity and efficient implementation of the algorithm are
important in computing, and this depends on suitable data structure.
lavparmar.blogspot
•Example:
Write Algorithm to compute the average of n elements.
Steps:
ALGORITHM: FIND AVERAGE OF N NUMBER
Assume that array contains n integer values.
•[INITIALIZE] sum ←0.
•[PERFORM SUM OPERATION]
Repeat steps from i=0 to n-1
sum←sum+a[i]
•[CALCULATE AVERAGE]
avg←sum/n
•Write avg
•[FINISHED]
Exit
lavparmar.blogspot
•Properties required for algorithm.
•Finiteness: “An algorithm must always terminate after a finite number of steps”.
•Definiteness: “Each steps of algorithm must be precisely defined”.
•Input: “quantities which are given to it initially before the algorithm begins”.
•Output: “quantities which have a specified relation to the input”.
•Effectiveness: “all the operations to be performed in the algorithm must be
sufficient”.
lavparmar.blogspot
lavparmar.blogspot
List Array
(1) No. of elements in a list are not fixed
(variable).(Dynamic Data structure)
(1) No. of elements in an array is fixed.
(Static Data structure)
(2)It uses pointer variable which occupies an
extra memory space.
(2) It does not use pointer variable so it does
not occupies extra memory space.
(3) Insertion and deletion operation are very
easy to perform.
(3) Insertion and deletion operation are very
difficult to perform.
(4) There are two types of List:
1. Linear List
2. Non Linear List
(4) There are two types of array:
1. One dimensional array
2. Two dimensional array
(5) Searching is slower in case of List. (5) Searching is faster in case of array.
Difference between List and Array
Static Memory Allocation Dynamic Memory Allocation
(1) Static Memory Allocation is Performed at
Compile Time.
(1) Dynamic Memory Allocation is
Performed at Runtime.
(2) In Static Memory Allocation Memory may
be wasted.
(2) In Dynamic Memory Allocation memory
is allocated when it is needed. So there is no
wastage of memory.
(3) Array is an example of static memory
allocation.
(3) Linked List is an example of dynamic
memory allocation. We can use malloc ()
function to allocate memory at runtime.
(4) In static memory allocation memory is
allocated sequentially.
(4) In dynamic memory allocation memory is
not allocated sequentially.
Difference between Static Memory allocation and Dynamic Memory allocation.
lavparmar.blogspot
FOR MORE DETAILS
EDUCATION MATERIAL , BOOKS , SOFTWARE
VISIT TO OUR BLOG : LAVPARMAR.BLOGSPOT.IN
VPMPROCKS.BLOGSPOT.IN
BADSHAH-COLLECTION.BLOGSPOT.IN
CE10.GUJ.BZ

Contenu connexe

Tendances

Data Structures - Lecture 2 [Introduction to Data Structures]
Data Structures - Lecture 2 [Introduction to Data Structures]Data Structures - Lecture 2 [Introduction to Data Structures]
Data Structures - Lecture 2 [Introduction to Data Structures]Muhammad Hammad Waseem
 
Introduction to data structure ppt
Introduction to data structure pptIntroduction to data structure ppt
Introduction to data structure pptNalinNishant3
 
introduction to Data Structure and classification
 introduction to Data Structure and classification introduction to Data Structure and classification
introduction to Data Structure and classificationchauhankapil
 
Introduction of Data Structure
Introduction of Data StructureIntroduction of Data Structure
Introduction of Data StructureMandavi Classes
 
Introduction to data structure
Introduction to data structureIntroduction to data structure
Introduction to data structureZaid Shabbir
 
Introduction to Data Structures
Introduction to Data StructuresIntroduction to Data Structures
Introduction to Data StructuresAmar Jukuntla
 
DATA STRUCTURE
DATA STRUCTUREDATA STRUCTURE
DATA STRUCTURERohit Rai
 
Chapter 1( intro & overview)
Chapter 1( intro & overview)Chapter 1( intro & overview)
Chapter 1( intro & overview)MUHAMMAD AAMIR
 
Introduction To Data Structures.
Introduction To Data Structures.Introduction To Data Structures.
Introduction To Data Structures.Education Front
 
data structure
data structuredata structure
data structurehashim102
 
Introduction to Data Structure part 1
Introduction to Data Structure part 1Introduction to Data Structure part 1
Introduction to Data Structure part 1ProfSonaliGholveDoif
 
Presentation on Data Structure
Presentation on Data StructurePresentation on Data Structure
Presentation on Data StructureA. N. M. Jubaer
 
Introduction to data structure
Introduction to data structureIntroduction to data structure
Introduction to data structuresunilchute1
 
Introduction to Data Structures
Introduction to Data StructuresIntroduction to Data Structures
Introduction to Data Structuresnayanbanik
 
Introductiont To Aray,Tree,Stack, Queue
Introductiont To Aray,Tree,Stack, QueueIntroductiont To Aray,Tree,Stack, Queue
Introductiont To Aray,Tree,Stack, QueueGhaffar Khan
 
Data structures Lecture no.3
Data structures Lecture no.3Data structures Lecture no.3
Data structures Lecture no.3AzharIqbal710687
 
Data structures Lecture no. 2
Data structures Lecture no. 2Data structures Lecture no. 2
Data structures Lecture no. 2AzharIqbal710687
 
Data structures lectures no 1
Data structures lectures no 1Data structures lectures no 1
Data structures lectures no 1AzharIqbal710687
 
Files and data storage
Files and data storageFiles and data storage
Files and data storageZaid Shabbir
 

Tendances (20)

Data Structures - Lecture 2 [Introduction to Data Structures]
Data Structures - Lecture 2 [Introduction to Data Structures]Data Structures - Lecture 2 [Introduction to Data Structures]
Data Structures - Lecture 2 [Introduction to Data Structures]
 
Introduction to data structure ppt
Introduction to data structure pptIntroduction to data structure ppt
Introduction to data structure ppt
 
introduction to Data Structure and classification
 introduction to Data Structure and classification introduction to Data Structure and classification
introduction to Data Structure and classification
 
Introduction of Data Structure
Introduction of Data StructureIntroduction of Data Structure
Introduction of Data Structure
 
Types Of Data Structure
Types Of Data StructureTypes Of Data Structure
Types Of Data Structure
 
Introduction to data structure
Introduction to data structureIntroduction to data structure
Introduction to data structure
 
Introduction to Data Structures
Introduction to Data StructuresIntroduction to Data Structures
Introduction to Data Structures
 
DATA STRUCTURE
DATA STRUCTUREDATA STRUCTURE
DATA STRUCTURE
 
Chapter 1( intro & overview)
Chapter 1( intro & overview)Chapter 1( intro & overview)
Chapter 1( intro & overview)
 
Introduction To Data Structures.
Introduction To Data Structures.Introduction To Data Structures.
Introduction To Data Structures.
 
data structure
data structuredata structure
data structure
 
Introduction to Data Structure part 1
Introduction to Data Structure part 1Introduction to Data Structure part 1
Introduction to Data Structure part 1
 
Presentation on Data Structure
Presentation on Data StructurePresentation on Data Structure
Presentation on Data Structure
 
Introduction to data structure
Introduction to data structureIntroduction to data structure
Introduction to data structure
 
Introduction to Data Structures
Introduction to Data StructuresIntroduction to Data Structures
Introduction to Data Structures
 
Introductiont To Aray,Tree,Stack, Queue
Introductiont To Aray,Tree,Stack, QueueIntroductiont To Aray,Tree,Stack, Queue
Introductiont To Aray,Tree,Stack, Queue
 
Data structures Lecture no.3
Data structures Lecture no.3Data structures Lecture no.3
Data structures Lecture no.3
 
Data structures Lecture no. 2
Data structures Lecture no. 2Data structures Lecture no. 2
Data structures Lecture no. 2
 
Data structures lectures no 1
Data structures lectures no 1Data structures lectures no 1
Data structures lectures no 1
 
Files and data storage
Files and data storageFiles and data storage
Files and data storage
 

Similaire à Data Structure # vpmp polytechnic

1. Data structures introduction
1. Data structures introduction1. Data structures introduction
1. Data structures introductionMandeep Singh
 
Introduction to data structures (ss)
Introduction to data structures (ss)Introduction to data structures (ss)
Introduction to data structures (ss)Madishetty Prathibha
 
CHAPTER-1- Introduction to data structure.pptx
CHAPTER-1- Introduction to data structure.pptxCHAPTER-1- Introduction to data structure.pptx
CHAPTER-1- Introduction to data structure.pptxOnkarModhave
 
b,Sc it data structure.ppt
b,Sc it data structure.pptb,Sc it data structure.ppt
b,Sc it data structure.pptclassall
 
b,Sc it data structure.pptx
b,Sc it data structure.pptxb,Sc it data structure.pptx
b,Sc it data structure.pptxclassall
 
b,Sc it data structure.pptx
b,Sc it data structure.pptxb,Sc it data structure.pptx
b,Sc it data structure.pptxclassall
 
DS Module 1.pptx
DS Module 1.pptxDS Module 1.pptx
DS Module 1.pptxsarala9
 
DS Module 1.pptx
DS Module 1.pptxDS Module 1.pptx
DS Module 1.pptxSaralaT3
 
DataStructurePpt.pptx
DataStructurePpt.pptxDataStructurePpt.pptx
DataStructurePpt.pptxssuser031f35
 
Chapter 1 Introduction to Data Structures and Algorithms.pdf
Chapter 1 Introduction to Data Structures and Algorithms.pdfChapter 1 Introduction to Data Structures and Algorithms.pdf
Chapter 1 Introduction to Data Structures and Algorithms.pdfAxmedcarb
 
DS-UNIT 1 FINAL (2).pptx
DS-UNIT 1 FINAL (2).pptxDS-UNIT 1 FINAL (2).pptx
DS-UNIT 1 FINAL (2).pptxprakashvs7
 
Data Structures_Introduction
Data Structures_IntroductionData Structures_Introduction
Data Structures_IntroductionThenmozhiK5
 
Chapter 1 - Introduction to Data Structure.ppt
Chapter 1 - Introduction to Data Structure.pptChapter 1 - Introduction to Data Structure.ppt
Chapter 1 - Introduction to Data Structure.pptNORSHADILAAHMADBADEL
 
Introduction to DS.pptx
Introduction to DS.pptxIntroduction to DS.pptx
Introduction to DS.pptxOnkarModhave
 
II B.Sc IT DATA STRUCTURES.pptx
II B.Sc IT DATA STRUCTURES.pptxII B.Sc IT DATA STRUCTURES.pptx
II B.Sc IT DATA STRUCTURES.pptxsabithabanu83
 
Lecture 2 Data Structure Introduction
Lecture 2 Data Structure IntroductionLecture 2 Data Structure Introduction
Lecture 2 Data Structure IntroductionAbirami A
 
introduction about data structure_i.pptx
introduction about data structure_i.pptxintroduction about data structure_i.pptx
introduction about data structure_i.pptxpoonamsngr
 

Similaire à Data Structure # vpmp polytechnic (20)

1. Data structures introduction
1. Data structures introduction1. Data structures introduction
1. Data structures introduction
 
Introduction to data structures (ss)
Introduction to data structures (ss)Introduction to data structures (ss)
Introduction to data structures (ss)
 
UNIT 1.pptx
UNIT 1.pptxUNIT 1.pptx
UNIT 1.pptx
 
CHAPTER-1- Introduction to data structure.pptx
CHAPTER-1- Introduction to data structure.pptxCHAPTER-1- Introduction to data structure.pptx
CHAPTER-1- Introduction to data structure.pptx
 
b,Sc it data structure.ppt
b,Sc it data structure.pptb,Sc it data structure.ppt
b,Sc it data structure.ppt
 
b,Sc it data structure.pptx
b,Sc it data structure.pptxb,Sc it data structure.pptx
b,Sc it data structure.pptx
 
b,Sc it data structure.pptx
b,Sc it data structure.pptxb,Sc it data structure.pptx
b,Sc it data structure.pptx
 
DS Module 1.pptx
DS Module 1.pptxDS Module 1.pptx
DS Module 1.pptx
 
DS Module 1.pptx
DS Module 1.pptxDS Module 1.pptx
DS Module 1.pptx
 
DataStructurePpt.pptx
DataStructurePpt.pptxDataStructurePpt.pptx
DataStructurePpt.pptx
 
dsa.pptx
dsa.pptxdsa.pptx
dsa.pptx
 
Unit 1.ppt
Unit 1.pptUnit 1.ppt
Unit 1.ppt
 
Chapter 1 Introduction to Data Structures and Algorithms.pdf
Chapter 1 Introduction to Data Structures and Algorithms.pdfChapter 1 Introduction to Data Structures and Algorithms.pdf
Chapter 1 Introduction to Data Structures and Algorithms.pdf
 
DS-UNIT 1 FINAL (2).pptx
DS-UNIT 1 FINAL (2).pptxDS-UNIT 1 FINAL (2).pptx
DS-UNIT 1 FINAL (2).pptx
 
Data Structures_Introduction
Data Structures_IntroductionData Structures_Introduction
Data Structures_Introduction
 
Chapter 1 - Introduction to Data Structure.ppt
Chapter 1 - Introduction to Data Structure.pptChapter 1 - Introduction to Data Structure.ppt
Chapter 1 - Introduction to Data Structure.ppt
 
Introduction to DS.pptx
Introduction to DS.pptxIntroduction to DS.pptx
Introduction to DS.pptx
 
II B.Sc IT DATA STRUCTURES.pptx
II B.Sc IT DATA STRUCTURES.pptxII B.Sc IT DATA STRUCTURES.pptx
II B.Sc IT DATA STRUCTURES.pptx
 
Lecture 2 Data Structure Introduction
Lecture 2 Data Structure IntroductionLecture 2 Data Structure Introduction
Lecture 2 Data Structure Introduction
 
introduction about data structure_i.pptx
introduction about data structure_i.pptxintroduction about data structure_i.pptx
introduction about data structure_i.pptx
 

Dernier

Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptxiammrhaywood
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)cama23
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfSpandanaRallapalli
 
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptxCulture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptxPoojaSen20
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfErwinPantujan2
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 

Dernier (20)

Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdf
 
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptxCulture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 

Data Structure # vpmp polytechnic

  • 1.
  • 2. INTRODUCTION DATASTRUCTURE What is Data Structure? •Data Structure: Data structure is a way to storing and organizing data in a computer so that it can be used efficiently. •Data structure is used in almost all program and software system. •Data structure usually consist of two things: 1. The type of structure that we are going to use stores the data. 2. How efficiently we perform operations onto that data stored in structure so we can reduce execution time and amount of memory space. lavparmar.blogspot
  • 3. Data and Information. •Data: - Data is a collection of raw facts(or information) and it may or may not be meaningful. •Information: - meaningful data is known as Information. •Example: Program- set of instruction. 67.8- Weight of person. 13/3/1999- Date of birth of a person. Define following terms: (a) Cell: •The smallest fundamental structural unit which represents a data entity. •Cell is a memory location which stores elements of data items. (b) Field: Field is used to store particular kind of data. (c) Record: a record is a collection of related data items. For example: Employee details lavparmar.blogspot
  • 4. Types of Data Structure lavparmar.blogspot
  • 5.  Primitive Data Structure: •The Data structures that are directly processed by machine using its instructions are known as primitive data structure. •Following are the primitive data structure: Integer: •Integer represents numerical values which are whole quantities. •The number of objects are countable can be represented by an integer. •The set of integer is:{…..-(n+1), -n , ….. , -2, -1,0,1,2,………n,n+1} •The sign and magnitude method is used to represent integer numbers. In this method place a sign symbol in front of the number. •Ex: 1000 lavparmar.blogspot
  • 6. Real: (a)The number having fractional part i.e decimal point is called real number. (b)Common way of representing real number is normalized floating point representation. (c)In this method the real number is expressed as a combination of mantissa and exponent. (d)Ex: 123.45 Character: •Character data structure is used to store nonnumeric information. •It can be letters [A-Z], [a-z], operators and special symbols. •A character is represented in memory as a sequence bits. •Two most commonly known character set supported by computer are ASCII and EBCDIC. Logical: •A logical data item is a primitive data structure that can assume the values of either “true” or “false”. •Most commonly used logical operators Are AND, OR and NOT. Pointer: •Pointer is a variable which points to the memory address. This memory address is the location of other variable in memory. •It provides homogeneous method of referencing any data structure, regardless of the structure’s type or complexity. •Another characteristic is that it provides faster insertion and deletion of elements. lavparmar.blogspot
  • 7.  Non Primitive Data Structure: •The data structures that are not directly processed by machine using its instructions are known as non primitive data structure. •Following are the non primitive data structure: Array: •Array is an ordered set which consist of a fixed number of object. •Insertion and deletion operation can be performed on array. •We can only change the value of the element in array. List: •List is an ordered set which consist of variable number of elements or object. •Insertion and deletion can be performed on list. File: •A file is a large list that is stored in the external memory of computer. •A file may be used as a repository for list items commonly called records. lavparmar.blogspot
  • 8. •Non Primitive Data Structure is classified into two categories: Non linear Data structureLinear Data structure lavparmar.blogspot
  • 9.  Linear and Non Linear data structure. Linear Data Structure: • In the linear data structure processing of data items is possible in linear fashion. • Data are processed one by one sequentially. • Examples of the linear data structure are: (A) Array (B) Stack (C) Queue (D) Linked List (A) Array: Array is an ordered set which consist of a fixed number of object. (B) Stack: A stack is a linier list in which insertion and deletion operations are performed at only one end of the list. lavparmar.blogspot
  • 10. (C) Queue: A queue is a linier list in which insertion is performed at one end called rear and deletion is performed at another end of the list called front. (D) Linked list: A linked list is a collection of nodes. Each node has two fields: (1) Information (2) Address, which contains the address of the next node. lavparmar.blogspot
  • 11. Non Linear data structure: In the Non linier data structure processing of data items is not possible in linier fashion. Examples of the non linier data structure are: (A)Tree (B) Graph (A) Tree: In tree data contains hierarchical relationship BSPP CE EC IT Delhi Bomba y (B) Graph: this data structure contains relationship between pairs of elements. Delhi Bombay Calcutta Madras lavparmar.blogspot
  • 12. 1.Operations on Data Structure: •Traversing: Access each element of the data structure and doing some processing over the data. •Inserting: Insertion of new elements into the data structure. •Deleting: Deletion of specific elements. •Searching: Searching for a specific element. •Sorting: Sorting the data in ascending or descending ordered. •Merging: Combination of two data structure. lavparmar.blogspot
  • 13. 1.Algorithms: •Algorithm is a stepwise solution to a problem. •Algorithm is a finite set of instructions that is followed to accomplish a particular task. •In mathematics and computing, an algorithm is a procedure for accomplishing some task which will terminate in a defined end-state. •The computational complexity and efficient implementation of the algorithm are important in computing, and this depends on suitable data structure. lavparmar.blogspot
  • 14. •Example: Write Algorithm to compute the average of n elements. Steps: ALGORITHM: FIND AVERAGE OF N NUMBER Assume that array contains n integer values. •[INITIALIZE] sum ←0. •[PERFORM SUM OPERATION] Repeat steps from i=0 to n-1 sum←sum+a[i] •[CALCULATE AVERAGE] avg←sum/n •Write avg •[FINISHED] Exit lavparmar.blogspot
  • 15. •Properties required for algorithm. •Finiteness: “An algorithm must always terminate after a finite number of steps”. •Definiteness: “Each steps of algorithm must be precisely defined”. •Input: “quantities which are given to it initially before the algorithm begins”. •Output: “quantities which have a specified relation to the input”. •Effectiveness: “all the operations to be performed in the algorithm must be sufficient”. lavparmar.blogspot
  • 16. lavparmar.blogspot List Array (1) No. of elements in a list are not fixed (variable).(Dynamic Data structure) (1) No. of elements in an array is fixed. (Static Data structure) (2)It uses pointer variable which occupies an extra memory space. (2) It does not use pointer variable so it does not occupies extra memory space. (3) Insertion and deletion operation are very easy to perform. (3) Insertion and deletion operation are very difficult to perform. (4) There are two types of List: 1. Linear List 2. Non Linear List (4) There are two types of array: 1. One dimensional array 2. Two dimensional array (5) Searching is slower in case of List. (5) Searching is faster in case of array. Difference between List and Array
  • 17. Static Memory Allocation Dynamic Memory Allocation (1) Static Memory Allocation is Performed at Compile Time. (1) Dynamic Memory Allocation is Performed at Runtime. (2) In Static Memory Allocation Memory may be wasted. (2) In Dynamic Memory Allocation memory is allocated when it is needed. So there is no wastage of memory. (3) Array is an example of static memory allocation. (3) Linked List is an example of dynamic memory allocation. We can use malloc () function to allocate memory at runtime. (4) In static memory allocation memory is allocated sequentially. (4) In dynamic memory allocation memory is not allocated sequentially. Difference between Static Memory allocation and Dynamic Memory allocation. lavparmar.blogspot
  • 18. FOR MORE DETAILS EDUCATION MATERIAL , BOOKS , SOFTWARE VISIT TO OUR BLOG : LAVPARMAR.BLOGSPOT.IN VPMPROCKS.BLOGSPOT.IN BADSHAH-COLLECTION.BLOGSPOT.IN CE10.GUJ.BZ