Skip to main content

14 docs tagged with "Linked List"

View all tags

Applications of Linked List

Applications of Linked List in various fields including data structures, operating systems, and dynamic memory allocation.

Floyd's Cycle Detection Algorithm

Floyd’s Cycle Detection Algorithm, also called the Tortoise and Hare Algorithm, is a method used to detect cycles in a linked list. It uses two pointers that move at different speeds through the list to determine if a cycle exists.

Linked List Approaches

Linked lists are dynamic data structures, and various approaches can be used to solve problems involving linked lists. This file outlines iterative and recursive approaches used to implement and manipulate linked lists.

Linked List Data Structure

A Linked List is a linear data structure in which elements are stored in nodes, and each node points to the next node, forming a chain. Unlike arrays, linked lists do not store elements in contiguous memory locations. Instead, each node holds two main components: data and a reference (or pointer) to the next node in the sequence. This structure allows for dynamic memory allocation, meaning the list can grow or shrink as needed without reallocating or resizing.

Polynomial-addition

Addition of two polynomials represented as linked lists and displays the resulting polynomial