логика

Write down the problem condition using logic algebra

Please help me write down the condition of the problem using the algebra of logic. The three daughters of the writer Doris Ka ... = 1 General formula: G ^ (B C)^ (I ^ (A C ))^ A ^ (D ˅ E) ^ (B ^ D) ^ I ^ (D ˅ F) = 1 I do not exclude that I wrote nonsense

The algorithm of the fastest victory in the math game

A friend of mine suggested that I play a game. This is a turn-based game and for two players. Here are the rules: Both pla ... to me that it is too primitive. There must be a way to win this game in any scenario in the least number of moves. Any ideas?

How to correctly create a bit mask for a number

Tell me in simple human language - how to correctly compose and use bit masks? Preferably with examples in C. For example, I ... confused) of that, how to properly design the mask and perform a shift for the selection. God grant you patience, thank you!

How does the boolean assignment operator work in Java?

There is a code. public class IfElseTest { public static void main(String...args) { boolean b = false; if ... ly clear that if b was a lie, then b assign false must be true. Question: why does the compiler perceive b = false as false?

What exactly identifies a site user?

While studying the backend, I encountered this problem of misunderstanding: there is a site, a server Nodejs (in principle, a ... ary for a visual example). Please explain the very logic of the server's perception of visitors. How to determine who is who?

What is a predicate function?

I study C++. In the literature, one of the functions is called predicate. What does this mean, or is it just a translation ?

How to simplify logical expressions?

I am writing a small calculator of logical expressions (Boolean algebra) You need to file a simplification of the logical exp ... rules (all sorts of de Morgan's laws and so on similar) and traversing the tree from the bottom to iterate over these rules

What is the difference between a logical OR and an exclusive OR?

I can't understand how logical OR differs from exclusive OR?

Find an array of numbers by their XOR

You need to find an array of numbers (no more than 10^5 elements, each of which is greater than 0, but less than 2^50). In th ... of all the numbers in this array is X. I want to see either the code (in python) or the theory for creating such an algorithm

How does the xor operator work?

For example, there is a task to find a unique value in an array: a = [1, 2, 3, 4, 5, 1, 2, 3, 4] You can do: a.inject(: ... then (3^3) returns 0. It would be interesting to know and fundamentally (how to apply XOR) and how it works in my example.