Episode 147: Gabriella Gonzalez discusses the intersection of algebra and programming
Elucidations15 Heinä 2023

Episode 147: Gabriella Gonzalez discusses the intersection of algebra and programming

In this episode, Matt talks to Gabriella Gonzalez about how basic concepts from the branch of math known as abstract algebra can help us simplify our

computer programs and organize our thoughts.


Algebra. That thing they make us do in school. What was that again? Oh yeah, that’s right; it’s where you get to manipulate equations containing variables. Like, if I have an equation that looks like this:


2⋅x = 16


Then I can divide both sides by two and get a new version where x stands alone, i.e. solve for x:


(2⋅x) / 2 = 16 / 2

x = 8


If you took algebra in school, you might remember learning a bunch of tricks for pushing parts of equations around to get one of the variables to appear only on one side and thus solve for it. Being able to solve for variables in equations proves useful for lots of things: like, if you can translate a word problem into one of those equations, finding the answer is often as simple as tinkering with the equation in some obvious way.


Abstract algebra is somewhat similar in that it also involves manipulating equations containing variables, except the twist is that now you aren’t necessarily manipulating numbers anymore. The variables can stand for something else, and there are more general versions of plus-like, times-like, etc. operations that you can do on these other things. You might be wondering: what on earth could a variable in an equation stand for other than a number? Well, in this episode, Gabriella Gonzalez gives a bunch of examples. You can have equations for cooking recipes, for computer programs, for transactions performed on databases, and for regular expressions. (A regular expression is a special type of computer program for identifying strings that fit a particular pattern and pulling information out of them.)


Gonzalez then goes on to argue that the point of all this is to avoid re-inventing the wheel. Often, when you write a computer program to add some numbers, though this isn’t necessariy obvious at the time of writing, you aren’t actually drawing meaningfully on the fact that they’re numbers. If that’s the case, then what you can often do is make your code that adds things abstract so you only have to write your program once, but then you can re-use it on all these different other kinds of entities other than numbers.


The overall payoff of all that, according to this month’s distinguished guest, is that by following algebra-driven design, you can keep your code simple and easy to understand, while still having it do fancy things. This is particularly important today, when our software just seems to keep getting fancier and fancier, but the usual ways of accomplishing that goal make it unreliable and well nigh impossible to keep up to date.


Join us as Gabriella Gonzalez gives us the tour through various algebraic systems that occur all over the place in computer science, philosophy, and linguistics!


Matt Teichman



Hosted on Acast. See acast.com/privacy for more information.

Jaksot(153)

Episode 153: Sam Enright discusses lifelong learning

Episode 153: Sam Enright discusses lifelong learning

In the latest episode of Elucidations, Sam Enright (Progress Ireland, The Fitzwilliam) instructs us in the delicate art of learning forever. If you’re one of those people who responds well to formal e...

2 Tammi 43min

Epsiode 152: Luca Gattoni-Celli discusses the housing crisis

Epsiode 152: Luca Gattoni-Celli discusses the housing crisis

This time around, Matt talks to Luca Gattoni-Celli about why it’s so expensive to buy a house.In the 80s, people from all sorts of socioeconomic backgrounds were able to afford apartments and houses i...

22 Marras 202543min

Episode 151: Witold Więcek discusses statistics and academic research

Episode 151: Witold Więcek discusses statistics and academic research

Note: this episode was recorded in August of 2022.In the latest Elucidation, Matt talks to Witold Więcek about the difficulties that come up for researchers who would like to draw upon statistics. Lot...

3 Touko 202546min

Episode 150: Shruti Rajagopalan discusses talent in India

Episode 150: Shruti Rajagopalan discusses talent in India

In this episode, Matt sits down with Shruti Rajagopalan (Mercatus Center) to talk about what the future holds for India.We often have a tendency to think of the current economic and geopolitical situa...

20 Elo 202446min

Episode 149: Lainie Ross and Christos Lazaridis talk about defining death

Episode 149: Lainie Ross and Christos Lazaridis talk about defining death

In this episode, we are joined by Lainie Ross (University of Rochester Medical Center) and (once again!) Christos Lazaridis (UChicago Medicine), this time to talk about the different ways of defining ...

14 Huhti 202442min

Episode 148: Christos Lazaridis discusses brain death

Episode 148: Christos Lazaridis discusses brain death

In this episode, Matt sits down with Christos Lazaridis (University of Chicago Medicine) to chat about what brain death is and whether brain death should count as, like, death death.Modern life suppor...

20 Loka 202337min

Episode 146: Gaurav Venkataraman discusses memory in DNA and RNA

Episode 146: Gaurav Venkataraman discusses memory in DNA and RNA

In this episode, Matt sits down with Gaurav Vankataraman (Trisk Bio) to talk about how human memory is physically realized.Where do your memories live? In the brain, right? They’re, like, imprinted th...

30 Maalis 202339min

Suosittua kategoriassa Yhteiskunta

olipa-kerran-otsikko
siita-on-vaikea-puhua
kaksi-aitia
gogin-ja-janin-maailmanhistoria
i-dont-like-mondays
poks
antin-palautepalvelu
kolme-kaannekohtaa
sita
mamma-mia
aikalisa
yopuolen-tarinoita-2
lahko
rss-murhan-anatomia
loukussa
rss-palmujen-varjoissa
rss-nikotellen
meidan-pitais-puhua
terapeuttiville-qa
mystista