Different data structures

Different data structures

We can categorize data structures in to two different groups:

  • Linear data structures
  • Nonlinear data structures

In linear data structures, items are structured in a linear or sequential manner. Array, list, stack, and queue are examples of linear structures. In nonlinear structures, data are not structured in a sequential way. Graph and tree are the most common examples of nonlinear data structures.

There are many different types of data structures that exist in the programming world. Out of them, following are the most used ones:

  • Struct
  • Array
  • Linked list
  • Doubly linked list
  • Stack
  • Queue
  • Priority queue
  • Set
  • Map
  • Tree
  • Graph
  • Heap

To view or add a comment, sign in

More articles by Ishan Madhawa

  • What is System Design?

    System design is a phase in the software development process where the overall architecture and structure of a…

  • The Internal Error Class in PHP

    Back when exceptions were first introduced, the world of trying and catching applied primarily to code written in PHP…

    1 Comment
  • PHP Exceptions

    PHP 5 introduced exceptions to PHP, a radically different way of handling error conditions. Different for PHP, that is.

  • Type Declarations in PHP

    Introduction In PHP, you can include type declarations for function arguments, return values, and class properties…

  • The Closure::call() method in PHP

    PHP introduced the Closure class in the 5.3 version.

  • Anonymous classes in PHP

    Hi Guys!, This is a new Post about the PHP Anonymous class. Reading this post you can get some basic idea about PHP…

  • Type checking mode in PHP

    By default, PHP works in weak type-checking mode, and will attempt to convert to the specified type without complaint…

Explore content categories