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

Linked List

Rating
-
Sold
-
Pages
3
Uploaded on
06-03-2023
Written in
2022/2023

A linked list is a linear data structure it is a collection of data elements which are stored in known consecutive locations. Accessing of any elements will take order of 1 only constant time fine here insertion is easy and deletion is also easy why so because see if sorted air is there like this see.

Show more Read less
Institution
Course

Content preview

DSA-LIKNED LIST
Introduction to linked List
Memory is very crucial data source in our system we do n't have
unlimited memory in a computer system fine so it is a responsibility of a
memory manager to manage this resource. Memory manager will allocate
how many bytes 3 into 4 that is 2 any bytes fine so let us suppose one
complete block of 12 bytes has been allocated suppose from 102 from
hundred to this one one one this is free. In advance the programmer told
that I want size for only three integers so he has allocated 12 bytes now
what a memory manager will say he 'll say I can not extend the size of
your area because I have already allocated that that consecutive block to
some other variable. Memory is not free the memory manager can not
allocate this free memory to another variable but this programmer is not
using that memory so this is what the wastage of memory is there.
Linked lists is also a collection of elements and arrays were also a
collections of elements. The only difference is this data items are not
storing consecutive locations because this in area these are stored in
consecutive location continuous location. some cases then fresh a block
of 452 452 elements how many bytes 52 into 4 so 2 0 8 bytes would be
allocated a new block of to 0 8 byte would be.
The memory manager will allocate space for all the five variables some
fresh block would be allocated no why so because these values are not
not in contiguous locations so if anywhere space is available for 8 bytes
then memory manager can allocate space they are only fine and we can
provide space. Link to link into this node for that new node inserted but
in array we can not do this because in array drobik is what all the value
should be in consecutive locations. In case of linked list cygnus here this
particular node is containing two values and type of two values so is
different one is integer value and this one is what address. man two
members are there one is this one one one and this one now why I am
writing here struct node as you know if you want to declare a pointer
which is going to store address of some another integer variable. If you
know this this this address 1 0 2 if you know the value of this head this
pointer they can then you can easily reverse this linked list fine.
A linked list is a linear data structure it is a collection of data elements
which are stored in known consecutive locations. Accessing of any
elements will take order of 1 only constant time fine here insertion is
easy and deletion is also easy why so because see if sorted air is there
like this see. take order of n time complexity and in array it is order of 1
only next point you can say binary search is not possible in linked list. In
next video I am going to discuss the basic operations of this linked list
traversal insertion deletion something like this with the help of their
code.

Written for

Course

Document information

Uploaded on
March 6, 2023
Number of pages
3
Written in
2022/2023
Type
Class notes
Professor(s)
Akash tewari
Contains
All classes

Subjects

$8.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
pushpendrarajpoot

Get to know the seller

Seller avatar
pushpendrarajpoot PSIT COLLEGE OF ENGINEERING
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