Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Class notes

Class notes 24BEYC01 (24bec01)

Rating
-
Sold
-
Pages
7
Uploaded on
25-05-2025
Written in
2024/2025

this have class notes on data structures

Institution
Course

Content preview

Concept of Linked List

●​ A linked list is a fundamental data structure in computer science. It mainly
allows efficient insertion and deletion operations compared to arrays.
●​ A linked list is a linear data structure which can store a collection of "nodes"
connected together via links i.e. pointers.
●​ A linked list is a dynamic linear data structure whose memory size can be
allocated or de-allocated at run time based on the operation insertion or
deletion, this helps in using system memory efficiently.




●​ A linked list starts with a head node which points to the first node. Every
node consists of data which holds the actual data (value) associated with
the node and a next pointer which holds the memory address of the next
node in the linked list. The last node is called the tail node in the list
which points to null indicating the end of the list.


Types of Linked List

Singly Linked Lists

Singly linked lists contain two "buckets" in one node; one bucket holds the data
and the other bucket holds the address of the next node of the list. Traversals
can be done in one direction only as there is only a single link between two
nodes of the same list.




Doubly Linked Lists

Doubly Linked Lists contain three "buckets" in one node; one bucket holds the
data and the other buckets hold the addresses of the previous and next nodes
in the list. The list is traversed twice as the nodes in the list are connected to
each other from both sides.

, Circular Linked Lists

Circular linked lists can exist in both singly linked list and doubly linked list.

Since the last node and the first node of the circular linked list are connected,
the traversal in this linked list will go on forever until it is broken.




Basic Operations in Linked List
The basic operations in the linked lists are insertion, deletion, searching, display,
and deleting an element at a given key.

●​ Insertion − Adds an element at the beginning of the list.
●​ Deletion − Deletes an element at the beginning of the list.
●​ Display − Displays the complete list.
●​ Search − Searches an element using the given key.
●​ Delete − Deletes an element using the given key.



Linked List - Insertion Operation
Adding a new node in linked list is a more than one step activity. We shall learn
this with diagrams here. First, create a node using the same structure and find
the location where it has to be inserted.

Written for

Institution
Course

Document information

Uploaded on
May 25, 2025
Number of pages
7
Written in
2024/2025
Type
Class notes
Professor(s)
Computer science
Contains
Data structure

Subjects

$9.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
vrishtikkavaipavsaran

Get to know the seller

Seller avatar
vrishtikkavaipavsaran
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
11 months
Number of followers
0
Documents
7
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions