How many times does it produce any square that it produces

Assignment Help Basic Computer Science
Reference no: EM131220688

In this exercise we consider the problem of finding squares in a graph. That is, we want to find quadruples of nodes a, b, c, d such that the four edges (a, b), (b, c), (c, d), and (a, d) exist in the graph. Assume the graph is represented by a relation E as in Section 10.7.4. It is not possible to write a single join of four copies of E that expresses all possible squares in the graph, but we can write three such joins. Moreover, in some cases, we need to follow the join by a selection that eliminates "squares" where one pair of opposite corners are really the same node. We can assume that node a is numerically lower than its neighbors b and d, but there are three cases, depending on whether c is

(i) Also lower than b and d,

(ii) Between b and d, or

(iii) Higher than both b and d.

(a) Write the natural joins that produce squares satisfying each of the three conditions above. You can use four different attributes W, X, Y , and Z, and assume that there are four copies of relation E with different schemas, so the joins can each be expressed as natural joins.

(b) For which of these joins do we need a selection to assure that opposite corners are really different nodes?

(c) Assume we plan to use k Reduce tasks. For each of your joins from (a), into how many buckets should you hash each of W, X, Y , and Z in order to minimize the communication cost?

(d) Unlike the case of triangles, it is not guaranteed that each square is produced only once, although we can be sure that each square is produced by only one of the three joins. For example, a square in which the two nodes at opposite corners are each lower numerically than each of the other two nodes will only be produced by the join (i). For each of the three joins, how many times does it produce any square that it produces at all?

Reference no: EM131220688

Questions Cloud

Should the federal reserve change the definition of m1 : Suppose that technology completely eliminates the use of cash.- With no cash, does the nature of money change? - Should the Federal Reserve change the definition of M1?
What are the neighborhood profiles for nodes a and b : How many pairs are in the transitive closure? Hint: Do not forget that there are paths of length greater than zero from a node to itself in this graph.
Identify system requirements correctly and completely : What are the possible consequences if you fail to identify system requirements correctly and completely?
How events affects the amount of m1 that people hold : Explain how each of these events affects the amount of M1 that people hold: - ATMs are invented. - Credit cards are invented.
How many times does it produce any square that it produces : Assume we plan to use k Reduce tasks. For each of your joins from (a), into how many buckets should you hash each of W, X, Y , and Z in order to minimize the communication cost?
Identify and summarize the purpose of your interview : Identify and summarize the purpose of your interview. How will the information you gather be used? Explain how you will structure the interview and your reasoning behind the structuring of the interview. Include a list of topics you plan to cover.
How much has been swept into an mmda : How much of the money you deposit is actually in the account on a typical day, and how much has been swept into an MMDA?
Benefits for transport-layer security applications : Next, explain the risks and benefits of applications that use Public Key Cryptography to encrypt files or messages (such as PGP) and the risks and benefits for transport-layer security applications, where the files and messages may not be encrypted, ..
What differences or similarity did you see with both solids : What differences/similarities did you see with both solids? Explain the importance of taking the mass of each individual substance involved in a system. Explain the importance of units for each variable involved in Gibbs Free Energy equation.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Instances of attribute minimization

Describe attribute minimization. Explain what would happen if you tried to validate a page containing instances of attribute minimization. Propose a solution to this problem.

  Discuss recent legislation related to ethical computing.

Discuss recent legislation related to ethical computing.

  What is the optimal level of output for a monopolist

Question #2A monopolist faces a demand given by p = 30 - 3y. Its cost function is c (y) = 3y 2 + 6 y a) What is the optimal level of output for a monopolist? b) What is a monopolist price?

  Explain the differences between server-side and client

Explain the differences between server-side and client - side scripting languages. Please provide at least 3 advantages and disadvantages of each. Please cite your sources if needed.

  United states and france''s healthcare systems organized

How the United States and France's healthcare systems organized? For example, is it organized, centralized, etc.? Is there a university system, mix of a public-private system, private system, etc.? What percent of the country's GDP is spent on health..

  What value would be returned from call to its size() method

If a collection stores 5 objects, what value would be returned from a call to its size() method?

  You have been working as a police officer for the

you have been working as a police officer for the centervale police department for two years. you are on your nightly

  What is the history of the open source software movement

What is the history of the "open source" software movement

  You have been asked to develop uml diagrams to graphically

you have been asked to develop uml diagrams to graphically depict and describe the architecture of two 2 unrelated

  Restricting access to the use of communal property

Under what conditions would restricting access to the use of communal property, and thus, regulating the transformation of communal property into private property, be an efficient policy for utilizing property?

  Analyze an information system that you are familiar with

Use the PIECES framework to analyze an information system that you are familiar with?

  Stereotype entity classes

Research and explain the three stereotype entity classes: Boundary Class, ControlClass, and Entity Classes. Show the graphical notations and provide exemplary diagrams. Finally, describe their roles in system design.

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