# Data structures

## Using the Graph Data Structure to solve real-world problems in C#

The graph data structure has many applications. This post will teach you how to use it to solve a real-world problem. To solve the problem I’m showing you here, you can use the implementation for the undirected simple graph data structure. Graph ADT operations When you want to use a data structure to solve problems, …

## Undirected Simple Graph Data Structure Implementation in C#

The Graph Data Structure is widely used in programming. In this post, you will learn one of the implementations of the TDA and an example of how to use it. To use a graph, you first have to understand when and why you can use it. As in other topics, you will find in this …

## Queue data structure implementation in C# (using linked lists)

The Queue data structure is studied in most Computer Science courses on Data Structure and Algorithms. In this post, you will learn the two main implementations of this important data structure. What is a Queue A queue is a linear data structure that follows the First In First Out (FIFO) principle. This means that the …

## Stack data structure implementation in C# (using linked lists)

The Stack data structure is studied in most Computer Science courses on Data Structure and Algorithms. In this post, you will learn one C# implementation of this important data structure. What is a Stack A stack is a linear data structure that follows the Last In First Out (LIFO) principle. This means that the last …

## General Tree Data Structure Example: Printing levels of the Tic-tac-toe Game Tree

One of the General Tree Data Structure example of application is to create game trees. In this post, you will learn how to print some levels of the game tree for the popular game Tic-tac-toe. Tic-Tac-Toe The Tic-tac-toe game consists of a 3×3 board. One player place X’s on the board and the other one …

## Graph Data Structure applications: solving a real-world problem

The graph data structure can be used to solve many real-world problems. In this post, you will see one of the graph data structure applications. To solve the problem I’m showing you here, you can use the implementation for the undirected simple graph data structure. Graph ADT operations When you want to use a data …

## Implementation of the Binary Search Tree data structure in Java

The Binary Search Tree data structure implementation will help us to store data and to do efficient searches. There are two main restrictions in this data structure: Every object to the left of the root is less than or equal to the root. Objects to the right of the root are greater than or equal …

## Stack data structure implementation in Java (using linked lists)

The Stack data structure implementation is studied in most Computer Science courses on Data Structure and Algorithms. In this post, you will learn one implementation of this important data structure. What is a Stack? A stack is a linear data structure that follows the Last In First Out (LIFO) principle. This means that the last …

## Queue data structure implementation in Java (using linked lists)

The Queue data structure implementation is studied in most Computer Science courses on Data Structure and Algorithms. In this post, you will learn one implementation of this important data structure. One of my favourite books to study data structure is Introduction to Algorithms by Cormen. What is a Queue A queue is a linear data …

## Undirected Simple Graph Data Structure: Implementation and usage in Java

Graph Data Structure is an important tool to model real-world situations. In this post, you will learn one of the implementations of the TDA and an example of how to use it. To use a graph, you first have to understand when and why you can use it. As in other topics, you will find …