this post was submitted on 14 Jan 2024
13 points (88.2% liked)

Programming

17022 readers
228 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 1 year ago
MODERATORS
top 8 comments
sorted by: hot top controversial new old
[–] pinchcramp@lemmy.dbzer0.com 6 points 8 months ago (3 children)

Am I understanding this correctly that dynamic programming == breaking a problem into smaller (reoccurring) sub-problems and using caching to improve performance?

[–] tatterdemalion@programming.dev 7 points 8 months ago* (last edited 8 months ago)

It's slightly more nuanced than that, but you've got the basic idea.

[–] bitcrafter@programming.dev 4 points 8 months ago

That is conceptually how dynamic programming works, but in practice the way you build the cache is from the bottom up rather than from the top down. It's a bit like how you can implement computation of the Fibonacci sequence in a top-down manner using a recursive function with caching, but it is a lot more efficient to instead build it in a bottom-up manner.

[–] MadhuGururajan@programming.dev 4 points 8 months ago

The caching is kind of mandatory as the sub-problems interact.

[–] tatterdemalion@programming.dev 2 points 8 months ago (2 children)

“Daemon”, for a process that is detached from your terminal

That's factually incorrect. Daemons are often spawned from "early" processes whose ancestors are not TTYs.

[–] MonkderZweite@feddit.ch 3 points 8 months ago

No, seriously. Article probably means background processes. Maybe aplies to session-daemons or user-daemons. Other daemons (udev, logrotate) were started long before there was any shell.

[–] ericjmorey@programming.dev 3 points 8 months ago* (last edited 8 months ago)

“Cascading Style Sheets”, just to mean that properties can be overridden

This one is really wrong too. But I think his overall point is made clear by other examples. Nomenclature tends toward jargon in software culture.

But that's true in any field.

[–] MaoZedongers@lemmy.today 1 points 8 months ago

The only application I can still remember is the backpack problem