SlideShare a Scribd company logo
Data Structures 
Through C/C++ 
By 
Yaman Singhania 
http://www.computercareer.in
Introduction to Data Structures 
• What is DATA STRUCTURE? 
A Data Structure is the way of Organizing the data for minimizing the use of memory and 
for the use of updation or it is arranging the data in the main memory. In other words, 
data structures are used to store the data or acts as a container. 
Data Structures are basically divided into two parts : 
1). Linear Data Structure 
2). Non-Linear Data Structure 
Linear Data Structure > 
• In Linear Data Structure A Sequence is followed. 
• Sequence means every data item will have an ancestor and a successor. 
• Example of Linear Data Structures are : 
1. Queue 
2. Linked List 
3. Arrays 
4. Stack 
http://www.computercareer.in/
Introduction to Data Structures 
Non-Linear Data Structures : 
In Non-Linear Data Structures, No Sequence but hierarchy is followed. 
Example of Non-Linear Data Structures are : 
1. Tree 
2. Graph 
3. Tables 
4. Sets 
Data Structures stores data of different data types.What is DataType? 
A Datatype is a collection of values in which operations can be performed. 
Three Types of DataType in Data Structures are : 
1. Primitive DataTypes 
2. Abstract DataTypes (or User-Defined DataTypes) 
3. Polymorphic DataTypes 
4. VISIT : OUR PROGRAMMING BLOG 
http://www.computercareer.in/
Introduction to Data Structures 
Primitive DataType : Primitive DataTypes are previously defined by the 
Developers/Programmers and cannot be broken further. 
For examples : int, float, Double, char, etc. 
Abstract DataType : Abstract DataTypes are created by using Primitive DataTypes. 
* Here the specification of the operations are separated from representation of the value 
and implementation of the operation. 
For examples : Array, Structure, Constructor etc. 
Polymorphic DataType : Polymorphic DataTypes are independent of the value stored in the 
list. 
To perform Practical Codings , 
DOWNLOAD TURBO C : http://yamanturboc.blogspot.in/ 
http://www.computercareer.in/
Common Terms 
Data : Data are the Raw Facts and Figures. Data word is always plural. 
Information : Processed Data which have some meaningful values is called information. 
Entity : Entity is Anything which have certain property and Attributes. 
Domain : Domain is Set of Values which the Attributes can have. 
Record : Collection of Homogeneous Entities are Record. 
File : Collection of Homogeneous Records. 
Key : A key is used to uniquely identify the record. Key is of following types: 
Primary Key : Primary key uniquely identifies the identify a record in database table. 
Unique Key : The Unique constraint uniquely identifies each record in a database table. 
The Unique and Primary Key constraints both provide a guarantee for uniqueness for a 
column or set of columns. A Primary Key constraint automatically has 
a Unique constraint defined on it. 
Candidate Key : A Candidate Key is a set of one or more fields/columns that can identify a 
record uniquely in a table. There can be multiple Candidate Keys in one table. Each 
Candidate Key can work as Primary Key. 
Download : TURBO C 
http://www.computercareer.in/
Common Terms and Array 
Alternate Key : A Alternate key is a key that can be work as a primary key. Basically it is a 
candidate key that currently is not primary key. 
Compound Key : Composite Key is a combination of more than one fields/columns of a 
table. It can be a Candidate key, Primary key. 
Foreign Key : A Foreign Key is A Non Key Attribute whose values are derived from the 
Primary Key of Another Table. 
Let us Start Learning Data Structures from Linear Data Structures. 
ARRAY - 
Array is a Collection of data items consisting 
Homogeneous DataType. 
Types of Array 
1. One -Dimentional 
2. Two -Dimentional 
3. Multi –Dimentional 
http://www.computercareer.in/
Array 
How to Declare? Visit Our Programming Blog : www.computercareer.in/blog/ 
Int a[50]; 
For Input and To print, We Use Loops ( for, while, do - while, do) . 
Write A Program to take Input from User and Print the Array. 
int a[5], i; 
for( ( i = 0 ; i < = a[ i ] ; i++) 
{ 
printf(“ Enter 5 numbers in an Array /n “); 
scanf(“%d”, &a[ i ]); 
} 
for( i = 0; i < = a[ i ] ; i++) 
{ 
printf(“%d”, a[ i ]); 
} } 
DOWNLOAD : TURBO C 
http://www.computercareer.in/
Array Program s 
Write A Program to Perform Linear Search in An Array? Download Our TURBO C 
Write A Program to Perform Selection Sort in An Array? to Perform Codings. 
Write A Program to Perform Binary Search in An Array? 
Write A Program to Perform Insertion Sort in An Array? 
Write A Program to Perform Bubble Sort in An Array? 
Write A Program to Illustrate Address Manipulation in 2-D Array? 
To Learn Array, It is Necessary to Learn ALL THESE ARRAY PROGRAMS on Tips. Use Our Turbo C. 
#include(iostream.h> 
#include<conio.h> 
int Lsearch(int[ ],int,int); 
int main( ) 
{ For more, and To Learn All the Array Programs, 
Please Visit : http://www.computercareer.in/blog 
OR 
Click Here 
http://www.computercareer.in/
Stack and Queue 
Stack is A Linear Data Structure in which we can Insert New Data & Delete the 
existing data at a point called Top of the Stack. Stack always follow LIFO (Last in 
First Out) Rule. 
Stack can be represented as Array and Linked List. 
Kindly Visit : http://www.computercareer.in/blog OR Click Here 
http://www.computercareer.in/
Stack and Queue 
Operations of Stack are : 
1. Push – To Insert a new element in the stack, we use PUSH. 
2. Pop – To Delete an existing element from the stack, we use POP. 
3. IsOverflow – To check Whether Stack is full or not, we use IsOverflow. 
4. IsUnderflow – To check Whether Stack is Empty or not, we use IsUnderflow. 
5. Peek – To Access the Top of the element of the Stack without deleting, we use 
Peek. 
We have Various Algorithms for these Operations to make you clear better the 
concept of Stack.To Learn those Algorithms, 
Visit : http://www.computercareer.in/blog OR Click Here 
Download CTurbo : Click Here 
http://www.computercareer.in/
Applications of Stack and Queue 
Applications of Stack Are: 
1. Infix to Postfix 
2. Postfix to Infix 
3. Infix to Prefix 
4. Prefix to Infix 
Queue 
Queue is a Linear Data Structure in which we can Insert 
and Delete items from Opposite ends. 
There are two ends : front and rear. If we are inserting element from front and we 
have to delete element from Rear. 
Queue always follows FIFO (First In First Out). 
http://www.computercareer.in/
Queue and Stack Programs 
Types of Queues are : 
1. Simple Queue 2. Circular Queue 
3. Priority Queue 4. DeQueue (Doubled-Ended Queue) 
Write A Program to Perform Insertion and Deletion in Circular Queue 
Write A Program to Perform Infix to Postfix Conversion in Stack 
Write A C Program for Implementing Queue Using Stack. 
Write A Program to Perform Pushing in Stack. 
For Solutions , Visit : http://www.computercareer.in/blog 
We have Working Solutions of these Programs and We keep on adding 
something New to Our Blog..So Don’t forget to check out Website Daily and Be 
Regular! ;) 
http://www.computercareer.in/
Linked List 
A Linked List is a data structure consisting of a group of nodes which together 
represent a sequence. 
Types of Linked Lists : 
Singly Linked List : Singly linked lists contain nodes which have a data field as well 
as a next field, which points to the next node in line of nodes. 
Doubly Linked List : In a doubly linked list, each node contains, besides the next-node 
link, a second link field pointing to the previous node in the sequence. 
The two links may be called forward(s) and backwards, 
Circular Linked List : In Circular Linked List, First Node contains the address of the 
Last Node. 
http://www.computercareer.in/
Operations in Linked List and Programs 
Insertion in Linked List can be done by three ways : 
1. Insertion At Beginning 
2. Insertion At End 
3. Insertion At Specified Position 
Deletion in Linked List can be done by three ways : 
1. Deletion from Beginning 
2. Deletion from End 
3. Deletion from Specified Position 
Write A Program to Insert an Element at Beginning in Linked List. 
Write A Program to Delete an Element from Beginning in Linked List. 
For the Solutions of there Programs, 
Kindly Visit : http://www.computercareer.in/blog or Click Here 
http://www.computercareer.in/
Tree 
A Tree is a Non-linear data structure made up of nodes or vertices and edges 
without having any cycle. The tree with no nodes is called the Null or 
Empty tree. A tree that is not empty consists of a root node and potentially 
many levels of additional nodes that form a hierarchy. 
Binary Tree - A binary tree is one in which each 
node has at most two descendants. A node 
can have just one but it can’t have more than two. 
Insertion in Binary Search Trees : 
To insert any element in Binary Search Tree, we have 
to compare with the root of node. If found Greater, 
then insert at Right of root node. If found Smaller, then 
Insert at left of root node. 
http://www.computercareer.in/
Tree 
Deletion from A Binary Tree 
There are four possible cases that we need to consider : 
1. No node in the Tree contains specified Data. 
2. Node containing the data has no children. 
3. Node containing the data has exactly one child. 
4. Node containing the data has two children. 
Kindly Check Our Blog for Programs related to Tree Data Structure. 
http://www.computercareer.in/blog 
http://www.computercareer.in/
Graph 
A Non-Linear Data Structure that consist of a set of nodes called Vertexes and a 
set of edges that relate the nodes to each other is called Graph. 
Type of Graph : 
Directed Graph – When Edges in a Graph have A Direction, the graph is called 
Diagraph or Directed Graph. 
UnDirected Graph – When Edges in a Graph has no direction, the graph is called 
UnDirected Graph. 
Graphs can be represented as array, linked lists and queues. 
Check Our blog, http://www.computercareer.in/blog 
http://www.computercareer.in/
Yaman Singhania 
Thanks 
For Watching 
Visit : http://www.computercareer.in 
http://www.facebook.com/Ysinghania500

