Daniel Ray's Blog

Daniel Ray's Blog

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

10 Jul 2020

Simulated Annealing

You have a problem. You already have some solution to your problem, but you want the very best solution. There is a set ...
08 Jul 2020

Quines

A quine is a computer program that prints its own source code. Writing a quine is not as easy as you might think. To lea...
08 Jul 2020

Of Dijkstra and Priority Queues

Although I’ve implemented variants of Dijkstra’s algorithm in the past, I wanted to implement the algorithm ...
07 Jul 2020

Breadth-First Search

Now that I’ve written about queues, I’ll write about breadth-first search. Breadth-first search is a graph s...
06 Jul 2020

Queues

The last element you push onto a stack will be the first element that’s popped off the stack. A stack is a last-in, firs...