Posts

Showing posts with the label data structure python

Data Structure using Python| codin india

Image
  Data Structure   is a particular way of organizing data in a Computer, so that it can be used effectively. For Example:-   We can store a list of items having the same data-type using arrays. Data structures are fundamental concepts of computer science which helps is writing efficient programs in any language. Python is a high-level, interpreted, interactive and object-oriented scripting language using which we can study the fundamentals of data structure in a simpler way as compared to other programming languages. Types of Data Structure Data structures in computer science are divided into two categories. We will discuss about each of the below data structures in detail one by one. In today's post we will only discuss about data structure definition and its types. We will learn and implement its various types one by one with example. Data Structure Linear Data Structure Non-Linear Data Structure Linear Data Structure A Linear data structure have data elements arranged in sequent

User Defined data structure - Python | codin india

Image
  In computer science, a data structure is a logical way of organizing data in computer memory so that it can be used effectively. A data structure allows data to be added, removed, stored and maintained in a structured manner. Python supports two types of data structures: 1. Non-primitive data types:- Python has list, set, tuples and dictionary as its non-primitive data types which can also be considered its in-built data structures. List Arrays Tuples Dictionaries 2. User-defined data structures:- Data Structures that aren't supported by python but can be programmed to reflect the same functionality using concepts supported by python are user-defined data structures. There are many data structures that can be implemented this way:- Linked List Stack Queue Tree  Graphs Hash map Linked List Data Structure:- A  Linked List  is a linear data structure, in which the elements are not stored at contiguous memory location. The elements in a linked list are linked using pointers. Python c