Letnbspgnbsp vnbspe be an undirected graph use depth-rst


1. multigraph is a graph in which multiple edges are allowed between pairs of vertices. Which of the algorithms in this chapter work without modi?cation for multigraphs? What modi?cations need to be done for the others?

2. Let = (VE) be an undirected graph. Use depth-?rst search to design a linear algorithm to convert each edge in to a directed edge such that the resulting graph is strongly connected, or determine that this is not possible.

3. You are given a set of sticks, which are lying on top of each other in some con?guration. Each stick is speci?ed by its two endpoints; each endpoint is an ordered triple giving its xy, and coordinates; no stick is vertical. A stick may be picked up only if there is no stick on top of it.

a. Explain how to write a routine that takes two sticks and and reports whether is above, below, or unrelated to b. (This has nothing to do with graph theory.)

b. Give an algorithm that determines whether it is possible to pick up all the sticks, and if so, provides a sequence of stick pickups that accomplishes this.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Letnbspgnbsp vnbspe be an undirected graph use depth-rst
Reference No:- TGS01274732

Expected delivery within 24 Hours