DEV Community

Cover image for Bisecting data, data structures, algorithm and computer programs.
Joshua Murithi
Joshua Murithi

Posted on

1 1

Bisecting data, data structures, algorithm and computer programs.

intro

Let's start with appreciating this tool I am using to edit this article (Google Chrome), a program also known as computer program.
A computer program is a collection of instructions to perform a specific task. For this, a computer program may need to store data, retrieve data, and perform computations on the data.
A data structure is a named location that can be used to store and organize data. And, an algorithm is a collection of steps to solve a particular problem.

What is data, you may ask?πŸ€¦β€β™€οΈ

so data is the collection of different numbers, symbols, and alphabets to represent information. Note that this information is unordered, hence might not have meaning.

is data structure really important?

Absolutely, the choice of a good data structure makes it possible to perform a variety of critical operations effectively. An efficient data structure also uses minimum memory space and execution time to process the structure.Learning data structures and algorithms allow us to write efficient and optimized computer programs.

Nice πŸ˜„ tell me more

Now that you have a glimpse, we have 2 types of data structure, namely:

  1. Linear data structures-think of them as data structures where elements are arranged in a single dimension i.e. lists/arrays, stack, queue etc
  2. Non-Linear Data Structure. - Opposite of linear, elements are arranged in many dimension i.e. one-many relationship, many-many relationship or many-one relationship. Examples of these data structures are: tree, graph, table, etc.

Sounds interesting, can you give some examples πŸ€”

We know how to classify data structures, so far so good. Here is a list of most used data structures:

  1. Array/lists
  2. Linked-lists
  3. Dictionaries
  4. Stacks
  5. Queues
  6. Binary trees
  7. Heaps

summary and next steps

Today we have learned what is data, data structure and a computer program. What are different types of data structures and their examples. Next article we will take a look at most used data structures.

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay