AVAgnius Vasiliauskasinagniusvasiliauskas.hashnode.dev·Mar 13, 2021 · 10 min readSolving 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...00
AVAgnius Vasiliauskasinagniusvasiliauskas.hashnode.dev·Dec 18, 2020 · 9 min readFirst 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...00
AVAgnius Vasiliauskasinagniusvasiliauskas.hashnode.dev·Jan 17, 2020Big 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 ...00
AVAgnius Vasiliauskasinagniusvasiliauskas.hashnode.dev·Dec 18, 2019Fun 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...00
AVAgnius Vasiliauskasinagniusvasiliauskas.hashnode.dev·Jul 19, 2019Recurrence 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...00