<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>algorithms on Ciência Programada</title>
    <link>https://cienciaprogramada.com/tags/algorithms/</link>
    <description>Recent content in algorithms on Ciência Programada</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <managingEditor>contato[@]cienciaprogramada.com.br (Francisco Bustamante)</managingEditor>
    <webMaster>contato[@]cienciaprogramada.com.br (Francisco Bustamante)</webMaster>
    <copyright>© 2026 Francisco Bustamante</copyright>
    <lastBuildDate>Fri, 27 Mar 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://cienciaprogramada.com/tags/algorithms/index.xml" rel="self" type="application/rss+xml" />
    
    <item>
      <title>How the Computer Subtracts by Adding: Two&#39;s Complement and Overflow</title>
      <link>https://cienciaprogramada.com/2026/03/twos-complement-overflow/</link>
      <pubDate>Fri, 27 Mar 2026 00:00:00 +0000</pubDate>
      <author>contato[@]cienciaprogramada.com.br (Francisco Bustamante)</author>
      <guid>https://cienciaprogramada.com/2026/03/twos-complement-overflow/</guid>
      <description>To subtract, the processor adds the first number to the complement of the second, so a single adder does both operations. We will see two&amp;rsquo;s complement, why 8 signed bits range from -128 to +127, and how overflow took down the Ariane 5 and froze Pac-Man on level 256.</description>
      <media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://cienciaprogramada.com/2026/03/twos-complement-overflow/featured_0055.jpg" />
    </item>
    
    <item>
      <title>Computer Arithmetic: Addition and Subtraction in Binary, Octal, and Hexadecimal</title>
      <link>https://cienciaprogramada.com/2026/03/arithmetic-operations-number-bases/</link>
      <pubDate>Wed, 25 Mar 2026 00:00:00 +0000</pubDate>
      <author>contato[@]cienciaprogramada.com.br (Francisco Bustamante)</author>
      <guid>https://cienciaprogramada.com/2026/03/arithmetic-operations-number-bases/</guid>
      <description>The addition and subtraction rules of base 10 hold in any base: only the value that triggers the carry changes. We do arithmetic in binary, octal, and hexadecimal, see why with three addends the carry can be worth 2, and implement both algorithms in Python.</description>
      <media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://cienciaprogramada.com/2026/03/arithmetic-operations-number-bases/featured_0054.jpg" />
    </item>
    
  </channel>
</rss>
