# Objective-C

## How to Search a Binary Tree in Objective-C

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

## How to Create a Binary Tree in Objective-C

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

## How to Perform an Insertion Sort in Objective-C

The insertion sort algorithm is a sorting algorithm used in computer science for sorting small amounts of data.  Recently, in my old Objective-C archives, I found an insertion sort implementation that I had been created but never seen the light of day on any project.

## How to Perform a Mergesort in Objective-C

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

## How to Perform a Quicksort in Objective-C

The quicksort algorithm is a fundamental sorting algorithm in computer science.  A while back I was looking through my old Objective-C archives and found a quicksort implementation that I had created that never 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 quicksort algorithm I thought I would write a brief tutorial on how my implementation of quicksort works in Objective-C.  First, before we get started though there are a few things to keep in mind about this tutorial.  The first is that this tutorial was