Binary Search

More to come! var doSearch = function(array, targetValue) { var min = 0; var max = array.length – 1; var guess; var i = 0; while(min <= max) { i = i++; guess = Math.floor((max + min) / 2); if (array[guess] === targetValue) { println(guess); println("Number of guesses " + i); return guess; } else […]

Read more "Binary Search"

Algorithms

My focus right now is brushing up on algorithms. For some weird reason, Regis did not include algorithm courses in their graduate program. This is a crucial part of software engineering, so I am taking it upon myself to learn as much about algorithms as I can on my own. I am alternating between two […]

Read more "Algorithms"