DEV Community

Cover image for Computational Thinking / Algorithm Design
21 Lessons
21 Lessons

Posted on • Originally published at instagram.com

3 1

Computational Thinking / Algorithm Design

The third part of Computational Thinking is the most important one: How do you design an algorithm?

It all starts with the idea for a new program. The problem is well understood and already broken down into smaller problems. You've already identified a few recurring patterns.

Sketchnote Algorithm Design

An algorithm helps you to break down a problem into concrete steps for the computer to execute.
Let's say you're tasked with determining if a given email address has the right format. The input parameter is an email address a user has filled into a web form. The algorithm needs to return true or false. Does the address include an @ sign? If not, return false. Does the address include a top-level domain? If not, return false. And so on.

What are your thoughts on this? How did you learn to design algorithms?


21 Lessons helps Junior Developers to level up their skills step by step via their weekly newsletter. Do you want to get out of Tutorial Hell or you're wondering how you develop the skills to write sophisticated programs yourself? Sign up and receive weekly articles and recommendations right in your mailbox.

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (0)

The Most Contextual AI Development Assistant

Pieces.app image

Our centralized storage agent works on-device, unifying various developer tools to proactively capture and enrich useful materials, streamline collaboration, and solve complex problems through a contextual understanding of your unique workflow.

👥 Ideal for solo developers, teams, and cross-company projects

Learn more

👋 Kindness is contagious

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

Okay