Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What is a Data Structure?
#1
Star 
A data structure is a specialized format for organization and storing data. General data structure types include the array, the file, the record, the table, the tree, the linked list and so on. Any data structure is designed to organize data to suit a specific purpose so that it can be accessed and worked with in appropriate ways.
In computer programming, a data structure may be selected or designed to store data for the purpose of working on it with various.
Role of Data Structure

Data can be organized in many different ways; therefore, you can create as many data structures as you want. However, there are some standard data structures that have proved useful over the years. These include arrays, linked lists, stacks, queues, trees and graphs.
All these data structure are designed to hold a collection of data items. However, the difference lies in the way the data items are arranged with respect to each other and the operations that they allow. Because of the different ways in which the data items are arranged with respect to each other, some data structure prove to be more efficient than others to solve a given problem.

In addition to improve the efficiency of an algorithm, the use of appropriate data structures also allows you to overcome some other programming challenges, such as:-
  1. Simplifying complex problems.
  2. Creating standard, reusable code, components.
  3. Creating programs that are easy to comprehend and maintains.
Data structures also enable the creation of reusable code components and you have created a class to implement a data structure that stores and retrieves requests in the order of their arrival. Once the class in created, the same class can be used in several different applications that need to service the requests of multiple users on a First-Come-First-Serve (FCFS) basis.
This means that a data structure once implemented can be used as a standard component to provide standard solutions to a specific set of problems. The use of standard component help simplify the maintenance process. This is because the standard components are time tested and therefore, do not need much maintenance.

The way in which the various data elements are organized in memory with respect to each other is called a data structure.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)