More Related Content

DOC
Data Structure
PPTX
Data Types - Premetive and Non Premetive
PDF
Ii pu cs practical viva voce questions
PPTX
Fundamental of C Programming (Data Types)
DOCX
Data Structure Question Bank(2 marks)
PDF
Introduction to Data Structure
PDF
PDF
Rdf Processing On The Java Platform
Data Structure
Data Types - Premetive and Non Premetive
Ii pu cs practical viva voce questions
Fundamental of C Programming (Data Types)
Data Structure Question Bank(2 marks)
Introduction to Data Structure
Rdf Processing On The Java Platform

What's hot (19)

PPTX
Data Structure & Algorithms | Computer Science
PPTX
Data Structures(Part 1)
PPTX
Data structure
PPT
Basic data-structures-v.1.1
PPTX
Biperpedia: An ontology of Search Application
PDF
Lesson 2.2 abstraction
PDF
Arrays in c_language
PPTX
Introduction to Eclipse
PPTX
Java Data Types
PPTX
Concept Of C++ Data Types
 
PPTX
Data Structure using c language for beginners
PDF
Sv data types and sv interface usage in uvm
PPTX
data structures and algorithms Unit 1
PPT
Abstract data types
PPTX
Introduction to Data Structure : Pointer
PPT
Cs511 data-extraction
PPTX
Computer data type and Terminologies
PPTX
Automatic extraction of top k pages from the web final
Data Structure & Algorithms | Computer Science
Data Structures(Part 1)
Data structure
Basic data-structures-v.1.1
Biperpedia: An ontology of Search Application
Lesson 2.2 abstraction
Arrays in c_language
Introduction to Eclipse
Java Data Types
Concept Of C++ Data Types
 
