r/ProgrammerHumor • • 3d ago

Meme dynamicProgramming

Post image
5.8k Upvotes

152 comments sorted by

View all comments

Show parent comment

17

u/-Redstoneboi- 3d ago

memoization should not have an r, btw. different spelling for whatever reason.

8

u/Illustrious-Ebb8815 3d ago

Spell check. 😔

4

u/SuitableDragonfly 2d ago

Memoization means using a memo to do a task. Memorization means committing something to memory, which is a thing that humans do, not computers. You don't say the computer is memorizing something because you stored it in RAM. They're spelled differently because they're based on two different roots. 

1

u/TommyBonnomi 2d ago

What if I use memory allocation in C or memory addresses in assembly?

Also, hard disks are secondary memory, so just saving something to disk.

0

u/SuitableDragonfly 2d ago

No, you don't generally say that a computer is "memorizing" anything in any context. 

2

u/TommyBonnomi 2d ago

But you could, is my point.

1

u/Jedkea 1d ago

I don’t think this is correct? I mean you literally store things in random access memory.

I take memoize to be a specific use case of memorization, wherein it’s used as a cache for expensive calculations.

I have never heard someone use memoize outside of this context, and would be pretty baffled if they did.

1

u/SuitableDragonfly 1d ago edited 1d ago

Yes, because a memo is a cache for partial solutions to calculations. That is literally what a memo is in computer science terms. Storing things in a computer's memory is not called "memorization" in any context. It refers to the human process of committing things to human memory, which is a lot more involved than just storing a piece of data somewhere.

1

u/-Redstoneboi- 1d ago

a parallel universe where the correct term is "memorization" is not so distant, considering how many typos have made it into the english language

see also: "sine" wave

1

u/SuitableDragonfly 23h ago

Not sure what you mean. Sine is from Latin sinus and follows standard patterns for how things were borrowed from Latin into English.

1

u/-Redstoneboi- 21h ago

actually they were supposed to be half-chord waves, as in the length of a chord inside a circle. a mistranslation or two later, we got to "sinus" or nose, which had nothing to do with the mathematical concept of a chord.

1

u/SuitableDragonfly 17h ago edited 17h ago

Sinus in Latin meant "bosom". It came to also mean "sine" (in Latin) because someone who was translating an Arabic author into Latin misinterpreted the Arabic word for sine as being the Arabic word for bosom because they were spelled similarly, and therefore used "sinus" to translate it into Latin. But that has nothing to do with English borrowing the word from Latin. It wasn't "supposed to be" anything, it's just one of the many terms in science and mathematics that were borrowed from Latin because Latin is considered prestigious in those areas. 

English "sinus" also happens to come from Latin sinus by way of also being a curved piece of anatomy, but that's not really anything to do with mathematicians borrowing the word to mean sine. Words almost always have multiple meanings, and can be borrowed multiple times with different meanings. The adjective "grave" comes from the same French word as "grieve", for example. This is a normal occurrence in etymology. 

1

u/-Redstoneboi- 17h ago

shiet i got the nose bit wrong

but it most definitely was supposed to be chord

1

u/SuitableDragonfly 17h ago

It wasn't "supposed to" be anything. God doesn't predestine language evolution. "Chord" originally meant "string", which has even less to do with sine waves than bosoms do. 

→ More replies

0

u/hr_krabbe 2d ago

Who came up with that stupid name though. It just sounds like someone with a speech impediment is trying to say memorization.