1.2- Basics of Data Structure

Based on the previous blog post once we have data in variables, we need some mechanism for manipulating that data to solve problems.

data structure is a particular way of organizing data in a computer so that it can be used efficiently. 

The example of the data structure is Array, ArrayList, stacks, trees, graphs and so on.

Types of Data Structure –

Types Of Data Structure

About these, we will talk later but now we need to understand about Linear data structure and Non-linear data structure.

a. Linear data structures: Elements are accessed in a sequential order but it is not compulsory to store all elements sequentially (Linked Lists) Examples: Linked List, Stacks, and Queues.

b. Non-Linear data structures: Elements of this data structure are stored/accessed in a non-linear order. Emaples: Tree and graphs.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Create a free website or blog at WordPress.com.

Up ↑

%d bloggers like this: