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
Document preview thumbnail
Preview 1 out of 1 pages
Class notes

data structures notes

Document preview thumbnail
Preview 1 out of 1 pages

In this series, we will dive into the basics of data structures and algorithms.

Content preview

Introduction to Data Structures and Algorithms


What Are Data Structures?
Data structures are different ways of storing data on your computer. For
example, let's say you want to make a system similar to Google Maps for your
neighborhood. You have all the locations' coordinates, but you need to store
information about how these locations are connected with streets. There are
different options for storing this information, such as:

 Storing all possible paths in a list format
 Listing each location and the places you can go from there
In this example, the first method corresponds to the array or a list data
structure, and the second method corresponds to the hash table or hash map
data structure.

What Are Algorithms?
Algorithms are sets of instructions for performing operations on different data
structures. For example, let's say you want to find the shortest path from your
home to your school. You can come up with a systematic set of instructions to
solve this problem, such as:

1. Find all the places you can go from home
2. From each of those places, find all the paths you can take to school and keep
track of the distance traveled for each path
3. Compare the distance traveled and pick the shortest path
Depending on the data structure you use, the algorithm might look slightly
different. It's important to learn data structures and algorithms to write
efficient software as a software developer.

Practical Use of Data Structures and Algorithms
Learning data structures and algorithms can be useful in many practical
situations as a software developer. For example, when working at Microsoft as
a data science intern, I had to retrieve some data, and the original code was
taking too long to load. By rewriting it using my knowledge of data structures
and algorithms, I was able to reduce the loading time from 7-10 hours to 5-10
minutes.

Document information

Uploaded on
May 15, 2023
Number of pages
1
Written in
2022/2023
Type
Class notes
Professor(s)
Jk
Contains
All classes
$7.29

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

Sold
0
Followers
0
Items
1
Last sold
-



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