<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/dynamic-programming-is-not-black-magic-quentin-santos-rig07rzxt" -->

---
title: Dynamic Programming is not Black Magic – Quentin Santos
description: Dynamic programming is a technique in computer programming that involves breaking down a problem into smaller subproblems and solving them independently. It is...
canonical: https://daily.dev/posts/dynamic-programming-is-not-black-magic-quentin-santos-rig07rzxt
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Dynamic Programming is not Black Magic – Quentin Santos | daily.dev
og:description: Dynamic programming is a technique in computer programming that involves breaking down a problem into smaller subproblems and solving them independently. It is...
og:url: https://daily.dev/posts/dynamic-programming-is-not-black-magic-quentin-santos-rig07rzxt
og:image: https://api.daily.dev/og/posts/RIg07RzxT.png
og:image:alt: Dynamic Programming is not Black Magic – Quentin Santos
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Dynamic Programming is not Black Magic – Quentin Santos

**[Hacker News](https://daily.dev/sources/hn)** · 14 min read · 4 upvotes · 1 comments

## Summary

Dynamic programming is a technique in computer programming that involves breaking down a problem into smaller subproblems and solving them independently. It is commonly used in various algorithms, such as path-finding algorithms like Dijkstra's algorithm. By using dynamic programming, we can optimize our code by avoiding redundant calculations and improve the efficiency of our solutions.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://qsantos.fr/2024/01/04/dynamic-programming-is-not-black-magic/>

## Community discussion

Top comments from developers on daily.dev.

**@1026x1026** · 0 upvotes

> black magick needs special values like 11, 77, 93, 175 and relies on obfuscating science so that scientific function appears instead as 'magic'.
>
> think things like oxygen freezing into a solid, light blue colored structure at the temperature found in outer space. weird, what does that sound like? anyway.
>
> it's funny because black magick is very real and is taken very seriously by people you would not expect, such as by the people who founded NASA, so seeing it flippantly applied where it doesn't belong is always amusing.

---

Tags: [#algorithms](https://daily.dev/tags/algorithms), [#dynamic-programming](https://daily.dev/tags/dynamic-programming)

[View this post on daily.dev](https://daily.dev/posts/dynamic-programming-is-not-black-magic-quentin-santos-rig07rzxt)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Dynamic Programming is not Black Magic – Quentin Santos","url":"https://daily.dev/posts/dynamic-programming-is-not-black-magic-quentin-santos-rig07rzxt","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/dynamic-programming-is-not-black-magic-quentin-santos-rig07rzxt"},"datePublished":"2024-01-14T15:33:12.073Z","dateModified":"2024-01-14T15:33:10.170Z","description":"Dynamic programming is a technique in computer programming that involves breaking down a problem into smaller subproblems and solving them independently. It is...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/3e77090e7a644ce16e752715a34bbf88?_a=AQAEufR","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/3e77090e7a644ce16e752715a34bbf88?_a=AQAEufR","isAccessibleForFree":true,"articleSection":"Hacker News","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Hacker News","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/hn","url":"https://daily.dev/sources/hn"},"commentCount":1,"discussionUrl":"https://daily.dev/posts/dynamic-programming-is-not-black-magic-quentin-santos-rig07rzxt","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":4},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"keywords":"algorithms,dynamic-programming","timeRequired":"PT14M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Hacker News","item":"https://daily.dev/sources/hn"},{"@type":"ListItem","position":3,"name":"Dynamic Programming is not Black Magic – Quentin Santos"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/dynamic-programming-is-not-black-magic-quentin-santos-rig07rzxt","comment":[{"@type":"Comment","text":"black magick needs special values like 11, 77, 93, 175 and relies on obfuscating science so that scientific function appears instead as ‘magic’.\nthink things like oxygen freezing into a solid, light blue colored structure at the temperature found in outer space. weird, what does that sound like? anyway.\nit’s funny because black magick is very real and is taken very seriously by people you would not expect, such as by the people who founded NASA, so seeing it flippantly applied where it doesn’t belong is always amusing.","datePublished":"2024-01-19T13:32:04.727Z","dateModified":"2024-01-19T13:37:24.873Z","url":"https://daily.dev/posts/RIg07RzxT#c-bsalwZTuf","author":{"@type":"Person","name":"1026","url":"https://daily.dev/1026x1026","image":"https://avatars.githubusercontent.com/u/50276198?v=4"}}]}
```

