Quick Answer: What Are The 2 Main Types Of Data Structures?

What are the main data structures?

8 Common Data Structures every Programmer must know.

A quick introduction to 8 commonly used data structures.


An array is a structure of fixed-size, which can hold items of the same data type.

Linked Lists.



Hash Tables.


Heaps.More items….

What are the different data structures?

Let’s first list the most commonly used data structures, and then we’ll cover them one by one:Arrays.Stacks.Queues.Linked Lists.Trees.Graphs.Tries (they are effectively trees, but it’s still good to call them out separately).Hash Tables.

What is data structure explain?

In computer science, a data structure is a data organization, management, and storage format that enables efficient access and modification. More precisely, a data structure is a collection of data values, the relationships among them, and the functions or operations that can be applied to the data.

What is data type and types?

A data type is a type of data. … Some common data types include integers, floating point numbers, characters, strings, and arrays. They may also be more specific types, such as dates, timestamps, boolean values, and varchar (variable character) formats.

How is data structure used in real life?

Examples of Data Structures in real lifeYou have to store social network “feeds”. … You need to store undo/redo operations in a word processor.You need to evaluate an expression (i.e., parse).You need to store the friendship information on a social networking site. … You need to store an image (1000 by 1000 pixels) as a bitmap.More items…•

What are the two types of data structure?

Primitive: basic building block (boolean, integer, float, char etc.) Composite: any data type (struct, array, string etc.) composed of primitives or composite types. Abstract: data type that is defined by its behaviour (tuple, set, stack, queue, graph etc).

What is data structure example?

Data Structure can be defined as the group of data elements which provides an efficient way of storing and organising data in the computer so that it can be used efficiently. Some examples of Data Structures are arrays, Linked List, Stack, Queue, etc.

What are the advantages of data structure?

Advantages of data structureData structure helps in efficient storage of data in storage device.Data structure usage provides convenience while retrieving the data from storage device.Data structure provides effective and efficient processing of small as well as large amount of data.More items…

What are the goals of data structure?

Identify and develop useful mathematical entities and operations and to determine what classes of problems can be solved by using these entities.

Where do we use data structure?

In general, data structures are used to implement the physical forms of abstract data types. This can be translated into a variety of applications, such as displaying a relational database as a binary tree. In programming languages, data structures are used to organize code and information in a digital space.

What is ADT in data structure?

In computer science, an abstract data type (ADT) is a mathematical model for data types. … Formally, an ADT may be defined as a “class of objects whose logical behavior is defined by a set of values and a set of operations”; this is analogous to an algebraic structure in mathematics.