Computer Science, asked by anmolrattang, 1 year ago

List the different data structures. Give example of each.​

Answers

Answered by ramkoncom
1

Answer:

Data structure is a particular way of storing and organizing data in a computer so that it can be used efficiently. So, it is a special format for organizing and storing data. Arrays, linked lists, trees, graphs, etc. are all data structures.

Here are different types of data structures:-

Array: It consists of a collection of elements, each identified by a common variable name and an index. A block of continuous memory is assigned for an array. Arrays may be one-dimensional or multidimensional

Linked List: It consists of a group of nodes together which represent a sequence. It consists of two main parts: the data and a pointer pointing to the next node in the list. The start is marked by head pointer and the end is denoted by null pointer.

enter image description here.

Tree: It has a set of nodes which have data and pointers or references. The pointers point to the children nodes of the node. The constraint is that no reference is duplicated and no node points to the root.

Graph: It’s a collection of a set of vertices V and a set of edges E. Each edge E is a pair (v, w) where v and w are elements of V (i.e. they are vertices).

enter image description here

Attachments:
Answered by moushumihandique
0

Answer: There many list available in data structure..

Explanation:

But the most efficient data structure list are: (i) ordered list (ii) unordered list. For example: ordered are something like this:-----. List of fruits. 1. Apple. 2. Orange. 3. Guava. List of vegetables. 1. Cabbage. 2.Potato. Example of unordered list:--------------- 1. Orange.

2. Papaya.

3. Mango..

Similar questions