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

Introduction to Data Structure with real life examples-2

Rating
-
Sold
-
Pages
3
Uploaded on
25-02-2023
Written in
2021/2022

This is the complete version of previous note. Summarized for better understanding.

Institution
Course

Content preview

Introduction to Data Structure with real life
examples-2
Introduction to Linked List | Types and Need of
linked list | data structures

Linked list is a linear data structure that includes a series of
connected nodes. each node store the data and the address of the
next node. As soon as it will get the address from this node, it will
directly jump to that node.. linked list overcomes the disadvantage
of array. the linked list works. This way. this node may exist at any
location of the memory., but the address will only be in the linked
part. the address of this will be stored in the link part of the previous
node.. If the address is matched, they will be linked together. if we
give the address of the third node to the address. Part of this and
they will also get linked.. There are three types of linkedNK] single
linked lists, double linked lists and circular linked lists. we will
discuss each of them one by one and. and study its algos. for now,
just learn what a single linked list is.. The next part is the circular
linked list. it has three [UNK] previous, data and next..

In the circular double linked list, the next part of the last node of it
contains the address of the first node.. Since it has the. address of
first node,, obviously it will be connected to the first. node. it will
form a circle.

Arrays vs Linked Lists | Data Structures

The choice of the data structure depends upon our problem. There are some
strengths and weaknesses of every data structure. We just need to see what our
problem and requirements are. For example, we use linked list when the number of
insertions and deletions is high and the size of the elements is unpredictable. In that
case, linked list uses dynamic allocation. If we consider a single element, array uses
less memory. The search time in array is very less. We can search the element in the
constant time only. The storage of this pointer is being used in the linked list
separately. The next difference is the search time too. The insertion and deletion in
array are very cost-effective. Insertion and deletion are done in very tough size. The
strength of array will be fast as it is random access. Less memory needed per
element. Fast insertion and deletion time. Dynamic size. Efficient memory
allocation/utilization. In linked list, insertion can be done in 3 ways. There will be a
slow search time in linked list.

The most important topic of data structure, that is single linked list.
All students skip this topic because they find it tough. Even if you
get to know a little about the logic of liked list , you will find this
topic very interesting and easy. The structure of all the nodes is the
same. That 's why linked lists are also called self-referential
structures. If we want to search for something in the single linked
list , we will start from the first node and keep continuing. The

Written for

Institution
Course

Document information

Uploaded on
February 25, 2023
Number of pages
3
Written in
2021/2022
Type
Class notes
Professor(s)
Anita sharma
Contains
All classes

Subjects

$10.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
manishdhakal

Get to know the seller

Seller avatar
manishdhakal Kathmandu University
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
3 year
Number of followers
0
Documents
2
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