Data Structure using c language for beginners
Sv data types and sv interface usage in uvm
data structures and algorithms Unit 1
Abstract data types
Introduction to Data Structure : Pointer
Cs511 data-extraction
Computer data type and Terminologies
Automatic extraction of top k pages from the web final
Ad

Viewers also liked (20)

PPT
EFFECTS OF SOCIAL MEDIA ON YOUTH
PPTX
Art exibition
PDF
Madhusha B Ed
PPTX
Classification of Elements Powerpoint Presentation by Computer Careers
PPSX
POWER POINT PRESENTATION
PDF
The Sleeping Beauty
PPTX
University Assignment Literacy Assessment
PDF
WhoIsFrancisFairley
PPTX
Powerpoint Presentation
PPT
Clarke slideshare
PPTX
Lm catering services
PPTX
Kerajaankalingga
DOCX
PDF
Getting Started with MongoDB
DOCX
huruf prasekolah
PPSX
POWR POINT PRESENTATION
PPSX
Power point Presentation
PDF
Paginas libres
PPT
Atomic Structure Powerpoint Presentation by Computer Careers
EFFECTS OF SOCIAL MEDIA ON YOUTH
Art exibition
Madhusha B Ed
Classification of Elements Powerpoint Presentation by Computer Careers
POWER POINT PRESENTATION
The Sleeping Beauty
University Assignment Literacy Assessment
WhoIsFrancisFairley
Powerpoint Presentation
Clarke slideshare
Lm catering services
Kerajaankalingga
Getting Started with MongoDB
huruf prasekolah
POWR POINT PRESENTATION
Power point Presentation
Paginas libres
Atomic Structure Powerpoint Presentation by Computer Careers
Ad

