INTRODUCTION TO DATA STRUCTURES AND ALGORITHMS WITH PYTHON

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…


This content originally appeared on DEV Community and was authored by Emmanuel Chibuzor

  1. OVERVIEW OF DATA STRUCTURES AND ALGORITHM

Image description
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?

Image description
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.

Image description
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.

Image description


This content originally appeared on DEV Community and was authored by Emmanuel Chibuzor


Print Share Comment Cite Upload Translate Updates
APA

Emmanuel Chibuzor | Sciencx (2022-02-21T22:44:08+00:00) INTRODUCTION TO DATA STRUCTURES AND ALGORITHMS WITH PYTHON. Retrieved from https://www.scien.cx/2022/02/21/introduction-to-data-structures-and-algorithms-with-python-6/

MLA
" » INTRODUCTION TO DATA STRUCTURES AND ALGORITHMS WITH PYTHON." Emmanuel Chibuzor | Sciencx - Monday February 21, 2022, https://www.scien.cx/2022/02/21/introduction-to-data-structures-and-algorithms-with-python-6/
HARVARD
Emmanuel Chibuzor | Sciencx Monday February 21, 2022 » INTRODUCTION TO DATA STRUCTURES AND ALGORITHMS WITH PYTHON., viewed ,<https://www.scien.cx/2022/02/21/introduction-to-data-structures-and-algorithms-with-python-6/>
VANCOUVER
Emmanuel Chibuzor | Sciencx - » INTRODUCTION TO DATA STRUCTURES AND ALGORITHMS WITH PYTHON. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/02/21/introduction-to-data-structures-and-algorithms-with-python-6/
CHICAGO
" » INTRODUCTION TO DATA STRUCTURES AND ALGORITHMS WITH PYTHON." Emmanuel Chibuzor | Sciencx - Accessed . https://www.scien.cx/2022/02/21/introduction-to-data-structures-and-algorithms-with-python-6/
IEEE
" » INTRODUCTION TO DATA STRUCTURES AND ALGORITHMS WITH PYTHON." Emmanuel Chibuzor | Sciencx [Online]. Available: https://www.scien.cx/2022/02/21/introduction-to-data-structures-and-algorithms-with-python-6/. [Accessed: ]
rf:citation
» INTRODUCTION TO DATA STRUCTURES AND ALGORITHMS WITH PYTHON | Emmanuel Chibuzor | Sciencx | https://www.scien.cx/2022/02/21/introduction-to-data-structures-and-algorithms-with-python-6/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.