- OVERVIEW OF DATA STRUCTURES AND ALGORITHM
Data structures are fundamental concept of computer science which help in writing efficient programs in any language python is a high level language so by using python we can study the fundamentals of data structures in a simpler way compared to other programming languages
Goal of This Article
The article is meant to aid beginners in the following way:
- Understand what is data structure
- Different types of data structures and
- Why you should know data structure as a techie.
WHAT ARE DATA STRUCTURES AND ALGORITHMS?
DATA STRUCTURE: Data structure is a collection of data types. 'Values' which are stored and organized in such a way that its allowed for efficient access and modification.
ALGORITHM: Algorithms are series of instructions telling a computer how to transform a set of facts about the world. In-order words algorithms are sequence of steps given to the computer to solve a given problem.
DIFFERENT TYPES OF DATA STRUCTURE
Linear Data Structure:
A Linear data structure have data elements arranged in sequential manner and each member element is connected to its previous and next element. ... Such data structures are easy to implement as computer memory is also sequential. Examples of linear data structures are List,
Non Linear Data Structure:
A non-linear data structure has no set sequence of connecting all its elements and each element can have multiple paths to connect to other elements. Such data structures supports multi-level storage and often cannot be traversed in single run. ... Examples of non-linear data structures are Tree, BST, Graphs e.t.c source
TYPES OF DATA STRUCTURES
- LISTS
LINKED LIST:
A linked list is a sequence of items arranged in a linear order all connected to each other. This means you must access data in order, so random access to data is not possible.SETS
DICTIONARIES
TUPLES
STACKS:
A stack works almost exactly as it sounds. Itβs like stacking elements within a tall container.QUEUES:
A queue functions similarly to a stack, but instead of being a LIFO structure, it is a FIFO (First In First Out) structure. The easiest way to think about a queue is to think of a line of people waiting to enter a building. The person at the beginning of the line will enter the building first, while the person at the end will enter last.
BENEFIT OF DATA
Data is so much important in our daily lives from how we carry out our routine daily activities data revolves around u we cant do without it.
CONCLUSION
This article was written to explain data structures and algorithms in simple terms.
Top comments (0)