Author Archives: The Sunday Programmer

About The Sunday Programmer

Joe is an experienced C++/C# developer on Windows. Currently looking out for an opening in C/C++ on Windows or Linux.

Arithmetic Division: Old wine in new bottle

Given two positive integers A and B compute the quotient and remainder without using multiplication. This is an old problem except, in optimising the algorithm we derive the long division method taught in primary school. Problem: Given A and B, … Continue reading

Posted in Uncategorized | Leave a comment

Semi-Stable Partition

Inspiration Alexander Stepanov and Paul McJones in the their book “Elements of Programming” (Chaper 11.1) describe a stable partition algorithm that appears to be more complex than necessary. Here I present an improvement. Problem Definition A partition of sequence with … Continue reading

Posted in Algorithm, C++ | Leave a comment

String Matching Algorithms

Simple algorithms for searching permutations and combinations in strings Continue reading

Posted in Algorithm, C++ | Leave a comment

Liberty in the Digital Age

The rapid spread of “fake news” and “alternative facts” on the internet is a threat to freedom as such data can be used to manipulate people into doing things that are not in their best interests. In a recent article … Continue reading

Posted in Uncategorized | Leave a comment

Security and Freedom in Cyberspace: The case for government intervention

Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety. — Benjamin Franklin There has been a recent spate of cybersecurity breaches, such as the one at Yahoo! and more recently the … Continue reading

Posted in Uncategorized | Leave a comment

The Gig Economy

The nature of paid work is changing. Part-time jobs are increasing and full time jobs are on the decline. Temporary jobs like driving for Uber or Lyft are becoming popular. In this blog we discuss what constitutes a gig economy. … Continue reading

Posted in Uncategorized | Leave a comment

No Silver Bullets: A Modern Perspective

“No Silver Bullets” is an oft-cited paper in the annals of Software Engineering. While technology has changed significantly since the paper was first published there are still some pearls of wisdom that are worth reflecting upon. Tracing to Aristotle, Brooks … Continue reading

Posted in Uncategorized | Leave a comment