All Questions
Tagged with bitwise functional-programming
4 questions
-1
votes
1
answer
372
views
Interlock of some equipments in electrical power system using simple Arduino Uno code [closed]
I'm trying to implement some logic functions essential to control a small power system consisting of 2 Transformers labeled T1 and T2, 2 Generators (G1 and G2) and a bus tie (BT). I'm not going to ...
4
votes
1
answer
159
views
Binary Trie in F#
I have this little exercise writing a binary trie in F#. In C# it can be done in few lines, but here it became more complicated than I had expected (especially the ...
6
votes
2
answers
555
views
Decomposing bitfield with Haskell: is recursion the only way to do this?
Here's a program to take a bitfield like 7 and decompose it into the flags [1,2,4].
Ignore that the algorithm for doing this doesn't use bit shifting/is stupid.
Problems: it seems like I have to have ...
4
votes
1
answer
1k
views
Connect Four: Bitboard checking algorithm
I'm rather new to Clojure and so I decided to program a Connect Four for fun and learning.
The code below is a Clojure implementation of this bitboard algorithm.
The whole code can be found here: ...