Articles

By Alex Castronovo

An image of random samples on a teapot

A Simple, Efficient, and Unbiased Approach to Uniformly Sampling a Mesh

Mar 13, 2025
I describe a simple and quick algorithm to uniformly sample points on a mesh with supplementary pseudocode. This algorithm has applications in several computer graphics fields and can be implemented on the GPU.
An image of two knights courtesy of University of Hong Kong

Automating Logic: Solving the Knights and Knaves Problem

Jan 5, 2025
I describe a Java program that solves the famous Knights and Knaves logic puzzle automatically by constructing truth tables. This work is an extension of my discrete math coursework. Image to the left courtesy of University of Hong Kong.