Similar to Data Structures by Yaman Singhania (20)

PPTX
ds bridge.pptx
PPT
Unit 1.ppt
PPT
Fundamentalsofdatastructures 110501104205-phpapp02
PPT
data structure algorithm example and example
PDF
Data structure
PPTX
Advanced Data Structures and Algorithms.pptx
PPTX
1.Introduction to Data Structures and Algorithms.pptx
PDF
Data and File Structure Lecture Notes
PPTX
Stack and queue power point presentation data structure and algorithms Stack-...
PPT
Lecture 1 - Overview of Data Structure .ppt
PPTX
Data Structure and Algorithms by Sabeen Memon03.pptx
PPTX
data structures module I & II.pptx
PPTX
Data Structures and Algorithms Fundamentals
PPTX
Arrays and linked lists
PPTX
Introduction to Data Structure
PPTX
Data Structure , Classification of Data structure
PPTX
DS Module 1.pptx
PPTX
Data structure (basics)
PPT
DS.ppt Datatastructures notes presentation
PPTX
Data Structure
ds bridge.pptx
Unit 1.ppt
Fundamentalsofdatastructures 110501104205-phpapp02
data structure algorithm example and example
Data structure
Advanced Data Structures and Algorithms.pptx
1.Introduction to Data Structures and Algorithms.pptx
Data and File Structure Lecture Notes
Stack and queue power point presentation data structure and algorithms Stack-...
Lecture 1 - Overview of Data Structure .ppt
Data Structure and Algorithms by Sabeen Memon03.pptx
data structures module I & II.pptx
Data Structures and Algorithms Fundamentals
Arrays and linked lists
Introduction to Data Structure
Data Structure , Classification of Data structure
DS Module 1.pptx
Data structure (basics)
DS.ppt Datatastructures notes presentation
Data Structure

Recently uploaded (20)

PDF
Trump Administration's workforce development strategy
PPTX
Introduction to pro and eukaryotes and differences.pptx
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PDF
advance database management system book.pdf
PDF
My India Quiz Book_20210205121199924.pdf
PDF
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين
PDF
Weekly quiz Compilation Jan -July 25.pdf
PDF
HVAC Specification 2024 according to central public works department
PPTX
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
PDF
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
PPTX
Introduction to Building Materials
PDF
Computing-Curriculum for Schools in Ghana
PDF
Τίμαιος είναι φιλοσοφικός διάλογος του Πλάτωνα
PPTX
TNA_Presentation-1-Final(SAVE)) (1).pptx
PDF
AI-driven educational solutions for real-life interventions in the Philippine...
PDF
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
PPTX
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
PPTX
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
PDF
LDMMIA Reiki Yoga Finals Review Spring Summer
DOC
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
Trump Administration's workforce development strategy
Introduction to pro and eukaryotes and differences.pptx
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
advance database management system book.pdf
My India Quiz Book_20210205121199924.pdf
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين
Weekly quiz Compilation Jan -July 25.pdf
HVAC Specification 2024 according to central public works department
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
Introduction to Building Materials
Computing-Curriculum for Schools in Ghana
Τίμαιος είναι φιλοσοφικός διάλογος του Πλάτωνα
TNA_Presentation-1-Final(SAVE)) (1).pptx
AI-driven educational solutions for real-life interventions in the Philippine...
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
LDMMIA Reiki Yoga Finals Review Spring Summer
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc

