1 Introduction To Data Structures
1 Introduction To Data Structures
1 Introduction To Data Structures
Algorithms
Greetings everyone, and thank you for joining me on this new playlist of mine,
Data Structures, and Algorithms. You’ll learn everything needed to prepare for
interviews, placements, and logic building in this course. This playlist will teach
you how to create optimal solutions to your real-world problems. This course
explores a broad range of data structures and algorithms. Furthermore, I have
designed this course with the optimal requirements in mind and will try my
best not to miss anything.
The only thing you need to know is the fundamentals of C/C++ to get started
with this course. If you are not yet ready with that, you may want to access my
short tutorials on C and C++. For now, that will suffice. Links are here:
Although you can start here, even if you know Java well. The reason for
adhering to C or C++ is to be able to write the code from scratch. These are
very recommended since they make it easy to understand the fundamentals of
these theories.
Note: Do not forget to access the notes I have provided along with the course.
So, without any further ado, let's start our Data structures and Algorithms
journey.
Let's clear up our basics with these terms before deep diving into DSA. Data
Structures and Algorithms are two different things.
Data Structures – These are like the ingredients you need to build efficient
algorithms. These are the ways to arrange data so that they (data items) can
be used efficiently in the main memory. Examples: Array, Stack, Linked List,
and many more. You don't need to worry about these names. These topics will
be covered in detail in the upcoming tutorials.
Algorithms – Sequence of steps performed on the data using efficient data
structures to solve a given problem, be it a basic or real-life-based one.
Examples include: sorting an array.
When the program starts, its code gets copied to the main memory.
The stack holds the memory occupied by functions. It stores the activation
records of the functions used in the program. And erases them as they get
executed.
The heap contains the data which is requested by the program as dynamic
memory using pointers.
Initialized and uninitialized data segments hold initialized and uninitialized
global variables, respectively.