Daniel Ray's Blog

Daniel Ray's Blog

I like computer science and programming. I hope you enjoy my blog.

06 Jul 2020

Stacks

A stack is a container, like an array. However, each element of an array can be accessed directly and in constant time. ...
27 Jun 2020

There are more real numbers than natural numbers

The natural numbers are the numbers 1, 2, 3, 4, 5, .... Real numbers are numbers such as 10.4541, 1, -2358.541, etc., et...
19 Jun 2020

Turing Machines

In a previous post, I gave an informal explanation of the P=NP? problem. In that post, I described both deterministic an...
19 Jun 2020

An Informal Explanation of the P=NP? Problem

You have an easy job. Every hour your manager comes into your office and gives you a positive integer. Your job is simpl...
19 Jun 2020

The K-Nearest Neighbors Algorithm

The k-nearest neighbors algorithm is a simple machine-learning algorithm that classifies a new data point according to t...