de en es fr nl pl pt sv zh

algorithm

stacking up

Susan Stepney

I thought yesterday's SeeStar shot of the moon was good.But my other half also took a SeeStar video of it.  Why would you take a video of a static scene?  To enhance the view.  He spent today fiddling around with AutoStakkert!, software to stack multiple frames to get a better image.  The result...

Solving Knights Tour using a Neural Network

Atul Vinayak

8 x 8 Knight's Tour generated by Neural Network I recently came across this post by Dimitry Brant: Knight’s Tours Using a Neural Network. This version is implemented in C++ with flat arrays. A properly vectorized numpy re-implementation is long overdue, so I decided to give it a shot. A knight's...

Finding Mona Lisa in the Game of Life

Atul Vinayak

This video might take a few seconds to load. Please squint for best results :). The results of this experiment are not exactly close to my target as you can see, but I thought it was worth a blog post anyway. There was this rough idea I've been thinking about in Conway's Game of Life for a really...

Noise Planets

Atul Vinayak

Thank you Tyler Hobbs for the inspiration I recently found this piece of art (LINES 2A (2017)) created by Tyler Hobbs. This picture kinda looked very hand drawn, but it's completely generative. Something about this drawing and it's texture kind of resonated with me, so I wanted to try to study and...

Deobfuscating a Maze Program

Atul Vinayak

I was wandering in Wikipedia when I came across this interesting page https://en.wikipedia.org/wiki/Obfuscation_(software), and this interesting piece of code. char*M,A,Z,E=40,J[40],T[40];main(C){for(*J=A=scanf(M="%d",&C); -- E; J[ E] =T [E ]=...

Tweet p5.js (#つぶやきProcessing) Showcase

Atul Vinayak

This page might take a few seconds to fully load.. m=0,h=13,draw=_=>{for(createCanvas(w=1e3,w),background(i=k=n=0),t=t=>text(Array(\~\~R(5)).fill(R(w).toString(36)),w_t,i_h+m),a=textAlign,R=t=>noise(n++)_t,fill("#つぶやきProcessing"),m--;h_i++pic.twitter.com/h7DAnbwoUo— yakinavault...

Clustering Unicode Glyphs

Atul Vinayak

I saw this image of Language families across the globe today, and decided I wanted to do something related. What would happen if I apply a clustering algorithm to all the Unicode characters? I wanted to this done really quickly, So no reinventing the wheel. The plans is to get the SoTA clustering...

Project Kasparov Part 2 - react-chess

Atul Vinayak

If you haven’t read Project Kasparov Part 1, I suggest you follow this link. All my web projects were written in jQuery till now (except the timer, which was Angular 1.0). I was hearing a lot of praise for react in Hacker News and Reddit. I wanted to learn react so badly, but I couldn’t think of...

Project Kasparov Part 1 - chssbot

Atul Vinayak

Project Kasparov started out as a long-running desire to work on a chess related application. I found the Algorithms, Typography and Literature surrounding Chess fascinating. I am not very good at playing chess though. I was stuck with the failure of deploying canvasbot, My Genetic Algorithm Art...

Genetic Art

Atul Vinayak

I was experimenting with a lot of Genetic/Hill Climbing algorithms to generate Art. I started out by trying to approximate a Grayscale image with just lines of varying width and color intensity. The genetic algorithm is roughly like this: Algorithm: GA(n, χ, µ) // Initialise generation 0:...

Simulated Annealing for Beautiful Graphs

Atul Vinayak

Humans have an intuitive sense of symmetry and aesthetics. We try our best to make it easy to understand the concept we’re trying to explain. In textbooks, we see images like the one above, and not like this one.. I’m having labs in college where I have to implement various algorithms on graphs....

Procedurally Generated Mazes

Atul Vinayak

Maze Generation started out as an experiment. I was fascinated by maze generation algorithms. I used a randomized version of Kruskal’s algorithm. Create a list of all walls, and create a set for each cell, each containing just that one cell. For each wall, in some random order: If the cells...

A Sudoku Solver

Atul Vinayak

This one day code project which I did while I stayed at my mom’s place for vacation.It’s a messy sudoku solver in python. It somehow uses the same algorithm I use to solve sudoku (which is defenitely not the most efficient) in my mind. It comes up with a solution everytime(although really slow)....