What would be the simplest way to draw a digraph

Assignment Help Data Structure & Algorithms
Reference no: EM131710915

Q1. We know that the walk and positive walk relations on a directed graph define relations, and the positive walk relation on a DAG defines a strict partial order. Answer each of the following and explain your answer.

a. What sort of digraph has a walk relation that describes a total (linear) order?

b. Given R is an equivalence relation, what would be the simplest way to draw a digraph that represents R with the walk relation? What would the digraph look like? What would each equivalence class look like?

c. Why does a partial order have to be a DAG?

Q2. Let R be the relation on ordered pairs of positive integers defined below. For each definition determine what properties of relations it has and whether or not it is an equivalence relation.

a. (a, b)R(c, d) ↔ ac = bd

b. (a, b)R(c, d) ↔ ad = bc

Q3. Consider the routing

Input

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

Output

12

10

15

6

3

7

4

9

13

8

11

14

1

2

5

16

Showing your work give how to route each packet through a Benes network with 16 inputs to achieve congestion 1.

Q4. Hall's marriage theorem uses an algorithm of men proposing to women, then women rejecting men.

a. Show that it is possible for every woman to be matched with her last choice by giving an example with four men and four women where this happens.

b. Suppose both men and women are given the option of saying that there are unacceptable pairings. i.e. there are potential partners that are worse than being alone. Describe how you would modify the algorithm to handle this situation, and give an example of using your modified algorithm.

Q5. This problem will outline how to prove that any graph with no odd length circuits is 2-colorable.

a. Find a spanning tree of the following graph (LaTeX Hint: Just remove edges until your spanning tree is left)

1821_figure.png

b. Two color your spanning tree (fill the nodes).

c. Put your deleted edges back in with the coloring from part b to show that this is also a two-coloring of the original graph.

d. Explain why a two-coloring of a spanning tree will be a two-coloring of the original graph, given the original graph has no cycles of odd length.

Reference no: EM131710915

Questions Cloud

How do title vii and its amendments protect employees : How do Title VII and its amendments protect employees? Do you believe that laws are necessary to govern the ethical treatment of employees?
Organizations can leverage to add value to operations : List and explain the five kinds of assets or capital that organizations can leverage to add value to operations.
What is the globalization : What is globalization? What impact could the outsourcing of highly skilled programming jobs, traditionally held by employees in American companies.
Discuss case of the mercedes-benz automobiles : Some critics and skeptics suggest that the digital divide is not really an ethical issue, because there have always been divisions or "divides" between group.
What would be the simplest way to draw a digraph : Given R is an equivalence relation, what would be the simplest way to draw a digraph that represents R with the walk relation? What would the digraph look like
What were some of the strategies institutions and practices : What were some of the strategies, institutions, and practices that empires innovated or adopted to help them maintain and consolidate their power.
Development of the given software applications : For example, should engineers working in the United States and other developed countries design applications to ensure that people living in remote areas.
What are some way that environmental and geographical factor : What are some ways that natural, environmental, and geographical factors helped shape the society, religious worldview, politics, and the settlement.
Drawbacks of group decision making is most evident : she participated in a team discussion in her office to decide their monthly goal. which of the following drawbacks of group decision making is most evident?

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Write schedule produced by earliest deadline first algorithm

Given below are two sets of real-time, periodic tasks. For (a), will the schedule produced by Earliest Deadline First algorithm meet all the deadlines?

  How many paths are there to the goal

Show your pseudo code for this algorithm. Is this an admissible heuristic function and How many possible states are there? How many paths are there to the goal?

  What is the quick sort algorithm

Which of the following would give the fastest run time when an array is sorted using the quick sort algorithm: a fully sorted array, an array of random values.

  Er diagram of cardinality and modality

Read the following information about World Relief for Disaster Victims (WRDV), a fictional nonprofit organization that provides aid to victims of natural disasters.

  Analyze the common threats to data systems

Analyze the common threats to data systems such as Web applications and data servers. Next, speculate on the greatest area of vulnerability and potential for damage and / or data loss of such data systems (e.g., SQL injection, Web-based password c..

  Display a form allowing the user to enter the players names

Display a form allowing the user to enter the players' names. Display a form that can be used during a game to record the points scored by each player. Display the total points scored by each player and by the team.

  Write at least a one-page critic of the cisc approach

write at least a one-page critic of the CISC approach showing its disadvantages while showing the advantages of the RISC approach. You may want to use real-life example machine performance as a support for your support of the RISC philosophy.

  Develop a program that can cross-reference welfare

Develop a program that can cross-reference welfare and tax records. Unfortunately, this data is in separate databases, with the welfare data sorted by name, and the tax data sorted by tax file number.

  Solve a particular contention-resolution problem

In Section 13.1, we saw a simple distributed protocol to solve a particular contention-resolution problem. Here is another setting in which randomization can help with contention resolution, through the distributed construction of an independent s..

  Design a complete algorithm or draw a flowchart

Design a complete algorithm or draw a flowchart that determines the sales tax on purchases under $1.00 for a state with a 7% sales tax rate. Display the sales tax amount if the number of cents entered was 99 or less; otherwise, display an error me..

  Explain the fifo structure of the queue

Explain the FIFO structure of the queue Explain how you would implement the queue data structure in its simplest form. Illustrate your answer fully with the necessary sample code

  Define any functional dependecny or multivalued dependecny

Define any functional dependecny and/or multivalued dependecny in the following table. Do not invent any new fields. The superkey of this table consists of COURSE, STUDENT, INSTRUCTOR, SEMESTER.

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