what is data structure

What is Data Structure?

The data structure is a logical way of storing and organizing data.

Basic concept

Data: are simply value’s which are represented by 0’s and 1’s

A data item: now  a data item is a single element of a data

Group item: the data item which is divided into subitems are known as a group item.

Example: a student’s name can be divided into  3 subitems

               : first name

               : middle name and

               : the last name

Data Organization

Attributes: employe’s name    sex    age         Id. Number

Values:       John                           M     29           185-66-774

Values of an employe’s data are assigned to the attributes.

what is data structure

Still confused! Let me explain you with the simple concept using apples

Suppose you have 100 apple’s then will you create 100 different boxes to keep this apple’s or keep all the apple’s in a one-box called array (Data structure)

But wait! what is an Array?

An array is a data structure that we use for storing the collection of similar data elements.

Let me explain you another example so that you will have a clear idea of data structure’s

Suppose if you have 100 students then will you create a 100 class(variables) for it, No! We don’t do that because it is complicated and complex, so to reduce the complexity we use only class(variable) called student

So the main purpose of using data structure is to reduce the complexity because that we use data structures in our programming instead of creating 100 different variables we create one variable called Array

Some data structures are

  • Arrays or vectors
  • Stacks
  • Linked lists
  • Queues
  • Trees
  • Hashes
  • Sets

 Data structure operations

Data structures are chosen based on a particular operation is performed number of times

  • Traversing
  • Inserting
  • Searching
  • Deleting
  • Sorting
  • Merging
  • Copying and concatenation.

Organizing, structuring data  is important to the design, development of efficient algorithms and program implementation

Still confused! what is Data Structure? Then watch this video on youtube by cs dojo

Mohammed Anees

Hey there, welcome to aneescraftsmanship I’m Mohammed Anees an independent developer/blogger.

Leave a Reply

Your email address will not be published.