Today I give my take on a blog article I stumbled across today called "Computer Algorithms: Linear Search in Sorted Lists" which gives a look at applying the linear search model to something sorted. I will offer a suggestion to perhaps make this a bit better for implementation and perhaps performance reasons. So buckle up and we will take another spin around the Programming Underground! Ok, so if you are a ...
In a long standing tradition here on the Programming Underground we are going to add another entry to the definitive series. For those of you who are still relatively new to my blog, the definitive series is a series of blog entries where we take an algorithm and run it through the paces of five different languages: C++/C#/Java/VB.NET/PHP. With the code side by side we can see the similarities as ...
Now dip the wand into the soap and take it back out, blow gently and voila! Your integer array is sorted! Wow, only if it was that easy huh? Well it can be with a simple straight forward demonstration of bubblesorting. In this entry I will attempt to quickly show you a simple bubblesort you can do at home and in your own projects. It may even help you pass ...
Ever hear the term "Kicking the bucket"? If not, it is usually used here in North America to mean someone died. Well rest assured I am not going to be whipping out expressions like "I see dead programmerssss" or anything in this post. Ok, maybe I just did, but the idea behind BucketSort (aka Bin sort) is just that, creating buckets of numbers which we attack with our choice of ...