Вход на сайт

Просмотр новости

Найдите то, что Вас интересует

XOR operand distinction

Дата публикации: 12-08-2026 13:21:58



Основное содержимое страницы с новостью.

  • Context: High School 
  • Thread starter Thread starter ollieha
  • Start date Start date Tuesday, 6:47 PM

Join the discussion

Registration is free. Ask a follow-up in this thread, or start your own.

TL;DR
How do you tell which side of an XOR wins?

Hi!

I was wondering if there’s a systematic way to find out which operand of an XOR is true?

Discussion

Not directly because the operation is symmetric: it provides the same result for 0^1 and 1^0 (where the caret is the xor operator).

However, you can construct a more complicated expression that does what (I think) you're looking for. Try A&(A^B), which will be one or zero according to whether A or B was the "winner" when A and B are different.
If they're not different there is no "winner" and this expression will evaluate to zero indicating that A didn't win; and likewise B&(A^B) will indicate that B didn't win either.

Science Advisor

Homework Helper

Gold Member

You could just look at the truth value of each bit directly? Why pass it through a symmetric logic gate and make things harder for yourself?

Science Advisor

Gold Member

2025 Award

ollieha said:

I was wondering if there’s a systematic way to find out which operand of an XOR is true?

## A \overline B ## is as good as you will get IMO.
You might also have to test for ## \overline A B ## to exclude the ## \overline {AB} ## and ## AB ## states. Which binary result do you want?
You might look up Karnaugh maps for this sort of question.

Last edited: Tuesday, 11:55 PM

Science Advisor

Homework Helper

Gold Member

ollieha said:

I was wondering if there’s a systematic way to find out which operand of an XOR is true?

You can find out if an operand is true by looking at it. If this does not answer your question you need to provide more context.

If A,B aren't accessible you can still know the Tac Tbc delays ( C = A XOR B )
In that case recording the transitions you can estimate which transition has caused C 0-> 1
This works only on real systems.

The system can be "observable" also if not "directly observable"

Схожие новости

#Наименование новостиТональностьИнформативностьДата публикации
1Uncertain about part of the Order of Operations, from a formula08.2609-08-2026
2Position vs momentum measurement01013-08-2026
30024-10-2018
40026-10-2018
50024-03-2026
60024-02-2026
7Measurement and expectation value01015-08-2026
8Photons vs Gravitons01006-08-2026
9Port out port in05.6310-08-2026
10Közlemény0011-07-2026

Классификация: . Схожих патентов: 0. Схожих новостей: 10. Тональность: 0. Информативность: 10. Источник: www.physicsforums.com.