JarnotMaciej / bidirectional-list

Implementation of bidirectional list in CPP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bidirectional list

GitHub GitHub GitHub

Short description

This project implements a bidirectional list data structure in C++. The list is implemented without using the standard template library (STL).

A bidirectional list, also known as a doubly linked list, is a data structure that contains a list of elements, where each element has a reference to both the previous and the next elements in the list. This makes it possible to traverse the list in both directions, allowing for more flexible and efficient data manipulation.

render1689178187833-min

What problem does it solve?

A bidirectional list, or a doubly linked list, solves the problem of efficiently storing and manipulating a collection of elements in a linear sequence.

Some of the problems solved by this program include:

  • Dynamic allocation of elements: The bidirectional list allows for the creation of new elements as needed, without having to pre-allocate a fixed amount of memory.
  • Flexible data manipulation: The bidirectional list provides the ability to insert and remove elements at any position within the list, making it possible to implement various algorithms and data structures.
  • Efficient traversal: The bidirectional list allows for efficient traversal in both forward and backward directions, making it possible to implement algorithms that require access to elements at different positions within the list.
  • Easy implementation of data structures: The bidirectional list provides a foundation for implementing more complex data structures, such as stacks, queues, and trees, by combining elements in different ways to create new structures.

How to use it?

The program can be used as a part of the other programs. Menu was implemented to show capabilities of the application. By default, list of people is assigned to the menu function. To use this project, follow the steps below:

  1. Download or clone the project from the repository.
  2. Make sure you have a C++ compiler installed on your system.
  3. Open the bidirectional folder in your preferred IDE or text editor.

Feel free to modify and extend this project to suit your specific needs.

About

Implementation of bidirectional list in CPP

License:MIT License


Languages

Language:C++ 100.0%