Category Archives: Technology

P versus NP is itself an NP problem

What motivation do we have, besides the obvious, for continuously searching for an answer to the P versus NP problem? Many attempts have been made at proving P equals NP but also that P does not equal NP. With none being successful, monetary incentives have been instantiated. Still, no success. After trying and failing and… Read More »

Share

R - frequency histogram with normal curve

Creating a histogram in R is a piece of cake. But often times, you'll want to take a look at the gaussian distribution that your data may represent. It's easy enough to look at the frequency histogram separately from the gaussian, but what if we want to overlay the gaussian on top of the histogram?… Read More »

Share

R - color scatterplot points by density

Motivation If you've ever had lots of data to examine via a scatterplot, you may find it difficult due to overlapping points. For example, let's examine the following attempt to look at some (x,y) data. Impossible to understand, right? Solution Here's a much better solution. We will now color the points by their density. And… Read More »

Share

R - Creating a heatmap from scatterplot data

Here's the code and the image it produces. (Full explanation of each line is below) For those that want the full tutorial, read from here: Suppose you have some (x,y,z) data and wish to plot it. Perhaps you have weather data for a grid layout of a city. Whatever the data may be, it's common… Read More »

Share

Singly Linked List in Java

Implementing a Linked List in Java Here is a full implementation of a Singly Linked List in Java. A Link represents a single Node in the list. You'll notice that in this particular example, each Node stores two data, an integer and a double. Of course, your Nodes may store any type of data you… Read More »

Share

ZipCloud - FAQ, Review, and More

ZipCloud is a service used to backup your computer. Although backing up your important documents to an external hard drive may seem like the popular choice, external hard drives will eventually die. Cloud services to backup your data are secure guaranteed to never fail. How much does ZipCloud cost? The cheapest plan is $4.49/month to… Read More »

Share

How to make flames in R

Making flames in R may come in handy. Maybe you're bored or perhaps you want to make a beautiful histogram? Who knows? Nonetheless, it's a short piece of code and it makes beautiful images: It's actually quite simple to make. You may start out with a normal distribution. But to add complex color spectrums, you'll… Read More »

Share

Position of the max value in a R matrix

How can one find the position of the max value in a matrix in R? Finding the maximum value of a matrix isn't as straight forward as you may think. We can construct a matrix and find the max value: But we need to get the position of that max value, 11. To do so,… Read More »

Share

Best R software to use?

It's often a common question: What's the best way to program R? What's the best R software to use? Many programming languages have their full list of wonderful IDEs, but when it comes to R, that list is somewhat short. So, what's the best? My personal opinion is that RStudio is the best. It's available for many… Read More »

Share

How do I make a website?

Good news! It is becoming easier and easier to create a website. Of course, there are advanced ways of doing things. But let's say you want a basic website, maybe to publicize some information about yourself, create a blog, etc. Here's the easiest way. Create an account on GoDaddy.com Think of a URL you like.… Read More »

Share