Opening a Bluetooth connection between two devices is a fast and energy efficient way to communicate data over a short distance. Bluetooth connections allow for smartphones, computers, cars, and even IoT devices to communicate all over a frequency that operates at ~ 2480 MHz. In my experience working with Bluetooth, I have seen connections go up fairly easily or be very stubborn and not want to connect at all. Generally it seems harder to connect two devices that are not from the same manufacturer. So, what do you do when connections are being stubborn? Do you try and reconnect and jus
Tutorials
In a recent tutorial I described how to create a binary tree data structure and populate it with numerical data. Now, in this tutorial, I will explain how to search each level of the binary tree for a specific numeric value. As previously described in my past tutorial, search and sort operations on binary tree's is a very popular use case because of the efficiency in performing these operations. For a binary tree with n elements the time complexity in searching the tree is O(log(n)) in the worst case. W
Tree data structures are a fundamental data structure used in computer science. Tree's can be used for searching and sorting data hierarchies such as UIView's via tags and custom objects via leveling order. Binary tree's are also very similar in that they provide an efficient sorting mechanism to quickly search large amounts of data. A while back I was looking through some of my old Objective-C archives and found a binary tree implementation that was created but never seen the light of day on any project. To get some use out of this code and to share my binary tree implementation I t
Like the quicksort or the insertion sort algorithm, the mergesort algorithm is a fundamental sorting algorithm in computer science. A while back I was looking through my old Objective-C archives and found a mergesort implementation that was created but never had seen the light of day in any project. To get some use out of this code and to share this implementation with anyone looking for a mergesort algorithm I thought I would write a brief tutorial on how my implementation of mergesort works in Objective-C. First, before getting started, there are a few things to keep in mind about thi