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

Data Structure Lecture 1-9

Rating
-
Sold
-
Pages
1
Uploaded on
12-03-2023
Written in
2022/2023

This is a booklet of Data Structure from lectures 1 to 9 which contain Introduction to DS, Datatype, Abstract Datatype, Definitions, Advantages, Types of DS, and Asymptotic Analysis.

Institution
Course

Content preview

Basics of Asymptotic Analysis (Part 5)
My School

This lecture is in the continuation of the previous lecture where we
discussed the big O notation and we have seen some examples related to
big O. Here also, we will see some examples. We will also summarize what
we have learned so far in asymptotic analysis. So, let's get started. Big O
notation is the tool to find the growth rate of the function without plugging
in different values of the size of the input. 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. f ( n ) is equal to the big O of
n square, which means that our function grows quadratically. So, we can say
that the growth rate of this function is quadratic. This G (N) is representing
the upper bound on F (n). That is the worst-case time complexity.
We use these standard functions for the least upper bound on a particular
function under consideration. Log n base two has the least growth. While
two. The power N has exponential growth. 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 a big O of n square. f ( n) keeps the count of several instructions. We
are interested in finding the growth rate of this function. We can clearly say
that f (n) is equal to big O of n. The growth can be linear only because the
highest term here you can see is n. After that, we have a constant term. The
algorithm written by you for calculating the sum of first n natural numbers
is the fastest among all. Your friend has written. has written an algorithm
that has linear growth. So, your algorithm runs faster than his algorithm.
With Big O notation. We can easily identify which particular program is
better than the other program.
Different programs. One has linear growth and the other one has constant
growth. You can clearly say that. the program written by you is the best and
the program which is written by your friend is not. Okay friends, this is it for
now. Thank you for watching this presentation.

Written for

Institution
Course

Document information

Uploaded on
March 12, 2023
File latest updated on
March 12, 2023
Number of pages
1
Written in
2022/2023
Type
Class notes
Professor(s)
Ashwin agrawal
Contains
All classes

Subjects

$3.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
ashwinagrawal11342

Get to know the seller

Seller avatar
ashwinagrawal11342 My company
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
3 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

Working on your references?

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

Working on your references?

Frequently asked questions