Data Structures by Yaman Singhania

  • 1. Data Structures Through C/C++ By Yaman Singhania http://www.computercareer.in
  • 2. Introduction to Data Structures • What is DATA STRUCTURE? A Data Structure is the way of Organizing the data for minimizing the use of memory and for the use of updation or it is arranging the data in the main memory. In other words, data structures are used to store the data or acts as a container. Data Structures are basically divided into two parts : 1). Linear Data Structure 2). Non-Linear Data Structure Linear Data Structure > • In Linear Data Structure A Sequence is followed. • Sequence means every data item will have an ancestor and a successor. • Example of Linear Data Structures are : 1. Queue 2. Linked List 3. Arrays 4. Stack http://www.computercareer.in/
  • 3. Introduction to Data Structures Non-Linear Data Structures : In Non-Linear Data Structures, No Sequence but hierarchy is followed. Example of Non-Linear Data Structures are : 1. Tree 2. Graph 3. Tables 4. Sets Data Structures stores data of different data types.What is DataType? A Datatype is a collection of values in which operations can be performed. Three Types of DataType in Data Structures are : 1. Primitive DataTypes 2. Abstract DataTypes (or User-Defined DataTypes) 3. Polymorphic DataTypes 4. VISIT : OUR PROGRAMMING BLOG http://www.computercareer.in/
  • 4. Introduction to Data Structures Primitive DataType : Primitive DataTypes are previously defined by the Developers/Programmers and cannot be broken further. For examples : int, float, Double, char, etc. Abstract DataType : Abstract DataTypes are created by using Primitive DataTypes. * Here the specification of the operations are separated from representation of the value and implementation of the operation. For examples : Array, Structure, Constructor etc. Polymorphic DataType : Polymorphic DataTypes are independent of the value stored in the list. To perform Practical Codings , DOWNLOAD TURBO C : http://yamanturboc.blogspot.in/ http://www.computercareer.in/
  • 5. Common Terms Data : Data are the Raw Facts and Figures. Data word is always plural. Information : Processed Data which have some meaningful values is called information. Entity : Entity is Anything which have certain property and Attributes. Domain : Domain is Set of Values which the Attributes can have. Record : Collection of Homogeneous Entities are Record. File : Collection of Homogeneous Records. Key : A key is used to uniquely identify the record. Key is of following types: Primary Key : Primary key uniquely identifies the identify a record in database table. Unique Key : The Unique constraint uniquely identifies each record in a database table. The Unique and Primary Key constraints both provide a guarantee for uniqueness for a column or set of columns. A Primary Key constraint automatically has a Unique constraint defined on it. Candidate Key : A Candidate Key is a set of one or more fields/columns that can identify a record uniquely in a table. There can be multiple Candidate Keys in one table. Each Candidate Key can work as Primary Key. Download : TURBO C http://www.computercareer.in/
  • 6. Common Terms and Array Alternate Key : A Alternate key is a key that can be work as a primary key. Basically it is a candidate key that currently is not primary key. Compound Key : Composite Key is a combination of more than one fields/columns of a table. It can be a Candidate key, Primary key. Foreign Key : A Foreign Key is A Non Key Attribute whose values are derived from the Primary Key of Another Table. Let us Start Learning Data Structures from Linear Data Structures. ARRAY - Array is a Collection of data items consisting Homogeneous DataType. Types of Array 1. One -Dimentional 2. Two -Dimentional 3. Multi –Dimentional http://www.computercareer.in/
  • 7. Array How to Declare? Visit Our Programming Blog : www.computercareer.in/blog/ Int a[50]; For Input and To print, We Use Loops ( for, while, do - while, do) . Write A Program to take Input from User and Print the Array. int a[5], i; for( ( i = 0 ; i < = a[ i ] ; i++) { printf(“ Enter 5 numbers in an Array /n “); scanf(“%d”, &a[ i ]); } for( i = 0; i < = a[ i ] ; i++) { printf(“%d”, a[ i ]); } } DOWNLOAD : TURBO C http://www.computercareer.in/
  • 8. Array Program s Write A Program to Perform Linear Search in An Array? Download Our TURBO C Write A Program to Perform Selection Sort in An Array? to Perform Codings. Write A Program to Perform Binary Search in An Array? Write A Program to Perform Insertion Sort in An Array? Write A Program to Perform Bubble Sort in An Array? Write A Program to Illustrate Address Manipulation in 2-D Array? To Learn Array, It is Necessary to Learn ALL THESE ARRAY PROGRAMS on Tips. Use Our Turbo C. #include(iostream.h> #include<conio.h> int Lsearch(int[ ],int,int); int main( ) { For more, and To Learn All the Array Programs, Please Visit : http://www.computercareer.in/blog OR Click Here http://www.computercareer.in/
  • 9. Stack and Queue Stack is A Linear Data Structure in which we can Insert New Data & Delete the existing data at a point called Top of the Stack. Stack always follow LIFO (Last in First Out) Rule. Stack can be represented as Array and Linked List. Kindly Visit : http://www.computercareer.in/blog OR Click Here http://www.computercareer.in/
  • 10. Stack and Queue Operations of Stack are : 1. Push – To Insert a new element in the stack, we use PUSH. 2. Pop – To Delete an existing element from the stack, we use POP. 3. IsOverflow – To check Whether Stack is full or not, we use IsOverflow. 4. IsUnderflow – To check Whether Stack is Empty or not, we use IsUnderflow. 5. Peek – To Access the Top of the element of the Stack without deleting, we use Peek. We have Various Algorithms for these Operations to make you clear better the concept of Stack.To Learn those Algorithms, Visit : http://www.computercareer.in/blog OR Click Here Download CTurbo : Click Here http://www.computercareer.in/
  • 11. Applications of Stack and Queue Applications of Stack Are: 1. Infix to Postfix 2. Postfix to Infix 3. Infix to Prefix 4. Prefix to Infix Queue Queue is a Linear Data Structure in which we can Insert and Delete items from Opposite ends. There are two ends : front and rear. If we are inserting element from front and we have to delete element from Rear. Queue always follows FIFO (First In First Out). http://www.computercareer.in/
  • 12. Queue and Stack Programs Types of Queues are : 1. Simple Queue 2. Circular Queue 3. Priority Queue 4. DeQueue (Doubled-Ended Queue) Write A Program to Perform Insertion and Deletion in Circular Queue Write A Program to Perform Infix to Postfix Conversion in Stack Write A C Program for Implementing Queue Using Stack. Write A Program to Perform Pushing in Stack. For Solutions , Visit : http://www.computercareer.in/blog We have Working Solutions of these Programs and We keep on adding something New to Our Blog..So Don’t forget to check out Website Daily and Be Regular! ;) http://www.computercareer.in/
  • 13. Linked List A Linked List is a data structure consisting of a group of nodes which together represent a sequence. Types of Linked Lists : Singly Linked List : Singly linked lists contain nodes which have a data field as well as a next field, which points to the next node in line of nodes. Doubly Linked List : In a doubly linked list, each node contains, besides the next-node link, a second link field pointing to the previous node in the sequence. The two links may be called forward(s) and backwards, Circular Linked List : In Circular Linked List, First Node contains the address of the Last Node. http://www.computercareer.in/
  • 14. Operations in Linked List and Programs Insertion in Linked List can be done by three ways : 1. Insertion At Beginning 2. Insertion At End 3. Insertion At Specified Position Deletion in Linked List can be done by three ways : 1. Deletion from Beginning 2. Deletion from End 3. Deletion from Specified Position Write A Program to Insert an Element at Beginning in Linked List. Write A Program to Delete an Element from Beginning in Linked List. For the Solutions of there Programs, Kindly Visit : http://www.computercareer.in/blog or Click Here http://www.computercareer.in/
  • 15. Tree A Tree is a Non-linear data structure made up of nodes or vertices and edges without having any cycle. The tree with no nodes is called the Null or Empty tree. A tree that is not empty consists of a root node and potentially many levels of additional nodes that form a hierarchy. Binary Tree - A binary tree is one in which each node has at most two descendants. A node can have just one but it can’t have more than two. Insertion in Binary Search Trees : To insert any element in Binary Search Tree, we have to compare with the root of node. If found Greater, then insert at Right of root node. If found Smaller, then Insert at left of root node. http://www.computercareer.in/
  • 16. Tree Deletion from A Binary Tree There are four possible cases that we need to consider : 1. No node in the Tree contains specified Data. 2. Node containing the data has no children. 3. Node containing the data has exactly one child. 4. Node containing the data has two children. Kindly Check Our Blog for Programs related to Tree Data Structure. http://www.computercareer.in/blog http://www.computercareer.in/
  • 17. Graph A Non-Linear Data Structure that consist of a set of nodes called Vertexes and a set of edges that relate the nodes to each other is called Graph. Type of Graph : Directed Graph – When Edges in a Graph have A Direction, the graph is called Diagraph or Directed Graph. UnDirected Graph – When Edges in a Graph has no direction, the graph is called UnDirected Graph. Graphs can be represented as array, linked lists and queues. Check Our blog, http://www.computercareer.in/blog http://www.computercareer.in/
  • 18. Yaman Singhania Thanks For Watching Visit : http://www.computercareer.in http://www.facebook.com/Ysinghania500