Data structures and algorithms (Intro)

Software Engineer | Technical Writer
Search for a command to run...

Software Engineer | Technical Writer
No comments yet. Be the first to comment.
Identity and Authentication in a Kubernetes Cluster.
A guide to understanding common terminal operations that occur during the installation of a Linux application.

An implementation of lazy loading in Reactjs with React router v6.

If you're trying to configure MongoDB on your Ubuntu 20.04, one of the problems you might encounter is working with the mongod service. This article explains how to fix the exitcode:100 error and why it pops up when you try to start a mongod service ...

A beginner-friendly guide to linking pages in Reactjs

Hey! Thanks for coming to this corner.
1.Why study Data structures?
Data and types of data.
What are data structures?
Types of data structures and their examples.
What is an algorithm?
Let's get right in.
Data structures are what makes storing, accessing and retrieving data in everyday computing efficient. It is important for every developer to have a knowledge of it as we deal with data directly or indirectly.
Before proceeding to what data structures are, let us consider what data is and the types of data.
Data is simply unprocessed facts and figures. The only become useful when they undergo processing that is needed. What are the types of data that exist?
We have:
Primitive data types are provided by the programming language. They often serve as the building block. They include:
Abstract data types.
Abstract data types or (ADT for short) is a data type that gives information about the types of operations to be performed on it but not how it should be performed.
Examples of ADTs.
Graphs
Abstract data types are sometimes confused with data structures, but the main difference is that data structures are used to implement abstract data types(ADT). Just keep that at the back of your mind, it would get clearer as we progress. Hang on!
There are tons of definitions of data structures on the internet. These definitions are only expressed in different terms but they mean the same thing.
Data structures are logical ways or models for organizing data in the computer memory.
They make it easy to store and access data. The usage and purpose of the data will determine the data structure to be used.
There are two types of data structures.
Examples: Arrays and Linked list.
Examples: Trees, Graphs.
These two types of data structures can also fall into two categories:

These are some of the most popular data structures. Other complex ones are usually an implementation of one data structure to perform a task e.g Hash tables, binary trees, hash trees etc.
An algorithm is a step by step procedure to solve a specific problem. In computing, there are various types of algorithms and they differ in their applications. I wrote about algorithms as a aid for problem solving here.
In the coming articles of this series, we would focus more on language agnostic concepts that are useful in data structures and algorithms.
If you find this article helpful, please let me know. You can also shoot me a DM on Twitter .
Peace.