Geschreven door studenten die geslaagd zijn Direct beschikbaar na je betaling Online lezen of als PDF Verkeerd document? Gratis ruilen 4,6 TrustPilot
logo-home
Scriptie

Thesis D

Beoordeling
-
Verkocht
-
Pagina's
2
Cijfer
A+
Geüpload op
05-03-2023
Geschreven in
2022/2023

Providing good knowledge

Instelling
Vak

Voorbeeld van de inhoud

Data Structures and Algorithms for Beginners

Programming with Mosh

In this video we talk about the basics of data structures and algorithms. We use the Big O notation to
describe the performance of an algorithm. This helps us determine if a given algorithm is scalable or not
which basically means is this algorithm going to scale well as the input grows really large. Just because
your code executes quickly on your computer does n’t mean it ‘s gon na perform well when you give it a
large data set. Using the Big O notation to describe the performance of our algorithms we ‘re going to
look at code snippets and use it to describe performance of algorithms. Over the next few videos we ‘’re
going to talk about how scalable an algorithm is and finally knowing Big L will make you a better
developer or software engineer. The algorithm is the algorithm that we use for printing all combinations
of items in an array. Here we ‘re using a traditional for loop we could also use a for each loop for
example for int number in numbers we could simply print the number we’re still iterating over all the
items in this array. The run time complexity of this method is o of 1 plus n plus 1 which we can simplify
to or of 2 plus n however when using the Big O notation we drop this constant because they do n’t really
matter.



An algorithm that runs in quadratic time is more efficient and more scalable than a linear algorithm. As
our input grows larger and larger algorithms that run in O of N squared get slower and slower.
Algorithms that run into a linear search are more efficient than those that run through linear time.
Algorithm that runs through an array of sorted numbers from 1 to 10 can be more efficient. An
algorithm with logarithmic time is more scalable than one with linear time. An algorithm that runs in
exponential time is not scalable at all it will become very slow very soon again I can not show you an
example of this in code now because it’s a bit too complex to show it in code. The run time of this
algorithm increases linearly and in direct proportion with the size of our array. Marcia explains how we
can use the Big O notation to describe the runtime complexity of our algorithms in an ideal world we
want our algorithms to be super fast and scalable and take minimum amount of memory but
unfortunately that hardly if ever happens it ‘s like asking for a Ferrari for ten dollars it just does n’t
happen most of the time we have to do a trade-off between saving time and saving space. Marcia says
this video is actually part of my ultimate data structures and algorithms course the complete course is
13 hours long.



I highly encourage you to take this course and learn all the essential data structures and algorithms from
scratch. Divided it into three parts so you can take and complete each part easily. The course is packed
with almost 100 interview questions that get asked by companies like Google Microsoft and Amazon. Ar
arrays are static which means when we allocate them we should specify their size and this size can not
change later on. To add another item we’ll have to resize the array which means we should allocate a
larger array and then copy all the items in the old array into the new array this operation can be costly
can you guess the runtime complexity of this operation? IntelliJ imports an array of 3 items in Java dot
util so we press ENTER and use the dot operator and call the two string method a password array. This
method will convert it to a string and then we ‘ll print that string on the console no let ‘s run the
program one more time there you go much much better.

Geschreven voor

Vak

Documentinformatie

Geüpload op
5 maart 2023
Aantal pagina's
2
Geschreven in
2022/2023
Type
SCRIPTIE
Begeleider(s)
Alisha khatri
Jaar
Onbekend

Onderwerpen

€7,42
Krijg toegang tot het volledige document:

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kun je een ander document kiezen. Je kunt het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF

Maak kennis met de verkoper
Seller avatar
prabeshkhatri

Maak kennis met de verkoper

Seller avatar
prabeshkhatri Kathmandu university
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
-
Lid sinds
3 jaar
Aantal volgers
0
Documenten
3
Laatst verkocht
-

0,0

0 beoordelingen

5
0
4
0
3
0
2
0
1
0

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Bezig met je bronvermelding?

Maak nauwkeurige citaten in APA, MLA en Harvard met onze gratis bronnengenerator.

Bezig met je bronvermelding?

Veelgestelde vragen