Computer Sciences > GATE 2024 SET-1 > Operator Properties
Consider the operators ◊ and □ defined by a ◊ b = a + 2b, a □ b = ab. for positive integers. Which of the following statements is/are TRUE?
A
Operator ◊ obeys the commutative law
B
Operator ◊ obeys the associative law
C
Operator □ obeys the distributive law over the operator ◊
D
Operator ◊ obeys the distributive law over the operator □

Explanation

Correct : b,c

Similar Questions

What is the worst-case time complexity of insertion in an AVL tree?
Question #23 Medium
Which operations on a binary search tree have O(h) complexity?
Question #31 Easy
Compare search complexities of sorted array vs balanced BST.
Question #47 Hard

Related Topics

Data Structures Binary Search Tree Time Complexity Algorithm Analysis Tree Algorithms Computer Science