Data Structures

What is Data? 👇

Computer data is information processed or stored by a computer. This information may be in the form of text documents, images, audio clips, software programs, or other types of data. Computer data may be processed by the computer's CPU and is stored in files and folders on the computer's hard disk.

Data Type 👇

Data type is a way to classify various types of data such as integer, string, etc. which determines the values that can be used with the corresponding type of data, the type of operations that can be performed on the corresponding type of data. 

There are two data types - Built-in Data Type

                                           Derived Data Type

Built-in Data Type ðŸ‘‡

Those data types for which a language has built-in support are known as Built-in Data types. For example, most of the languages provide the following built-in data types.

- Integers

- Boolean (true, false)

- Floating (Decimal numbers)

- Character and Strings

Derived Data Type ðŸ‘‡

Those data types which are implementation independent as they can be implemented in one or the other way are known as derived data types. These data types are normally built by the combination of primary or built-in data types and associated operations on them.

“Every program depends on algorithms and data structures, but few programs depend on the invention of brand new ones.” -  Kernighan & Pike

Algorithm : Outline, the essence of a computational procedure, step-by-step instructions.

Program : An implementation of an algorithm

Data structure: Organization of data needed to solve the problem

At the backbone of every program or piece of software, there are two entities: data and algorithms. Algorithms transform data into something a program can effectively use. Therefore, it is important to understand how to structure data so algorithms can maintain, utilize, and iterate through data quickly.

What is a data structure? 👇

Simply saying……….. Organizing data in memory…….

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.

Ex : Arrays, Lists, Stacks, Queues

Basic Operations 👇

The data in the data structures are processed by certain operations. The particular data structure chosen largely depends on the frequency of the operation that needs to be performed on the data structure.

- Traversing
- Searching
- Insertion
- Deletion
- Sorting
- Merging





Comments

Popular posts from this blog

Software Quality Assurance