100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Summary

Summary Linked List Data Structures

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

In this course you will learn about Linked List data structure its types and implementation

Institution
Course









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Study Level
Examinator
Subject
Unit

Document information

Uploaded on
February 25, 2023
Number of pages
14
Written in
2022/2023
Type
Summary

Subjects

Content preview

Data Structures : Linked Lists

Chapter 1 :

Introduction to data structures :

Data structure is the most fundamental and building block concept in computer science. Good
knowledge of data structures is a must to design and develop efficient software systems. Data
structures are a way to store and organize data in a computer so that the data can be used efficiently.
Different kinds of structures are needed to organize different kind of data. Now computers work with all
kinds of data. When we study data structures as mathematical or logical models, we just define their
abstract view or in other words, we have a term for this we define them as abstract data types. An
example of an abstract data type can be something called a list that should be able to store a group of
elements of a particular data type. we can implement the same AdT (abstract data types) in multiple
ways in the same language, for example, in C or C++ we can implement. This AdT as a data structure
named linked list. We will be studying all these data structures in the coming lessons and this is all for
this introductory lesson. We will study the cost of these operations, mostly in terms of time and then
definitely. We will study implementation in a programming language, so we will learn the implementation
in programming language.

, Chapter 2 :

Data Structures: List as abstract data type :

List is a common real world entity. list is nothing but a collection of objects of the same type. list should
be able to store a given number of elements of a given data type. the elements are a 0, a 1 and are
accessed something like this and then you can also read elements at a particular position. The features
of my list are that I will call my list empty. If there are no elements in the list. I 'll say the size of the list is
zero. When it is empty, then I can insert an element into the list. I should also be able to specify the
date type for the list. So I should say whether this is a list of integers or string or float. Well, actually we
can implement such a dynamic list using arrays. arrays. it's just that we will have to write some more
operations on top of arrays to provide for all these functionalities. The list in this array is described as
an abstract data type. we have a logic of calling the list empty. When we have this variable end equal to
minus one. we can insert an element at the particular position in the list. After each insertion, the end
will be zero after this one, two, three and so on.
The study of data structures is not just about studying the operations, but also about analyzing the cost
of these operations. access to any element in this dynamic list will take constant time because we have
an array here and in array elements are arranged in one contiguous block of memory using the starting
address or the base address of the block of the memory. inserting an element at the particular position
will be a linear function in terms of the size of the list. removing an element will again be big O(n) time
complexity. time taken for insertion will be proportional to the length of list. This kind of implementation
is not efficient and is of no use for memory.
$7.99
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
shubhamcholke000

Get to know the seller

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

Frequently asked questions