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

  Implement an open hash table

In this programming assignment you will implement an open hash table and compare the performance of four hash functions using various prime table sizes.

  Use a search tree to find the solution

Explain how will use a search tree to find the solution.

  How to access virtualised applications through unicore

How to access virtualised applications through UNICORE

  Recursive tree algorithms

Write a recursive function to determine if a binary tree is a binary search tree.

  Determine the mean salary as well as the number of salaries

Determine the mean salary as well as the number of salaries.

  Currency conversion development

Currency Conversion Development

  Cloud computing assignment

WSDL service that receives a request for a stock market quote and returns the quote

  Design a gui and implement tic tac toe game in java

Design a GUI and implement Tic Tac Toe game in java

  Recursive implementation of euclids algorithm

Write a recursive implementation of Euclid's algorithm for finding the greatest common divisor (GCD) of two integers

  Data structures for a single algorithm

Data structures for a single algorithm

  Write the selection sort algorithm

Write the selection sort algorithm

  Design of sample and hold amplifiers for 100 msps by using n

The report is divided into four main parts. The introduction about sample, hold amplifier and design, bootstrap switch design followed by simulation results.

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