0% found this document useful (0 votes)
206 views2 pages

03-Learn Data Structure and Algorithms by PHP

Uploaded by

jogaline7
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
206 views2 pages

03-Learn Data Structure and Algorithms by PHP

Uploaded by

jogaline7
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Learn Data Structure and Algorithms by PHP

Data Structure
Data Structure is a way of collecting and organizing data in such a way that we can perform operations
on these data in an effective way.

On simple terms, Data Structure means organization of data.

A Data Structure is a named group data of different data types which can be processed as a single unit. A
data structure has well-defined operations, behavior and properties.

Different Data Structures are as follows:

Operations on Data Structures


The basic operations that are performed on data structures are as follows:

 Insertion: Insertion means addition of a new data element in a data structure.

 Deletion: Deletion means removal of a data element from a data structure if it is found.

 Searching: Searching involves searching for the specified data element in a data structure.

 Traversal: Traversal of a data structure means processing all the data elements present in it.
 Sorting: Arranging data elements of a data structure in a specified order is called sorting.

 Merging: Combining elements of two similar data structures to form a new data structure of the
same type, is called merging.

Types of Data Structure in PHP


 Linked List
 Stack
 Queue
 Binary Search Tree (BST)

You might also like