Did you know? DZone has great portals for Python, Cloud, NoSQL, and HTML5!
Python Zone is brought to you in partnership with:

Python

  • submit to reddit
The Python Programming Language
Stoimen Popov05/09/12
3330 views
0 replies

Algorithm of the Week: Determine if a Number is Prime

Stoimen Popov is back with another episode in his Algorithm of the Week series, and this week he tackles prime numbers. Stoimen begins with a very basic (brute force) approach, and then refines his algorithm to be far more effective, though it still works best for smaller numbers.

Brian Kelly05/02/12
12649 views
6 replies

5 Signs You Should Hire a Programmer on the Spot

When a programmer nails the interview and test the hiring manager is still inclined to say "we'll be in touch" but that's just not always the best idea...

Steven Lott05/02/12
4517 views
1 replies

Should the CIO Know How to Code?

The answer is "Yes." The examples of "well-functioning non-technical CIOs" are people as rare as hen's teeth.

Stoimen Popov04/24/12
6863 views
3 replies

Algorithm of the Week: How to Determine the Day of the Week

Do you know what day of the week was the day you were born? Monday or maybe Saturday? What about January 31st, 1883? Well, Stoimen Popov has created this post to explain a useful algorithm for determining what day of the week a certain date falls on.

Stoimen Popov04/17/12
8825 views
0 replies

Algorithm of the Week: Boyer-Moore String Searching

Have you ever asked yourself which algorithm is used to find a word after clicking Ctrl+F and typing something? Well, you probably know the answer from the title, but in this article Stoimen Popov explains how exactly this is done.

Stoimen Popov04/11/12
7992 views
0 replies

Algorithm of the Week: Morris-Pratt String Searching

Stoimen Popov returns with his Algorithm of the Week series, and in this post, he tackles the task of improving on the Brute Force String Matching and Rabin-Karp Sting Searching algorithms. To do this, he examines the flaws in the previous two, and explains how the Morris-Pratt String Searching algorithm can do better.

Simeon Franklin04/06/12
3759 views
0 replies

Getting started with Jython

A student in Simeon Franklin's Python Fundamentals class asked him to demonstrate how to get started with Jython. Having never used Jython, and not being a Java programmer, Simeon agreed to see if he could install Jython and demonstrate using a Java standard library class. In this post, Simeon explains his process for getting started with Jython.

Stoimen Popov04/03/12
7652 views
0 replies

Algorithm of the Week: Rabin-Karp String Searching

Last week, Stoimen Popov explained Brute Force String Matching, but cautioned that it is not the most efficient method for pattern matching. In this post, Stoimen breaks down a more efficient method, the Rabin-Karp Algorithm, and explains why it is more efficient in practice than in theory.

Stoimen Popov03/27/12
6725 views
0 replies

Algorithm of the Week: Brute Force String Matching

When it comes to string matching, the most basic approach is what is known as brute force, which simply means to check every single character from the text to match against the pattern. In this post, Stoimen Popov explains the principles behind Brute Force String Matching, demonstrates its implementation, and shows you what cases it is best used for.

Stoimen Popov03/21/12
4808 views
0 replies

Algorithm Cheatsheet: Radix Sort

Radix sort is an elegant and fast integer-sorting algorithm as explained in the following cheatsheet. In this post, Stoimen has provided an Algorithm Cheatsheet to help you out!

Steve Ferg03/20/12
4281 views
0 replies

The Basics of Unicode

Steve Ferg previously posted on Python encoding using Unicode. In this post, Steve has condensed many of his previous writings into the Basics of Unicode, which looks at the "big picture" of Unicode. As Steve cautions, large areas are summarized, nits are not picked, hairs are not split, and wind resistance is ignored...

Stoimen Popov03/20/12
6064 views
0 replies

Algorithm of the Week: Radix Sort

Stoimen Popov continues his series on Algorithms, this week tackling Radix Sort. In this post, Stoimen explains the implementation of Radix Sort using PHP, and provides a Pros and Cons list to help you decide if Radix Sort is right for your situation.

Ben Kepes03/14/12
3756 views
0 replies

Opa Aims to Rethink Development for the Cloud

Ben Kepes was researching a whitepaper for CloudU that looked at the different languages modern developers of cloud applications might consider -- when he noticed some problems. While the myriad of different components of web applications provide great flexibility, they do little to hide the complexity of development...

Stoimen Popov03/13/12
5353 views
1 replies

Algorithm of the Week: Quicksort

In general Quicksort consists of some very simple steps. First we have to choose an element from the list (called a pivot) then we must put all the elements with a value less than the pivot on the left side of the pivot and all the items with value greater than the pivot on its right side. After that we must repeat these steps for the left and the right sub-lists. As Stoimen Popov explains, that is Quicksort! Simple and elegant!

Steven Lott03/13/12
3591 views
7 replies

The Moderator Problem

Steven Lott has been an active member of the StackExchange, having provided 554 answers to be exact. But he was firmly, but politely, shown the door for his comments about Python. In this post, Steven details his experience before getting deeper into the Moderator Problem...