DOUBT 1:from this article I came across this lines "Within an expression containing two or more occurrences in a row of the same associative operator, the order in which the operations are performed does not matter as long as the sequence of the operands is not changed"
I dont understand this line
Consider the following equation:
(2+3)+4=2+(3+4)=9
Order & sequence which one is what ?
acc to me :
Order MEANS :
Anything that is to do with rearranging Paranthesis ?
in the first subexpression in 2+3 there is a parantheiss around it
in the second one paranthesis is around (3+4)
Sequence means
changing the position of each digit/operand from 2+3+4 to 3+2+4 or from 2+3+4 to 4+3+2
Am i interpreting correctly?
In a Associative expression If I change both the order and sequence the results are same.
You're focusing on the wrong words.
I don't care for their use of "order" and "sequence" there; I would probably use "order" for both. They mean essentially the same thing here; the important thing is the words that follow: "
order in which the
operations are performed" vs. "
sequence of the
operands".
In "(2+3)+4=2+(3+4)=9", the order of the operands, "2, 3, 4" is unchanged, but the order in which the operations are performed (first + done first, vs. second + done first) changes. The
numbers are the
operands, so moving them changes the order of operands (e.g. 2+3+4 vs 3+2+4); that change is covered by the commutative property. The
parentheses determine the order in which the
operations are done; that is what the associative property covers.
q1:So why do they say "the order in which the
operations are performed does not matter as long as the sequence of the operands is not changed"
IF I AM CHANGING THE sequence of operands(2,3,4) then order will STILL not matter ,as they will give same result. Contradiction
BEFORE: (2+3)+4=9 <-- ORIGINAL SEQUENCE
AFTER Sequence change =(3+4)+2=9
All they are saying is that the associative property applies to changing the order of the operations by changing parentheses, and does not apply if the operands (numbers) move.
To show that (2+3)+4 = (3+4)+2, you need to apply both properties: first associative, (2+3)+4 =2+(3+4), then commutative, 2+(3+4) = (3+4)+2. First I moved only the parentheses, then I moved only the two addends, 2 and 3+4.
DOUBT 2: From the same page i found out "The trivial operation x ∗ y = x (that is, the result is the first argument, no matter what the second argument is) is associative but not commutative"
Is the above line means that x has to be always 0 and y can be any real no so that x*y=x --> 0 * {0 to infinte)=0 (zero in x will satisfy this equation taken any y random real value.)
IF yes , then why it cant be commutative . See original LHS part is x*y so after commutative law it becomes y*x so y*x=x only if x=0
I think you are misunderstanding what they are doing. They are saying, if you invent a
new operation called "*" (which is
not multiplication!) such that the result of operating on any two numbers is the value of the first number, then that operation is not commutative. (For example, 1*5 = 1, but 5*1 = 5, since the result is always the first number.) They show their second "trivial operation" using a different symbol, "∘", which may be less confusing for those who are familiar with "*" used for multiplication.
DOUBT 3: I know about Cartesian product of 2 sets (A,B) A*B={(a,b)|a belongs to A ,b belongs to B}
HOW the formation of Table occurs? . I know how in cartesian product a table gets formed.
Again, you are totally misunderstanding this, because you are not familiar with the idea of abstract algebra, where we can make up any operation we want, for the sake of discussion. This has nothing to do with the Cartesian product of sets! They are just making up another operation, which they chose to call "×" (and subsequently use without a symbol), which they defined by (arbitrarily) deciding that A×A = A, A×B = A, and so on. The table is the definition of the operation, which is designed purely as an example of a noncommutative operation that is nevertheless associative.
You really need to stop reading low-quality sites like Wikipedia!
Really, there is a danger in reading Wikipedia to learn basics, because it quickly goes beyond your level of understanding and becomes confusing. This is why I recommend just going through a single textbook and sticking to it, rather than wandering around the minefield of the internet.