Which pairs of operations commute

Assignment Help Basic Computer Science
Reference no: EM131212735

Suppose for sake of argument that database elements are two-dimensional vectors. There are four operations we can perform on vectors, and each will have its own type of lock.

i. Change the value along the x-axis (an X-lock).

ii. Change the value along the y-axis (a F-lock).

iii. Change the angle of the vector (an A-lock).

iv. Change the magnitude of the vector (an M-lock).

Answer the following questions.

a) Which pairs of operations commute? For example, if we rotate the vector so its angle is 120° and then change the coordinate to be 10, is that the same as first changing the x-coordinate to 10 and then changing the angle to 120°?

b) Based on your answer to (a), what is the compatibility matrix for the four types of locks?

c) Suppose we changed the four operations so that instead of giving new values for a measure, the operations incremented the measure (e.g., "add 10 to the coordinate," or "rotate the vector 30° clockwise"). What would the compatibility matrix then be?

Reference no: EM131212735

Questions Cloud

Identify historical events that led to the implementation : Identify historical events that led to the implementation of current standards. Analyze how these events and standards are correlated and the impact that they have on the accounting profession in Germany today.
How many interleavings of transactions are serializable : If the order of incrementation in T2 were reversed [i.e., inc2 (B) followed by inc2 {A)], how many serializable interleavings would there be?
Judicial precedents set by earlier decisions : Why do courts generally adhere to the judicial precedents set by earlier decisions?
Describe transformation of graph of asia with north america : Describe the transformation of the graph of Asia with North America. Do the graphs have horizontal asymptotes? How about vertical asymptotes? At what size, x(in megabytes), will the consumerratings be equal to 0 in Asia?
Which pairs of operations commute : Suppose for sake of argument that database elements are two-dimensional vectors. There are four operations we can perform on vectors, and each will have its own type of lock.
Type of marketing research : Question 1: What type of marketing research should Samsonite undertake and why?
Brief analysis of consumer perceptions and behaviour : HI5004 Marketing Management - You can select any small to medium size manufacturing in Australia -Clear and concise target market, segments and positioning (includes positioning mapping) followed by the company
What is the compatibility matrix for the four types of locks : Suppose for sake of argument that database elements are two-dimensional vectors. There are four operations we can perform on vectors, and each will have its own type of lock.
Problem regarding the marketing plan : What is the best way to measure whether or not your marketing plan is working?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  What is the code to remove the space at the end of string

What is the code to remove the space at the end of the string below and return the result in a textbox? Dim d As String = "CSC 232 " 2. What is the code to display just the text "232" from the string "CSC 232" in a textbox?

  Define the classes shown in the following class hierarchy

Define the classes shown in the following class hierarchy diagram

  Determine ? when the crates begin to slide

The coefficients of static friction between the crates and the µA = 0.25 and µB = 0.35

  Common types of policies for web services

What are the most common types of policies for Web services? 12.2 What are the main components of WS-Policy Framework?

  Managing organizational risk

No longer than a decade ago, IT security professionals had to work hard to persuade organizational leaders about the importance of developing effective risk management plans. Nowadays, due to the plethora of cautionary tales that organizations histor..

  Assigning value to last array of array list

Write a statement that assigns the value 160000 to the last element of the ArrayList salaryStep.

  What happens as n increases

Run the above code for n = 30; 40; and 50. What happens as n increases? What do you think this implies about big-O run time of the algorithm?

  Design a class named location for locating a maximal value

Design a class named Location for locating a maximal value and its location in a two-dimensional array.

  Suggest run-time data structures and appropriate code

Suggest run-time data structures and appropriate code to efficiently implement a throw statement. Note that ordinary calls should not be unduly slowed just to prepare for a throw that may never occur. That is, most (or all) of the cost of a throw ..

  Write a class encapsulating a course

write a class encapsulating a course. Where a course is assumed to have three attributes: a code name, a description and number of credits.

  Color triangle for matching stimuli of wavelengths

1. The following is the color triangle for matching stimuli of wavelengths 700, 546.1 and 435.8nm showing the locus of spectral colors. Assume a color in the blue-green range has the coordinates of r = -.50, g = +.75 (the dot in the diagram below)

  The long-standing mubarak regime in egypt

It would have been hard to miss the information had you been scanning the newspapers during the tumultuous February of 2011, when the long-standing Mubarak regime in Egypt was swept from power by a popular uprising ultimately aligned with the militar..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd