Update improved article, fixed references (#36687)

* Update improved article, fixed references

* Update guide/english/computer-science/data-structures/index.md

Co-Authored-By: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>

* Update guide/english/computer-science/data-structures/index.md

Co-Authored-By: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>

* Update guide/english/computer-science/data-structures/index.md

Co-Authored-By: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>

* Update guide/english/computer-science/data-structures/index.md

Co-Authored-By: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>

* Update removed redundant note and fixed bold

* fix: corrected note
This commit is contained in:
shreyas1599
2019-08-28 01:38:23 +05:30
committed by Randell Dawson
parent 8b43105d75
commit 92d62218bf

View File

@ -3,19 +3,32 @@ title: Data Structures
---
## 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 way. Data Structures is about rendering data elements in terms of some relationship, for better organization and storage. For example, we have data player's name "Virat" and age 26. Here "Virat" is of String data type and 26 is of integer data type.
Data Structure is a means of collecting and organising data so as to perform operations on it efficiently. It is a means to find relationships among data elements for better organization and storage. Let us say that we have the name and age of a number of cricket players and we have to find a way to categorise them. Consider the example of a player with the name "Virat" who is 26 years old. In this example, we'd categorise "Virat" as a string which is a basically a collection of characters and the age as an integer.
We can organize this data as a record like Player record. Now we can collect and store player's records in a file or database as a data structure. For example: "Dhoni" 30, "Gambhir" 31, "Sehwag" 33
We can now get a series of records of Players which is stored in the format as mentioned above. Every record has a string and an integer. And thus, this trivial example demonstrates how data structures are useful.
For example:
```
"Dhoni" 30, "Gambhir" 31, "Sehwag" 33
```
would be how the data would be stored.
In simple language, Data Structures are structures programmed to store ordered data, so that various operations can be performed on it easily. It represents the knowledge of data to be organized in memory. It should be designed and implemented in such a way that it reduces the complexity and increases the effieciency.
In simpler terms, Data Structures are structures programmed to store ordered data, so that various operations can be performed on it easily. It should be designed and implemented in such a way that it reduces the complexity and increases the efficiency of access of data elements.
<!-- Data Structures in memory-->
In Computer memory i.e RAM, different data structures are created like stack, queue, linked list, heaps, etc according to the requirement of the program so as to use the memory efficiently.
A few examples of standard Data Structures include:
* Array
* Stack
* Queue
* Tree
* Linked List
* Graphs
* Maps
**Note:** Data Types are not to be confused with Data Structures. Data Types are irreducible as opposed to Data Structures which consist of multiple fields of different data. In the above example, integer is a data type whereas the record(which consists of an integer and a string) is a data structure.
#### More Information:
<!-- Please add any articles you think might be helpful to read before writing the article -->
* [Data Structures](http://www.studytonight.com/data-structures/introduction-to-data-structures)
* [Geek for Geek](http://www.geeksforgeeks.org/data-structures/)
* [Geeks for Geeks](http://www.geeksforgeeks.org/data-structures/)
* [Tutorials Point](https://www.tutorialspoint.com/data_structures_algorithms/data_structure_overview.htm)
* [Data Structures](http://www.studytonight.com/data-structures/introduction-to-data-structures)
* [Difference between Data Structure and Data Type](https://stackoverflow.com/questions/4630377/explain-the-difference-between-a-data-structure-and-a-data-type)