Search for notes by fellow students, in your own course and all over the country.
Browse our notes for titles which look like what you need, you can preview any of the notes via a sample of the contents. After you're happy these are the notes you're after simply pop them into your shopping cart.
Title: data structure
Description: basic introduction related to data structure and its type
Description: basic introduction related to data structure and its type
Document Preview
Extracts from the notes are below, to see the PDF you'll receive please use the links above
Introduction to Data Structures
Neso Academy
From this presentation onwards,, we will study a new subject that is,
data structures
...
, I will introduce what data
structure is and some real-life examples of data structure
...
This is what data is
...
data structure gives us the way to structure the data, to
appropriately manage the data
...
This is the reason, why
companies are preferring this subject over other subjects because this is
very important subject
...
You know that this is the
famous
...
one such application is Google
Docs,, or power, Point, or microsoft word
...
now, let 's discuss some real-life examples of data
structures
...
I press control Z, this element gets selected and you
know, it will get poped out of the stack and will get placed within this
redo stack
...
, stack is our data structure
...
data structures are useful in day to day life and
we using them more frequently, and that is why, it is so hot in it
industry
...
we can use graph data structure to store information like
this
...
Data Types vs
...
A data type defines a certain domain of values but also defines what
operations are allowed on those values
...
ADTs are like user defined data types
which defines operations on values using functions without specifying
what is there inside the function and how the operations are performed
...
There are multiple ways to implement an
ADT
...
The
program which uses data structure is called a client program
...
The implementation can
go on without affecting the stack program
...
Abstract data type provides abstraction which means hiding details
from the user and it is very important because user does n't bother
about how that particular thing is implemented
...
So, this separation is required
...
Data Structure Definition & Advantages
Neso Academy
In this presentation, we will discuss the formal definition of data
structures and discuss some of the advantages of it
...
When I say efficiently, it means in terms of time
as well as space
...
But how to know which data
structure to use for a particular ADT? That is the basic question
...
ADT is the blueprint , while
data structure is the implementation
...
The client program does n't have to worry
about what is going inside
...
Types of Data Structures
Neso Academy
A data structure is linear when all the elements are arranged
in a linear order or sequential order
...
We have a non-linear data structure, we
have static data structures and dynamic data structures
...
The advantage of such data structure is that
we can access data very fast
...
We will discuss this later that how linked list can be
created
...
Basics of Asymptotic Analysis (Part 1)
Neso Academy
A data structure is the organization of the data in a way so that it can
be used efficiently
...
And we want to
perform some operations on it
...
An ideal data
structure could be the one that takes the least possible time for all its
operations and consumes the least memory space
...
The size of the array is not
defined
...
And right now, we have eight elements in this array
...
Then, we can easily add our element at the beginning of the
list
...
Inserting a data structure is much efficient in
adding data in comparison to the array
...
Study time complexity is very important
...
Okay friends,
this is it for now
...
Back to the
page you came from the bottom of the page
...
Basics of Asymptotic Analysis (Part 2)
Neso Academy
WE have learnt that on the basis of operations performed on
data structures, we could be able to compare the time
complexity of the data structures
...
? Let 's tackle this question by using some
methods
...
Exact running time calculation is not
at all practical--let me tell you it is not practical
...
structure is giving the best performance on the
other input size
Basics of Asymptotic Analysis (Part 3)
Neso Academy
Examining the exact running time is not the best solution to calculate
the time complexity that 's what we have learned from the last lecture
right
...
running time generally
depends on the size of the input that what is going to be the running
time
...
[UNK]
represents the number of instructions executed for the input value N
...
Denotes the time complexity
...
complexity
...
time a particular operation will
take in a particular machine
...
We just have to put
...
This becomes 6
...
Percentage of time is 21 point seven four percent
...
Obviously this
we are calculating for n equal to one
...
For larger values of n
...
As you are increasing the value of N
...
If we can
eliminate the rest of the terms as they are not contributing much to the
time
...
If we take F n is equal to five and
squared
...
IT gives us the upper
bound on a function by which we can make sure that the function will
never grow faster than this upper bound
...
We are not interested
in the exact running time
...
THis
is the upper bound on this function, which simply says that this function
will never grow faster than this
...
It means, that we are actually
calculating the worst case time complexity
...
Four n plus three is not less than or equal to n
...
We need to find the growth rate of this function is linear
...
IT
is not the case that is suddenly it will behave like a quadratic function
...
And we can clearly see from this function as
well
...
f ( n)
equal to big O of n
...
Now, let 's analyze the growth rate visually
...
This purpose, I have
created this table with different n values
...
Here also, we will see some examples
...
So, let 's
get started
...
IT
gives the least upper bound on the function, which gives the surety that
the function under consideration will never grow faster than this upper
bound
...
SO,
...
This G ( N) is basically representing the upper
bound on F (n)
...
WE use these standard functions for least upper bound on a particular
function under consideration
...
While two
...
Basically, we usually
put them in place on G ( n ) SO, we can use log n base 2, n square, n
cube, n cube and n square to get big O of n square
...
WE are interested in finding the
growth rate of this function
...
The growth can be linear only because the highest term here
you can see is n
...
The algorithm
written by you for calculating the sum of first n natural numbers is the
fastest among all
...
has written an algorithm
which has a linear growth
...
With Big O notation
...
Different programs
...
You can clearly say that
...
Okay
friends, this is it for now
...
Title: data structure
Description: basic introduction related to data structure and its type
Description: basic introduction related to data structure and its type