agniusvasiliauskas.hashnode.devSolving Einstein's Puzzle with C and backtrackingI always wanted to write a computer program which solves Einstein's Riddle, but it seemed that this task is so impenetratable and probably needs specific logic programming language like Prolog. Even when I know a couple of bits in Prolog, encoding p...Mar 13, 2021·10 min read
agniusvasiliauskas.hashnode.devFirst contact with an alien - Arduino electronics platformRecently I've bought an Arduino-based platform branch "DFRobot". It's actually a full development kit with many parts included,- various sensors, LCD displays, buzzers, micro servo motors and many many other parts. Package looks like : I have to say...Dec 18, 2020·9 min read
agniusvasiliauskas.hashnode.devBig sister of swap(x,y) functionHow do you think, if you would need to generalize swap(x,y) function - How it would look like ? We all know that in standard case swap() is just: x,y = y,x; But if swap could accept 3 elements or even more, up until n, - How it would act ? Or we can ...Jan 17, 2020
agniusvasiliauskas.hashnode.devFun with p5.js and perlin noiseHave you ever heard of p5.js engine ? It's a very fun way to create Javascript Graphics effects in html or even a full-scaled Js game. When playing with Perlin noise, I've came to some interesting effect which reminds me aurora-like behavior or fl...Dec 18, 2019
agniusvasiliauskas.hashnode.devRecurrence relation of averagingLet's form a such problem - Can averaging be done without storing an intermediate total value ? YES. One just needs to re-write averaging formula as a recurrence relation : PHP implementation of averaging 1 000 000 random numbers in [0..1] interval...Jul 19, 2019