Historical Note

This page was migrated from the original p-nand-q.com site which was last updated in 2015. The content has been preserved exactly as it was, with only formatting updated for modern browsers. Over the coming days and weeks, the content will be reviewed and may be updated for accuracy and relevance. If you find any issues, please contact me.

Algorithms in Python (and others)

"To see that infinite-dimensional colored cycle stripping is decidable, we reduce it to the halting problem."

The following pages contain a couple of more or less interesting algorithm problems in Python, with various solutions. In spring 2015 as part of my Javascript refurbishment activities I started porting articles to Javascript as well, and to C++ and C# as a comparison. Articles marked (*) below have been ported.

Sorting

Searching

Math

Mixed