Computer Science, asked by hritikdgmailcom4438, 1 year ago

Explain the examples of different types of data structure

Answers

Answered by bikashvaibhav6
1

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.   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).

Answered by venu10088855222
0
array like structure in which day group number of items into a large unit an array groups of the same time type exist in almost every computer language including BASIC an array must be defined before it can be used to store it specifies an array type and name the items in an array are called elements

there are two types of array
★ one dimensional array or single dimensional array
★ multidimensional array
--------------------------------------------------------------------------------------------------------------------------------------------------------
★one dimensional array or single dimensional array

★ declaration of single dimensional array
they are used when a single sheet of value ARE REquired and we usually use a single look look to manipulate the control variables
★ syntax
data-type array-name [array-size];
★initialising of single dimensional array
it may take any one of the following forms as in the following

------------------------------------------------------------------------------------------------

★multidimensional array
unlike single dimensional array two dimensional array is declared with two sizes and it can be thought of as a matrix dimensional represent number of rows you want and the second time is Null reparation number of columns the declaration takes in the following form
★ syntax
data-type array-size [size1] [size2];

★ initialising of double dimensional array
initialising of double or two dimensional array may take any one of the following forms as in the example
------------------------------------------------------------------------------------------------

:-)
Similar questions